Skip to content

Support disabling of cluster role creation#26

Merged
yoctozepto merged 1 commit intomainfrom
support-disabling-creation-of-cluster-roles
Feb 26, 2026
Merged

Support disabling of cluster role creation#26
yoctozepto merged 1 commit intomainfrom
support-disabling-creation-of-cluster-roles

Conversation

@alec-w
Copy link
Contributor

@alec-w alec-w commented Feb 25, 2026

Part of https://github.com/cofide/cofide/issues/179

Adds a new value to allow selectively disabling the creation of the cluster roles.

Primary use case is for TZaaS support (when running multiple managed SPIRE servers in a cluster they do not need these ClusterRoles), but this also allows using Connect as the datasource for the k8s psat plugin when attestation of the nodes in the cluster of the SPIRE server isn't required.

@gemini-code-assist
Copy link

Summary of Changes

Hello @alec-w, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the flexibility of the SPIRE server Helm chart by introducing a new configuration option to disable the automatic creation of Kubernetes ClusterRoles. This change is particularly beneficial for advanced deployment scenarios, such as managed SPIRE servers in TZaaS environments or when utilizing Connect as a datasource for the k8s PSAT plugin without requiring local node attestation, allowing for more tailored and permission-restricted deployments.

Highlights

  • New Helm Value: Introduced disableClusterRoles in the spire-server Helm chart, allowing users to prevent the creation of Kubernetes ClusterRoles required for node attestation.
  • Conditional ClusterRole Creation: Modified the roles.yaml template to conditionally create ClusterRoles based on the new disableClusterRoles value, alongside existing node attestor enablement checks.
  • Documentation Update: Updated the README.md to document the purpose and usage of the new disableClusterRoles parameter.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • charts/spire/charts/spire-server/README.md
    • Added documentation for the new disableClusterRoles parameter, explaining its purpose and default value.
  • charts/spire/charts/spire-server/templates/roles.yaml
    • Modified the if condition for ClusterRole creation to include a check for (not .Values.disableClusterRoles), ensuring roles are only created if explicitly enabled or not disabled.
  • charts/spire/charts/spire-server/values.yaml
    • Introduced the disableClusterRoles parameter with a default value of false, along with a descriptive comment.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a disableClusterRoles flag to allow disabling the creation of the ClusterRole and ClusterRoleBinding for node attestation. The implementation is sound and follows Helm best practices. My feedback includes minor suggestions to improve the documentation's precision in README.md and values.yaml to reflect that both resource types are affected by this new flag.

@yoctozepto yoctozepto merged commit d222c8b into main Feb 26, 2026
36 checks passed
@yoctozepto yoctozepto deleted the support-disabling-creation-of-cluster-roles branch February 26, 2026 12:18
@yoctozepto
Copy link
Member

@alec-w need ver bump to release tho

@yoctozepto
Copy link
Member

@alec-w need ver bump to release tho

Created #28 to track this nuisance.

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.

2 participants