Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions crds/operators.coreos.com_clusterserviceversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,24 @@ spec:
Description of the operator. Can include the features, limitations or use-cases of the
operator.
type: string
disableRoleAggregation:
description: |-
disableRoleAggregation disables OLM's automatic aggregation of permissions
for APIs provided by this CSV into the cluster-wide and OperatorGroup-specific
admin, edit, and view ClusterRoles. Defaults to false.

When false or omitted, OLM includes role aggregation labels on the
ClusterRoles it creates for provided APIs. Subjects receive these
permissions through RoleBindings or ClusterRoleBindings to the
corresponding admin, edit, or view ClusterRoles. The scope of access
depends on the bindings used.

When true, OLM continues to create and maintain the ClusterRoles for
provided APIs, but omits their role aggregation labels. Enabling this
field may cause users who rely on aggregated permissions to lose access
to those APIs unless equivalent permissions are granted through separate
RoleBindings or ClusterRoleBindings.
type: boolean
displayName:
description: The name of the operator in display format.
type: string
Expand Down
2 changes: 1 addition & 1 deletion crds/zz_defs.go

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion pkg/operators/v1alpha1/clusterserviceversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,26 @@ type ClusterServiceVersionSpec struct {
// (dot-separated identifiers containing only alphanumerics and hyphens) and are limited
// to a maximum length of 20 characters.
// +optional
Release release.OperatorRelease `json:"release,omitzero"`
Release release.OperatorRelease `json:"release,omitzero"`

// disableRoleAggregation disables OLM's automatic aggregation of permissions
// for APIs provided by this CSV into the cluster-wide and OperatorGroup-specific
// admin, edit, and view ClusterRoles. Defaults to false.
//
// When false or omitted, OLM includes role aggregation labels on the
// ClusterRoles it creates for provided APIs. Subjects receive these
// permissions through RoleBindings or ClusterRoleBindings to the
// corresponding admin, edit, or view ClusterRoles. The scope of access
// depends on the bindings used.
//
// When true, OLM continues to create and maintain the ClusterRoles for
// provided APIs, but omits their role aggregation labels. Enabling this
// field may cause users who rely on aggregated permissions to lose access
// to those APIs unless equivalent permissions are granted through separate
// RoleBindings or ClusterRoleBindings.
// +optional

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh, we also need to make this field immutable so that users are not able to modify it away from operator author intent.

DisableRoleAggregation bool `json:"disableRoleAggregation,omitzero"`

Maturity string `json:"maturity,omitempty"`
CustomResourceDefinitions CustomResourceDefinitions `json:"customresourcedefinitions,omitempty"`
APIServiceDefinitions APIServiceDefinitions `json:"apiservicedefinitions,omitempty"`
Expand Down
Loading