-
Notifications
You must be signed in to change notification settings - Fork 39
[etcd-operator] helm chart #95
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: luismacosta 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 |
Hi @luismacosta. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
Signed-off-by: luis.costa <[email protected]>
4637dde
to
315971f
Compare
Signed-off-by: luis.costa <[email protected]>
Signed-off-by: luis.costa <[email protected]>
Signed-off-by: luis.costa <[email protected]>
Signed-off-by: luis.costa <[email protected]>
Signed-off-by: luis.costa <[email protected]>
@ivanvc I've created a docker image locally and deployed ectc-operator in eks 1.31 using the helm chart + an EtcdCluster CR. You may find the results above. |
Signed-off-by: luis.costa <[email protected]>
Thanks for the pull request, @luismacosta. I summarized what we need to do to provide a Helm chart in #94. |
Signed-off-by: luis.costa <[email protected]>
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.
LGTM overall as an initial chart.
The question I have is with regards to keep it in sync. For example, under the CRD directory, assuming we run make manifests
... how can we also "automagically" update these charts? Did you consider using the helm plugin available to kubebuilder?
Thanks for working on this. High level I agree that it makes sense to deploy etcd-operator using helm chart. But we need to have a whole plan to migrate the Kustomize to helm as #94 points out. We need contributors' help to drive this. |
I can help lead this project (I have Helm experience). But I'm not sure if I'll have the bandwidth to do it before etcd v3.6.0 and operator v0.1.0. More likely after KubeCon. |
I'm looking forward to this PR, just wanted to mention that https://github.com/etcd-io/etcd-operator/pull/95/files#diff-b0ab31d17a21c9e80d5a8cceece36ed4ca2f04a62d11303f1350bfa3a93e1daeR24 should be configurable, not every monitoring namespace is going to have that label (ours doesn't) And https://github.com/etcd-io/etcd-operator/pull/95/files#diff-e564dad3bb1f6b099d8c25ef58f00b705a6c59ad4f9f213f9611c3aac5e5d130 doesn't have the new labels And various resources (at least the ClusterRole patchdiff --git a/helm/templates/prometheus/monitor.yaml b/helm/templates/prometheus/monitor.yaml
index 277e4d8..86ef340 100644
--- a/helm/templates/prometheus/monitor.yaml
+++ b/helm/templates/prometheus/monitor.yaml
@@ -6,9 +6,7 @@ metadata:
name: {{ include "etcd-operator.name" . }}-controller-manager-metrics-monitor
namespace: {{ .Release.Namespace }}
labels:
- control-plane: controller-manager
- app.kubernetes.io/name: etcd-operator
- app.kubernetes.io/managed-by: kustomize
+ {{- include "etcd-operator.labels" . | nindent 4 }}
spec:
endpoints:
diff --git a/helm/templates/rbac/manager-clusterrole.yaml b/helm/templates/rbac/manager-clusterrole.yaml
index fda603e..b32c0b3 100644
--- a/helm/templates/rbac/manager-clusterrole.yaml
+++ b/helm/templates/rbac/manager-clusterrole.yaml
@@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
- name: manager-role
+ name: {{ include "etcd-operator.name" . }}-manager-role
rules:
- apiGroups: [""]
resources: ["services", "configmaps", "events"]
diff --git a/helm/templates/rbac/role_binding.yaml b/helm/templates/rbac/role_binding.yaml
index bc24d88..48d850a 100644
--- a/helm/templates/rbac/role_binding.yaml
+++ b/helm/templates/rbac/role_binding.yaml
@@ -7,7 +7,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
- name: manager-role
+ name: {{ include "etcd-operator.name" . }}-manager-role
subjects:
- kind: ServiceAccount
name: {{ include "etcd-operator.serviceAccountName" . }} |
[etcd-operator] helm chart: based on folder config, here is an idea for the helm chart
tested in eks 1.31