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: added helm support #1060

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

Conversation

dmitsh
Copy link
Contributor

@dmitsh dmitsh commented May 3, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds support for deploying kwok controller via Helm chart.

Which issue(s) this PR fixes:

Fixes #1029

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Support deployment of kwok controller and stages with helm charts

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 3, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dmitsh
Once this PR has been reviewed and has the lgtm label, please assign yibozhuang for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 3, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @dmitsh. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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.

@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 3, 2024
Copy link

netlify bot commented May 3, 2024

Deploy Preview for k8s-kwok canceled.

Name Link
🔨 Latest commit 3bd9622
🔍 Latest deploy log https://app.netlify.com/sites/k8s-kwok/deploys/663503900e377b00086e526d

Copy link
Member

@wzshiming wzshiming left a comment

Choose a reason for hiding this comment

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

It feels like there is a lot of duplication with kustomize.
Maybe we should get a way to convert the existing kustomize to a helm chart.

There is one more issue that needs to be discussed
Where is the release of the chart?

  • Chart Repository
    • GitHub Pages of this repo?
    • ...
  • OCI registry
    • registry.k8s.io/kwok/ (It's theoretically possible, but I haven't seen it done in other projects, and I don't know if it's supported by that CI.)?
    • docker.io ?
    • ghcr.io ?
    • ...

Copy link
Member

Choose a reason for hiding this comment

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

ln -s ../../kustomize/crd/bases crds

I think it should link to the original dir

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the goal is to convert kustomize to helm, then the originals should be in the helm chart?

Copy link
Member

Choose a reason for hiding this comment

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

I think there should be separate charts for deployment and stages,
the deployments should be renamed charts or helm.

WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I have updated PR with these suggestions. PTAL.

@yuanchen8911
Copy link
Member

You should put the release note inside the release-note block in the PR description. Also, I'd suggest something like the following in the release note.

Support helm chart

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 3, 2024
@dmitsh dmitsh requested a review from wzshiming May 3, 2024 17:03
@wzshiming
Copy link
Member

wzshiming commented May 3, 2024

I found a project that converts yaml to charts.
https://github.com/arttor/helmify

IMAGE_PREFIX=registry.k8s.io/kwok GIT_TAG=v0.5.2 make manifests
cat artifacts/kwok.yaml | go run github.com/arttor/helmify/cmd/helmify@v0.4.12 -crd-dir ./charts/kwok
cat artifacts/stage-fast.yaml | sed -e 's#{{#{{`{{#g' -e 's#}}#}}`}}#g' | go run github.com/arttor/helmify/cmd/helmify@v0.4.12 -original-name ./charts/stage-fast

It feels good.

Next, It would be nice to add an ./hack/update-charts.sh and ./hack/verify-charts.sh to keep the two in sync.

@yuanchen8911
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot 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 May 3, 2024
@k8s-ci-robot
Copy link
Contributor

@dmitsh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kwok-verify-main 3bd9622 link true /test pull-kwok-verify-main

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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-sigs/prow repository. I understand the commands that are listed here.

@wzshiming
Copy link
Member

Hi @dmitsh , do you have time to work on this PR? If not I'll continue this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. 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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support helm charts in kwok
4 participants