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: support helm chart #668
Conversation
Welcome @jrkeen! It looks like this is your first PR to karmada-io/karmada 🎉 |
174cf09
to
dcb49f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!! I'll review and test it ASAP!
Also, cc @lfbear @mrlihanbo who might interest in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The karmada installation using helm should support two scenarios: with karmada-apiserver and without.And also should take cert-manager for CA injection into consideration.
apiVersion: admissionregistration.k8s.io/v1 | ||
kind: MutatingWebhookConfiguration | ||
metadata: | ||
name: mutating-config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we provide a option if user uses cert-manager for CA injection ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More options will be provided in the future.
artifacts/chart/templates/etcd.yaml
Outdated
@@ -0,0 +1,127 @@ | |||
{{- if and (eq .Values.etcd.mode "internal") (eq .Values.installMode "host")}} | |||
apiVersion: apps/v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if users are not using karmada-apiserver,then etcd should be optional.
@jrkeen [edit]:
Did I miss something? |
First of all, edit values as your needs.
Then, execute the installation command.
Tip: Manually generate certificates.
|
@jrkeen What's the progress now? |
Yes, try it. #668 (comment) |
Does this chart support a
|
or
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM. Only some nits.
In addition:
- Please sync the
crd
from master again, since we just updated a little bit. - Please tidy your commits.
Thanks~~
charts/README.md
Outdated
$ helm install karmada -n karmada-system --create-namespace . | ||
``` | ||
|
||
If the certificate is `automatically generated`, need to get kubeconfig from the cluster: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean If
? I don't see any description of customizing the certificate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
charts/README.md
Outdated
To install the chart with the release name `karmada` in namespace `karmada-system`: | ||
|
||
```console | ||
$ helm install karmada -n karmada-system --create-namespace . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ helm install karmada -n karmada-system --create-namespace . | |
$ helm install karmada -n karmada-system --create-namespace ./charts |
Does this make sense?
Signed-off-by: jrkeen <jrkeen@hotmail.com>
e082a6c
to
f679846
Compare
All done @RainbowMango |
LGTM. @mrlihanbo @lfbear Would you like to take a look? |
I am not good at the helm, I just wonder how to keep in sync the files in |
Good question. I'll be done by following PR. |
/lgtm |
Many thanks to @algebra2k @jrkeen and all of the guys who are reviewing this PR. The |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: RainbowMango 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Support deploy by helm. #652
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: