transform

package
v0.0.0-...-c44a825 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPodTemplateContainerArgsFunc

func AppendPodTemplateContainerArgsFunc(container string, vals []string) transform.TransformFunc

AppendPodTemplateContainerArgsFunc adds a list of args in a given container in a PodTemplate.

func AppendSequenceNodeFunc

func AppendSequenceNodeFunc(value *kyaml.RNode, path ...string) transform.TransformFunc

AppendSequenceNodeFunc appends a sequence node field with the given values at the given path.

func SetClusterRoleBindingSubjectNamespaceFunc

func SetClusterRoleBindingSubjectNamespaceFunc(name, namespace string) transform.TransformFunc

SetClusterRoleBindingSubjectNamespaceFunc sets the namespace of a subject in a ClusterRoleBinding.

func SetConfigMapData

func SetConfigMapData(key, value string) transform.TransformFunc

SetConfigMapData sets the given key-value data in a ConfigMap.

func SetDefaultServicePortNameFunc

func SetDefaultServicePortNameFunc(name string) transform.TransformFunc

SetDefaultServicePortNameFunc sets the default port name of the Service.

func SetEnvVarStringFunc

func SetEnvVarStringFunc(val string, path ...string) transform.TransformFunc

SetEnvVarStringFunc sets a string value environment variable for a given container path.

func SetEnvVarValueFromFieldFunc

func SetEnvVarValueFromFieldFunc(fieldPath string, path ...string) transform.TransformFunc

SetEnvVarValueFromFieldFunc sets a valueFrom fieldRef environment variable for a given container path.

func SetEnvVarValueFromSecretFunc

func SetEnvVarValueFromSecretFunc(secretName, secretKey string, path ...string) transform.TransformFunc

SetEnvVarValueFromSecretFunc sets a valueFrom secretKeyRef environment variable for a given container path.

func SetKubeSchedulerLeaderElectionRNamespaceFunc

func SetKubeSchedulerLeaderElectionRNamespaceFunc(namespace string) transform.TransformFunc

SetKubeSchedulerLeaderElectionRNamespaceFunc sets the leader election resource namespace in a KubeSchedulerConfiguration.

func SetMetadataNameFunc

func SetMetadataNameFunc(name string) transform.TransformFunc

SetMetadataNameFunc sets the metadata name of a given resource.

func SetMetadataNamespaceFunc

func SetMetadataNamespaceFunc(namespace string) transform.TransformFunc

SetMetadataNamespaceFunc sets the metadata namespace of a given resource.

func SetPodTemplateConfigMapVolumeFunc

func SetPodTemplateConfigMapVolumeFunc(volume string, configmapName string, keyToPaths []corev1.KeyToPath) transform.TransformFunc

SetPodTemplateConfigMapVolumeFunc sets a volume in a PodTemplate for a configmap volume source.

func SetPodTemplateContainerEnvVarStringFunc

func SetPodTemplateContainerEnvVarStringFunc(container, key, val string) transform.TransformFunc

SetPodTemplateContainerEnvVarStringFunc sets a string value env var for a container.

func SetPodTemplateContainerEnvVarValueFromFieldFunc

func SetPodTemplateContainerEnvVarValueFromFieldFunc(container, key, fieldPath string) transform.TransformFunc

SetPodTemplateContainerEnvVarValueFromFieldFunc sets a valueFrom fieldRef env var for a container.

func SetPodTemplateContainerEnvVarValueFromSecretFunc

func SetPodTemplateContainerEnvVarValueFromSecretFunc(container, key, secretName, secretKey string) transform.TransformFunc

SetPodTemplateContainerEnvVarValueFromSecretFunc sets a valueFrom secretKeyRef env var for a container.

func SetPodTemplateContainerResourceFunc

func SetPodTemplateContainerResourceFunc(container string, resReq corev1.ResourceRequirements) transform.TransformFunc

