-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Generator Tasks to Documentation #5368
Add Generator Tasks to Documentation #5368
Conversation
This PR has multiple commits, and the default merge method is: merge. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @ncapps. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @annasong20, I think adding the Examples to the Tasks section similar to the Kubernetes.io website makes a lot of sense. For the Kustomize Reference section, did we want to define a specification similar to the Kubernetes API section? Should I try to replicate something like the Pod specification for the configMapGenerator and secretGenerator? |
Yup, that's what I envisioned! Because this is technically out of the scope of #5286, I just created #5379 to track adding specifications to the Reference section. You can assign yourself if you plan to work on it. Also, you can make this change in a separate PR if you'd like, too. Your call. Tagging @bugoverdose to ensure we're all on the same page, as he previously worked on the Reference section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ncapps Looks awesome!! Thank you so much for your continual work here! I have 1 small optional nit, so I'll approve and let you un-hold when you're ready.
/approve
/lgtm
/hold for Nick's discretion
name: config-volume | ||
``` | ||
|
||
[`configMapGenerator`]: /docs/reference/api/kustomization-file/configmapgenerator/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
name: my-application-properties-f7mm6mhf59 | ||
``` | ||
|
||
It is also possible to [define a key](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-the-key-to-use-when-creating-a-configmap-from-a-file) to set a name different than the filename. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
SAMPLER_PARAMETERS: "0.1" | ||
``` | ||
|
||
## Create ConfigMap with options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful!
2. Create a `credentials.txt` file. | ||
```yaml | ||
# credentials.txt | ||
username=admin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: annasong20, ncapps The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
/lgtm |
* Update tasks index description * Create generators folder * Update tasks/generators titles * Add rollouts placeholder * Add generate configmap from file example * Add literals and env file example * Add propogation example * Consistent punctuation * Update grammar * Clean up configmaps page * Remove examples from configMapGenerator ref page * Move secret examples to Tasks * Clean up spacing * Consolidate cm and secret * Consistent grammar * Cleanup * Address feedback * Bump date * Fix propagate spelling * Remove roll out updates section * Separate configmap and secret generator tasks * Add secret from file example * Add secret from literals example * Update tls secret example * Update task page weights * Link cm generator reference * Add link to secret reference * Remove secretGenerator example from reference section * Add configmap options task, clean up reference * Add file with key example * Secrets are base64 encoded
Add Generator Tasks per feedback from #5346
Related issue: #5286