-
Notifications
You must be signed in to change notification settings - Fork 144
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
[helm] fix disabling cluster role and service account #6004
Merged
pkoutsovasilis
merged 3 commits into
elastic:main
from
pkoutsovasilis:helm/fix_clusterrole_serviceaccount
Nov 13, 2024
Merged
[helm] fix disabling cluster role and service account #6004
pkoutsovasilis
merged 3 commits into
elastic:main
from
pkoutsovasilis:helm/fix_clusterrole_serviceaccount
Nov 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkoutsovasilis
added
bug
Something isn't working
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
backport-8.x
Automated backport to the 8.x branch with mergify
backport-8.16
Automated backport with mergify
labels
Nov 12, 2024
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Quality Gate passedIssues Measures |
blakerouse
approved these changes
Nov 12, 2024
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.
Looks good.
swiatekm
approved these changes
Nov 13, 2024
mergify bot
pushed a commit
that referenced
this pull request
Nov 13, 2024
* fix: allow disabling cluster role creation without needing to specify an existing one * fix: fallback to default service account when creation is disabled and no existing one is specified * fix: update nginx custom integration to disable all k8s agent providers (cherry picked from commit a0111f1) # Conflicts: # deploy/helm/elastic-agent/examples/nginx-custom-integration/rendered/manifest.yaml
7 tasks
mergify bot
pushed a commit
that referenced
this pull request
Nov 13, 2024
* fix: allow disabling cluster role creation without needing to specify an existing one * fix: fallback to default service account when creation is disabled and no existing one is specified * fix: update nginx custom integration to disable all k8s agent providers (cherry picked from commit a0111f1) # Conflicts: # deploy/helm/elastic-agent/examples/nginx-custom-integration/rendered/manifest.yaml
7 tasks
pkoutsovasilis
added a commit
that referenced
this pull request
Nov 13, 2024
…account (#6008) * [helm] fix disabling cluster role and service account (#6004) * fix: allow disabling cluster role creation without needing to specify an existing one * fix: fallback to default service account when creation is disabled and no existing one is specified * fix: update nginx custom integration to disable all k8s agent providers (cherry picked from commit a0111f1) # Conflicts: # deploy/helm/elastic-agent/examples/nginx-custom-integration/rendered/manifest.yaml * fix: resolve conflicts --------- Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
pkoutsovasilis
added a commit
that referenced
this pull request
Nov 13, 2024
…ccount (#6009) * [helm] fix disabling cluster role and service account (#6004) * fix: allow disabling cluster role creation without needing to specify an existing one * fix: fallback to default service account when creation is disabled and no existing one is specified * fix: update nginx custom integration to disable all k8s agent providers (cherry picked from commit a0111f1) # Conflicts: # deploy/helm/elastic-agent/examples/nginx-custom-integration/rendered/manifest.yaml * fix: resolve conflicts --------- Co-authored-by: Panos Koutsovasilis <panos.koutsovasilis@elastic.co>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-8.x
Automated backport to the 8.x branch with mergify
backport-8.16
Automated backport with mergify
bug
Something isn't working
skip-changelog
Team:Elastic-Agent-Control-Plane
Label for the Agent Control Plane team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR resolves two key issues:
default
service account by disabling service account creation without specifying an existing one.Additionally, it updates the nginx custom integration example to demonstrate how to deploy an elastic agent with Kubernetes providers, leader election, cluster role, and service account creation all disabled.
Why is it important?
These changes are essential for improving the configuration flexibility of the deployment process. By allowing cluster role creation to be disabled without requiring the specification of an existing role name, users gain the ability to simplify permissions management. This is particularly useful in environments where pre-configured roles or restricted permissions are mandated.
Furthermore, the option to fall back to the default service account without creating a new one or specifying an existing account name enhances compatibility with Kubernetes setups that have stringent service account policies or rely on default configurations. This ensures smoother integration and reduces the complexity for users deploying the elastic agent in a wide variety of Kubernetes environments.
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
N/A
How to test this PR locally
Follow the updated nginx custom integration example
Related issues
N/A