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

Adds service account name to each druid node optionally #164

Merged

Conversation

saithal-confluent
Copy link
Contributor

@saithal-confluent saithal-confluent commented May 28, 2024

Adds optional service account name to each druid pod via DruidNode spec

Description

Since Druid components talk to each other and each of them have different identity (different deployments / statefulsets ), we would need different service accounts for each Druid component.
However, this is kept optional because its not required by all and the same default service account inherited from the DruidSpec can be used by all.


This PR has:

  • been tested on a real K8S cluster to ensure creation of a brand new Druid cluster works.
  • been tested for backward compatibility on a real K*S cluster by applying the changes introduced here on an existing Druid cluster. If there are any backward incompatible changes then they have been noted in the PR description.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

Key changed/added files in this PR
  • MyFoo
  • OurBar
  • TheirBaz

@saithal-confluent saithal-confluent changed the title Adds service account to each druid node optionally Adds service account name to each druid node optionally May 28, 2024
@AdheipSingh
Copy link
Contributor

Please resolve conflicts. Also what version of kubebuilder are using ? i see large diff in crd files.

@saithal-confluent
Copy link
Contributor Author

Please resolve conflicts. Also what version of kubebuilder are using ? i see large diff in crd files.

Reverted to use controller-gen version v0.11.2 and now the diff is minimal.

@AdheipSingh AdheipSingh merged commit f7fa84e into datainfrahq:master Jun 9, 2024
@itamar-marom
Copy link
Collaborator

@saithal-confluent is Confluent using this flavor of the Druid operator?

TessaIO pushed a commit to TessaIO/druid-operator that referenced this pull request Jul 24, 2024
)

* Adds service account to each druid node optionally

* Use controller-gen v0.11.2
AdheipSingh added a commit that referenced this pull request Jul 28, 2024
* Ingestion Controller (#53)

* ingestion spec acc to v3

* task creation

* supprt native batch

* fix router url

* revert license change

* revert go mod change

* fix main

* fix: made some changes as per review comments

* fix: removed unused package from ingestion reconciler

* rebase 1

* add example

* add review

* update dockerfile

---------

Co-authored-by: avtarOPS <avtarsingh12015@gmail.com>

* Update Docs and Tutorials (#138)

* docs and tutorials

* Refactor/ordering (#123)

* (ordering): refactor code

* (ordering): refactor code

* (ordering): testing

* chore(branch): rebase branch with master

* fix(tests): validate nodes order by regex

* Bump controller-tools version (#140)

* Utilize the DruidIngestion controller in e2e tests (#146)

* adds needed volumes to eks deployment spec and improves getting started documentation by noting minio dependency (#149)

* Add support for annotations on Deployment/StatefulSet resources in DruidNodeSpec (#145)

* Add support for annotations on Deployment/StatefulSet resources

* Support setting ReplicationControllerAnnotations at the cluster-level

* rename replicationControllerAnnotations to workloadAnnotations

* suggestions from code review

* Add support for multi tier nodes with different PVC sizes (#106) (#152)

Co-authored-by: Farhad Farahi <farhad@adjoe.io>

* fix: put Druid crds in the appropriate folder specified by Helm (#162)

Signed-off-by: ahmed.g <ahmed.g@adjoe.io>
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>

* Adds service account name to each druid node optionally (#164)

* Adds service account to each druid node optionally

* Use controller-gen v0.11.2

---------

Signed-off-by: ahmed.g <ahmed.g@adjoe.io>
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
Co-authored-by: AdheipSingh <34169002+AdheipSingh@users.noreply.github.com>
Co-authored-by: avtarOPS <avtarsingh12015@gmail.com>
Co-authored-by: Itamar Marom <46691031+itamar-marom@users.noreply.github.com>
Co-authored-by: Jesper Larsson <4522613+MrLarssonJr@users.noreply.github.com>
Co-authored-by: Sam Wheating <samwheating@gmail.com>
Co-authored-by: Evan Jones <evan.a.jones3@gmail.com>
Co-authored-by: Farhad Farahi <farhad.farahi@gmail.com>
Co-authored-by: Farhad Farahi <farhad@adjoe.io>
Co-authored-by: Sadananda Aithal <111732128+saithal-confluent@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants