v1alpha1

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=apps.3scale.net

Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=apps.3scale.net

Index

Constants

View Source
const (
	ThreescaleVersionAnnotation = "apps.3scale.net/apimanager-threescale-version"
	OperatorVersionAnnotation   = "apps.3scale.net/threescale-operator-version"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "apps.3scale.net", Version: "v1alpha1"}

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

Functions

Types

type APIManager

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

	Spec   APIManagerSpec   `json:"spec,omitempty"`
	Status APIManagerStatus `json:"status,omitempty"`
}

APIManager is the Schema for the apimanagers API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*APIManager) DeepCopy

func (in *APIManager) DeepCopy() *APIManager

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

func (*APIManager) DeepCopyInto

func (in *APIManager) DeepCopyInto(out *APIManager)

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

func (*APIManager) DeepCopyObject

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

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

func (*APIManager) IsExternalDatabaseEnabled added in v0.5.0

func (apimanager *APIManager) IsExternalDatabaseEnabled() bool

func (*APIManager) IsPDBEnabled added in v0.5.0

func (apimanager *APIManager) IsPDBEnabled() bool

func (*APIManager) SetDefaults

func (apimanager *APIManager) SetDefaults() (bool, error)

SetDefaults sets the default values for the APIManager spec and returns true if the spec was changed

type APIManagerCommonSpec

type APIManagerCommonSpec struct {
	WildcardDomain string `json:"wildcardDomain"`
	// +optional
	AppLabel *string `json:"appLabel,omitempty"`
	// +optional
	TenantName *string `json:"tenantName,omitempty"`
	// +optional
	ImageStreamTagImportInsecure *bool `json:"imageStreamTagImportInsecure,omitempty"`
	// +optional
	ResourceRequirementsEnabled *bool `json:"resourceRequirementsEnabled,omitempty"`
}

func (*APIManagerCommonSpec) DeepCopy

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

func (*APIManagerCommonSpec) DeepCopyInto

func (in *APIManagerCommonSpec) DeepCopyInto(out *APIManagerCommonSpec)

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

type APIManagerCondition

type APIManagerCondition struct {
	Type   APIManagerConditionType `json:"type" description:"type of APIManager condition"`
	Status v1.ConditionStatus      `json:"status" description:"status of the condition, one of True, False, Unknown"` //TODO should be a custom ConditionStatus or the core v1 one?

}

func (*APIManagerCondition) DeepCopy

func (in *APIManagerCondition) DeepCopy() *APIManagerCondition

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

func (*APIManagerCondition) DeepCopyInto

func (in *APIManagerCondition) DeepCopyInto(out *APIManagerCondition)

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

type APIManagerConditionType

type APIManagerConditionType string
const (
	// Ready means the APIManager is available. This is, when all of its
	// elements are up and running
	APIManagerReady APIManagerConditionType = "Ready"
	// Progressing means the APIManager is being deployed
	APIManagerProgressing APIManagerConditionType = "Progressing"
)

type APIManagerList

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

APIManagerList contains a list of APIManager

func (*APIManagerList) DeepCopy

func (in *APIManagerList) DeepCopy() *APIManagerList

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

func (*APIManagerList) DeepCopyInto

func (in *APIManagerList) DeepCopyInto(out *APIManagerList)

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

func (*APIManagerList) DeepCopyObject

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

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

type APIManagerSpec

type APIManagerSpec struct {
	APIManagerCommonSpec `json:",inline"`
	// +optional
	Apicast *ApicastSpec `json:"apicast,omitempty"`
	// +optional
	Backend *BackendSpec `json:"backend,omitempty"`
	// +optional
	System *SystemSpec `json:"system,omitempty"`
	// +optional
	Zync *ZyncSpec `json:"zync,omitempty"`
	// +optional
	HighAvailability *HighAvailabilitySpec `json:"highAvailability,omitempty"`
	// +optional
	PodDisruptionBudget *PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"`
}

APIManagerSpec defines the desired state of APIManager +k8s:openapi-gen=true

func (*APIManagerSpec) DeepCopy

