Skip to content

Commit

Permalink
Add secretGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
ncapps committed Nov 17, 2023
1 parent a66bf19 commit b5ab6a8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: >
See the [Tasks section] for examples of how to use `configMapGenerator`.

### configMapGenerator
ConfigMapGenerator generates ConfigMap objects.
ConfigMapGenerator generates [ConfigMap] objects.

---

Expand All @@ -31,3 +31,4 @@ ConfigMapArgs is metadata used to generate a ConfigMap.


[Tasks section]: /docs/tasks/configmap_generator/
[ConfigMap]: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/config-map-v1/
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,35 @@ linkTitle: "secretGenerator"
type: docs
weight: 21
description: >
Generate Secret resources.
Generate Secret objects.
---

Each entry in the argument list results in the creation of one Secret resource (it's a generator of N secrets).
`apiVersion: kustomize.config.k8s.io/v1beta1`

This works like the [configMapGenerator](/docs/reference/api/kustomization-file/configmapgenerator).
See the [Tasks section] for examples of how to use `secretGenerator`.

### secretGenerator
SecretGenerator generates [Secret] objects.

---

* **secretGenerator** ([][ConfigMapArgs](#configmapargs))

List of metadata to generate Secrets.


### SecretArgs
ConfigMapArgs is metadata used to generate a ConfigMap.

---

* **GeneratorArgs** ([GeneratorArgs](/docs/reference/api/common-definitions/generatorargs/))

GeneratorArgs contains arguments common to generators.

* **type** (string), optional

Type of the secret. Must be `Opaque` or `kubernetes.io/tls`. Defaults to `Opaque`.

[Tasks section]: /docs/tasks/secret_generator/
[Secret]: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/secret-v1/

0 comments on commit b5ab6a8

Please sign in to comment.