kubernetes

package
v0.0.0-...-89d2f1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureHPA

EnsureHPA ensures the hpa object with expected data.

func NeedUpdateSts

func NeedUpdateSts(oldSts, newSts *appsv1.StatefulSet) ([]byte, bool, error)

NeedUpdateSts returns whether we need to update the statefulSet.

func PatchConfigMap

func PatchConfigMap(kubeClient kubernetes.Interface,
	oldCM, newCM *corev1.ConfigMap) error

PatchConfigMap patches the old configMap to new configMap.

func PatchDeployment

func PatchDeployment(kubeClient kubernetes.Interface,
	oldDeploy, newDeploy *appsv1.Deployment) error

PatchDeployment patches the old deployment to new deployment.

func PatchHPA

func PatchHPA(kubeClient kubernetes.Interface,
	oldHPA, newHPA *autoscalingv2.HorizontalPodAutoscaler) error

PatchHPA patches the old hpa to new hpa.

func PatchService

func PatchService(kubeClient kubernetes.Interface,
	oldSVC, newSVC *corev1.Service) error

PatchService patches the old service to new service.

func PatchServiceAccount

func PatchServiceAccount(kubeClient kubernetes.Interface,
	oldSA, newSA *corev1.ServiceAccount) error

PatchServiceAccount patches the old serviceAccount to new serviceAccount.

func PatchStatefulSet

func PatchStatefulSet(kubeClient kubernetes.Interface,
	oldSts, newSts *appsv1.StatefulSet) (*appsv1.StatefulSet, error)

PatchStatefulSet patches the old statefulSet to new statefulSet.

func RemoveHPA

RemoveHPA removes the hpa object.

func SyncConfigMap

func SyncConfigMap(kubeClient kubernetes.Interface, cm *corev1.ConfigMap) error

SyncConfigMap synchronizes configMap object.

func SyncDeployment

func SyncDeployment(kubeClient kubernetes.Interface, deploy *appsv1.Deployment) error

SyncDeployment synchronizes deployment object.

func SyncDeployments

func SyncDeployments(kubeClient kubernetes.Interface, deployments []*appsv1.Deployment) error

SyncDeployments synchronizes deployment objects.

func SyncHPA

func SyncHPA(kubeClient kubernetes.Interface, hpa *autoscalingv2.HorizontalPodAutoscaler, enable bool) error

SyncHPA synchronizes a hpa object.

func SyncService

func SyncService(kubeClient kubernetes.Interface, svc *corev1.Service) error

SyncService synchronizes service object.

func SyncServiceAccount

func SyncServiceAccount(kubeClient kubernetes.Interface, sa *corev1.ServiceAccount) error

SyncServiceAccount synchronizes serviceAccount object.

func SyncServices

func SyncServices(kubeClient kubernetes.Interface, services []*corev1.Service) error

SyncServices synchronizes service objects.

func SyncStatefulSet

func SyncStatefulSet(kubeClient kubernetes.Interface, sts *appsv1.StatefulSet,
	overwrite bool) (oldSts, newSts *appsv1.StatefulSet, err error)

SyncStatefulSet synchronizes statefulSet object and returns original and patched object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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