Documentation ¶
Index ¶
- func CurrentServiceAccount(ctx context.Context, cli client.Client, ns, name string) (*corev1.ServiceAccount, error)
- func DesiredServiceAccount(name string, Sesame *operatorv1alpha1.Sesame) *corev1.ServiceAccount
- func EnsureServiceAccount(ctx context.Context, cli client.Client, name string, ...) (*corev1.ServiceAccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentServiceAccount ¶
func CurrentServiceAccount(ctx context.Context, cli client.Client, ns, name string) (*corev1.ServiceAccount, error)
CurrentServiceAccount returns the current ServiceAccount for the provided ns/name.
func DesiredServiceAccount ¶
func DesiredServiceAccount(name string, Sesame *operatorv1alpha1.Sesame) *corev1.ServiceAccount
DesiredServiceAccount generates the desired ServiceAccount resource for the given sesame.
func EnsureServiceAccount ¶
func EnsureServiceAccount(ctx context.Context, cli client.Client, name string, Sesame *operatorv1alpha1.Sesame) (*corev1.ServiceAccount, error)
EnsureServiceAccount ensures a ServiceAccount resource exists with the provided name and sesame namespace/name for the owning sesame labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.