kube

package
v0.0.0-...-00b73d8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChiaExporterContainer

func GetChiaExporterContainer(ctx context.Context, image string, secContext *corev1.SecurityContext, pullPolicy corev1.PullPolicy, resReq corev1.ResourceRequirements) corev1.Container

GetChiaExporterContainer assembles a chia-exporter container spec

func GetCommonLabels

func GetCommonLabels(ctx context.Context, kind string, meta metav1.ObjectMeta, additionalLabels ...map[string]string) map[string]string

GetCommonLabels gives some common labels for chia-operator related objects

func ReconcileDeployment

func ReconcileDeployment(ctx context.Context, rec reconciler.ResourceReconciler, deploy appsv1.Deployment) (*reconcile.Result, error)

ReconcileDeployment uses the ResourceReconciler to determine if the deployment resource needs to be created or updated

func ReconcileJob

ReconcileJob uses the ResourceReconciler to determine if the job resource needs to be created or updated

func ReconcileRole

func ReconcileRole(ctx context.Context, rec reconciler.ResourceReconciler, role rbacv1.Role) (*reconcile.Result, error)

ReconcileRole uses the ResourceReconciler to determine if the role resource needs to be created or updated

func ReconcileRoleBinding

func ReconcileRoleBinding(ctx context.Context, rec reconciler.ResourceReconciler, rb rbacv1.RoleBinding) (*reconcile.Result, error)

ReconcileRoleBinding uses the ResourceReconciler to determine if the rolebinding resource needs to be created or updated

func ReconcileService

func ReconcileService(ctx context.Context, rec reconciler.ResourceReconciler, service corev1.Service) (*reconcile.Result, error)

ReconcileService uses the ResourceReconciler to determine if the service resource needs to be created or updated

func ReconcileServiceAccount

func ReconcileServiceAccount(ctx context.Context, rec reconciler.ResourceReconciler, sa corev1.ServiceAccount) (*reconcile.Result, error)

ReconcileServiceAccount uses the ResourceReconciler to determine if the serviceaccount resource needs to be created or updated

func ReconcileStatefulset

func ReconcileStatefulset(ctx context.Context, rec reconciler.ResourceReconciler, stateful appsv1.StatefulSet) (*reconcile.Result, error)

ReconcileStatefulset uses the ResourceReconciler to determine if the statefulset resource needs to be created or updated

Types

This section is empty.

Jump to

Keyboard shortcuts

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