Documentation ¶
Index ¶
- func GenerateNewClusterRoleBindingForControlPlane(namespace, controlplaneName, serviceAccountName, clusterRoleName string) *rbacv1.ClusterRoleBinding
- func GenerateNewClusterRoleForControlPlane(controlplaneName string, image *string) (*rbacv1.ClusterRole, error)
- func GenerateNewServiceAccountForControlPlane(namespace, controlplaneName string) *corev1.ServiceAccount
- func GenerateNewTLSSecret(namespace, namePrefix, ownerPrefix string) *corev1.Secret
- func GetPodContainerByName(podSpec *corev1.PodSpec, name string) *corev1.Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewClusterRoleBindingForControlPlane ¶
func GenerateNewClusterRoleBindingForControlPlane(namespace, controlplaneName, serviceAccountName, clusterRoleName string) *rbacv1.ClusterRoleBinding
GenerateNewClusterRoleBindingForControlPlane is a helper to generate a ClusterRoleBinding resource to bind roles to the service account used by the controlplane deployment.
func GenerateNewClusterRoleForControlPlane ¶
func GenerateNewClusterRoleForControlPlane(controlplaneName string, image *string) (*rbacv1.ClusterRole, error)
GenerateNewClusterRoleForControlPlane is a helper function that extract the version from the tag, and returns the ClusterRole with all the needed permissions.
func GenerateNewServiceAccountForControlPlane ¶
func GenerateNewServiceAccountForControlPlane(namespace, controlplaneName string) *corev1.ServiceAccount
GenerateNewServiceAccountForControlPlane is a helper to generate a ServiceAccount to be used by the controlplane deployment.
func GenerateNewTLSSecret ¶
GenerateNewTLSSecret is a helper to generate a TLS Secret to be used for mutual TLS.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.