proxy.golang.org : github.com/GoogleContainerTools/kpt-functions-sdk/go/fn/examples : v0.0.0-20220503232936-7ad5b77727ee
This example uses a SetLabels object, which implements `Runner.Run` methods. The input from ./data/setlabels-resourcelist.yaml: apiVersion: config.kubernetes.io/v1 kind: ResourceList items: functionConfig: This example implements a function that validate resources to ensure spec.template.spec.securityContext.runAsNonRoot is set in workload APIs.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/%21google%21container%21tools/kpt-functions-sdk/go/fn/examples@v0.0.0-20220503232936-7ad5b77727ee
Published:
Indexed:
- github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0
- github.com/PuerkitoBio/purell v1.1.1
- github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
- github.com/davecgh/go-spew v1.1.1
- github.com/go-errors/errors v1.0.1
- github.com/go-logr/logr v1.2.0
- github.com/go-openapi/jsonpointer v0.19.5
- github.com/go-openapi/jsonreference v0.19.3
- github.com/go-openapi/swag v0.19.5
- github.com/gogo/protobuf v1.3.2
- github.com/google/go-cmp v0.5.5
- github.com/google/gofuzz v1.1.0
- github.com/json-iterator/go v1.1.12
- github.com/mailru/easyjson v0.7.0
- github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
- github.com/modern-go/reflect2 v1.0.2
- github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
- github.com/pkg/errors v0.9.1
- github.com/pmezard/go-difflib v1.0.0
- github.com/stretchr/testify v1.7.0
- github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca
- golang.org/x/net v0.0.0-20211209124913-491a49abca63
- golang.org/x/text v0.3.7
- gopkg.in/inf.v0 v0.9.1
- gopkg.in/yaml.v2 v2.4.0
- gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
- k8s.io/api v0.23.4
- k8s.io/apimachinery v0.23.4
- k8s.io/klog/v2 v2.30.0
- k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65
- k8s.io/utils v0.0.0-20211116205334-6203023598ed
- sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6
- sigs.k8s.io/kustomize/kyaml v0.13.6
- sigs.k8s.io/structured-merge-diff/v4 v4.2.1