func (in *APIManagerSpec) DeepCopy() *APIManagerSpec

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

func (*APIManagerSpec) DeepCopyInto

func (in *APIManagerSpec) DeepCopyInto(out *APIManagerSpec)

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

type APIManagerStatus

type APIManagerStatus struct {
	Conditions  []APIManagerCondition `json:"conditions,omitempty" protobuf:"bytes,4,rep,name=conditions"`
	Deployments olm.DeploymentStatus  `json:"deployments"`
}

APIManagerStatus defines the observed state of APIManager +k8s:openapi-gen=true

func (*APIManagerStatus) DeepCopy

func (in *APIManagerStatus) DeepCopy() *APIManagerStatus

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

func (*APIManagerStatus) DeepCopyInto

func (in *APIManagerStatus) DeepCopyInto(out *APIManagerStatus)

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

type ApicastProductionSpec added in v0.4.0

type ApicastProductionSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*ApicastProductionSpec) DeepCopy added in v0.4.0

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

func (*ApicastProductionSpec) DeepCopyInto added in v0.4.0

func (in *ApicastProductionSpec) DeepCopyInto(out *ApicastProductionSpec)

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

type ApicastSpec

type ApicastSpec struct {
	// +optional
	ApicastManagementAPI *string `json:"managementAPI,omitempty"`
	// +optional
	OpenSSLVerify *bool `json:"openSSLVerify,omitempty"`
	// +optional
	IncludeResponseCodes *bool `json:"responseCodes,omitempty"`
	// +optional
	RegistryURL *string `json:"registryURL,omitempty"`
	// +optional
	Image *string `json:"image,omitempty"`
	// +optional
	ProductionSpec *ApicastProductionSpec `json:"productionSpec,omitempty"`
	// +optional
	StagingSpec *ApicastStagingSpec `json:"stagingSpec,omitempty"`
}

func (*ApicastSpec) DeepCopy

func (in *ApicastSpec) DeepCopy() *ApicastSpec

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

func (*ApicastSpec) DeepCopyInto

func (in *ApicastSpec) DeepCopyInto(out *ApicastSpec)

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

type ApicastStagingSpec added in v0.4.0

type ApicastStagingSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*ApicastStagingSpec) DeepCopy added in v0.4.0

func (in *ApicastStagingSpec) DeepCopy() *ApicastStagingSpec

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

func (*ApicastStagingSpec) DeepCopyInto added in v0.4.0

func (in *ApicastStagingSpec) DeepCopyInto(out *ApicastStagingSpec)

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

type BackendCronSpec added in v0.4.0

type BackendCronSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*BackendCronSpec) DeepCopy added in v0.4.0

func (in *BackendCronSpec) DeepCopy() *BackendCronSpec

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

func (*BackendCronSpec) DeepCopyInto added in v0.4.0

func (in *BackendCronSpec) DeepCopyInto(out *BackendCronSpec)

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

type BackendListenerSpec added in v0.4.0

type BackendListenerSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*BackendListenerSpec) DeepCopy added in v0.4.0

func (in *BackendListenerSpec) DeepCopy() *BackendListenerSpec

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

func (*BackendListenerSpec) DeepCopyInto added in v0.4.0

func (in *BackendListenerSpec) DeepCopyInto(out *BackendListenerSpec)

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

type BackendSpec

type BackendSpec struct {
	// +optional
	Image *string `json:"image,omitempty"`
	// +optional
	RedisImage *string `json:"redisImage,omitempty"`
	// +optional
	ListenerSpec *BackendListenerSpec `json:"listenerSpec,omitempty"`
	// +optional
	WorkerSpec *BackendWorkerSpec `json:"workerSpec,omitempty"`
	// +optional
	CronSpec *BackendCronSpec `json:"cronSpec,omitempty"`
}

func (*BackendSpec) DeepCopy

func (in *BackendSpec) DeepCopy() *BackendSpec

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

func (*BackendSpec) DeepCopyInto

func (in *BackendSpec) DeepCopyInto(out *BackendSpec)

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

type BackendWorkerSpec added in v0.4.0

type BackendWorkerSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*BackendWorkerSpec) DeepCopy added in v0.4.0

func (in *BackendWorkerSpec) DeepCopy() *BackendWorkerSpec

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

func (*BackendWorkerSpec) DeepCopyInto added in v0.4.0

func (in *BackendWorkerSpec) DeepCopyInto(out *BackendWorkerSpec)

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

type DeprecatedSystemS3Spec added in v0.5.0

type DeprecatedSystemS3Spec struct {
	// Deprecated
	AWSBucket string `json:"awsBucket"`
	// Deprecated
	AWSRegion string `json:"awsRegion"`
	// Deprecated
	AWSCredentials v1.LocalObjectReference `json:"awsCredentialsSecret"`
}

func (*DeprecatedSystemS3Spec) DeepCopy added in v0.5.0

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

func (*DeprecatedSystemS3Spec) DeepCopyInto added in v0.5.0

func (in *DeprecatedSystemS3Spec) DeepCopyInto(out *DeprecatedSystemS3Spec)

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

type HighAvailabilitySpec

type HighAvailabilitySpec struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*HighAvailabilitySpec) DeepCopy

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

func (*HighAvailabilitySpec) DeepCopyInto

func (in *HighAvailabilitySpec) DeepCopyInto(out *HighAvailabilitySpec)

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

type PodDisruptionBudgetSpec added in v0.5.0

type PodDisruptionBudgetSpec struct {
	Enabled bool `json:"enabled,omitempty"`
}

func (*PodDisruptionBudgetSpec) DeepCopy added in v0.5.0

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

func (*PodDisruptionBudgetSpec) DeepCopyInto added in v0.5.0

func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec)

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

type SystemAppSpec added in v0.4.0

type SystemAppSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*SystemAppSpec) DeepCopy added in v0.4.0

func (in *SystemAppSpec) DeepCopy() *SystemAppSpec

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

func (*SystemAppSpec) DeepCopyInto added in v0.4.0

func (in *SystemAppSpec) DeepCopyInto(out *SystemAppSpec)

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

type SystemDatabaseSpec

type SystemDatabaseSpec struct {
	// Union type. Only one of the fields can be set
	// +optional
	MySQL *SystemMySQLSpec `json:"mysql,omitempty"`
	// +optional
	PostgreSQL *SystemPostgreSQLSpec `json:"postgresql,omitempty"`
}

func (*SystemDatabaseSpec) DeepCopy

func (in *SystemDatabaseSpec) DeepCopy() *SystemDatabaseSpec

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

func (*SystemDatabaseSpec) DeepCopyInto

func (in *SystemDatabaseSpec) DeepCopyInto(out *SystemDatabaseSpec)

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

type SystemFileStorageSpec

type SystemFileStorageSpec struct {
	// Union type. Only one of the fields can be set.
	// +optional
	PVC *SystemPVCSpec `json:"persistentVolumeClaim,omitempty"`
	// +optional
	// Deprecated
	DeprecatedS3 *DeprecatedSystemS3Spec `json:"amazonSimpleStorageService,omitempty"`
	// +optional
	S3 *SystemS3Spec `json:"simpleStorageService,omitempty"`
}

func (*SystemFileStorageSpec) DeepCopy

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

func (*SystemFileStorageSpec) DeepCopyInto

func (in *SystemFileStorageSpec) DeepCopyInto(out *SystemFileStorageSpec)

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

type SystemMySQLSpec

type SystemMySQLSpec struct {
	// +optional
	Image *string `json:"image,omitempty"`
}

func (*SystemMySQLSpec) DeepCopy

func (in *SystemMySQLSpec) DeepCopy() *SystemMySQLSpec

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

func (*SystemMySQLSpec) DeepCopyInto

func (in *SystemMySQLSpec) DeepCopyInto(out *SystemMySQLSpec)

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

type SystemPVCSpec

type SystemPVCSpec struct {
	// +optional
	StorageClassName *string `json:"storageClassName,omitempty"`
}

