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

Feature/helm deploy #189

Closed
wants to merge 13 commits into from
Closed

Feature/helm deploy #189

wants to merge 13 commits into from

Conversation

gfulton-redhat
Copy link
Contributor

No description provided.

@gfulton-redhat gfulton-redhat added the enhancement New feature or request label Aug 10, 2021
@gfulton-redhat gfulton-redhat self-assigned this Aug 10, 2021
@codecov
Copy link

codecov bot commented Aug 10, 2021

Codecov Report

Merging #189 (450b58e) into main (cd927d7) will decrease coverage by 0.35%.
The diff coverage is 59.25%.

❗ Current head 450b58e differs from pull request most recent head 0e8d29c. Consider uploading reports for the commit 0e8d29c to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##              main     #189      +/-   ##
===========================================
- Coverage   100.00%   99.64%   -0.36%     
===========================================
  Files           76       77       +1     
  Lines         3109     3136      +27     
===========================================
+ Hits          3109     3125      +16     
- Misses           0       11      +11     
Flag Coverage Δ
pytests 99.64% <59.25%> (-0.36%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...oigos_step_runner/step_implementers/deploy/helm.py 59.25% <59.25%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd927d7...0e8d29c. Read the comment docs.

@gfulton-redhat gfulton-redhat linked an issue Aug 11, 2021 that may be closed by this pull request
with open(helm_output_file_path, 'w') as helm_output_file:
sh.helm( # pylint: disable=no-member
'secrets', 'upgrade', '--install',
self.get_value('helm-chart'),
Copy link
Contributor

Choose a reason for hiding this comment

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

@gfulton-redhat we should auto generate the helm chart name based on the org/app/service/enviornment names that are given. if you want you can allow someone to overwrite the auto generated name with a config value, but i dont see the use case at this time, but im sure someone will want to do it for some reason, but lets have a sensable default.

Choose a reason for hiding this comment

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

I'm not too familiar with Helm, what's a reasonable format for the chart name?
Also, do we have a convention for handling default values?

Copy link
Contributor

Choose a reason for hiding this comment

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

@GregJohnStewart Do you mean format in the sense of how it's spelled/capitalized/puncuated? Check out the best practices section of the upstream doc. Can you elaborate on the question about convention? Not sure I understand.

sh.helm( # pylint: disable=no-member
'secrets', 'upgrade', '--install',
self.get_value('helm-chart'),
self.get_value('helm-release'),
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we can't just take helm-release as a paramter because i dont beleive you can pass a git repo as a target helm chart can you?

'secrets', 'upgrade', '--install',
self.get_value('helm-chart'),
self.get_value('helm-release'),
*self.get_value('helm-flags'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Anywhere else this would need to be changed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure. You'll have to search the code. I'd assume there's at least one unit test where it matters.

@dwinchell
Copy link
Contributor

Closing as stale. Feel free to reopen this if you want to work on it.

@dwinchell dwinchell closed this Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deploy - add helm StepImplementer
4 participants