resources

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertManagerConfig

func AlertManagerConfig(name, url string, labels map[string]string) *v1alpha1.AlertmanagerConfig

func BoolPtr

func BoolPtr(val bool) *bool

func CopyDeploymentSetFields

func CopyDeploymentSetFields(from, to *appsv1.Deployment) bool

func CopyNamespace

func CopyNamespace(from, to *corev1.Namespace) bool

CopyNamespace copies the owned fields from one Namespace to another

func CopyNetworkPolicy

func CopyNetworkPolicy(from, to *networkv1.NetworkPolicy) bool

CopyNetworkPolicy copies the owned fields from one NetworkPolicy to another

func CopyRoleBinding

func CopyRoleBinding(from, to *rbacv1.RoleBinding) bool

CopyRoleBinding copies the owned fields from one Role Binding to another

func CopyServiceAccount

func CopyServiceAccount(from, to *corev1.ServiceAccount) bool

CopyServiceAccount copies the owned fields from one Service Account to another

func CopyServiceFields

func CopyServiceFields(from, to *corev1.Service) bool

CopyServiceFields copies the owned fields from one Service to another

func CopyStatefulSetFields

func CopyStatefulSetFields(from, to *appsv1.StatefulSet) bool

CopyStatefulSetFields copies the owned fields from one StatefulSet to another Returns true if the fields copied from don't match to.

func CopyStorageClass

func CopyStorageClass(from, to *storagev1.StorageClass) bool

CopyStorageClass copies the owned fields from one StorageClass to another

func Deployment

func Deployment(ctx context.Context, r client.Client, deployment *appsv1.Deployment, log logr.Logger) error

Deployment reconciles a k8s deployment object.

func Namespace

func Namespace(ctx context.Context, r client.Client, namespace *corev1.Namespace, log logr.Logger) error

Namespace reconciles a Namespace object.

func NetworkPolicy

func NetworkPolicy(ctx context.Context, r client.Client, networkPolicy *networkv1.NetworkPolicy, log logr.Logger) error

NetworkPolicy reconciles a NetworkPolicy object.

func RoleBinding

func RoleBinding(ctx context.Context, r client.Client, roleBinding *rbacv1.RoleBinding, log logr.Logger) error

RoleBinding reconciles a Role Binding object.

func Service

func Service(ctx context.Context, r client.Client, service *corev1.Service, log logr.Logger) error

Service reconciles a k8s service object.

func ServiceAccount

func ServiceAccount(ctx context.Context, r client.Client, serviceAccount *corev1.ServiceAccount, log logr.Logger) error

ServiceAccount reconciles a Service Account object.

func StorageClass

func StorageClass(ctx context.Context, r client.Client, storageClass *storagev1.StorageClass, log logr.Logger) error

StorageClass reconciles a StorageClass object.

func StringPtr

func StringPtr(val string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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