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 CreateResourceGroup(group string, args *FactoryArgs) ([]runtime.Object, error)
- func GetAPIServerClusterRolePermissions() []rbacv1.PolicyRule
- func GetControllerPermissions() []rbacv1.PolicyRule
- func IsFactoryResource(codeGroup string) bool
- type FactoryArgs
Constants ¶
View Source
const ( //CdiRBAC - groupCode to generate only operator rbac manifest CdiRBAC string = "cdi-rbac" //APIServerRBAC - groupCode to generate only apiserver rbac manifest APIServerRBAC string = "apiserver-rbac" //ControllerRBAC - groupCode to generate only controller rbac manifest ControllerRBAC string = "controller-rbac" //CRDResources - groupCode to generate only resources' manifest CRDResources string = "crd-resources" )
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 bunding
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 IsFactoryResource ¶ added in v1.9.0
IsFactoryResource returns true id codeGroupo belolngs to factory functions
Types ¶
type FactoryArgs ¶
type FactoryArgs struct { DockerRepo string `required:"true" split_words:"true"` DockerTag string `required:"true" split_words:"true"` DeployClusterResources string `required:"true" split_words:"true"` ControllerImage string `required:"true" split_words:"true"` ImporterImage string `required:"true" split_words:"true"` ClonerImage string `required:"true" split_words:"true"` APIServerImage string `required:"true" envconfig:"apiserver_image"` UploadProxyImage string `required:"true" split_words:"true"` UploadServerImage string `required:"true" split_words:"true"` Verbosity string `required:"true"` PullPolicy string `required:"true" split_words:"true"` Namespace string }
FactoryArgs contains the required parameters to generate all cluster-scoped resources
Click to show internal directories.
Click to hide internal directories.