v1alpha1

package
v0.0.0-...-1feb30d Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the ghost v1alpha1 API group +kubebuilder:object:generate=true +groupName=ghost.vaxly.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ghost.vaxly.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Blog

type Blog struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   BlogSpec   `json:"spec,omitempty"`
	Status BlogStatus `json:"status,omitempty"`
}

Blog is the Schema for the blogs API

func (*Blog) DeepCopy

func (in *Blog) DeepCopy() *Blog

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Blog.

func (*Blog) DeepCopyInto

func (in *Blog) DeepCopyInto(out *Blog)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Blog) DeepCopyObject

func (in *Blog) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BlogList

type BlogList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Blog `json:"items"`
}

BlogList contains a list of Blog

func (*BlogList) DeepCopy

func (in *BlogList) DeepCopy() *BlogList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlogList.

func (*BlogList) DeepCopyInto

func (in *BlogList) DeepCopyInto(out *BlogList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*BlogList) DeepCopyObject

func (in *BlogList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type BlogSpec

type BlogSpec struct {
	// Ghost deployment repicas
	// +optional
	Replicas *int32 `json:"replicas,omitempty"`
	// Ghost container image, by default using latest ghost image from docker hub registry.
	// NOTE: This operator only support ghost image from docker official image. https://hub.docker.com/_/ghost/
	// +optional
	Image string `json:"image,omitempty"`
	// Ghost configuration. This field will be written as ghost configuration. Saved in configmap and mounted
	// in /etc/ghost/config/config.json and symlinked to /var/lib/ghost/config.production.json
	Config GhostConfig `json:"config"`
	// +optional
	Persistent GhostPersistent `json:"persistent,omitempty"`
	// +optional
	Ingress GhostIngress `json:"ingress,omitempty"`

	ServiceType corev1.ServiceType `json:"serviceType,omitempty"`
}

BlogSpec defines the desired state of Blog +k8s:openapi-gen=true

func (*BlogSpec) DeepCopy

func (in *BlogSpec) DeepCopy() *BlogSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlogSpec.

func (*BlogSpec) DeepCopyInto

func (in *BlogSpec) DeepCopyInto(out *BlogSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BlogStatus

type BlogStatus struct {
	Replicas int32  `json:"replicas,omitempty"`
	DBHost   string `json:"dbHost,omitempty"`
}

BlogStatus defines the observed state of Blog +k8s:openapi-gen=true

func (*BlogStatus) DeepCopy

func (in *BlogStatus) DeepCopy() *BlogStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BlogStatus.

func (*BlogStatus) DeepCopyInto

func (in *BlogStatus) DeepCopyInto(out *BlogStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostConfig

type GhostConfig struct {
	Mail     Mail          `json:"mail"`
	URL      string        `json:"url"`
	Logging  Logging       `json:"logging"`
	Server   GhostServer   `json:"server"`
	Database GhostDatabase `json:"database"`
}

GhostConfig defines related ghost configuration based on https://ghost.org/docs/concepts/config

func (*GhostConfig) DeepCopy

func (in *GhostConfig) DeepCopy() *GhostConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostConfig.

func (*GhostConfig) DeepCopyInto

func (in *GhostConfig) DeepCopyInto(out *GhostConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostDatabase

type GhostDatabase struct {
	// Client is ghost database client.
	// +kubebuilder:validation:Enum=sqlite3;mysql
	Client string `json:"client"`
	// +optional
	Connection GhostDatabaseConnection `json:"connection"`
}

GhostDatabase defines ghost database config.

func (*GhostDatabase) DeepCopy

func (in *GhostDatabase) DeepCopy() *GhostDatabase

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostDatabase.

func (*GhostDatabase) DeepCopyInto

func (in *GhostDatabase) DeepCopyInto(out *GhostDatabase)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostDatabaseConnection

type GhostDatabaseConnection struct {
	// sqlite filename.
	// +optional
	Filename string `json:"filename,omitempty"`
	// mysql host
	// +optional
	Host string `json:"host,omitempty"`
	// mysql port
	// +optional
	Port intstr.IntOrString `json:"port,omitempty"`
	// mysql database user
	// +optional
	User string `json:"user,omitempty"`
	// mysql database password of user
	// +optional
	Password string `json:"password,omitempty"`
	// mysql database name
	// +optional
	Database string `json:"database,omitempty"`
}

GhostDatabaseConnection defines ghost database connection.

func (*GhostDatabaseConnection) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostDatabaseConnection.

func (*GhostDatabaseConnection) DeepCopyInto

func (in *GhostDatabaseConnection) DeepCopyInto(out *GhostDatabaseConnection)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostIngress

type GhostIngress struct {
	Enabled bool `json:"enabled"`
	// +optional
	// +listType=set
	Hosts []string `json:"hosts,omitempty"`
	// +optional
	TLS GhostIngressTLS `json:"tls,omitempty"`
	// Additional annotations passed to ".metadata.annotations" in networking.k8s.io/ingress object.
	// This is useful for configuring ingress through annotation field like: ingress-class, static-ip, etc
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`
}

GhostIngress defines ingress

func (*GhostIngress) DeepCopy

func (in *GhostIngress) DeepCopy() *GhostIngress

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostIngress.

func (*GhostIngress) DeepCopyInto

func (in *GhostIngress) DeepCopyInto(out *GhostIngress)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostIngressTLS

type GhostIngressTLS struct {
	Enabled    bool   `json:"enabled"`
	SecretName string `json:"secretName"`
}

GhostIngressTLS defines ingress tls

func (*GhostIngressTLS) DeepCopy

func (in *GhostIngressTLS) DeepCopy() *GhostIngressTLS

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostIngressTLS.

func (*GhostIngressTLS) DeepCopyInto

func (in *GhostIngressTLS) DeepCopyInto(out *GhostIngressTLS)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostPersistent

type GhostPersistent struct {
	Enabled bool `json:"enabled"`
	// If not defined, default will be used
	StorageClass *string `json:"storageClass,omitempty"`
	// size of storage
	Size resource.Quantity `json:"size"`
}

GhostPersistent defines peristent volume

func (*GhostPersistent) DeepCopy

func (in *GhostPersistent) DeepCopy() *GhostPersistent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostPersistent.

func (*GhostPersistent) DeepCopyInto

func (in *GhostPersistent) DeepCopyInto(out *GhostPersistent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GhostServer

type GhostServer struct {
	Host string             `json:"host"`
	Port intstr.IntOrString `json:"port"`
}

func (*GhostServer) DeepCopy

func (in *GhostServer) DeepCopy() *GhostServer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GhostServer.

func (*GhostServer) DeepCopyInto

func (in *GhostServer) DeepCopyInto(out *GhostServer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Logging

type Logging struct {
	Transports []string `json:"transports"`
}

Logging defines ghost logging type config.

func (*Logging) DeepCopy

func (in *Logging) DeepCopy() *Logging

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Logging.

func (*Logging) DeepCopyInto

func (in *Logging) DeepCopyInto(out *Logging)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Mail

type Mail struct {
	Transport string `json:"transport"`
}

Mail defines ghost mail config.

func (*Mail) DeepCopy

func (in *Mail) DeepCopy() *Mail

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mail.

func (*Mail) DeepCopyInto

func (in *Mail) DeepCopyInto(out *Mail)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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