Skip to content

Conversation

@t3mi
Copy link

@t3mi t3mi commented Feb 23, 2024

  • adds option to aggregate cluster roles to user facing roles (disabled by default)
  • adds option to set revisionHistoryLimit
  • adds option to set priorityClassName

Signed-off-by: t3mi <t3mi@users.noreply.github.com>
@a8m a8m requested review from giautm and rotemtam February 23, 2024 16:02
@t3mi
Copy link
Author

t3mi commented Mar 19, 2024

@giautm @rotemtam any chance for review?

@giautm giautm requested review from Copilot and removed request for rotemtam December 23, 2025 05:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the Atlas Operator Helm chart by adding RBAC aggregation support and deployment configuration options. The changes introduce the ability to aggregate custom cluster roles to standard Kubernetes RBAC roles (view, edit, admin) and provide additional deployment customization options.

Key changes:

  • Added optional RBAC aggregation to integrate Atlas operator permissions with standard Kubernetes roles
  • Added revisionHistoryLimit and priorityClassName configuration options for the deployment

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
charts/atlas-operator/values.yaml Adds configuration flags for RBAC aggregation and new deployment settings
charts/atlas-operator/templates/rbac.yaml Introduces cluster roles that aggregate to Kubernetes standard roles when enabled
charts/atlas-operator/templates/deployment.yaml Applies the new revisionHistoryLimit and priorityClassName settings to the deployment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

{{- include "atlas-operator.labels" . | nindent 4 }}
rules:
- apiGroups: ["db.atlasgo.io"]
resources: ["atlasmigrations", "atlasschemas"]
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The view role should also include permission to view resource status. Consider adding 'atlasmigrations/status' and 'atlasschemas/status' as separate resource entries to allow users with view permissions to see the operational status of these resources.

Suggested change
resources: ["atlasmigrations", "atlasschemas"]
resources: ["atlasmigrations", "atlasschemas", "atlasmigrations/status", "atlasschemas/status"]

Copilot uses AI. Check for mistakes.
rules:
- apiGroups: ["db.atlasgo.io"]
resources: ["atlasmigrations", "atlasschemas"]
verbs: ["create", "delete", "patch", "update"]
Copy link

Copilot AI Dec 23, 2025

Choose a reason for hiding this comment

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

The edit role is missing 'get', 'list', and 'watch' verbs. Users with edit permissions typically need read access to the resources they're editing. This omission means edit role users would need to be granted the view role separately to see resources before modifying them.

Suggested change
verbs: ["create", "delete", "patch", "update"]
verbs: ["get", "list", "watch", "create", "delete", "patch", "update"]

Copilot uses AI. Check for mistakes.
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