Documentation
¶
Index ¶
- func DefaultLabels(wp *wordpressv1alpha1.Wordpress) labels.Set
- func GetImage(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime) string
- func GetVersionHash(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime) string
- func JobPodLabels(wp *wordpressv1alpha1.Wordpress) labels.Set
- func JobPodTemplateSpec(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime, ...) (out corev1.PodTemplateSpec)
- func LabelsForComponent(wp *wordpressv1alpha1.Wordpress, component string) labels.Set
- func LabelsForTier(wp *wordpressv1alpha1.Wordpress, tier string) labels.Set
- func WebPodLabels(wp *wordpressv1alpha1.Wordpress) labels.Set
- func WebPodTemplateSpec(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime) (out corev1.PodTemplateSpec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLabels ¶
func DefaultLabels(wp *wordpressv1alpha1.Wordpress) labels.Set
DefaultLabels returns a general label set to apply to objects, relative to the Wordpress API object
func GetImage ¶
func GetImage(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime) string
GetImage return the image for the Wordpress resource relative to the WordpressRuntime
func GetVersionHash ¶
func GetVersionHash(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime) string
GetVersionHash returns the Wordpress image version hash which can be used in kubernetes resource names
func JobPodLabels ¶
func JobPodLabels(wp *wordpressv1alpha1.Wordpress) labels.Set
JobPodLabels returns the labels suitable Wordpress Web Pods
func JobPodTemplateSpec ¶
func JobPodTemplateSpec(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime, cmd ...string) (out corev1.PodTemplateSpec)
JobPodTemplateSpec generates a pod template spec suitable for WP CLI background jobs
func LabelsForComponent ¶
func LabelsForComponent(wp *wordpressv1alpha1.Wordpress, component string) labels.Set
LabelsForComponent returns a label set object with component label filled in
func LabelsForTier ¶
func LabelsForTier(wp *wordpressv1alpha1.Wordpress, tier string) labels.Set
LabelsForTier returns a label set object with tier label filled in
func WebPodLabels ¶
func WebPodLabels(wp *wordpressv1alpha1.Wordpress) labels.Set
WebPodLabels returns the labels suitable Wordpress Web Pods
func WebPodTemplateSpec ¶
func WebPodTemplateSpec(wp *wordpressv1alpha1.Wordpress, rt *wordpressv1alpha1.WordpressRuntime) (out corev1.PodTemplateSpec)
WebPodTemplateSpec generates a pod template spec suitable for use in Wordpress deployment
Types ¶
This section is empty.