Skip to content

Commit

Permalink
fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yipeng1030 committed Nov 11, 2024
1 parent bfbaf5b commit b1fcf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/opsdefinition/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (o *describeOptions) run() error {

func (o *describeOptions) describeOpsDefinition(name string) error {
opsDef := &v1alpha1.OpsDefinition{}
if err := util.GetK8SClientObject(o.dynamic, opsDef, types.OpsDefinitionGVR(), o.namespace, name); err != nil {
if err := util.GetK8SClientObject(o.dynamic, opsDef, types.OpsDefinitionGVR(), "", name); err != nil {
return fmt.Errorf("failed to get OpsDefinition '%s': %w", name, err)
}
return o.showOpsDefinition(opsDef)
Expand Down

0 comments on commit b1fcf65

Please sign in to comment.