-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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 codenew shortcode to configure-pod-configmap task file and saniti… #13078
Conversation
Deploy preview for kubernetes-io-master-staging ready! Built with commit 96bbc4d https://deploy-preview-13078--kubernetes-io-master-staging.netlify.com |
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.
@DanyC97 👋 Thanks for opening this PR! Some feedback:
- Thanks for taking on Issue with k8s.io/docs/tasks/configure-pod-container/configure-pod-configmap/ #13057.
🙇
- It looks like you accidentally introduced some spelling errors. ("ConfgMap")
Please double check to make sure that others haven't been introduced as well.
- Currently, Travis isn't passing this PR.
Hugo requires test cases for each new YAML file. You can add them to content/en/examples/examples_test.go, using existing test cases as a basis.
|
||
1. Use `envFrom` to define all of the ConfigMap's data as container environment variables. The key from the ConfigMap becomes the environment variable name in the Pod. | ||
Create the ConfgMap: |
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.
ConfgMap/ConfigMap
special.type: charm | ||
{{< codenew file="configmap/configmap-multikeys.yaml" >}} | ||
|
||
Create the ConfgMap: |
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.
ConfgMap/ConfigMap
key: log_level | ||
restartPolicy: Never | ||
``` | ||
Create the ConfgMap: |
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.
ConfgMap/ConfigMap
c55e605
to
0ed7ba1
Compare
…ze the example files
0ed7ba1
to
96bbc4d
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zacharysarah 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 |
…ze the example files (kubernetes#13078)
…ze the example files
This PR is part of the initiative started #12740
Fixes #13057
cc @Bradamant3 @zacharysarah
fyi i had to "refresh" the whole task file to bring it inline with the rest of the files hence the amount of changes