Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPSP ¶
func BuildPSP(cr CRDObject) *v1beta1.PodSecurityPolicy
func CreateOrUpdateServiceAccountWithPSP ¶
func CreateOrUpdateServiceAccountWithPSP(ctx context.Context, cr CRDObject, rclient client.Client) error
CreateOrUpdateServiceAccountWithPSP - creates psp for api object. ensure that ServiceAccount exists, PodSecurityPolicy exists, we only update it, if its our PSP. ClusterRole exists, ClusterRoleBinding exists.
Types ¶
Click to show internal directories.
Click to hide internal directories.