Documentation ¶
Index ¶
- Constants
- func CreateAllResources(args *FactoryArgs) ([]runtime.Object, error)
- func CreateClusterRole(name string) *rbacv1.ClusterRole
- func CreateClusterRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.ClusterRoleBinding
- func CreateOperatorClusterRole(name string) *rbacv1.ClusterRole
- func CreateOperatorClusterRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.ClusterRoleBinding
- func CreateResourceGroup(group string, args *FactoryArgs) ([]runtime.Object, error)
- func GetAPIServerClusterRolePermissions() []rbacv1.PolicyRule
- func GetControllerPermissions() []rbacv1.PolicyRule
- func GetUploadProxyRolePermissions() []rbacv1.PolicyRule
- func IsFactoryResource(codeGroup string) bool
- type FactoryArgs
Constants ¶
const ( //CdiRBAC - groupCode to generate only operator rbac manifest CdiRBAC = "cdi-rbac" //APIServerRBAC - groupCode to generate only apiserver rbac manifest APIServerRBAC = "apiserver-rbac" //UploadProxyRBAC - groupCode to generate only apiserver rbac manifest UploadProxyRBAC = "uploadproxy-rbac" //ControllerRBAC - groupCode to generate only controller rbac manifest ControllerRBAC = "controller-rbac" //CRDResources - groupCode to generate only resources' manifest CRDResources = "crd-resources" //AggregateRoles = groupCode to generate only aggregate roles AggregateRoles = "aggregate-roles" )
Variables ¶
This section is empty.
Functions ¶
func CreateAllResources ¶
func CreateAllResources(args *FactoryArgs) ([]runtime.Object, error)
CreateAllResources creates all cluster-wide resources
func CreateClusterRole ¶ added in v1.9.0
func CreateClusterRole(name string) *rbacv1.ClusterRole
CreateClusterRole create cluster role
func CreateClusterRoleBinding ¶ added in v1.9.0
func CreateClusterRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.ClusterRoleBinding
CreateClusterRoleBinding create cluster role binding
func CreateOperatorClusterRole ¶ added in v1.10.3
func CreateOperatorClusterRole(name string) *rbacv1.ClusterRole
CreateOperatorClusterRole create cluster role
func CreateOperatorClusterRoleBinding ¶ added in v1.10.3
func CreateOperatorClusterRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.ClusterRoleBinding
CreateOperatorClusterRoleBinding create cluster role binding for operator
func CreateResourceGroup ¶
func CreateResourceGroup(group string, args *FactoryArgs) ([]runtime.Object, error)
CreateResourceGroup creates all cluster resources fr a specific group/component
func GetAPIServerClusterRolePermissions ¶ added in v1.9.0
func GetAPIServerClusterRolePermissions() []rbacv1.PolicyRule
GetAPIServerClusterRolePermissions generates permissions for operator
func GetControllerPermissions ¶ added in v1.9.0
func GetControllerPermissions() []rbacv1.PolicyRule
GetControllerPermissions geberates rules for cdi controller
func GetUploadProxyRolePermissions ¶ added in v1.9.3
func GetUploadProxyRolePermissions() []rbacv1.PolicyRule
GetUploadProxyRolePermissions generates permissions for operator
func IsFactoryResource ¶ added in v1.9.0
IsFactoryResource returns true id codeGroupo belolngs to factory functions
Types ¶
type FactoryArgs ¶
type FactoryArgs struct {
Namespace string
}
FactoryArgs contains the required parameters to generate all cluster-scoped resources