Skip to content

Commit

Permalink
Docs: Update catalog with set-namespace go function
Browse files Browse the repository at this point in the history
  • Loading branch information
prachirp committed Jul 1, 2020
1 parent 34097e0 commit b8a7edc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
15 changes: 8 additions & 7 deletions site/content/en/guides/consumer/function/catalog/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ These functions can be implemented using any toolchain such as the [Typescript S

See [definition of source functions][source].

| Image | Args | Description | Source | Toolchain |
| --------------------------------------------- | --------------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| 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) | |
| 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) |
| 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) | |
| 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) |
| lyft/kustomizer:v3.3.0 | kustomize build [...] | Run kustomize to build configuration | [Link](https://github.com/lyft/kustomizer/blob/master/Dockerfile) | |
| Image | Args | Description | Source | Toolchain |
| --------------------------------------------- | ----------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| 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) | |
| 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) |
| 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) | |
| 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) |
| 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) |

## Sinks

Expand Down Expand Up @@ -63,6 +63,7 @@ See [definition of sink functions][sink].
| ------------------------------------------------------------ | ---- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------- |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"toolchain": "../../../producer/functions/golang"
},
{
"image": "lyft/kustomizer:v3.3.0",
"args": "kustomize build [...]",
"source": "https://github.com/lyft/kustomizer/blob/master/Dockerfile",
"image": "gcr.io/kpt-functions/kustomize-build",
"source": "https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/ts/src/kustomize_build.ts",
"description": "Run kustomize to build configuration",
"type": "source"
"type": "source",
"toolchain": "../../../producer/functions/ts"
},
{
"image": "gcr.io/kpt-dev/kpt",
Expand Down Expand Up @@ -117,6 +117,13 @@
"type": "transformer",
"toolchain": "../../../producer/functions/starlark"
},
{
"image": "gcr.io/kpt-functions/set-namespace",
"source": "https://github.com/GoogleContainerTools/kpt-functions-catalog/blob/master/functions/go/set-namespace/main.go",
"description": "Sets the namespace field of all configs passed in.",
"type": "transformer",
"toolchain": "../../../producer/functions/golang"
},
{
"image": "gcr.io/kubeflow-images-public/kustomize-fns/remove-namespace",
"source": "https://github.com/kubeflow/kfctl/blob/master/kustomize-fns/remove-namespace/main.go",
Expand Down

0 comments on commit b8a7edc

Please sign in to comment.