SetPodTemplateContainerResourceFunc sets the resource requirements of a container in a PodTemplate.

func SetPodTemplateHostPathVolumeFunc

func SetPodTemplateHostPathVolumeFunc(volume, path string, pathType *corev1.HostPathType) transform.TransformFunc

SetPodTemplateHostPathVolumeFunc sets a volume in a PodTemplate for a host path volume source.

func SetPodTemplateInitContainerEnvVarStringFunc

func SetPodTemplateInitContainerEnvVarStringFunc(container, key, val string) transform.TransformFunc

SetPodTemplateInitContainerEnvVarStringFunc sets a string value env var for an init container.

func SetPodTemplateInitContainerEnvVarValueFromFieldFunc

func SetPodTemplateInitContainerEnvVarValueFromFieldFunc(container, key, fieldPath string) transform.TransformFunc

SetPodTemplateInitContainerEnvVarValueFromFieldFunc sets a valueFrom fieldRef env var for an init container.

func SetPodTemplateInitContainerEnvVarValueFromSecretFunc

func SetPodTemplateInitContainerEnvVarValueFromSecretFunc(container, key, secretName, secretKey string) transform.TransformFunc

SetPodTemplateInitContainerEnvVarValueFromSecretFunc sets a valueFrom secretKeyRef env var for an init container.

func SetPodTemplateNodeSelectorTermsFunc

func SetPodTemplateNodeSelectorTermsFunc(nodeSelectors []corev1.NodeSelectorTerm) transform.TransformFunc

SetPodTemplateNodeSelectorTermsFunc sets the node selector terms for node affinity in a PodTemplate.

func SetPodTemplateSecretVolumeFunc

func SetPodTemplateSecretVolumeFunc(volume string, secretName string, keyToPaths []corev1.KeyToPath) transform.TransformFunc

SetPodTemplateSecretVolumeFunc sets a volume in a PodTemplate for a secret volume source.

func SetPodTemplateTolerationFunc

func SetPodTemplateTolerationFunc(tolerations []corev1.Toleration) transform.TransformFunc

SetPodTemplateTolerationFunc sets the pod tolerations in a PodTemplate.

func SetPodTemplateVolumeFunc

func SetPodTemplateVolumeFunc(volume string, volumeSource string, value *kyaml.RNode) transform.TransformFunc

SetPodTemplateVolumeFunc sets a volume in a PodTemplate for the given name and volume source.

func SetPodTemplateVolumeMountFunc

func SetPodTemplateVolumeMountFunc(container, volName, mountPath string, mountPropagation corev1.MountPropagationMode) transform.TransformFunc

SetPodTemplateVolumeMountFunc sets a volumeMount for a given container in a PodTemplate.

func SetScalarNodeFunc

func SetScalarNodeFunc(valField string, value *kyaml.RNode, path ...string) transform.TransformFunc

SetScalarNodeFunc sets a scalar node field with the given value at the given path.

func SetScalarNodeStringValueFunc

func SetScalarNodeStringValueFunc(valField string, value string, path ...string) transform.TransformFunc

SetScalarNodeStringValueFunc sets a scalar node field with the given string value at the given path.

func SetServiceExternalPortFunc

func SetServiceExternalPortFunc(portName string, port int) transform.TransformFunc

SetServiceExternalPortFunc sets the external port of a Service port.

func SetServiceInternalPortFunc

func SetServiceInternalPortFunc(portName string, port int) transform.TransformFunc

SetServiceInternalPortFunc sets the internal port of a Service port.

func SetServiceTypeFunc

func SetServiceTypeFunc(serviceType corev1.ServiceType) transform.TransformFunc

SetServiceTypeFunc sets the type of a Service.

func SetVolumeMountFunc

func SetVolumeMountFunc(value *kyaml.RNode, mountPropagationValue *kyaml.RNode, path ...string) transform.TransformFunc

SetVolumeMountFunc sets the volume mount at a given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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