Documentation
¶
Overview ¶
Package v1beta1 contains API Schema definitions for the app v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/skpr/operator/pkg/apis/app +k8s:defaulter-gen=TypeMeta +groupName=app.skpr.io
Package v1beta1 contains API Schema definitions for the app v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/skpr/operator/pkg/apis/app +k8s:defaulter-gen=TypeMeta +groupName=app.skpr.io
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type Drupal
- type DrupalList
- type DrupalSpec
- type DrupalSpecConfigMap
- type DrupalSpecConfigMaps
- type DrupalSpecCron
- type DrupalSpecExec
- type DrupalSpecFPM
- type DrupalSpecFPMAutoscaling
- type DrupalSpecFPMAutoscalingReplicas
- type DrupalSpecFPMAutoscalingTrigger
- type DrupalSpecMySQL
- type DrupalSpecNewRelic
- type DrupalSpecNewRelicConfigMap
- type DrupalSpecNewRelicSecret
- type DrupalSpecNginx
- type DrupalSpecNginxAutoscaling
- type DrupalSpecNginxAutoscalingReplicas
- type DrupalSpecNginxAutoscalingTrigger
- type DrupalSpecNginxHostAlias
- type DrupalSpecSMTP
- type DrupalSpecSecret
- type DrupalSpecSecrets
- type DrupalSpecVolume
- type DrupalSpecVolumePermissions
- type DrupalSpecVolumePermissionsCronJob
- type DrupalSpecVolumes
- type DrupalStatus
- type DrupalStatusConfigMap
- type DrupalStatusConfigMaps
- type DrupalStatusCron
- type DrupalStatusExec
- type DrupalStatusFPM
- type DrupalStatusFPMMetrics
- type DrupalStatusLabels
- type DrupalStatusMySQL
- type DrupalStatusMySQLConfigMap
- type DrupalStatusMySQLConfigMapKeys
- type DrupalStatusMySQLSecret
- type DrupalStatusMySQLSecretKeys
- type DrupalStatusNginx
- type DrupalStatusNginxMetrics
- type DrupalStatusSMTP
- type DrupalStatusSecret
- type DrupalStatusSecrets
- type DrupalStatusVolume
- type DrupalStatusVolumes
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "app.skpr.io", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type Drupal ¶
type Drupal struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DrupalSpec `json:"spec,omitempty"`
Status DrupalStatus `json:"status,omitempty"`
}
Drupal is the Schema for the drupals API +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*Drupal) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Drupal.
func (*Drupal) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Drupal) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DrupalList ¶
type DrupalList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Drupal `json:"items"`
}
DrupalList contains a list of Drupal
func (*DrupalList) DeepCopy ¶
func (in *DrupalList) DeepCopy() *DrupalList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalList.
func (*DrupalList) DeepCopyInto ¶
func (in *DrupalList) DeepCopyInto(out *DrupalList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DrupalList) DeepCopyObject ¶
func (in *DrupalList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DrupalSpec ¶
type DrupalSpec struct {
// Configuration for the Nginx deployment eg. image / resources / scaling.
Nginx DrupalSpecNginx `json:"nginx"`
// Configuration for the FPM deployment eg. image / resources / scaling.
FPM DrupalSpecFPM `json:"fpm"`
// Configuration for the Execution environment eg. image / resources / timeout.
Exec DrupalSpecExec `json:"exec"`
// Volumes which are provisioned for the Drupal application.
Volume DrupalSpecVolumes `json:"volume"`
// Database provisioned as part of the application eg. "default" and "migrate".
MySQL map[string]DrupalSpecMySQL `json:"mysql"`
// Background tasks which are executed periodically eg. "drush cron"
Cron map[string]DrupalSpecCron `json:"cron"`
// Configuration which is exposed to the Drupal application eg. database hostname.
ConfigMap DrupalSpecConfigMaps `json:"configmap"`
// Secrets which are exposed to the Drupal application eg. database credentials.
Secret DrupalSpecSecrets `json:"secret"`
// NewRelic configuration for performance and debugging.
NewRelic DrupalSpecNewRelic `json:"newrelic"`
// SMTP configuration for outbound email.
SMTP DrupalSpecSMTP `json:"smtp"`
}
DrupalSpec defines the desired state of Drupal
func (*DrupalSpec) DeepCopy ¶
func (in *DrupalSpec) DeepCopy() *DrupalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpec.
func (*DrupalSpec) DeepCopyInto ¶
func (in *DrupalSpec) DeepCopyInto(out *DrupalSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecConfigMap ¶
type DrupalSpecConfigMap struct {
// Path which the configuration will be mounted.
Path string `json:"path"`
}
DrupalSpecConfigMap defines the spec for a specific configmap.
func (*DrupalSpecConfigMap) DeepCopy ¶
func (in *DrupalSpecConfigMap) DeepCopy() *DrupalSpecConfigMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecConfigMap.
func (*DrupalSpecConfigMap) DeepCopyInto ¶
func (in *DrupalSpecConfigMap) DeepCopyInto(out *DrupalSpecConfigMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecConfigMaps ¶
type DrupalSpecConfigMaps struct {
// Configuration which is automatically set.
Default DrupalSpecConfigMap `json:"default"`
// Configuration which is user provided.
Override DrupalSpecConfigMap `json:"override"`
}
DrupalSpecConfigMaps defines the spec for all configmaps.
func (*DrupalSpecConfigMaps) DeepCopy ¶
func (in *DrupalSpecConfigMaps) DeepCopy() *DrupalSpecConfigMaps
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecConfigMaps.
func (*DrupalSpecConfigMaps) DeepCopyInto ¶
func (in *DrupalSpecConfigMaps) DeepCopyInto(out *DrupalSpecConfigMaps)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecCron ¶
type DrupalSpecCron struct {
// Image which will be executed for a background task.
Image string `json:"image"`
// Marks the filesystem as readonly to ensure code cannot be changed.
ReadOnly bool `json:"readOnly"`
// Command which will be executed for the background task.
Command string `json:"command"`
// Schedule whic the background task will be executed.
Schedule string `json:"schedule"`
// Resource constraints which will be applied to the background task.
Resources corev1.ResourceRequirements `json:"resources"`
// How many times to execute before marking the task as a failure.
Retries int32 `json:"retries"`
// How many successful builds to keep.
KeepSuccess int32 `json:"keepSuccess"`
// How many failed builds to keep.
KeepFailed int32 `json:"keepFailed"`
}
DrupalSpecCron configures a background task for this Drupal.
func (*DrupalSpecCron) DeepCopy ¶
func (in *DrupalSpecCron) DeepCopy() *DrupalSpecCron
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecCron.
func (*DrupalSpecCron) DeepCopyInto ¶
func (in *DrupalSpecCron) DeepCopyInto(out *DrupalSpecCron)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecExec ¶
type DrupalSpecExec struct {
// Image which will be used for developer command line access.
Image string `json:"image"`
// Marks the filesystem as readonly to ensure code cannot be changed.
ReadOnly bool `json:"readOnly"`
// Resource constraints which will be applied to the background task.
Resources corev1.ResourceRequirements `json:"resources"`
// How long for the command line environment to exist.
Timeout int `json:"timeout"`
}
DrupalSpecExec provides configuration for an exec template.
func (*DrupalSpecExec) DeepCopy ¶
func (in *DrupalSpecExec) DeepCopy() *DrupalSpecExec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecExec.
func (*DrupalSpecExec) DeepCopyInto ¶
func (in *DrupalSpecExec) DeepCopyInto(out *DrupalSpecExec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecFPM ¶
type DrupalSpecFPM struct {
// Image which will be rolled out for the deployment.
Image string `json:"image"`
// Port which PHP-FPM is running on.
Port int32 `json:"port"`
// Marks the filesystem as readonly to ensure code cannot be changed.
ReadOnly bool `json:"readOnly"`
// Resource constraints which will be applied to the deployment.
Resources corev1.ResourceRequirements `json:"resources"`
// Autoscaling rules which will be applied to the deployment.
Autoscaling DrupalSpecFPMAutoscaling `json:"autoscaling"`
}
DrupalSpecFPM provides a specification for the FPM layer.
func (*DrupalSpecFPM) DeepCopy ¶
func (in *DrupalSpecFPM) DeepCopy() *DrupalSpecFPM
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecFPM.
func (*DrupalSpecFPM) DeepCopyInto ¶
func (in *DrupalSpecFPM) DeepCopyInto(out *DrupalSpecFPM)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecFPMAutoscaling ¶
type DrupalSpecFPMAutoscaling struct {
// Threshold which will trigger autoscaling events.
Trigger DrupalSpecFPMAutoscalingTrigger `json:"trigger"`
// How many copies of the deployment which should be running.
Replicas DrupalSpecFPMAutoscalingReplicas `json:"replicas"`
}
DrupalSpecFPMAutoscaling contain autoscaling rules for the FPM layer.
func (*DrupalSpecFPMAutoscaling) DeepCopy ¶
func (in *DrupalSpecFPMAutoscaling) DeepCopy() *DrupalSpecFPMAutoscaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecFPMAutoscaling.
func (*DrupalSpecFPMAutoscaling) DeepCopyInto ¶
func (in *DrupalSpecFPMAutoscaling) DeepCopyInto(out *DrupalSpecFPMAutoscaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecFPMAutoscalingReplicas ¶
type DrupalSpecFPMAutoscalingReplicas struct {
// Minimum number of replicas for the deployment.
Min int32 `json:"min"`
// Maximum number of replicas for the deployment.
Max int32 `json:"max"`
}
DrupalSpecFPMAutoscalingReplicas contain autoscaling replica rules for the FPM layer.
func (*DrupalSpecFPMAutoscalingReplicas) DeepCopy ¶
func (in *DrupalSpecFPMAutoscalingReplicas) DeepCopy() *DrupalSpecFPMAutoscalingReplicas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecFPMAutoscalingReplicas.
func (*DrupalSpecFPMAutoscalingReplicas) DeepCopyInto ¶
func (in *DrupalSpecFPMAutoscalingReplicas) DeepCopyInto(out *DrupalSpecFPMAutoscalingReplicas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecFPMAutoscalingTrigger ¶
type DrupalSpecFPMAutoscalingTrigger struct {
// CPU threshold which will trigger autoscaling events.
CPU int32 `json:"cpu"`
}
DrupalSpecFPMAutoscalingTrigger contain autoscaling triggers for the FPM layer.
func (*DrupalSpecFPMAutoscalingTrigger) DeepCopy ¶
func (in *DrupalSpecFPMAutoscalingTrigger) DeepCopy() *DrupalSpecFPMAutoscalingTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecFPMAutoscalingTrigger.
func (*DrupalSpecFPMAutoscalingTrigger) DeepCopyInto ¶
func (in *DrupalSpecFPMAutoscalingTrigger) DeepCopyInto(out *DrupalSpecFPMAutoscalingTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecMySQL ¶
type DrupalSpecMySQL struct {
// Database class which will be used when provisioning the database.
Class string `json:"class"`
}
DrupalSpecMySQL configuration for this Drupal.
func (*DrupalSpecMySQL) DeepCopy ¶
func (in *DrupalSpecMySQL) DeepCopy() *DrupalSpecMySQL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecMySQL.
func (*DrupalSpecMySQL) DeepCopyInto ¶
func (in *DrupalSpecMySQL) DeepCopyInto(out *DrupalSpecMySQL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNewRelic ¶
type DrupalSpecNewRelic struct {
// ConfigMap which contains New Relic configuration.
ConfigMap DrupalSpecNewRelicConfigMap `json:"configmap"`
// Secret which contains New Relic configuration.
Secret DrupalSpecNewRelicSecret `json:"secret"`
}
DrupalSpecNewRelic is used for configuring New Relic configuration.
func (*DrupalSpecNewRelic) DeepCopy ¶
func (in *DrupalSpecNewRelic) DeepCopy() *DrupalSpecNewRelic
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNewRelic.
func (*DrupalSpecNewRelic) DeepCopyInto ¶
func (in *DrupalSpecNewRelic) DeepCopyInto(out *DrupalSpecNewRelic)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNewRelicConfigMap ¶
type DrupalSpecNewRelicConfigMap struct {
// Key which determines if New Relic is enabled.
Enabled string `json:"enabled"`
// Name of the New Relic application.
Name string `json:"name"`
}
DrupalSpecNewRelicConfigMap for loading New Relic config from a ConfigMap.
func (*DrupalSpecNewRelicConfigMap) DeepCopy ¶
func (in *DrupalSpecNewRelicConfigMap) DeepCopy() *DrupalSpecNewRelicConfigMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNewRelicConfigMap.
func (*DrupalSpecNewRelicConfigMap) DeepCopyInto ¶
func (in *DrupalSpecNewRelicConfigMap) DeepCopyInto(out *DrupalSpecNewRelicConfigMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNewRelicSecret ¶
type DrupalSpecNewRelicSecret struct {
// License (API Key) for interacting with New Relic.
License string `json:"license"`
}
DrupalSpecNewRelicSecret for loading New Relic config from a Secret.
func (*DrupalSpecNewRelicSecret) DeepCopy ¶
func (in *DrupalSpecNewRelicSecret) DeepCopy() *DrupalSpecNewRelicSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNewRelicSecret.
func (*DrupalSpecNewRelicSecret) DeepCopyInto ¶
func (in *DrupalSpecNewRelicSecret) DeepCopyInto(out *DrupalSpecNewRelicSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNginx ¶
type DrupalSpecNginx struct {
// Image which will be rolled out for the deployment.
Image string `json:"image"`
// Port which Nginx is running on.
Port int32 `json:"port"`
// Marks the filesystem as readonly to ensure code cannot be changed.
ReadOnly bool `json:"readOnly"`
// Resource constraints which will be applied to the deployment.
Resources corev1.ResourceRequirements `json:"resources"`
// Autoscaling rules which will be applied to the deployment.
Autoscaling DrupalSpecNginxAutoscaling `json:"autoscaling"`
// HostAlias which connects Nginx to the FPM service.
HostAlias DrupalSpecNginxHostAlias `json:"hostAlias"`
}
DrupalSpecNginx provides a specification for the Nginx layer.
func (*DrupalSpecNginx) DeepCopy ¶
func (in *DrupalSpecNginx) DeepCopy() *DrupalSpecNginx
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNginx.
func (*DrupalSpecNginx) DeepCopyInto ¶
func (in *DrupalSpecNginx) DeepCopyInto(out *DrupalSpecNginx)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNginxAutoscaling ¶
type DrupalSpecNginxAutoscaling struct {
// Threshold which will trigger autoscaling events.
Trigger DrupalSpecNginxAutoscalingTrigger `json:"trigger"`
// How many copies of the deployment which should be running.
Replicas DrupalSpecNginxAutoscalingReplicas `json:"replicas"`
}
DrupalSpecNginxAutoscaling contain autoscaling rules for the Nginx layer.
func (*DrupalSpecNginxAutoscaling) DeepCopy ¶
func (in *DrupalSpecNginxAutoscaling) DeepCopy() *DrupalSpecNginxAutoscaling
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNginxAutoscaling.
func (*DrupalSpecNginxAutoscaling) DeepCopyInto ¶
func (in *DrupalSpecNginxAutoscaling) DeepCopyInto(out *DrupalSpecNginxAutoscaling)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNginxAutoscalingReplicas ¶
type DrupalSpecNginxAutoscalingReplicas struct {
// Minimum number of replicas for the deployment.
Min int32 `json:"min"`
// Maximum number of replicas for the deployment.
Max int32 `json:"max"`
}
DrupalSpecNginxAutoscalingReplicas contain autoscaling replica rules for the Nginx layer.
func (*DrupalSpecNginxAutoscalingReplicas) DeepCopy ¶
func (in *DrupalSpecNginxAutoscalingReplicas) DeepCopy() *DrupalSpecNginxAutoscalingReplicas
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNginxAutoscalingReplicas.
func (*DrupalSpecNginxAutoscalingReplicas) DeepCopyInto ¶
func (in *DrupalSpecNginxAutoscalingReplicas) DeepCopyInto(out *DrupalSpecNginxAutoscalingReplicas)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNginxAutoscalingTrigger ¶
type DrupalSpecNginxAutoscalingTrigger struct {
// CPU threshold which will trigger autoscaling events.
CPU int32 `json:"cpu"`
}
DrupalSpecNginxAutoscalingTrigger contain autoscaling triggers for the Nginx layer.
func (*DrupalSpecNginxAutoscalingTrigger) DeepCopy ¶
func (in *DrupalSpecNginxAutoscalingTrigger) DeepCopy() *DrupalSpecNginxAutoscalingTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNginxAutoscalingTrigger.
func (*DrupalSpecNginxAutoscalingTrigger) DeepCopyInto ¶
func (in *DrupalSpecNginxAutoscalingTrigger) DeepCopyInto(out *DrupalSpecNginxAutoscalingTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecNginxHostAlias ¶
type DrupalSpecNginxHostAlias struct {
// HostAlias for the PHP FPM service.
FPM string `json:"fpm"`
}
DrupalSpecNginxHostAlias declares static DNS entries which wire up the Nginx layer to the FPM lay
func (*DrupalSpecNginxHostAlias) DeepCopy ¶
func (in *DrupalSpecNginxHostAlias) DeepCopy() *DrupalSpecNginxHostAlias
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecNginxHostAlias.
func (*DrupalSpecNginxHostAlias) DeepCopyInto ¶
func (in *DrupalSpecNginxHostAlias) DeepCopyInto(out *DrupalSpecNginxHostAlias)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecSMTP ¶ added in v0.2.0
type DrupalSpecSMTP struct {
// Configuration for validationing FROM addresses.
From extensionsv1beta1.SMTPSpecFrom `json:"from"`
}
DrupalSpecSMTP configuration for outbound email.
type DrupalSpecSecret ¶
type DrupalSpecSecret struct {
// Path which the secrets will be mounted.
Path string `json:"path"`
}
DrupalSpecSecret defines the spec for a specific secret.
func (*DrupalSpecSecret) DeepCopy ¶
func (in *DrupalSpecSecret) DeepCopy() *DrupalSpecSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecSecret.
func (*DrupalSpecSecret) DeepCopyInto ¶
func (in *DrupalSpecSecret) DeepCopyInto(out *DrupalSpecSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecSecrets ¶
type DrupalSpecSecrets struct {
// Secrets which are automatically set.
Default DrupalSpecSecret `json:"default"`
// Secrets which are user provided.
Override DrupalSpecSecret `json:"override"`
}
DrupalSpecSecrets defines the spec for all secrets.
func (*DrupalSpecSecrets) DeepCopy ¶
func (in *DrupalSpecSecrets) DeepCopy() *DrupalSpecSecrets
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecSecrets.
func (*DrupalSpecSecrets) DeepCopyInto ¶
func (in *DrupalSpecSecrets) DeepCopyInto(out *DrupalSpecSecrets)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecVolume ¶
type DrupalSpecVolume struct {
// Path which the volume will be mounted.
Path string `json:"path"`
// StorageClass which will be used to provision storage.
Class string `json:"class"`
// Amount of storage which will be provisioned.
Amount string `json:"amount"`
// Permmissions which will be enforced for this volume.
Permissions DrupalSpecVolumePermissions `json:"permissions"`
}
DrupalSpecVolume which will be mounted for this Drupal.
func (*DrupalSpecVolume) DeepCopy ¶
func (in *DrupalSpecVolume) DeepCopy() *DrupalSpecVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecVolume.
func (*DrupalSpecVolume) DeepCopyInto ¶
func (in *DrupalSpecVolume) DeepCopyInto(out *DrupalSpecVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecVolumePermissions ¶ added in v0.2.0
type DrupalSpecVolumePermissions struct {
// User name which will be enforced for the volume. Can also be a UID.
User string `json:"user"`
// Group name which will be enforced for the volume. Can also be a GID.
Group string `json:"group"`
// Directory chmod which will be applied to the volume.
Directory int `json:"directory"`
// File chmod which will be applied to the volume.
File int `json:"file"`
// CronJob which will be run to enforce permissions.
CronJob DrupalSpecVolumePermissionsCronJob `json:"cronJob"`
}
DrupalSpecVolumePermissions describes permisions which will be enforced for a volume.
func (*DrupalSpecVolumePermissions) DeepCopy ¶ added in v0.2.0
func (in *DrupalSpecVolumePermissions) DeepCopy() *DrupalSpecVolumePermissions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecVolumePermissions.
func (*DrupalSpecVolumePermissions) DeepCopyInto ¶ added in v0.2.0
func (in *DrupalSpecVolumePermissions) DeepCopyInto(out *DrupalSpecVolumePermissions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecVolumePermissionsCronJob ¶ added in v0.2.0
type DrupalSpecVolumePermissionsCronJob struct {
// Privileged image which will be used when running chown and chmod commands. Needs be an image which runs as root to enforce permissions.
Image string `json:"image"`
// Schedule which permissions will be checked.
Schedule string `json:"schedule"`
// How long before a Job should be marked as failed if it does not get scheduled in time.
Deadline int64 `json:"deadline,omitempty"`
// How many times to get a "Successful" execution before failing.
Retries int32 `json:"retries,omitempty"`
// How many past successes to keep.
KeepSuccess int32 `json:"keepSuccess,omitempty"`
// How many past failures to keep.
KeepFailed int32 `json:"keepFailed,omitempty"`
// Make the root filesystem of this image ready only.
ReadOnly bool `json:"readOnly,omitempty"`
}
DrupalSpecVolumePermissionsCronJob describes how the permissions will be enforced.
func (*DrupalSpecVolumePermissionsCronJob) DeepCopy ¶ added in v0.2.0
func (in *DrupalSpecVolumePermissionsCronJob) DeepCopy() *DrupalSpecVolumePermissionsCronJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecVolumePermissionsCronJob.
func (*DrupalSpecVolumePermissionsCronJob) DeepCopyInto ¶ added in v0.2.0
func (in *DrupalSpecVolumePermissionsCronJob) DeepCopyInto(out *DrupalSpecVolumePermissionsCronJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalSpecVolumes ¶
type DrupalSpecVolumes struct {
// Public filesystem which is mounted into the Nginx and PHP-FPM deployments.
Public DrupalSpecVolume `json:"public"`
// Private filesystem which is only mounted into the PHP-FPM deployment.
Private DrupalSpecVolume `json:"private"`
// Temporary filesystem which is only mounted into the PHP-FPM deployment.
Temporary DrupalSpecVolume `json:"temporary"`
}
DrupalSpecVolumes which will be mounted for this Drupal.
func (*DrupalSpecVolumes) DeepCopy ¶
func (in *DrupalSpecVolumes) DeepCopy() *DrupalSpecVolumes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalSpecVolumes.
func (*DrupalSpecVolumes) DeepCopyInto ¶
func (in *DrupalSpecVolumes) DeepCopyInto(out *DrupalSpecVolumes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatus ¶
type DrupalStatus struct {
// Used for determining if an APIs information is up to date.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Labels for querying Drupal services.
Labels DrupalStatusLabels `json:"labels,omitempty"`
// Status for the Nginx deployment.
Nginx DrupalStatusNginx `json:"nginx,omitempty"`
// Status for the PHP-FPM deployment.
FPM DrupalStatusFPM `json:"fpm,omitempty"`
// Volume status information.
Volume DrupalStatusVolumes `json:"volume,omitempty"`
// MySQL status information.
MySQL map[string]DrupalStatusMySQL `json:"mysql,omitempty"`
// Background task information eg. Last execution.
Cron map[string]DrupalStatusCron `json:"cron,omitempty"`
// Configuration status.
ConfigMap DrupalStatusConfigMaps `json:"configmap,omitempty"`
// Secrets status.
Secret DrupalStatusSecrets `json:"secret,omitempty"`
// Execution environment status.
Exec DrupalStatusExec `json:"exec,omitempty"`
// SMTP service status.
SMTP DrupalStatusSMTP `json:"smtp,omitempty"`
}
DrupalStatus defines the observed state of Drupal
func (*DrupalStatus) DeepCopy ¶
func (in *DrupalStatus) DeepCopy() *DrupalStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatus.
func (*DrupalStatus) DeepCopyInto ¶
func (in *DrupalStatus) DeepCopyInto(out *DrupalStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusConfigMap ¶
type DrupalStatusConfigMap struct {
// Name of the configmap.
Name string `json:"name,omitempty"`
// How many configuration are assigned to the application.
Count int `json:"count,omitempty"`
}
DrupalStatusConfigMap identifies specific config map related status.
func (*DrupalStatusConfigMap) DeepCopy ¶
func (in *DrupalStatusConfigMap) DeepCopy() *DrupalStatusConfigMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusConfigMap.
func (*DrupalStatusConfigMap) DeepCopyInto ¶
func (in *DrupalStatusConfigMap) DeepCopyInto(out *DrupalStatusConfigMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusConfigMaps ¶
type DrupalStatusConfigMaps struct {
// Status of the generated configuration.
Default DrupalStatusConfigMap `json:"default,omitempty"`
// Status of the user provided configuration.
Override DrupalStatusConfigMap `json:"override,omitempty"`
}
DrupalStatusConfigMaps identifies all config map related status.
func (*DrupalStatusConfigMaps) DeepCopy ¶
func (in *DrupalStatusConfigMaps) DeepCopy() *DrupalStatusConfigMaps
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusConfigMaps.
func (*DrupalStatusConfigMaps) DeepCopyInto ¶
func (in *DrupalStatusConfigMaps) DeepCopyInto(out *DrupalStatusConfigMaps)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusCron ¶
type DrupalStatusCron struct {
// Last time a background task was executed.
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"`
}
DrupalStatusCron identifies all cron related status.
func (*DrupalStatusCron) DeepCopy ¶
func (in *DrupalStatusCron) DeepCopy() *DrupalStatusCron
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusCron.
func (*DrupalStatusCron) DeepCopyInto ¶
func (in *DrupalStatusCron) DeepCopyInto(out *DrupalStatusCron)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusExec ¶
type DrupalStatusExec struct {
// Name of the command line environment template.
Name string `json:"name,omitempty"`
}
DrupalStatusExec identifies specific template which can be loaded by external sources.
func (*DrupalStatusExec) DeepCopy ¶
func (in *DrupalStatusExec) DeepCopy() *DrupalStatusExec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusExec.
func (*DrupalStatusExec) DeepCopyInto ¶
func (in *DrupalStatusExec) DeepCopyInto(out *DrupalStatusExec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusFPM ¶
type DrupalStatusFPM struct {
// Current phase of the PHP-FPM deployment eg. InProgress.
Phase deploymentutils.Phase `json:"phase,omitempty"`
// Service for routing traffic.
Service string `json:"service,omitempty"`
// Current image which has been rolled out.
Image string `json:"image,omitempty"`
// Current number of replicas.
Replicas int32 `json:"replicas,omitempty"`
// Application metrics.
Metrics DrupalStatusFPMMetrics `json:"metrics,omitempty"`
}
DrupalStatusFPM identifies all deployment related status.
func (*DrupalStatusFPM) DeepCopy ¶
func (in *DrupalStatusFPM) DeepCopy() *DrupalStatusFPM
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusFPM.
func (*DrupalStatusFPM) DeepCopyInto ¶
func (in *DrupalStatusFPM) DeepCopyInto(out *DrupalStatusFPM)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusFPMMetrics ¶
type DrupalStatusFPMMetrics struct {
// Current CPU metric for the PHP-FPM deployment.
CPU int32 `json:"cpu,omitempty"`
}
DrupalStatusFPMMetrics identifies all fpm metric related status.
func (*DrupalStatusFPMMetrics) DeepCopy ¶
func (in *DrupalStatusFPMMetrics) DeepCopy() *DrupalStatusFPMMetrics
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusFPMMetrics.
func (*DrupalStatusFPMMetrics) DeepCopyInto ¶
func (in *DrupalStatusFPMMetrics) DeepCopyInto(out *DrupalStatusFPMMetrics)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusLabels ¶
type DrupalStatusLabels struct {
// Used to query all Drupal application pods.
All map[string]string `json:"all,omitempty"`
// Used to query all Nginx pods.
Nginx map[string]string `json:"nginx,omitempty"`
// Used to query all PHP-FPM pods.
FPM map[string]string `json:"fpm,omitempty"`
// Used to query all background task pods.
Cron map[string]string `json:"cron,omitempty"`
}
DrupalStatusLabels which are used for querying application components.
func (*DrupalStatusLabels) DeepCopy ¶
func (in *DrupalStatusLabels) DeepCopy() *DrupalStatusLabels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusLabels.
func (*DrupalStatusLabels) DeepCopyInto ¶
func (in *DrupalStatusLabels) DeepCopyInto(out *DrupalStatusLabels)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusMySQL ¶
type DrupalStatusMySQL struct {
// Status of the application configuration.
ConfigMap DrupalStatusMySQLConfigMap `json:"configmap,omitempty"`
// Status of the application secrets.
Secret DrupalStatusMySQLSecret `json:"secret,omitempty"`
}
DrupalStatusMySQL identifies all mysql related status.
func (*DrupalStatusMySQL) DeepCopy ¶
func (in *DrupalStatusMySQL) DeepCopy() *DrupalStatusMySQL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusMySQL.
func (*DrupalStatusMySQL) DeepCopyInto ¶
func (in *DrupalStatusMySQL) DeepCopyInto(out *DrupalStatusMySQL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusMySQLConfigMap ¶
type DrupalStatusMySQLConfigMap struct {
// Name of the configmap.
Name string `json:"name,omitempty"`
// Keys which can be used for discovery.
Keys DrupalStatusMySQLConfigMapKeys `json:"keys,omitempty"`
}
DrupalStatusMySQLConfigMap identifies all mysql configmap related status.
func (*DrupalStatusMySQLConfigMap) DeepCopy ¶
func (in *DrupalStatusMySQLConfigMap) DeepCopy() *DrupalStatusMySQLConfigMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusMySQLConfigMap.
func (*DrupalStatusMySQLConfigMap) DeepCopyInto ¶
func (in *DrupalStatusMySQLConfigMap) DeepCopyInto(out *DrupalStatusMySQLConfigMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusMySQLConfigMapKeys ¶
type DrupalStatusMySQLConfigMapKeys struct {
// Key which was applied to the application for database connectivity.
Database string `json:"database,omitempty"`
// Key which was applied to the application for database connectivity.
Hostname string `json:"hostname,omitempty"`
// Key which was applied to the application for database connectivity.
Port string `json:"port,omitempty"`
}
DrupalStatusMySQLConfigMapKeys identifies all mysql configmap keys.
func (*DrupalStatusMySQLConfigMapKeys) DeepCopy ¶
func (in *DrupalStatusMySQLConfigMapKeys) DeepCopy() *DrupalStatusMySQLConfigMapKeys
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusMySQLConfigMapKeys.
func (*DrupalStatusMySQLConfigMapKeys) DeepCopyInto ¶
func (in *DrupalStatusMySQLConfigMapKeys) DeepCopyInto(out *DrupalStatusMySQLConfigMapKeys)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusMySQLSecret ¶
type DrupalStatusMySQLSecret struct {
// Name of the secret.
Name string `json:"name,omitempty"`
// Keys which can be used for discovery.
Keys DrupalStatusMySQLSecretKeys `json:"keys,omitempty"`
}
DrupalStatusMySQLSecret identifies all mysql secret related status.
func (*DrupalStatusMySQLSecret) DeepCopy ¶
func (in *DrupalStatusMySQLSecret) DeepCopy() *DrupalStatusMySQLSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusMySQLSecret.
func (*DrupalStatusMySQLSecret) DeepCopyInto ¶
func (in *DrupalStatusMySQLSecret) DeepCopyInto(out *DrupalStatusMySQLSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusMySQLSecretKeys ¶
type DrupalStatusMySQLSecretKeys struct {
// Key which was applied to the application for database connectivity.
Username string `json:"username,omitempty"`
// Key which was applied to the application for database connectivity.
Password string `json:"password,omitempty"`
}
DrupalStatusMySQLSecretKeys identifies all mysql secret keys.
func (*DrupalStatusMySQLSecretKeys) DeepCopy ¶
func (in *DrupalStatusMySQLSecretKeys) DeepCopy() *DrupalStatusMySQLSecretKeys
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusMySQLSecretKeys.
func (*DrupalStatusMySQLSecretKeys) DeepCopyInto ¶
func (in *DrupalStatusMySQLSecretKeys) DeepCopyInto(out *DrupalStatusMySQLSecretKeys)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusNginx ¶
type DrupalStatusNginx struct {
// Current phase of the Nginx deployment eg. InProgress.
Phase deploymentutils.Phase `json:"phase,omitempty"`
// Service for routing traffic.
Service string `json:"service,omitempty"`
// Current image which has been rolled out.
Image string `json:"image,omitempty"`
// Current number of replicas.
Replicas int32 `json:"replicas,omitempty"`
// Application metrics.
Metrics DrupalStatusNginxMetrics `json:"metrics,omitempty"`
}
DrupalStatusNginx identifies all deployment related status.
func (*DrupalStatusNginx) DeepCopy ¶
func (in *DrupalStatusNginx) DeepCopy() *DrupalStatusNginx
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusNginx.
func (*DrupalStatusNginx) DeepCopyInto ¶
func (in *DrupalStatusNginx) DeepCopyInto(out *DrupalStatusNginx)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusNginxMetrics ¶
type DrupalStatusNginxMetrics struct {
// Current CPU metric for the Nginx deployment.
CPU int32 `json:"cpu,omitempty"`
}
DrupalStatusNginxMetrics identifies all nginx metric related status.
func (*DrupalStatusNginxMetrics) DeepCopy ¶
func (in *DrupalStatusNginxMetrics) DeepCopy() *DrupalStatusNginxMetrics
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusNginxMetrics.
func (*DrupalStatusNginxMetrics) DeepCopyInto ¶
func (in *DrupalStatusNginxMetrics) DeepCopyInto(out *DrupalStatusNginxMetrics)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusSMTP ¶ added in v0.2.0
type DrupalStatusSMTP struct {
Verification extensionsv1beta1.SMTPStatusVerification `json:"verification,omitempty"`
}
DrupalStatusSMTP provides the status for the SMTP service.
type DrupalStatusSecret ¶
type DrupalStatusSecret struct {
// Name of the secret.
Name string `json:"name,omitempty"`
// How many secrets are assigned to the application.
Count int `json:"count,omitempty"`
}
DrupalStatusSecret identifies specific secret related status.
func (*DrupalStatusSecret) DeepCopy ¶
func (in *DrupalStatusSecret) DeepCopy() *DrupalStatusSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusSecret.
func (*DrupalStatusSecret) DeepCopyInto ¶
func (in *DrupalStatusSecret) DeepCopyInto(out *DrupalStatusSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusSecrets ¶
type DrupalStatusSecrets struct {
// Status of the generated secrets.
Default DrupalStatusSecret `json:"default,omitempty"`
// Status of the user provided secrets.
Override DrupalStatusSecret `json:"override,omitempty"`
}
DrupalStatusSecrets identifies all secret related status.
func (*DrupalStatusSecrets) DeepCopy ¶
func (in *DrupalStatusSecrets) DeepCopy() *DrupalStatusSecrets
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusSecrets.
func (*DrupalStatusSecrets) DeepCopyInto ¶
func (in *DrupalStatusSecrets) DeepCopyInto(out *DrupalStatusSecrets)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusVolume ¶
type DrupalStatusVolume struct {
// Name of the volume.
Name string `json:"name,omitempty"`
// Current state of the volume.
Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty"`
}
DrupalStatusVolume identifies specific volume related status.
func (*DrupalStatusVolume) DeepCopy ¶
func (in *DrupalStatusVolume) DeepCopy() *DrupalStatusVolume
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusVolume.
func (*DrupalStatusVolume) DeepCopyInto ¶
func (in *DrupalStatusVolume) DeepCopyInto(out *DrupalStatusVolume)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DrupalStatusVolumes ¶
type DrupalStatusVolumes struct {
// Current state of the public filesystem volume.
Public DrupalStatusVolume `json:"public,omitempty"`
// Current state of the private filesystem volume.
Private DrupalStatusVolume `json:"private,omitempty"`
// Current state of the temporary filesystem volume.
Temporary DrupalStatusVolume `json:"temporary,omitempty"`
}
DrupalStatusVolumes identifies all volume related status.
func (*DrupalStatusVolumes) DeepCopy ¶
func (in *DrupalStatusVolumes) DeepCopy() *DrupalStatusVolumes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DrupalStatusVolumes.
func (*DrupalStatusVolumes) DeepCopyInto ¶
func (in *DrupalStatusVolumes) DeepCopyInto(out *DrupalStatusVolumes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.