Skip to content
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

Introduce envs field. #1041

Merged
merged 1 commit into from
May 7, 2019
Merged

Conversation

monopole
Copy link
Contributor

@monopole monopole commented May 6, 2019

In secret / configmap generation, kustomize 2.0.3 accepts lists of k=v literals, and lists of files where the file contents is the value, but only one instance of a so called env file (where the contents are k=v pairs, one per line). This singleton is an odd special case, and makes it hard to mix k=v pairs from multiple sources, e.g. from a devops team and a UX team (one must create then merge whole ConfigMaps to accomplish it).

This PR adds the field EnvSources (yaml: envs) to kustomization.yaml, accepting a list, and deprecates the singular form EnvSource (yaml: env). Users need do nothing, the old field is silently merged into the new. Anyone running kustomize fix or edit will get the new field format replacing the old.

This will be new behavior in kustomize 2.1

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: monopole

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 6, 2019
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 6, 2019
@monopole monopole requested review from sethpollack and removed request for justinsb and Liujingfang1 May 6, 2019 21:29
@monopole monopole requested a review from Liujingfang1 May 6, 2019 23:41
@Liujingfang1
Copy link
Contributor

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants