Skip to content

Commit b8a7edc

Browse files
committed
Docs: Update catalog with set-namespace go function
1 parent 34097e0 commit b8a7edc

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

site/content/en/guides/consumer/function/catalog/_index.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ These functions can be implemented using any toolchain such as the [Typescript S
1919

2020
See [definition of source functions][source].
2121

22-
| Image | Args | Description | Source | Toolchain |
23-
| --------------------------------------------- | --------------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
24-
| gcr.io/kpt-dev/kpt | fn source | Reads a directory of Kubernetes configuration recursively. | [Link](https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/internal/commands/source.go) | |
25-
| gcr.io/kpt-functions/read-yaml | | [Demo] Reads a directory of Kubernetes configuration recursively. | [Link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/demo-functions/src/read_yaml.ts) | [SDK](../../../producer/functions/ts) |
26-
| gcr.io/cloud-builders/kubectl | get [...] -o yaml | Get one or many resources from a Kubernetes cluster. | [Link](https://github.com/GoogleCloudPlatform/cloud-builders/blob/master/kubectl/Dockerfile) | |
27-
| gcr.io/kustomize-functions/create-application | | Add an Application CR to a group of resources. | [Link](https://github.com/kubernetes-sigs/kustomize/blob/master/functions/examples/application-cr/image/main.go) | [SDK](../../../producer/functions/golang) |
28-
| lyft/kustomizer:v3.3.0 | kustomize build [...] | Run kustomize to build configuration | [Link](https://github.com/lyft/kustomizer/blob/master/Dockerfile) | |
22+
| Image | Args | Description | Source | Toolchain |
23+
| --------------------------------------------- | ----------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
24+
| gcr.io/kpt-dev/kpt | fn source | Reads a directory of Kubernetes configuration recursively. | [Link](https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/internal/commands/source.go) | |
25+
| gcr.io/kpt-functions/read-yaml | | [Demo] Reads a directory of Kubernetes configuration recursively. | [Link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/demo-functions/src/read_yaml.ts) | [SDK](../../../producer/functions/ts) |
26+
| gcr.io/cloud-builders/kubectl | get [...] -o yaml | Get one or many resources from a Kubernetes cluster. | [Link](https://github.com/GoogleCloudPlatform/cloud-builders/blob/master/kubectl/Dockerfile) | |
27+
| gcr.io/kustomize-functions/create-application | | Add an Application CR to a group of resources. | [Link](https://github.com/kubernetes-sigs/kustomize/blob/master/functions/examples/application-cr/image/main.go) | [SDK](../../../producer/functions/golang) |
28+
| gcr.io/kpt-functions/kustomize-build | | Run kustomize to build configuration | [Link](https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/ts/src/kustomize_build.ts) | [SDK](../../../producer/functions/ts) |
2929

3030
## Sinks
3131

@@ -63,6 +63,7 @@ See [definition of sink functions][sink].
6363
| ------------------------------------------------------------ | ---- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------- |
6464
| gcr.io/kpt-functions/mutate-psp | | [Demo] Mutates PodSecurityPolicy objects by setting spec.allowPrivilegeEscalation to false. | [Link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/demo-functions/src/mutate_psp.ts) | [SDK](../../../producer/functions/ts) |
6565
| set_namespace.star | | Sets the namespace field of all configs passed in. | [Link](https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/starlark/set_namespace.star) | [SDK](../../../producer/functions/starlark) |
66+
| gcr.io/kpt-functions/set-namespace | | Sets the namespace field of all configs passed in. | [Link](https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/go/set-namespace/main.go) | [SDK](../../../producer/functions/golang) |
6667
| gcr.io/kubeflow-images-public/kustomize-fns/remove-namespace | | Removes the namespace field of cluster-scoped configs. | [Link](https://github.com/kubeflow/kfctl/blob/master/kustomize-fns/remove-namespace/main.go) | [SDK](../../../producer/functions/golang) |
6768
| gcr.io/kpt-functions/label-namespace | | [Demo] Adds a label to all Namespaces. | [Link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/hello-world/src/label_namespace.ts) | [SDK](../../../producer/functions/ts) |
6869
| gcr.io/kpt-functions/helm-template | | Render chart templates locally using helm template. (See [usage](docs/helm-template/usage/index.html)). | [Link](https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/ts/src/helm_template.ts) | [SDK](../../../producer/functions/ts) |

site/content/en/guides/consumer/function/catalog/catalog/catalog.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
"toolchain": "../../../producer/functions/golang"
3030
},
3131
{
32-
"image": "lyft/kustomizer:v3.3.0",
33-
"args": "kustomize build [...]",
34-
"source": "https://github.com/lyft/kustomizer/blob/master/Dockerfile",
32+
"image": "gcr.io/kpt-functions/kustomize-build",
33+
"source": "https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/ts/src/kustomize_build.ts",
3534
"description": "Run kustomize to build configuration",
36-
"type": "source"
35+
"type": "source",
36+
"toolchain": "../../../producer/functions/ts"
3737
},
3838
{
3939
"image": "gcr.io/kpt-dev/kpt",
@@ -117,6 +117,13 @@
117117
"type": "transformer",
118118
"toolchain": "../../../producer/functions/starlark"
119119
},
120+
{
121+
"image": "gcr.io/kpt-functions/set-namespace",
122+
"source": "https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/go/set-namespace/main.go",
123+
"description": "Sets the namespace field of all configs passed in.",
124+
"type": "transformer",
125+
"toolchain": "../../../producer/functions/golang"
126+
},
120127
{
121128
"image": "gcr.io/kubeflow-images-public/kustomize-fns/remove-namespace",
122129
"source": "https://github.com/kubeflow/kfctl/blob/master/kustomize-fns/remove-namespace/main.go",

0 commit comments

Comments
 (0)