Skip to content
Merged
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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.11.0-dev
v0.11.1
4 changes: 4 additions & 0 deletions api/clusters/v1alpha1/accessrequest_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ type AccessRequestSpec struct {
// +optional
Permissions []PermissionsRequest `json:"permissions,omitempty"`

// RoleRefs are references to existing (Cluster)Roles that should be bound to the created serviceaccount or OIDC user.
// +optional
RoleRefs []commonapi.RoleRef `json:"roleRefs,omitempty"`

// OIDCProvider is a configuration for an OIDC provider that should be used for authentication and associated role bindings.
// If set, the handling ClusterProvider will create an OIDC-based access for the AccessRequest, if supported.
// Otherwise, a serviceaccount with a token will be created and bound to the requested permissions.
Expand Down
5 changes: 5 additions & 0 deletions api/clusters/v1alpha1/zz_generated.deepcopy.go

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

30 changes: 30 additions & 0 deletions api/crds/manifests/clusters.openmcp.cloud_accessrequests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,36 @@ spec:
x-kubernetes-validations:
- message: requestRef is immutable
rule: self == oldSelf
roleRefs:
description: RoleRefs are references to existing (Cluster)Roles that
should be bound to the created serviceaccount or OIDC user.
items:
description: RoleRef defines a reference to a (cluster) role that
should be bound to the subjects.
properties:
kind:
description: |-
Kind is the kind of the role to bind to the subjects.
It must be 'Role' or 'ClusterRole'.
enum:
- Role
- ClusterRole
type: string
name:
description: Name is the name of the role or cluster role to
bind to the subjects.
minLength: 1
type: string
namespace:
description: |-
Namespace is the namespace of the role to bind to the subjects.
It must be set if the kind is 'Role' and may not be set if the kind is 'ClusterRole'.
type: string
required:
- kind
- name
type: object
type: array
type: object
x-kubernetes-validations:
- message: clusterRef may not be removed once set
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/onsi/ginkgo/v2 v2.25.1
github.com/onsi/gomega v1.38.1
github.com/openmcp-project/controller-utils v0.18.0
github.com/openmcp-project/openmcp-operator/api v0.11.0
github.com/openmcp-project/openmcp-operator/api v0.11.1
github.com/spf13/cobra v1.9.1
k8s.io/api v0.33.4
k8s.io/apimachinery v0.33.4
Expand Down
2 changes: 1 addition & 1 deletion lib/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/onsi/ginkgo/v2 v2.25.1
github.com/onsi/gomega v1.38.1
github.com/openmcp-project/controller-utils v0.18.0
github.com/openmcp-project/openmcp-operator/api v0.11.0
github.com/openmcp-project/openmcp-operator/api v0.11.1
k8s.io/api v0.33.4
k8s.io/apimachinery v0.33.4
k8s.io/client-go v0.33.4
Expand Down