Documentation ¶
Index ¶
- Constants
- func CreateContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy) corev1.Container
- func CreateDeployment(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment
- func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, ...) *appsv1.Deployment
- func CreateOperatorDeploymentSpec(name, namespace, matchKey, matchValue, serviceAccount string, ...) *appsv1.DeploymentSpec
- func CreatePortsContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy, ...) corev1.Container
- func CreateRole(name string) *rbacv1.Role
- func CreateRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.RoleBinding
- func CreateService(name, matchKey, matchValue string) *corev1.Service
- func CreateServiceAccount(name string) *corev1.ServiceAccount
- func CreateServiceNamespaceAccount(name, namespace string) *corev1.ServiceAccount
- func ValidateGVKs(objects []runtime.Object)
- func WithCommonLabels(labels map[string]string) map[string]string
- func WithOperatorLabels(labels map[string]string) map[string]string
Constants ¶
View Source
const (
// SCCAnnotation is the annotation listing SCCs for a SA
SCCAnnotation = "cdi-scc"
)
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶
func CreateContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy) corev1.Container
CreateContainer creates container
func CreateDeployment ¶
func CreateDeployment(name, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment
CreateDeployment creates deployment
func CreateOperatorDeployment ¶
func CreateOperatorDeployment(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.Deployment
CreateOperatorDeployment creates deployment
func CreateOperatorDeploymentSpec ¶
func CreateOperatorDeploymentSpec(name, namespace, matchKey, matchValue, serviceAccount string, numReplicas int32) *appsv1.DeploymentSpec
CreateOperatorDeploymentSpec creates deployment
func CreatePortsContainer ¶
func CreatePortsContainer(name, image, verbosity string, pullPolicy corev1.PullPolicy, ports *[]corev1.ContainerPort) corev1.Container
CreatePortsContainer creates container
func CreateRoleBinding ¶
func CreateRoleBinding(name, roleRef, serviceAccount, serviceAccountNamespace string) *rbacv1.RoleBinding
CreateRoleBinding creates role binding
func CreateService ¶
CreateService creates service
func CreateServiceAccount ¶
func CreateServiceAccount(name string) *corev1.ServiceAccount
CreateServiceAccount creates service account
func CreateServiceNamespaceAccount ¶
func CreateServiceNamespaceAccount(name, namespace string) *corev1.ServiceAccount
CreateServiceNamespaceAccount creates service account
func ValidateGVKs ¶ added in v1.10.3
ValidateGVKs makes sure all resources have initialized GVKs
func WithCommonLabels ¶
WithCommonLabels aggregates common lables
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.