Documentation ¶
Index ¶
- func ApplyTemplateWithExtraArgs(ctx context.Context, template *corev1.ConfigMap, dataKey, containerName string, ...) error
- func LoadTemplate(ctx context.Context, namespacedName types.NamespacedName) (*corev1.ConfigMap, error)
- func MergeExtraArgs(yamlContent string, extraArgs map[string]string, containerName string) (string, error)
- func MergeExtraArgsForContainer(container *corev1.Container, extraArgs map[string]string)
- func MergeExtraArgsForDaemonSet(daemonset *appsv1.DaemonSet, containerName string, extraArgs map[string]string) (string, error)
- func MergeExtraArgsForDeployment(deployment *appsv1.Deployment, containerName string, ...) (string, error)
- func MergeExtraArgsForPod(pod *corev1.Pod, containerName string, extraArgs map[string]string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplateWithExtraArgs ¶
func ApplyTemplateWithExtraArgs(ctx context.Context, template *corev1.ConfigMap, dataKey, containerName string, values, extraArgs map[string]string) error
ApplyTemplateWithExtraArgs renders and merges extra args then applies the manifests into cluster.
func LoadTemplate ¶
func LoadTemplate(ctx context.Context, namespacedName types.NamespacedName) (*corev1.ConfigMap, error)
LoadTemplate returns the yurt template with given namespace/name
func MergeExtraArgs ¶
func MergeExtraArgs(yamlContent string, extraArgs map[string]string, containerName string) (string, error)
MergeExtraArgs merges extra args for the target container which defined in the yaml content
func MergeExtraArgsForContainer ¶
MergeExtraArgsForContainer merges extraArgs into the given container args
func MergeExtraArgsForDaemonSet ¶
func MergeExtraArgsForDaemonSet(daemonset *appsv1.DaemonSet, containerName string, extraArgs map[string]string) (string, error)
MergeExtraArgsForDaemonSet merges the extra args for DaemonSet container and returns the merged yaml content
func MergeExtraArgsForDeployment ¶
func MergeExtraArgsForDeployment(deployment *appsv1.Deployment, containerName string, extraArgs map[string]string) (string, error)
MergeExtraArgsForDeployment merges the extra args for Deployment container and returns the merged yaml content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.