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

Installer: make helm chart deployment skippable #12059

Merged

Conversation

marioreggiori
Copy link
Contributor

What this PR does / why we need it:
This PR allows helm chart deployments to be skipped by the installers deploy command via --skip-charts flag.

Which issue(s) this PR fixes:

Fixes #5859

What type of PR is this?
/kind feature

Does this PR introduce a user-facing change? Then add your Release Note here:

Added --skip-charts flag to `kubermatic-installer deploy` command to make helm chart deployment skippable.

Documentation:

Run `kubermatic-installer deploy --help`.

Signed-off-by: Mario Schäfer <mschaefer@anexia-it.com>
@kubermatic-bot kubermatic-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. docs/provided Denotes a PR that has a valid documentation reference. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. kind/feature Categorizes issue or PR as related to a new feature. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 15, 2023
@kubermatic-bot
Copy link
Contributor

Hi @marioreggiori. Thanks for your PR.

I'm waiting for a kubermatic member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@ahmedwaleedmalik
Copy link
Member

/ok-to-test
cc @xrstf

@kubermatic-bot kubermatic-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 15, 2023
@ahmedwaleedmalik
Copy link
Member

This looks good to me. Although personally, I would prefer to have it in the values file:

dex:
  disabled: true

But for that, we probably need an umbrella helm chart.

@marioreggiori
Copy link
Contributor Author

I would prefer to have it in the values file

Would the dex.disabled field be handled by the installer (in go), or only via helm?
... I think it could be a little confusing if the installer would output "Deploying dex…" even though it was disabled

@embik
Copy link
Member

embik commented Mar 15, 2023

I kind of like the solution proposed in this PR, thank you for it. A thought I had that I'd like to put up for discussion, should this flag also support --skip-charts='*' which would skip all charts?

@ahmedwaleedmalik
Copy link
Member

ahmedwaleedmalik commented Mar 15, 2023

The values should decide what to configure and how to configure them including enabling/disabling components. Having extra flags restricts it to the installer which is not so great. It'd be better if users can set this in a single values files instead of extra arguments for installer.

@ahmedwaleedmalik
Copy link
Member

ahmedwaleedmalik commented Mar 16, 2023

I'll just drag(sorry) the author of the issue, Senor @xrstf in the mix to weigh in so that we can just move ahead with this PR. Whatever he says, works for me :D

@marioreggiori
Copy link
Contributor Author

@ahmedwaleedmalik & @xrstf any updates?

Copy link
Contributor

@xrstf xrstf left a comment

Choose a reason for hiding this comment

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

/approve

sorry this took a while

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 28, 2023
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: a7139d42e7b216ca2c24faa68de2e63aa8d619f3

@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marioreggiori, xrstf

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:

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

@kubermatic-bot kubermatic-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 28, 2023
@embik
Copy link
Member

embik commented Mar 28, 2023

/retest

@kubermatic-triage-bot
Copy link

/retest
This bot automatically retries jobs that failed/flaked on approved PRs

Review the full test history

Silence the bot with an /lgtm cancel or /hold comment for consistent failures.

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. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. docs/provided Denotes a PR that has a valid documentation reference. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubermatic Installer: Allow to Skip Charts
7 participants