svc

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 DockerConfig struct {
	Auths map[string]struct {
		Username string
		Password string
		Auth     string
	}
}

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 (w WordPress) CreateDbPasswordSecret(successMessage, existsMessage string) *corev1.Secret

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 (w WordPress) CreateNamespace(successMessage, existsMessage string) *corev1.Namespace

func (WordPress) CreatePvc

func (w WordPress) CreatePvc(successMessage, existsMessage string) *corev1.PersistentVolumeClaim

func (WordPress) CreateRegistryAuthSecret

func (w WordPress) CreateRegistryAuthSecret(successMessage, existsMessage, noContainerRegistryCredsMessage string) *corev1.Secret

func (WordPress) CreateService

func (w WordPress) CreateService(successMessage, existsMessage string) *corev1.Service

func (WordPress) GetDeploymentUrl

func (w WordPress) GetDeploymentUrl() string

func (WordPress) IsDeploymentReady added in v0.3.0

func (w WordPress) IsDeploymentReady() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL