Documentation
¶
Index ¶
- Constants
- type CronJob
- func (in *CronJob) DeepCopy() *CronJob
- func (in *CronJob) DeepCopyInto(out *CronJob)
- func (w *CronJob) GetConfig() settings.Config
- func (w *CronJob) GetMeta() meta.Instance
- func (w *CronJob) GetObjects() map[int]objects.Object
- func (w *CronJob) HasSettings() []string
- func (w *CronJob) Init()
- func (w *CronJob) SetDefaults()
- type HTTPBackend
- func (in *HTTPBackend) DeepCopy() *HTTPBackend
- func (in *HTTPBackend) DeepCopyInto(out *HTTPBackend)
- func (b *HTTPBackend) GetIngressBackendPaths() []networkingv1beta1.HTTPIngressPath
- func (b *HTTPBackend) GetIngressRule() networkingv1beta1.IngressRule
- func (b *HTTPBackend) GetIngressSpec() *networkingv1beta1.IngressSpec
- func (b *HTTPBackend) GetIngressTLS() networkingv1beta1.IngressTLS
- type InternalWorkload
- func (in *InternalWorkload) DeepCopy() *InternalWorkload
- func (in *InternalWorkload) DeepCopyInto(out *InternalWorkload)
- func (w *InternalWorkload) GetConfig() settings.Config
- func (w *InternalWorkload) GetMeta() meta.Instance
- func (w *InternalWorkload) GetObjects() map[int]objects.Object
- func (w *InternalWorkload) HasSettings() []string
- func (w *InternalWorkload) Init()
- func (w *InternalWorkload) SetDefaults()
- type Job
- type Jobs
- type Network
- type Workload
- func (in *Workload) DeepCopy() *Workload
- func (in *Workload) DeepCopyInto(out *Workload)
- func (w *Workload) GetConfig() settings.Config
- func (w *Workload) GetMeta() meta.Instance
- func (w *Workload) GetObjects() map[int]objects.Object
- func (w *Workload) HasSettings() []string
- func (w *Workload) Init()
- func (w *Workload) SetDefaults()
Constants ¶
const DefaultComponent string = "app"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJob ¶
type CronJob struct {
*cronjob.CronJob `json:",inline"`
Settings []string `json:"settings,omitempty"`
}
+kubebuilder:object:generate=true
func (*CronJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob.
func (*CronJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronJob) HasSettings ¶
func (*CronJob) SetDefaults ¶
func (w *CronJob) SetDefaults()
type HTTPBackend ¶
type HTTPBackend struct {
*service.ServiceSpec `json:",inline"`
// Specifies the name of the referenced service.
// +optional
ServiceName string `json:"serviceName,omitempty" protobuf:"bytes,1,opt,name=serviceName"`
// Host is the fully qualified domain name of a network host, as defined by RFC 3986.
// Note the following deviations from the "host" part of the
// URI as defined in RFC 3986:
// 1. IPs are not allowed. Currently an IngressRuleValue can only apply to
// the IP in the Spec of the parent Ingress.
// 2. The `:` delimiter is not respected because ports are not allowed.
// Currently the port of an Ingress is implicitly :80 for http and
// :443 for https.
// Both these may change in the future.
// Incoming requests are matched against the host before the
// IngressRuleValue. If the host is unspecified, the Ingress routes all
// traffic based on the specified IngressRuleValue.
//
// Host can be "precise" which is a domain name without the terminating dot of
// a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
// prefixed with a single wildcard label (e.g. "*.foo.com").
// The wildcard character '*' must appear by itself as the first DNS label and
// matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
// Requests will be matched against the Host field in the following way:
// 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
// 2. If Host is a wildcard, then the request matches this rule if the http host header
// is to equal to the suffix (removing the first label) of the wildcard rule.
// +optional
Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"`
// Path is matched against the path of an incoming request. Currently it can
// contain characters disallowed from the conventional "path" part of a URL
// as defined by RFC 3986. Paths must begin with a '/'. When unspecified,
// all paths from incoming requests are matched.
// +optional
Paths []string `json:"routes,omitempty"`
// TLS specifies if tls is enabled
TLS bool `json:"tls,omitempty"`
// SecretName is the name of the secret used to terminate TLS traffic on
// port 443. Field is left optional to allow TLS routing based on SNI
// hostname alone. If the SNI host in a listener conflicts with the "Host"
// header field used by an IngressRule, the SNI host is used for termination
// and value of the Host header is used for routing.
// +optional
TLSSecretRef string `json:"tlsSecretRef,omitempty" protobuf:"bytes,2,opt,name=tlsSecretRef"`
}
+kubebuilder:object:generate=true
func (*HTTPBackend) DeepCopy ¶
func (in *HTTPBackend) DeepCopy() *HTTPBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPBackend.
func (*HTTPBackend) DeepCopyInto ¶
func (in *HTTPBackend) DeepCopyInto(out *HTTPBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPBackend) GetIngressBackendPaths ¶
func (b *HTTPBackend) GetIngressBackendPaths() []networkingv1beta1.HTTPIngressPath
func (*HTTPBackend) GetIngressRule ¶
func (b *HTTPBackend) GetIngressRule() networkingv1beta1.IngressRule
func (*HTTPBackend) GetIngressSpec ¶
func (b *HTTPBackend) GetIngressSpec() *networkingv1beta1.IngressSpec
func (*HTTPBackend) GetIngressTLS ¶
func (b *HTTPBackend) GetIngressTLS() networkingv1beta1.IngressTLS
type InternalWorkload ¶
type InternalWorkload struct {
*meta.ObjectMeta `json:"commonMeta,omitempty"`
*deployment.Deployment `json:"deployment,omitempty"`
*service.Service `json:"service,omitempty"`
Settings []string `json:"settings,omitempty"`
}
+kubebuilder:object:generate=true InternalWorkload implements the component interface. It is a component that contains a deployment, service and some settings.
func (*InternalWorkload) DeepCopy ¶
func (in *InternalWorkload) DeepCopy() *InternalWorkload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalWorkload.
func (*InternalWorkload) DeepCopyInto ¶
func (in *InternalWorkload) DeepCopyInto(out *InternalWorkload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InternalWorkload) GetConfig ¶
func (w *InternalWorkload) GetConfig() settings.Config
func (*InternalWorkload) GetMeta ¶
func (w *InternalWorkload) GetMeta() meta.Instance
GetMeta returns the meta.Instance interface
func (*InternalWorkload) GetObjects ¶
func (w *InternalWorkload) GetObjects() map[int]objects.Object
GetObjects returns an ordered list of objects.Object interfaces
func (*InternalWorkload) HasSettings ¶
func (w *InternalWorkload) HasSettings() []string
HasSettings returns a list of settings name that the component depends on
func (*InternalWorkload) Init ¶
func (w *InternalWorkload) Init()
func (*InternalWorkload) SetDefaults ¶
func (w *InternalWorkload) SetDefaults()
SetDefaults sets the default values of the component. Container ports are set from service if not specified
type Job ¶
+kubebuilder:object:generate=true
func (*Job) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) HasSettings ¶
func (*Job) SetDefaults ¶
func (w *Job) SetDefaults()
type Jobs ¶
type Jobs struct {
*meta.ObjectMeta `json:"commonMeta,omitempty"`
Install *Job `json:"install,omitempty"`
Upgrade *Job `json:"upgrade,omitempty"`
}
+kubebuilder:object:generate=true
func (*Jobs) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Jobs.
func (*Jobs) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Network ¶
type Network struct {
IngressMeta *meta.ObjectMeta `json:"ingressMeta,omitempty"`
ServiceMeta *meta.ObjectMeta `json:"serviceMeta,omitempty"`
*HTTPBackend `json:",inline"`
}
+kubebuilder:object:generate=true
func (*Network) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Network) GetIngress ¶
func (*Network) GetService ¶
type Workload ¶
type Workload struct {
*meta.ObjectMeta `json:"commonMeta,omitempty"`
*deployment.Deployment `json:"deployment,omitempty"`
*Network `json:"network,omitempty"`
Settings []string `json:"settings,omitempty"`
}
+kubebuilder:object:generate=true
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Workload) HasSettings ¶
func (*Workload) SetDefaults ¶
func (w *Workload) SetDefaults()