Skip to content

Rework generate-deployment.sh to be simpler #433

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

Merged
merged 1 commit into from
May 24, 2021

Conversation

amisevsk
Copy link
Collaborator

What does this PR do?

Rework how generate-deployment.sh works to be simpler:

  • Restrict envsubst to only replace predefined env vars
  • Use envsubst on kustomize-built yaml to avoid needing to copy templates to .bak files

This PR is a cherry-pick of 14fa459 from #405

What issues does this PR fix or reference?

N/A

Is it tested? How?

Running make generate_default_deployment does not change deploy/deployment

* Restrict envsubst to only replace predefined env vars
* Use envsubst on kustomize-built yaml to avoid needing to copy
templates to .bak files

Signed-off-by: Angel Misevski <[email protected]>
@amisevsk amisevsk requested a review from sleshchenko as a code owner May 21, 2021 20:27
@openshift-ci openshift-ci bot requested a review from JPinkney May 21, 2021 20:27
@amisevsk
Copy link
Collaborator Author

This PR also removes the frustration of .bak files being left over if generate_default_deployment.sh is cancelled.

@openshift-ci
Copy link

openshift-ci bot commented May 24, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk, sleshchenko

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:
  • OWNERS [amisevsk,sleshchenko]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sleshchenko sleshchenko merged commit 01917ce into devfile:main May 24, 2021
@amisevsk amisevsk deleted the rework-gen-deploy-script branch February 8, 2023 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants