Documentation ¶
Index ¶
- Constants
- Variables
- type Wordpress
- func (wp *Wordpress) ComponentLabels(component component) labels.Set
- func (wp *Wordpress) ComponentName(component component) string
- func (wp *Wordpress) HomeURL(subPaths ...string) string
- func (wp *Wordpress) ImageVersion() string
- func (wp *Wordpress) JobPodLabels() labels.Set
- func (wp *Wordpress) JobPodTemplateSpec(cmd ...string) (out corev1.PodTemplateSpec)
- func (wp *Wordpress) Labels() labels.Set
- func (wp *Wordpress) MainDomain() string
- func (wp *Wordpress) SetDefaults()
- func (wp *Wordpress) SiteURL(subPaths ...string) string
- func (wp *Wordpress) Unwrap() *wordpressv1alpha1.Wordpress
- func (wp *Wordpress) WebPodLabels() labels.Set
- func (wp *Wordpress) WebPodTemplateSpec() (out corev1.PodTemplateSpec)
Constants ¶
const ( // InternalHTTPPort represents the internal port used by the runtime container. InternalHTTPPort = 8080 // MetricsExporterPort represents the exposed port where metrics can be found. MetricsExporterPort = 9145 )
Variables ¶
var ( // WordpressSecret component. WordpressSecret = component{/* contains filtered or unexported fields */} // WordpressDeployment component. WordpressDeployment = component{/* contains filtered or unexported fields */} // WordpressCron component. WordpressCron = component{/* contains filtered or unexported fields */} // WordpressDBUpgrade component. WordpressDBUpgrade = component{/* contains filtered or unexported fields */} // WordpressService component. WordpressService = component{/* contains filtered or unexported fields */} // WordpressIngress component. WordpressIngress = component{/* contains filtered or unexported fields */} // WordpressCodePVC component. WordpressCodePVC = component{/* contains filtered or unexported fields */} // WordpressMediaPVC component. WordpressMediaPVC = component{/* contains filtered or unexported fields */} )
Functions ¶
This section is empty.
Types ¶
type Wordpress ¶
type Wordpress struct {
*wordpressv1alpha1.Wordpress
}
Wordpress embeds wordpressv1alpha1.Wordpress and adds utility functions.
func New ¶
func New(obj *wordpressv1alpha1.Wordpress) *Wordpress
New wraps a wordpressv1alpha1.Wordpress into a Wordpress object.
func (*Wordpress) ComponentLabels ¶
ComponentLabels returns labels for a label set for a wordpressv1alpha1.Wordpress component.
func (*Wordpress) ComponentName ¶
ComponentName returns the object name for a component.
func (*Wordpress) HomeURL ¶ added in v0.6.0
HomeURL returns the WP_HOMEURL (e.g. http://example.com/)
func (*Wordpress) ImageVersion ¶ added in v0.4.3
ImageVersion returns the version from the image in a format suitable for kubernetes object names and labels.
func (*Wordpress) JobPodLabels ¶
JobPodLabels return labels to apply to cli job pods.
func (*Wordpress) JobPodTemplateSpec ¶
func (wp *Wordpress) JobPodTemplateSpec(cmd ...string) (out corev1.PodTemplateSpec)
JobPodTemplateSpec generates a pod template spec suitable for use in wp-cli jobs.
func (*Wordpress) MainDomain ¶ added in v0.6.0
MainDomain returns the site main domain or a local domain <cluster-name>.<namespace>.svc.cluster.local.
func (*Wordpress) SetDefaults ¶
func (wp *Wordpress) SetDefaults()
SetDefaults sets Wordpress field defaults. nolint: gocyclo
func (*Wordpress) SiteURL ¶ added in v0.8.0
SiteURL returns the WP_SITEURL (e.g. http://example.com/wp)
func (*Wordpress) Unwrap ¶
func (wp *Wordpress) Unwrap() *wordpressv1alpha1.Wordpress
Unwrap returns the wrapped wordpressv1alpha1.Wordpress object.
func (*Wordpress) WebPodLabels ¶
WebPodLabels return labels to apply to web pods.
func (*Wordpress) WebPodTemplateSpec ¶
func (wp *Wordpress) WebPodTemplateSpec() (out corev1.PodTemplateSpec)
WebPodTemplateSpec generates a pod template spec suitable for use in Wordpress deployment. nolint: funlen