Skip to content

fix: load kustomize_substitutions before envsubst#839

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
devigned:fix-tilt
Jul 28, 2020
Merged

fix: load kustomize_substitutions before envsubst#839
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
devigned:fix-tilt

Conversation

@devigned
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

With #829 the kustomize_substitutions in the tilt settings file were not being loaded into the env or replaced in the yaml before running envsubst. This PR fixes this problem by loading them into the env prior to executing envsubst via kustomizesub.

/cc @CecileRobertMichon and @jsturtevant

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the release-note-none Denotes a PR that doesn't merit a release note. label Jul 28, 2020
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@devigned: GitHub didn't allow me to request PR reviews from the following users: and, jsturtevant.

Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

What this PR does / why we need it:

With #829 the kustomize_substitutions in the tilt settings file were not being loaded into the env or replaced in the yaml before running envsubst. This PR fixes this problem by loading them into the env prior to executing envsubst via kustomizesub.

/cc @CecileRobertMichon and @jsturtevant

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

NONE

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/provider/azure Issues or PRs related to azure provider sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 28, 2020
@devigned devigned changed the title fix: load k8s substitutions before envsubst fix: load kustomize_substitutions before envsubst Jul 28, 2020
Copy link
Copy Markdown
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that fixes the issue I was running into, thanks @devigned!
/approve

/assign @jsturtevant
James, can you please confirm it still work with his setup as well?

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@CecileRobertMichon: GitHub didn't allow me to assign the following users: jsturtevant.

Note that only kubernetes-sigs members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

Details

In response to this:

that fixes the issue I was running into, thanks @devigned!
/approve

/assign @jsturtevant
James, can you please confirm it still work with his setup as well?

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.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Jul 28, 2020
@jsturtevant
Copy link
Copy Markdown
Contributor

I confirmed it works in my set up.

/lgtm

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@jsturtevant: changing LGTM is restricted to collaborators

Details

In response to this:

I confirmed it works in my set up.

/lgtm

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.

@CecileRobertMichon
Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 28, 2020
@k8s-ci-robot k8s-ci-robot merged commit e732c32 into kubernetes-sigs:master Jul 28, 2020
@k8s-ci-robot k8s-ci-robot added this to the v0.4.7 milestone Jul 28, 2020
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. area/provider/azure Issues or PRs related to azure provider 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. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants