Skip to content

Commit

Permalink
Merge pull request #118930 from atiratree/automated-cherry-pick-of-#1…
Browse files Browse the repository at this point in the history
…18876-upstream-release-1.27

Automated cherry pick of #118876: kubectl explain should work for both cluster and namespace
  • Loading branch information
k8s-ci-robot authored Jul 5, 2023
2 parents 3c115ee + f689046 commit 04e8609
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
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 04e8609

Please sign in to comment.