Documentation ¶
Index ¶
- Constants
- type DockerConfig
- type WordPress
- func (w WordPress) CreateDbPasswordSecret(successMessage, existsMessage string) *corev1.Secret
- func (w WordPress) CreateDeployment(successMessage, existsMessage string) *appsv1.Deployment
- func (w WordPress) CreateIngress(successMessage, existsMessage string) *networkingv1.Ingress
- func (w WordPress) CreateNamespace(successMessage, existsMessage string) *corev1.Namespace
- func (w WordPress) CreatePvc(successMessage, existsMessage string) *corev1.PersistentVolumeClaim
- func (w WordPress) CreateRegistryAuthSecret(successMessage, existsMessage, noContainerRegistryCredsMessage string) *corev1.Secret
- func (w WordPress) CreateService(successMessage, existsMessage string) *corev1.Service
- func (w WordPress) GetDeploymentUrl() string
- func (w WordPress) IsDeploymentReady() bool
Constants ¶
View Source
const ( WP_PLACEHOLDER_NAMESPACE = "myproject" WP_PLACEHOLDER_DEPLOYMENT = "wordpress" WP_PLACEHOLDER_WP_UPLOADS = "2" WP_PLACEHOLDER_HOSTNAME = "myproject.example.com" WP_PLACEHOLDER_DB_HOST = "db.namespace.svc.cluster.local" WP_PLACEHOLDER_DB_NAME = "my_project" WP_PLACEHOLDER_DB_USER = "root" K8S_PVC_NAME = "wp-uploads" K8S_DB_SECRET_KEY = "WORDPRESS_DB_PASSWORD" K8S_DB_SECRET_NAME = "wp-db-password" K8S_REGISTRY_SECRET_NAME = "wp-registry-auth" K8S_CLUSTER_ISSUER_NAME = "letsencrypt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerConfig ¶
type WordPress ¶
type WordPress struct { Namespace string DeploymentName string UploadsVolSize string ContainerImage string ContainerRegistryUri string ContainerRegistryUser string ContainerRegistryPass string Hostname string IngressTls bool DatabaseHost string DatabaseName string DatabaseUser string DatabasePass string Clientset *kubernetes.Clientset }
func (WordPress) CreateDbPasswordSecret ¶
func (WordPress) CreateDeployment ¶
func (w WordPress) CreateDeployment(successMessage, existsMessage string) *appsv1.Deployment
func (WordPress) CreateIngress ¶
func (w WordPress) CreateIngress(successMessage, existsMessage string) *networkingv1.Ingress
func (WordPress) CreateNamespace ¶
func (WordPress) CreatePvc ¶
func (w WordPress) CreatePvc(successMessage, existsMessage string) *corev1.PersistentVolumeClaim
func (WordPress) CreateRegistryAuthSecret ¶
func (WordPress) CreateService ¶
func (WordPress) GetDeploymentUrl ¶
func (WordPress) IsDeploymentReady ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.