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

Refactor manifests to use yaml merger #17

Merged
merged 2 commits into from
Aug 10, 2021
Merged

Conversation

lukaszo
Copy link
Contributor

@lukaszo lukaszo commented Aug 5, 2021

Description

Changes proposed in this pull request:

  • Use helper container merger instead of rendering parameters in multiple steps

Testing

  1. Run actions for changed manifests and store rendered input files for helm and terraform.
  2. Populate DB with updated manifests
  3. Repeat step 1 and compare results. There may be differences like value vs "values"

Related issue(s)

capactio/capact#419

@lukaszo lukaszo force-pushed the merger branch 2 times, most recently from 1558845 to 67b4fe0 Compare August 6, 2021 12:17
@lukaszo lukaszo marked this pull request as ready for review August 6, 2021 15:40
@Trojan295 Trojan295 self-assigned this Aug 9, 2021
@@ -213,3 +213,21 @@ spec:
image: bitnami/kubectl:1.18
command: [sh, -c]
args: ["kubectl create -f {{inputs.artifacts.manifest.path}} --output=yaml > {{outputs.artifacts.manifest.path}}"]

- name: prepare-parameters
Copy link
Contributor

@Trojan295 Trojan295 Aug 9, 2021

Choose a reason for hiding this comment

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

I think this template should be used somewhere in the main workflow. I don't see any other changes to this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, when there are only 2 sources it's less code to fill it in two steps.

@lukaszo lukaszo merged commit f62cc84 into capactio:main Aug 10, 2021
Trojan295 added a commit to Trojan295/hub-manifests that referenced this pull request Aug 13, 2021
Co-authored-by: Mateusz Szostok <mateusz@structsure.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants