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

Kubernetes-commit: f689046fb6bb49f88c7314be7a4db287296a5645
  • Loading branch information
atiratree authored and k8s-publishing-bot committed Jun 26, 2023
1 parent 3caadea commit 8836121
Show file tree
Hide file tree
Showing 4 changed files with 9,230 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pkg/explain/v2/funcs.go
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit 8836121

Please sign in to comment.