mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-06 01:16:44 +00:00
19 lines
579 B
Go
19 lines
579 B
Go
// Copyright 2020-2025 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package api
|
|
|
|
import rbacv1 "k8s.io/api/rbac/v1"
|
|
|
|
// +kubebuilder:object:generate=true
|
|
|
|
type AdditionalRoleBindingsSpec struct {
|
|
ClusterRoleName string `json:"clusterRoleName"`
|
|
// kubebuilder:validation:Minimum=1
|
|
Subjects []rbacv1.Subject `json:"subjects"`
|
|
// Additional Labels for the synchronized rolebindings
|
|
Labels map[string]string `json:"labels,omitempty"`
|
|
// Additional Annotations for the synchronized rolebindings
|
|
Annotations map[string]string `json:"annotations,omitempty"`
|
|
}
|