builders

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCapp

func BuildCapp(capp cappv1alpha1.Capp) workv1.Manifest

BuildCapp prepares a Capp resource for inclusion in a manifest work by setting its TypeMeta and ObjectMeta.

func BuildConfigMap

func BuildConfigMap(cm corev1.ConfigMap) workv1.Manifest

BuildConfigMap generates a Manifest with a configMap

func BuildNamespace

func BuildNamespace(name string) workv1.Manifest

BuildNamespace generates a corev1.Namespace object with the specified name.

func BuildRole

func BuildRole(cappName string, namespace string) workv1.Manifest

BuildRole creates a workv1.Manifest with a Role for pod log access in a specific namespace.

func BuildRoleBinding

func BuildRoleBinding(cappName string, namespace string, subjects []rbacv1.Subject) workv1.Manifest

BuildRoleBinding constructs a workv1.Manifest containing a RoleBinding for given subjects, scoped to a specific capp name and namespace.

func BuildSecret

func BuildSecret(secret corev1.Secret) workv1.Manifest

BuildSecret generates manifest that contains a secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL