Help us shape the future of Go! Take the 2026 Go Developer Survey

v1beta1

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1beta1 contains API Schema definitions for the app.stacks v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=app.stacks

Package v1beta1 contains API Schema definitions for the app.stacks v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=app.stacks

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "app.stacks", Version: "v1beta1"}

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

Functions

Types

type Certificate

type Certificate struct {
	// CommonName is a common name to be used on the Certificate.
	// The CommonName should have a length of 64 characters or fewer to avoid
	// generating invalid CSRs.
	// +optional
	CommonName string `json:"commonName,omitempty"`

	// Organization is the organization to be used on the Certificate
	// +optional
	Organization []string `json:"organization,omitempty"`

	// Certificate default Duration
	// +optional
	Duration *metav1.Duration `json:"duration,omitempty"`

	// Certificate renew before expiration duration
	// +optional
	RenewBefore *metav1.Duration `json:"renewBefore,omitempty"`

	// DNSNames is a list of subject alt names to be used on the Certificate.
	// +optional
	DNSNames []string `json:"dnsNames,omitempty"`

	// IPAddresses is a list of IP addresses to be used on the Certificate
	// +optional
	IPAddresses []string `json:"ipAddresses,omitempty"`

	// URISANs is a list of URI Subject Alternative Names to be set on this
	// Certificate.
	// +optional
	URISANs []string `json:"uriSANs,omitempty"`

	// SecretName is the name of the secret resource to store this secret in
	SecretName string `json:"secretName,omitempty"`

	// IssuerRef is a reference to the issuer for this certificate.
	// If the 'kind' field is not set, or set to 'Issuer', an Issuer resource
	// with the given name in the same namespace as the Certificate will be used.
	// If the 'kind' field is set to 'ClusterIssuer', a ClusterIssuer with the
	// provided name will be used.
	// The 'name' field in this stanza is required at all times.
	IssuerRef cmmeta.ObjectReference `json:"issuerRef,omitempty"`

	// IsCA will mark this Certificate as valid for signing.
	// This implies that the 'cert sign' usage is set
	// +optional
	IsCA bool `json:"isCA,omitempty"`

	// Usages is the set of x509 actions that are enabled for a given key. Defaults are ('digital signature', 'key encipherment') if empty
	// +optional
	Usages []certmngrv1alpha2.KeyUsage `json:"usages,omitempty"`

	// KeySize is the key bit size of the corresponding private key for this certificate.
	// If provided, value must be between 2048 and 8192 inclusive when KeyAlgorithm is
	// empty or is set to "rsa", and value must be one of (256, 384, 521) when
	// KeyAlgorithm is set to "ecdsa".
	// +optional
	KeySize int `json:"keySize,omitempty"`

	// KeyAlgorithm is the private key algorithm of the corresponding private key
	// for this certificate. If provided, allowed values are either "rsa" or "ecdsa"
	// If KeyAlgorithm is specified and KeySize is not provided,
	// key size of 256 will be used for "ecdsa" key algorithm and
	// key size of 2048 will be used for "rsa" key algorithm.
	// +optional
	KeyAlgorithm certmngrv1alpha2.KeyAlgorithm `json:"keyAlgorithm,omitempty"`

	// KeyEncoding is the private key cryptography standards (PKCS)
	// for this certificate's private key to be encoded in. If provided, allowed
	// values are "pkcs1" and "pkcs8" standing for PKCS#1 and PKCS#8, respectively.
	// If KeyEncoding is not specified, then PKCS#1 will be used by default.
	KeyEncoding certmngrv1alpha2.KeyEncoding `json:"keyEncoding,omitempty"`
}

Certificate is used to request certificates

func (*Certificate) DeepCopy

func (in *Certificate) DeepCopy() *Certificate

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

func (*Certificate) DeepCopyInto

func (in *Certificate) DeepCopyInto(out *Certificate)

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

func (*Certificate) GetSpec

GetSpec returns certificate spec

type RuntimeComponent

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

	Spec   RuntimeComponentSpec   `json:"spec,omitempty"`
	Status RuntimeComponentStatus `json:"status,omitempty"`
}

RuntimeComponent is the Schema for the runtimecomponents API +k8s:openapi-gen=true +kubebuilder:resource:path=runtimecomponents,scope=Namespaced,shortName=comp;comps +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Image",type="string",JSONPath=".spec.applicationImage",priority=0,description="Absolute name of the deployed image containing registry and tag" +kubebuilder:printcolumn:name="Exposed",type="boolean",JSONPath=".spec.expose",priority=0,description="Specifies whether deployment is exposed externally via default Route" +kubebuilder:printcolumn:name="Reconciled",type="string",JSONPath=".status.conditions[?(@.type=='Reconciled')].status",priority=0,description="Status of the reconcile condition" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Reconciled')].reason",priority=1,description="Reason for the failure of reconcile condition" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Reconciled')].message",priority=1,description="Failure message from reconcile condition" +kubebuilder:printcolumn:name="DependenciesSatisfied",type="string",JSONPath=".status.conditions[?(@.type=='DependenciesSatisfied')].status",priority=1,description="Status of the application dependencies" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",priority=0,description="Age of the resource"

func (*RuntimeComponent) DeepCopy

func (in *RuntimeComponent) DeepCopy() *RuntimeComponent

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

func (*RuntimeComponent) DeepCopyInto

func (in *RuntimeComponent) DeepCopyInto(out *RuntimeComponent)

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

func (*RuntimeComponent) DeepCopyObject

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

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

func (*RuntimeComponent) GetAnnotations

func (cr *RuntimeComponent) GetAnnotations() map[string]string

GetAnnotations returns set of annotations to be added to all resources

func (*RuntimeComponent) GetApplicationImage

func (cr *RuntimeComponent) GetApplicationImage() string

GetApplicationImage returns application image

func (*RuntimeComponent) GetApplicationName

func (cr *RuntimeComponent) GetApplicationName() string

GetApplicationName returns Application name to be used for integration with kAppNav

func (*RuntimeComponent) GetArchitecture

func (cr *RuntimeComponent) GetArchitecture() []string

GetArchitecture returns slice of architectures

func (*RuntimeComponent) GetAutoscaling

func (cr *RuntimeComponent) GetAutoscaling() common.BaseComponentAutoscaling

GetAutoscaling returns autoscaling settings

func (*RuntimeComponent) GetCreateAppDefinition

func (cr *RuntimeComponent) GetCreateAppDefinition() *bool

GetCreateAppDefinition returns a toggle for integration with kAppNav

func (*RuntimeComponent) GetCreateKnativeService

func (cr *RuntimeComponent) GetCreateKnativeService() *bool

GetCreateKnativeService returns flag that toggles Knative service

func (*RuntimeComponent) GetEnv

func (cr *RuntimeComponent) GetEnv() []corev1.EnvVar

GetEnv returns slice of environment variables

func (*RuntimeComponent) GetEnvFrom

func (cr *RuntimeComponent) GetEnvFrom() []corev1.EnvFromSource

GetEnvFrom returns slice of environment variables from source

func (*RuntimeComponent) GetExpose

func (cr *RuntimeComponent) GetExpose() *bool

GetExpose returns expose flag

func (*RuntimeComponent) GetGroupName

func (cr *RuntimeComponent) GetGroupName() string

GetGroupName returns group name to be used in labels and annotation

func (*RuntimeComponent) GetInitContainers

func (cr *RuntimeComponent) GetInitContainers() []corev1.Container

GetInitContainers returns list of init containers

func (*RuntimeComponent) GetLabels

func (cr *RuntimeComponent) GetLabels() map[string]string

GetLabels returns set of labels to be added to all resources

func (*RuntimeComponent) GetLivenessProbe

func (cr *RuntimeComponent) GetLivenessProbe() *corev1.Probe

GetLivenessProbe returns liveness probe

func (*RuntimeComponent) GetMonitoring

func (cr *RuntimeComponent) GetMonitoring() common.BaseComponentMonitoring

GetMonitoring returns monitoring settings

func (*RuntimeComponent) GetPullPolicy

func (cr *RuntimeComponent) GetPullPolicy() *corev1.PullPolicy

GetPullPolicy returns image pull policy

func (*RuntimeComponent) GetPullSecret

func (cr *RuntimeComponent) GetPullSecret() *string

GetPullSecret returns secret name for docker registry credentials

func (*RuntimeComponent) GetReadinessProbe

func (cr *RuntimeComponent) GetReadinessProbe() *corev1.Probe

GetReadinessProbe returns readiness probe

func (*RuntimeComponent) GetReplicas

func (cr *RuntimeComponent) GetReplicas() *int32

GetReplicas returns number of replicas

func (*RuntimeComponent) GetResourceConstraints

func (cr *RuntimeComponent) GetResourceConstraints() *corev1.ResourceRequirements

GetResourceConstraints returns resource constraints

func (*RuntimeComponent) GetRoute

GetRoute returns route configuration for RuntimeComponent

func (*RuntimeComponent) GetService

func (cr *RuntimeComponent) GetService() common.BaseComponentService

GetService returns service settings

func (*RuntimeComponent) GetServiceAccountName

func (cr *RuntimeComponent) GetServiceAccountName() *string

GetServiceAccountName returns service account name

func (*RuntimeComponent) GetSidecarContainers

func (cr *RuntimeComponent) GetSidecarContainers() []corev1.Container

GetSidecarContainers returns list of user specified containers

func (*RuntimeComponent) GetStatus

GetStatus returns RuntimeComponent status

func (*RuntimeComponent) GetStorage

func (cr *RuntimeComponent) GetStorage() common.BaseComponentStorage

GetStorage returns storage settings

func (*RuntimeComponent) GetVersion

func (cr *RuntimeComponent) GetVersion() string

GetVersion returns application version

func (*RuntimeComponent) GetVolumeMounts

func (cr *RuntimeComponent) GetVolumeMounts() []corev1.VolumeMount

GetVolumeMounts returns volume mounts slice

func (*RuntimeComponent) GetVolumes

func (cr *RuntimeComponent) GetVolumes() []corev1.Volume

GetVolumes returns volumes slice

func (*RuntimeComponent) Initialize

func (cr *RuntimeComponent) Initialize()

Initialize the RuntimeComponent instance

type RuntimeComponentAutoScaling

type RuntimeComponentAutoScaling struct {
	TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"`
	MinReplicas                    *int32 `json:"minReplicas,omitempty"`

	// +kubebuilder:validation:Minimum=1
	MaxReplicas int32 `json:"maxReplicas,omitempty"`
}

RuntimeComponentAutoScaling ... +k8s:openapi-gen=true

func (*RuntimeComponentAutoScaling) DeepCopy

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

func (*RuntimeComponentAutoScaling) DeepCopyInto

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

func (*RuntimeComponentAutoScaling) GetMaxReplicas

func (a *RuntimeComponentAutoScaling) GetMaxReplicas() int32

GetMaxReplicas returns maximum replicas

func (*RuntimeComponentAutoScaling) GetMinReplicas

func (a *RuntimeComponentAutoScaling) GetMinReplicas() *int32

GetMinReplicas returns minimum replicas

func (*RuntimeComponentAutoScaling) GetTargetCPUUtilizationPercentage

func (a *RuntimeComponentAutoScaling) GetTargetCPUUtilizationPercentage() *int32

GetTargetCPUUtilizationPercentage returns target cpu usage

type RuntimeComponentList

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

RuntimeComponentList contains a list of RuntimeComponent

func (*RuntimeComponentList) DeepCopy

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

func (*RuntimeComponentList) DeepCopyInto

func (in *RuntimeComponentList) DeepCopyInto(out *RuntimeComponentList)

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

func (*RuntimeComponentList) DeepCopyObject

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

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

type RuntimeComponentMonitoring

type RuntimeComponentMonitoring struct {
	Labels    map[string]string       `json:"labels,omitempty"`
	Endpoints []prometheusv1.Endpoint `json:"endpoints,omitempty"`
}

RuntimeComponentMonitoring ...

func (*RuntimeComponentMonitoring) DeepCopy

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

func (*RuntimeComponentMonitoring) DeepCopyInto

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

func (*RuntimeComponentMonitoring) GetEndpoints

func (m *RuntimeComponentMonitoring) GetEndpoints() []prometheusv1.Endpoint

GetEndpoints returns endpoints to be added to ServiceMonitor

func (*RuntimeComponentMonitoring) GetLabels

func (m *RuntimeComponentMonitoring) GetLabels() map[string]string

GetLabels returns labels to be added on ServiceMonitor

type RuntimeComponentRoute

type RuntimeComponentRoute struct {
	Annotations                   map[string]string                          `json:"annotations,omitempty"`
	Termination                   *routev1.TLSTerminationType                `json:"termination,omitempty"`
	InsecureEdgeTerminationPolicy *routev1.InsecureEdgeTerminationPolicyType `json:"insecureEdgeTerminationPolicy,omitempty"`
	Certificate                   *Certificate                               `json:"certificate,omitempty"`
	CertificateSecretRef          *string                                    `json:"certificateSecretRef,omitempty"`
	Host                          string                                     `json:"host,omitempty"`
	Path                          string                                     `json:"path,omitempty"`
}

RuntimeComponentRoute ... +k8s:openapi-gen=true

func (*RuntimeComponentRoute) DeepCopy

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

func (*RuntimeComponentRoute) DeepCopyInto

func (in *RuntimeComponentRoute) DeepCopyInto(out *RuntimeComponentRoute)

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

func (*RuntimeComponentRoute) GetAnnotations

func (r *RuntimeComponentRoute) GetAnnotations() map[string]string

GetAnnotations returns route annotations

func (*RuntimeComponentRoute) GetCertificate

func (r *RuntimeComponentRoute) GetCertificate() common.Certificate

GetCertificate returns certficate spec for route

func (*RuntimeComponentRoute) GetCertificateSecretRef

func (r *RuntimeComponentRoute) GetCertificateSecretRef() *string

GetCertificateSecretRef returns a secret reference with a certificate

func (*RuntimeComponentRoute) GetHost

func (r *RuntimeComponentRoute) GetHost() string

GetHost returns hostname to be used by the route

func (*RuntimeComponentRoute) GetInsecureEdgeTerminationPolicy

func (r *RuntimeComponentRoute) GetInsecureEdgeTerminationPolicy() *routev1.InsecureEdgeTerminationPolicyType

GetInsecureEdgeTerminationPolicy returns terminatation of the route's TLS

func (*RuntimeComponentRoute) GetPath

func (r *RuntimeComponentRoute) GetPath() string

GetPath returns path to use for the route

func (*RuntimeComponentRoute) GetTermination

func (r *RuntimeComponentRoute) GetTermination() *routev1.TLSTerminationType

GetTermination returns terminatation of the route's TLS

type RuntimeComponentService

type RuntimeComponentService struct {
	Type *corev1.ServiceType `json:"type,omitempty"`

	// +kubebuilder:validation:Maximum=65536
	// +kubebuilder:validation:Minimum=1
	Port int32 `json:"port,omitempty"`

	PortName string `json:"portName,omitempty"`

	Annotations map[string]string `json:"annotations,omitempty"`
	// +listType=atomic
	Consumes []ServiceBindingConsumes `json:"consumes,omitempty"`
	Provides *ServiceBindingProvides  `json:"provides,omitempty"`
	// +k8s:openapi-gen=true
	Certificate          *Certificate `json:"certificate,omitempty"`
	CertificateSecretRef *string      `json:"certificateSecretRef,omitempty"`
}

RuntimeComponentService ... +k8s:openapi-gen=true

func (*RuntimeComponentService) DeepCopy

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

func (*RuntimeComponentService) DeepCopyInto

func (in *RuntimeComponentService) DeepCopyInto(out *RuntimeComponentService)

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

func (*RuntimeComponentService) GetAnnotations

func (s *RuntimeComponentService) GetAnnotations() map[string]string

GetAnnotations returns a set of annotations to be added to the service

func (*RuntimeComponentService) GetCertificate

func (s *RuntimeComponentService) GetCertificate() common.Certificate

GetCertificate returns services certificate configuration

func (*RuntimeComponentService) GetCertificateSecretRef

func (s *RuntimeComponentService) GetCertificateSecretRef() *string

