Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
160 changes: 80 additions & 80 deletions go.mod

Large diffs are not rendered by default.

271 changes: 140 additions & 131 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/cmds/debug/clientorg/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func makeArgYaml(resource, namespace string) []any {
}

func getNSHeader(ns string) []byte {
return []byte(fmt.Sprintf("\n\n===== %v =====\n", ns))
return fmt.Appendf(nil, "\n\n===== %v =====\n", ns)
}

func getResourceHeader(res string) []byte {
return []byte(fmt.Sprintf("# %s :\n", res))
return fmt.Appendf(nil, "# %s :\n", res)
}

func (g *clientOrgOpts) collectAllResources() error {
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmds/debug/gateway/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ import (
)

type Binding struct {
Spec BindingSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
Status BindingStatus `json:"status,omitempty" yaml:"status,omitempty"`
Spec BindingSpec `json:"spec" yaml:"spec,omitempty"`
Status BindingStatus `json:"status" yaml:"status,omitempty"`
}

type BindingSpec struct {
SourceRef SourceRef `json:"sourceRef,omitempty" yaml:"sourceRef,omitempty"`
SourceRef SourceRef `json:"sourceRef" yaml:"sourceRef,omitempty"`
}

type SourceRef struct {
Expand Down
11 changes: 3 additions & 8 deletions pkg/cmds/debug/gateway/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"fmt"
"os"
"path"
"slices"

"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
Expand All @@ -37,7 +38,7 @@ type RouteSpec struct {
}

type Route struct {
Spec RouteSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
Spec RouteSpec `json:"spec" yaml:"spec,omitempty"`
}

func (g *gatewayOpts) collectRoutes() error {
Expand Down Expand Up @@ -69,13 +70,7 @@ func (g *gatewayOpts) collectRoutes() error {
}

// ---- b) Filter by parentRefs ----
keep := false
for _, pr := range rt.Spec.ParentRefs {
if g.matchesGateway(pr) {
keep = true
break
}
}
keep := slices.ContainsFunc(rt.Spec.ParentRefs, g.matchesGateway)
if !keep {
continue // not attached to our gateway
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmds/debug/license/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var scheme = runtime.NewScheme()
func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
utilruntime.Must(kubedbscheme.AddToScheme(scheme))
utilruntime.Must(ocmapi.AddToScheme(scheme))
utilruntime.Must(ocmapi.Install(scheme))
}

func NewCmdLicense(f cmdutil.Factory) *cobra.Command {
Expand Down
58 changes: 58 additions & 0 deletions vendor/cloud.google.com/go/auth/CHANGES.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/cloud.google.com/go/auth/auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/cloud.google.com/go/auth/credentials/compute.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 23 additions & 5 deletions vendor/cloud.google.com/go/auth/credentials/detect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading