Skip to content

Conversation

luismacosta
Copy link

@luismacosta luismacosta commented Mar 4, 2025

[etcd-operator] helm chart: based on folder config, here is an idea for the helm chart

validate chart:

➜  cd helm
➜  helm lint .  

==> Linting .

1 chart(s) linted, 0 chart(s) failed

➜  helm template . --name-template etcd-operator -n etcd-operator -f values.yaml > test.yaml --debug

install.go:224: 2025-03-04 17:11:08.163499 +0000 WET m=+0.021731792 [debug] Original chart version: ""
install.go:241: 2025-03-04 17:11:08.16369 +0000 WET m=+0.021923126 [debug] CHART PATH: /Users/luis.costa/projects/etcd-operator/helm

➜  ~ kubectl create ns etcd-operator
namespace/etcd-operator created

➜  ~ kubectl apply -f /Users/luis.costa/projects/etcd-operator/helm/test.yaml  -n etcd-operator
serviceaccount/controller-manager created
clusterrole.rbac.authorization.k8s.io/etcd-operator-editor-role created
clusterrole.rbac.authorization.k8s.io/etcd-operator-viewer-role created
clusterrole.rbac.authorization.k8s.io/etcd-operator-metrics-auth-role created
clusterrole.rbac.authorization.k8s.io/metrics-reader configured
clusterrole.rbac.authorization.k8s.io/etcd-operator-role created
clusterrolebinding.rbac.authorization.k8s.io/metrics-auth-rolebinding created
clusterrolebinding.rbac.authorization.k8s.io/etcd-operator-rolebinding created
role.rbac.authorization.k8s.io/etcd-operator-leader-election-role created
rolebinding.rbac.authorization.k8s.io/etcd-operator-leader-election-rolebinding created

@ahrtr @ivanvc @gdasson

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: luismacosta
Once this PR has been reviewed and has the lgtm label, please assign justinsb for approval. For more information see the 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
Copy link

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 /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-sigs/prow repository.

Copy link
Member

@ivanvc ivanvc left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request, @luismacosta. We discussed this PR in our community meeting today.

We're currently using Kustomize to generate the Kubernetes payloads. However, we would love to incorporate a Helm chart as it has a lot of traction in the community. Because of that, there's a lot of overlap and repetition with the YAML payloads we have in https://github.com/etcd-io/etcd-operator/tree/main/config. Would it be possible to re-use them? I'm not sure if it's possible to have a Helm chart co-existing with Kustomize without a tool like Helm X. Or, maybe we could use chartify to generate the Chart from the Kustomization files.

@luismacosta
Copy link
Author

luismacosta commented Mar 5, 2025

Thanks for the pull request, @luismacosta. We discussed this PR in our community meeting today.

We're currently using Kustomize to generate the Kubernetes payloads. However, we would love to incorporate a Helm chart as it has a lot of traction in the community. Because of that, there's a lot of overlap and repetition with the YAML payloads we have in https://github.com/etcd-io/etcd-operator/tree/main/config. Would it be possible to re-use them? I'm not sure if it's possible to have a Helm chart co-existing with Kustomize without a tool like Helm X. Or, maybe we could use chartify to generate the Chart from the Kustomization files.

Hello,

kustomize.yaml should not be present in the helm chart. We can remove the folder config and define a way to generate the helm templates as you've mentioned. An official docker image for etcd-operator and releases in this github repo for helm chart is something to take into consideration.

