kubernetes

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterRoleBindingFromYaml

func CreateClusterRoleBindingFromYaml(client client.Client, crbTmpl string, ownerRefs []metav1.OwnerReference) error

CreateClusterRoleBindingFromYaml creates the ClusterRoleBinding from the yaml template.

func CreateClusterRoleFromYaml

func CreateClusterRoleFromYaml(client client.Client, crTmpl string, ownerRefs []metav1.OwnerReference) error

CreateClusterRoleFromYaml creates the ClusterRole from the yaml template.

func CreateConfigMapFromYaml

func CreateConfigMapFromYaml(client client.Client, cmTmpl string, ownerRefs []metav1.OwnerReference) error

CreateConfigMapFromYaml creates the ConfigMap from the yaml template.

func CreateDeployFromYaml

func CreateDeployFromYaml(client client.Client, dplyTmpl, image string, replicas int32, ownerRef *metav1.OwnerReference, ctx interface{}) error

CreateDeployFromYaml creates the Deployment from the yaml template.

func CreateJobFromYaml

func CreateJobFromYaml(client client.Client, jobTmpl, image string, ctx interface{}) error

CreateJobFromYaml creates the Job from the yaml template.

func CreateNamespaceFromYaml

func CreateNamespaceFromYaml(cli client.Client, crTmpl string, ownerRefs []metav1.OwnerReference) error

CreateNamespaceFromYaml creates the Namespace from the yaml template.

func CreateNginxIngressCommonResource

func CreateNginxIngressCommonResource(cli client.Client) error

func CreateNginxIngressSpecificResource

func CreateNginxIngressSpecificResource(client client.Client, poolname string, externalIPs *[]string, ingress_controller_image, ingress_webhook_certgen_image string, replicas int32, ownerRef *metav1.OwnerReference) error

func CreateRoleBindingFromYaml

func CreateRoleBindingFromYaml(client client.Client, rbTmpl string, ownerRefs []metav1.OwnerReference) error

CreateRoleBindingFromYaml creates the RoleBinding from the yaml template.

func CreateRoleFromYaml

func CreateRoleFromYaml(client client.Client, rTmpl string, ownerRefs []metav1.OwnerReference) error

CreateRoleFromYaml creates the Role from the yaml template.

func CreateServiceAccountFromYaml

func CreateServiceAccountFromYaml(client client.Client, saTmpl string, ownerRefs []metav1.OwnerReference) error

CreateServiceAccountFromYaml creates the ServiceAccount from the yaml template.

func CreateServiceFromYaml

func CreateServiceFromYaml(client client.Client, svcTmpl string, externalIPs *[]string, ctx interface{}) error

CreateServiceFromYaml creates the Service from the yaml template.

func CreateValidatingWebhookConfigurationFromYaml

func CreateValidatingWebhookConfigurationFromYaml(client client.Client, vwcTmpl string, ownerRef *metav1.OwnerReference, ctx interface{}) error

CreateValidatingWebhookConfigurationFromYaml creates the validatingwebhookconfiguration from the yaml template.

func DeleteClusterRoleBindingFromYaml

func DeleteClusterRoleBindingFromYaml(client client.Client, crbTmpl string) error

DeleteClusterRoleBindingFromYaml deletes the ClusterRoleBinding from the yaml template.

func DeleteClusterRoleFromYaml

func DeleteClusterRoleFromYaml(client client.Client, crTmpl string) error

DeleteClusterRoleFromYaml deletes the ClusterRole from the yaml template.

func DeleteConfigMapFromYaml

func DeleteConfigMapFromYaml(client client.Client, cmTmpl string) error

DeleteConfigMapFromYaml deletes the ConfigMap from the yaml template.

func DeleteDeployFromYaml

func DeleteDeployFromYaml(client client.Client, dplyTmpl string, ctx interface{}) error

DeleteDeployFromYaml delete the Deployment from the yaml template.

func DeleteJobFromYaml

func DeleteJobFromYaml(client client.Client, jobTmpl string, cleanup bool, ctx interface{}) error

DeleteJobFromYaml deletes the Job from the yaml template.

func DeleteNamespaceFromYaml

func DeleteNamespaceFromYaml(client client.Client, crTmpl string) error

DeleteNamespaceFromYaml deletes the Namespace from the yaml template.

func DeleteNginxIngressCommonResource

func DeleteNginxIngressCommonResource(client client.Client) error

func DeleteNginxIngressSpecificResource

func DeleteNginxIngressSpecificResource(client client.Client, poolname string, cleanup bool) error

func DeleteRoleBindingFromYaml

func DeleteRoleBindingFromYaml(client client.Client, rbTmpl string) error

DeleteRoleBindingFromYaml delete the RoleBinding from the yaml template.

func DeleteRoleFromYaml

func DeleteRoleFromYaml(client client.Client, rTmpl string) error

DeleteRoleFromYaml deletes the Role from the yaml template.

func DeleteServiceAccountFromYaml

func DeleteServiceAccountFromYaml(client client.Client, saTmpl string) error

DeleteServiceAccountFromYaml deletes the ServiceAccount from the yaml template.

func DeleteServiceFromYaml

func DeleteServiceFromYaml(client client.Client, svcTmpl string, ctx interface{}) error

DeleteServiceFromYaml deletes the Service from the yaml template.

func DeleteValidatingWebhookConfigurationFromYaml

func DeleteValidatingWebhookConfigurationFromYaml(client client.Client, vwcTmpl string, ctx interface{}) error

DeleteValidatingWebhookConfigurationFromYaml delete the validatingwebhookconfiguration from the yaml template.

func IsIngressNamespaceReady added in v0.6.0

func IsIngressNamespaceReady(cli client.Client) bool

func RecreateNginxWebhookJob added in v0.6.0

func RecreateNginxWebhookJob(client client.Client, poolname string, image string) error

func ScaleNginxIngressControllerDeploymment

func ScaleNginxIngressControllerDeploymment(client client.Client, poolname string, replicas int32) error

func SubsituteTemplate

func SubsituteTemplate(tmpl string, context interface{}) (string, error)

SubsituteTemplate fills out the template based on the context

func UpdateDeployFromYaml

func UpdateDeployFromYaml(cli client.Client, dplyTmpl, image string, replicas *int32, ctx interface{}) error

UpdateDeployFromYaml updates the Deployment from the yaml template.

func UpdateNginxIngressControllerDeploymment added in v0.6.0

func UpdateNginxIngressControllerDeploymment(client client.Client, poolname string, replicas int32, image string) error

func UpdateNginxServiceExternalIPs added in v0.6.0

func UpdateNginxServiceExternalIPs(client client.Client, poolname string, externalIPs []string) error

func UpdateServiceFromYaml added in v0.6.0

func UpdateServiceFromYaml(cli client.Client, svcTmpl string, externalIPs *[]string, ctx interface{}) error

UpdateServiceFromYaml updates the Service from the yaml template.

func YamlToObject

func YamlToObject(yamlContent []byte) (k8sruntime.Object, error)

YamlToObject deserializes object in yaml format to a runtime.Object

Types

This section is empty.

Jump to

Keyboard shortcuts

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