GetCertificateSecretRef returns a secret reference with a certificate

func (*RuntimeComponentService) GetConsumes

GetConsumes returns a list of service consumers' configuration

func (*RuntimeComponentService) GetPort

func (s *RuntimeComponentService) GetPort() int32

GetPort returns service port

func (*RuntimeComponentService) GetPortName

func (s *RuntimeComponentService) GetPortName() string

GetPortName returns name of service port

func (*RuntimeComponentService) GetProvides

GetProvides returns service provider configuration

func (*RuntimeComponentService) GetType

GetType returns service type

type RuntimeComponentSpec

type RuntimeComponentSpec struct {
	Version          string                       `json:"version,omitempty"`
	ApplicationImage string                       `json:"applicationImage"`
	Replicas         *int32                       `json:"replicas,omitempty"`
	Autoscaling      *RuntimeComponentAutoScaling `json:"autoscaling,omitempty"`
	PullPolicy       *corev1.PullPolicy           `json:"pullPolicy,omitempty"`
	PullSecret       *string                      `json:"pullSecret,omitempty"`
	// +listType=map
	// +listMapKey=name
	Volumes []corev1.Volume `json:"volumes,omitempty"`
	// +listType=atomic
	VolumeMounts        []corev1.VolumeMount         `json:"volumeMounts,omitempty"`
	ResourceConstraints *corev1.ResourceRequirements `json:"resourceConstraints,omitempty"`
	ReadinessProbe      *corev1.Probe                `json:"readinessProbe,omitempty"`
	LivenessProbe       *corev1.Probe                `json:"livenessProbe,omitempty"`
	Service             *RuntimeComponentService     `json:"service,omitempty"`
	Expose              *bool                        `json:"expose,omitempty"`
	// +listType=atomic
	EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`
	// +listType=map
	// +listMapKey=name
	Env                []corev1.EnvVar `json:"env,omitempty"`
	ServiceAccountName *string         `json:"serviceAccountName,omitempty"`
	// +listType=set
	Architecture         []string                    `json:"architecture,omitempty"`
	Storage              *RuntimeComponentStorage    `json:"storage,omitempty"`
	CreateKnativeService *bool                       `json:"createKnativeService,omitempty"`
	Monitoring           *RuntimeComponentMonitoring `json:"monitoring,omitempty"`
	CreateAppDefinition  *bool                       `json:"createAppDefinition,omitempty"`
	ApplicationName      string                      `json:"applicationName,omitempty"`
	// +listType=map
	// +listMapKey=name
	InitContainers []corev1.Container `json:"initContainers,omitempty"`
	// +listType=map
	// +listMapKey=name
	SidecarContainers []corev1.Container     `json:"sidecarContainers,omitempty"`
	Route             *RuntimeComponentRoute `json:"route,omitempty"`
}

RuntimeComponentSpec defines the desired state of RuntimeComponent +k8s:openapi-gen=true

func (*RuntimeComponentSpec) DeepCopy

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

func (*RuntimeComponentSpec) DeepCopyInto

func (in *RuntimeComponentSpec) DeepCopyInto(out *RuntimeComponentSpec)

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

type RuntimeComponentStatus

type RuntimeComponentStatus struct {
	// +listType=atomic
	Conditions       []StatusCondition       `json:"conditions,omitempty"`
	ConsumedServices common.ConsumedServices `json:"consumedServices,omitempty"`
	ImageReference   string                  `json:"imageReference,omitempty"`
}

RuntimeComponentStatus defines the observed state of RuntimeComponent +k8s:openapi-gen=true

func (*RuntimeComponentStatus) DeepCopy

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

func (*RuntimeComponentStatus) DeepCopyInto

func (in *RuntimeComponentStatus) DeepCopyInto(out *RuntimeComponentStatus)

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

func (*RuntimeComponentStatus) GetCondition

GetCondition ...

func (*RuntimeComponentStatus) GetConditions

func (s *RuntimeComponentStatus) GetConditions() []common.StatusCondition

GetConditions returns slice of conditions

func (*RuntimeComponentStatus) GetConsumedServices

func (s *RuntimeComponentStatus) GetConsumedServices() common.ConsumedServices

GetConsumedServices returns a map of all the service names to be consumed by the application

func (*RuntimeComponentStatus) GetImageReference

func (s *RuntimeComponentStatus) GetImageReference() string

GetImageReference returns Docker image reference to be deployed by the CR

func (*RuntimeComponentStatus) NewCondition

func (s *RuntimeComponentStatus) NewCondition() common.StatusCondition

NewCondition returns new condition

func (*RuntimeComponentStatus) SetCondition

func (s *RuntimeComponentStatus) SetCondition(c common.StatusCondition)

SetCondition ...

func (*RuntimeComponentStatus) SetConsumedServices

func (s *RuntimeComponentStatus) SetConsumedServices(c common.ConsumedServices)

SetConsumedServices sets ConsumedServices

func (*RuntimeComponentStatus) SetImageReference

func (s *RuntimeComponentStatus) SetImageReference(imageReference string)

SetImageReference sets Docker image reference on the status portion of the CR

type RuntimeComponentStorage

type RuntimeComponentStorage struct {
	// +kubebuilder:validation:Pattern=^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$
	Size                string                        `json:"size,omitempty"`
	MountPath           string                        `json:"mountPath,omitempty"`
	VolumeClaimTemplate *corev1.PersistentVolumeClaim `json:"volumeClaimTemplate,omitempty"`
}

RuntimeComponentStorage ... +k8s:openapi-gen=false

func (*RuntimeComponentStorage) DeepCopy

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

func (*RuntimeComponentStorage) DeepCopyInto

func (in *RuntimeComponentStorage) DeepCopyInto(out *RuntimeComponentStorage)

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

func (*RuntimeComponentStorage) GetMountPath

func (s *RuntimeComponentStorage) GetMountPath() string

GetMountPath returns mount path for persistent volume

func (*RuntimeComponentStorage) GetSize

func (s *RuntimeComponentStorage) GetSize() string

GetSize returns persistent volume size

func (*RuntimeComponentStorage) GetVolumeClaimTemplate

func (s *RuntimeComponentStorage) GetVolumeClaimTemplate() *corev1.PersistentVolumeClaim

GetVolumeClaimTemplate returns a template representing requested persitent volume

type ServiceBindingAuth

type ServiceBindingAuth struct {
	// The secret that contains the username for authenticating
	Username corev1.SecretKeySelector `json:"username,omitempty"`
	// The secret that contains the password for authenticating
	Password corev1.SecretKeySelector `json:"password,omitempty"`
}

ServiceBindingAuth allows a service to provide authentication information

func (*ServiceBindingAuth) DeepCopy

func (in *ServiceBindingAuth) DeepCopy() *ServiceBindingAuth

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

func (*ServiceBindingAuth) DeepCopyInto

func (in *ServiceBindingAuth) DeepCopyInto(out *ServiceBindingAuth)

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

func (*ServiceBindingAuth) GetPassword

func (a *ServiceBindingAuth) GetPassword() corev1.SecretKeySelector

GetPassword returns password of a service binding auth object

func (*ServiceBindingAuth) GetUsername

func (a *ServiceBindingAuth) GetUsername() corev1.SecretKeySelector

GetUsername returns username of a service binding auth object

type ServiceBindingConsumes

type ServiceBindingConsumes struct {
	Name      string                        `json:"name"`
	Namespace string                        `json:"namespace,omitempty"`
	Category  common.ServiceBindingCategory `json:"category"`
	MountPath string                        `json:"mountPath,omitempty"`
}

ServiceBindingConsumes represents a service to be consumed +k8s:openapi-gen=true

func (*ServiceBindingConsumes) DeepCopy

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

func (*ServiceBindingConsumes) DeepCopyInto

func (in *ServiceBindingConsumes) DeepCopyInto(out *ServiceBindingConsumes)

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

func (*ServiceBindingConsumes) GetCategory

GetCategory returns category of a service consumer configuration

func (*ServiceBindingConsumes) GetMountPath

func (c *ServiceBindingConsumes) GetMountPath() string

GetMountPath returns mount path of a service consumer configuration

func (*ServiceBindingConsumes) GetName

func (c *ServiceBindingConsumes) GetName() string

GetName returns service name of a service consumer configuration

func (*ServiceBindingConsumes) GetNamespace

func (c *ServiceBindingConsumes) GetNamespace() string

GetNamespace returns namespace of a service consumer configuration

type ServiceBindingProvides

type ServiceBindingProvides struct {
	Category common.ServiceBindingCategory `json:"category"`
	Context  string                        `json:"context,omitempty"`
	Protocol string                        `json:"protocol,omitempty"`
	Auth     *ServiceBindingAuth           `json:"auth,omitempty"`
}

ServiceBindingProvides represents information about +k8s:openapi-gen=true

func (*ServiceBindingProvides) DeepCopy

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

func (*ServiceBindingProvides) DeepCopyInto

func (in *ServiceBindingProvides) DeepCopyInto(out *ServiceBindingProvides)

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

func (*ServiceBindingProvides) GetAuth

GetAuth returns secret of a service provider configuration

func (*ServiceBindingProvides) GetCategory

GetCategory returns category of a service provider configuration

func (*ServiceBindingProvides) GetContext

func (p *ServiceBindingProvides) GetContext() string

GetContext returns context of a service provider configuration

func (*ServiceBindingProvides) GetProtocol

func (p *ServiceBindingProvides) GetProtocol() string

GetProtocol returns protocol of a service provider configuration

type StatusCondition

type StatusCondition struct {
	LastTransitionTime *metav1.Time           `json:"lastTransitionTime,omitempty"`
	LastUpdateTime     metav1.Time            `json:"lastUpdateTime,omitempty"`
	Reason             string                 `json:"reason,omitempty"`
	Message            string                 `json:"message,omitempty"`
	Status             corev1.ConditionStatus `json:"status,omitempty"`
	Type               StatusConditionType    `json:"type,omitempty"`
}

StatusCondition ... +k8s:openapi-gen=true

func (*StatusCondition) DeepCopy

func (in *StatusCondition) DeepCopy() *StatusCondition

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

func (*StatusCondition) DeepCopyInto

func (in *StatusCondition) DeepCopyInto(out *StatusCondition)

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

func (*StatusCondition) GetLastTransitionTime

func (c *StatusCondition) GetLastTransitionTime() *metav1.Time

GetLastTransitionTime return time of last status change

func (*StatusCondition) GetLastUpdateTime

func (c *StatusCondition) GetLastUpdateTime() metav1.Time

GetLastUpdateTime return time of last status update

func (*StatusCondition) GetMessage

func (c *StatusCondition) GetMessage() string

GetMessage return condition's message

func (*StatusCondition) GetReason

func (c *StatusCondition) GetReason() string

GetReason return condition's message

func (*StatusCondition) GetStatus

func (c *StatusCondition) GetStatus() corev1.ConditionStatus

GetStatus return condition's status

func (*StatusCondition) GetType

GetType returns status condition type

func (*StatusCondition) SetLastTransitionTime

func (c *StatusCondition) SetLastTransitionTime(t *metav1.Time)

SetLastTransitionTime sets time of last status change

func (*StatusCondition) SetLastUpdateTime

func (c *StatusCondition) SetLastUpdateTime(t metav1.Time)

SetLastUpdateTime sets time of last status update

func (*StatusCondition) SetMessage

func (c *StatusCondition) SetMessage(m string)

SetMessage sets condition's message

func (*StatusCondition) SetReason

func (c *StatusCondition) SetReason(r string)

SetReason sets condition's reason

func (*StatusCondition) SetStatus

func (c *StatusCondition) SetStatus(s corev1.ConditionStatus)

SetStatus sets condition's status

func (*StatusCondition) SetType

SetType returns status condition type

type StatusConditionType

type StatusConditionType string

StatusConditionType ...

const (
	// StatusConditionTypeReconciled ...
	StatusConditionTypeReconciled StatusConditionType = "Reconciled"

	// StatusConditionTypeDependenciesSatisfied ...
	StatusConditionTypeDependenciesSatisfied StatusConditionType = "DependenciesSatisfied"
)

Jump to

Keyboard shortcuts

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