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

Fix use case of bosh-deploy-with-created-release task #139

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

svkrieger
Copy link

What is this change about?

The bosh-deploy-with-created-release task did not seem to work with a release tarball. The bash script was looking for a final.yml in the config folder, which is both not present when providing the release as a tarball.

I added two input parameters to the task: RELEASE_NAME_OF_TARBALL, which is the name of the release, which has been provided as a tarball and RELEASE_VERSION_OF_TARBALL, which is the version of that release. Both is needed to construct the ops file, to add the release to the deployment.yml.

The shared function bosh_interpolate needed some changes as well, to support the new version parameter.

Please provide contextual information.

I found #96, which also mentions about this problem, which seems to have never been fully resolved.

Please check all that apply for this PR:

  • introduces a new task
  • changes an existing task
  • changes the Dockerfile
  • introduces a breaking change (other users will need to make manual changes when this is released)

Did you update the README as appropriate for this change?

  • YES
  • N/A

How should this change be described in release notes?

Fixed use case of bosh-deploy-with-created-release task, where a release has been provided as a tarball.

What is the level of urgency for publishing this change?

  • Urgent - unblocks current or future work
  • Slightly Less than Urgent

Task was not able to deploy a release, which was provided as a tarball. The task was looking for a final.yml,
which is not present, when providing a tarball.
Added a parameter to the task, to let the user provide a release-name for the tarball.
The task bosh-deploy-with-created-release failed in the shared function `bosh interpolate`.
Reason is that the generated ops-file does not use `?` to allow for non-existent release in cf-deployment.yml
Bosh expects the version field to be set, even when deploying from a local path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending Review
Development

Successfully merging this pull request may close these issues.

1 participant