func (*SystemPVCSpec) DeepCopy

func (in *SystemPVCSpec) DeepCopy() *SystemPVCSpec

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

func (*SystemPVCSpec) DeepCopyInto

func (in *SystemPVCSpec) DeepCopyInto(out *SystemPVCSpec)

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

type SystemPostgreSQLSpec added in v0.3.0

type SystemPostgreSQLSpec struct {
	// +optional
	Image *string `json:"image,omitempty"`
}

func (*SystemPostgreSQLSpec) DeepCopy added in v0.3.0

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

func (*SystemPostgreSQLSpec) DeepCopyInto added in v0.3.0

func (in *SystemPostgreSQLSpec) DeepCopyInto(out *SystemPostgreSQLSpec)

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

type SystemS3Spec

type SystemS3Spec struct {
	ConfigurationSecretRef v1.LocalObjectReference `json:"configurationSecretRef"`
}

func (*SystemS3Spec) DeepCopy

func (in *SystemS3Spec) DeepCopy() *SystemS3Spec

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

func (*SystemS3Spec) DeepCopyInto

func (in *SystemS3Spec) DeepCopyInto(out *SystemS3Spec)

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

type SystemSidekiqSpec added in v0.4.0

type SystemSidekiqSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*SystemSidekiqSpec) DeepCopy added in v0.4.0

func (in *SystemSidekiqSpec) DeepCopy() *SystemSidekiqSpec

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

func (*SystemSidekiqSpec) DeepCopyInto added in v0.4.0

func (in *SystemSidekiqSpec) DeepCopyInto(out *SystemSidekiqSpec)

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

type SystemSpec

type SystemSpec struct {
	// +optional
	Image *string `json:"image,omitempty"`

	// +optional
	MemcachedImage *string `json:"memcachedImage,omitempty"`

	// +optional
	RedisImage *string `json:"redisImage,omitempty"`

	FileStorageSpec *SystemFileStorageSpec `json:"fileStorage,omitempty"`

	// +optional
	DatabaseSpec *SystemDatabaseSpec `json:"database,omitempty"`

	AppSpec     *SystemAppSpec     `json:"appSpec,omitempty"`
	SidekiqSpec *SystemSidekiqSpec `json:"sidekiqSpec,omitempty"`
}

func (*SystemSpec) DeepCopy

func (in *SystemSpec) DeepCopy() *SystemSpec

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

func (*SystemSpec) DeepCopyInto

func (in *SystemSpec) DeepCopyInto(out *SystemSpec)

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

type ZyncAppSpec added in v0.4.0

type ZyncAppSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*ZyncAppSpec) DeepCopy added in v0.4.0

func (in *ZyncAppSpec) DeepCopy() *ZyncAppSpec

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

func (*ZyncAppSpec) DeepCopyInto added in v0.4.0

func (in *ZyncAppSpec) DeepCopyInto(out *ZyncAppSpec)

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

type ZyncQueSpec added in v0.4.0

type ZyncQueSpec struct {
	// +optional
	Replicas *int64 `json:"replicas,omitempty"`
}

func (*ZyncQueSpec) DeepCopy added in v0.4.0

func (in *ZyncQueSpec) DeepCopy() *ZyncQueSpec

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

func (*ZyncQueSpec) DeepCopyInto added in v0.4.0

func (in *ZyncQueSpec) DeepCopyInto(out *ZyncQueSpec)

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

type ZyncSpec

type ZyncSpec struct {
	// +optional
	Image *string `json:"image,omitempty"`
	// +optional
	PostgreSQLImage *string `json:"postgreSQLImage,omitempty"`

	// +optional
	AppSpec *ZyncAppSpec `json:"appSpec,omitempty"`

	// +optional
	QueSpec *ZyncQueSpec `json:"queSpec,omitempty"`
}

func (*ZyncSpec) DeepCopy

func (in *ZyncSpec) DeepCopy() *ZyncSpec

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

func (*ZyncSpec) DeepCopyInto

func (in *ZyncSpec) DeepCopyInto(out *ZyncSpec)

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