dependabot bot and others added 13 commits March 6, 2025 00:15
Bumps the k8s group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.1` | `0.32.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.1` | `0.32.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.1` | `0.32.2` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) | `0.20.1` | `0.20.2` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) | `0.32.0` | `0.32.1` |

Updates `k8s.io/api` from 0.32.1 to 0.32.2
- [Commits](kubernetes/api@v0.32.1...v0.32.2)

Updates `k8s.io/apimachinery` from 0.32.1 to 0.32.2
- [Commits](kubernetes/apimachinery@v0.32.1...v0.32.2)

Updates `k8s.io/client-go` from 0.32.1 to 0.32.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.32.1...v0.32.2)

Updates `sigs.k8s.io/controller-runtime` from 0.20.1 to 0.20.2
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.20.1...v0.20.2)

Updates `k8s.io/apiextensions-apiserver` from 0.32.0 to 0.32.1
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases)
- [Commits](kubernetes/apiextensions-apiserver@v0.32.0...v0.32.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: k8s.io/apiextensions-apiserver
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: k8s
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
…E tests

Signed-off-by: Abdur Rehman <razashahid107@gmail.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: Gaurav Dasson <gaurav.dasson@gmail.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Bumps [sigs.k8s.io/controller-tools](https://github.com/kubernetes-sigs/controller-tools) from 0.17.1 to 0.17.2.
- [Release notes](https://github.com/kubernetes-sigs/controller-tools/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-tools/blob/main/envtest-releases.yaml)
- [Commits](kubernetes-sigs/controller-tools@v0.17.1...v0.17.2)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/controller-tools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: Abdur Rehman <razashahid107@gmail.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: Ivan Valdes <ivan@vald.es>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
The make kustomize and controller-gen targets are prerequisites of the
targets later called in the e2e tests, so there's no need to manually
trigger them.

Signed-off-by: Ivan Valdes <ivan@vald.es>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Bumps the k8s group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [k8s.io/api](https://github.com/kubernetes/api) | `0.32.1` | `0.32.2` |
| [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.32.1` | `0.32.2` |
| [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.32.1` | `0.32.2` |
| [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) | `0.20.1` | `0.20.2` |
| [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) | `0.32.0` | `0.32.1` |

Updates `k8s.io/api` from 0.32.1 to 0.32.2
- [Commits](kubernetes/api@v0.32.1...v0.32.2)

Updates `k8s.io/apimachinery` from 0.32.1 to 0.32.2
- [Commits](kubernetes/apimachinery@v0.32.1...v0.32.2)

Updates `k8s.io/client-go` from 0.32.1 to 0.32.2
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.32.1...v0.32.2)

Updates `sigs.k8s.io/controller-runtime` from 0.20.1 to 0.20.2
- [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases)
- [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/controller-runtime@v0.20.1...v0.20.2)

Updates `k8s.io/apiextensions-apiserver` from 0.32.0 to 0.32.1
- [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases)
- [Commits](kubernetes/apiextensions-apiserver@v0.32.0...v0.32.1)

---
updated-dependencies:
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: sigs.k8s.io/controller-runtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: k8s
- dependency-name: k8s.io/apiextensions-apiserver
  dependency-type: indirect
  update-type: version-update:semver-patch
  dependency-group: k8s
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
…E tests

Signed-off-by: Abdur Rehman <razashahid107@gmail.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
Signed-off-by: Gaurav Dasson <gaurav.dasson@gmail.com>
Signed-off-by: luis.costa <luis.costa@talkdesk.com>
@luismacosta
Copy link
Author

luismacosta commented Mar 6, 2025

Hi, @luismacosta. Do you want to open a new pull request? Or, I suggest properly rebasing with the main branch. This PR has 50 commits that are unrelated changes in our main branch.

Thanks :)

Yes it was a problem with the rebase. The PR is now ok to be reviewed. 20 files, related to helm chart. I've addressed all changes that you've requested

@ivanvc
Copy link
Member

ivanvc commented Mar 6, 2025

Yes it was a problem with the rebase. The PR is now ok to be reviewed. 20 files, related to helm chart. I've addressed all changes that you've requested

Hi, @luismacosta. This pull request is becoming very noisy. You didn't correctly rebase your branch. You have 69 commits, many of them don't belong to your branch.

I also see that you are reviewing your own pull request and still making changes. I would like to suggest that if you are not ready to open the pull request, you close it, work on it in your local environment, and open it up when you are ready to have it reviewed. Thank you.

@luismacosta
Copy link
Author

luismacosta commented Mar 6, 2025

tests completed. new PR #95

@luismacosta luismacosta closed this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants