Skip to content

Commit

Permalink
kubectl explain should work for both cluster and namespace resources …
Browse files Browse the repository at this point in the history
…and without a GET method
  • Loading branch information
atiratree committed Jun 27, 2023
1 parent b3d94ae commit 7f4c187
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 7f4c187

Please sign in to comment.