Skip to content

Commit

Permalink
Merge pull request #118876 from atiratree/fix-explain
Browse files Browse the repository at this point in the history
kubectl explain should work for both cluster and namespace resources and without a GET method
  • Loading branch information
k8s-ci-robot committed Jun 27, 2023
2 parents 48a6fb0 + 7f4c187 commit e09edf3
Show file tree
Hide file tree
Showing 4 changed files with 9,230 additions and 4 deletions.
3 changes: 3 additions & 0 deletions staging/src/k8s.io/kubectl/pkg/explain/v2/funcs.go
Expand Up @@ -185,6 +185,9 @@ func WithBuiltinTemplateFuncs(tmpl *template.Template) *template.Template {

return copyDict, nil
},
"list": func(values ...any) ([]any, error) {
return values, nil
},
"add": func(value, operand int) int {
return value + operand
},
Expand Down

0 comments on commit e09edf3

Please sign in to comment.