Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cloudstate v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloudstate.io
Index ¶
- Variables
- type CassandraCredentials
- type CassandraStore
- type CloudstateCondition
- type CloudstateConditionType
- type GcpCredentials
- type GoogleCloudSQLPostgresStorage
- type GoogleCloudSQLPostgresStorageType
- type GoogleCloudSQLPostgresStore
- type GoogleCloudSQLPostgresStoreStatus
- type PostgresCredentials
- type PostgresSSL
- type PostgresSSLMode
- type PostgresStore
- type PostgresStoreStatus
- type SpannerStore
- type StatefulService
- type StatefulServiceList
- type StatefulServiceSpec
- type StatefulServiceStatus
- type StatefulServiceStoreConfig
- type StatefulStore
- type StatefulStoreList
- type StatefulStoreSpec
- type StatefulStoreStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cloudstate.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 CassandraCredentials ¶
type CassandraCredentials struct { // Secret is the name of a secret in the local namespace to load the credentials from. // +optional Secret *corev1.LocalObjectReference `json:"secret,omitempty"` // UsernameKey is the key of the username in the secret. Defaults to username. // +optional UsernameKey string `json:"usernameKey,omitempty"` // PasswordKey is the key of the password in the secret. Defaults to password. // +optional PasswordKey string `json:"passwordKey,omitempty"` // KeyspaceKey is the key of the keyspace in the secret. Defaults to keyspace. // +optional KeyspaceKey string `json:"keyspaceKey,omitempty"` }
CassandraCredentials is the credentials for a Cassandra instance.
func (*CassandraCredentials) DeepCopy ¶
func (in *CassandraCredentials) DeepCopy() *CassandraCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraCredentials.
func (*CassandraCredentials) DeepCopyInto ¶
func (in *CassandraCredentials) DeepCopyInto(out *CassandraCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CassandraStore ¶
type CassandraStore struct { // Host to connect to. // +kubebuilder:validation:MinLength=1 // +optional Host string `json:"host,omitempty"` // Port to connect to. // Defaults to 9042. // +optional Port int32 `json:"port,omitempty"` // Credentials is a reference to a secret in the same namespace to use for // the username and password of the Cassandra database. // +optional Credentials *CassandraCredentials `json:"credentials,omitempty"` }
func (*CassandraStore) DeepCopy ¶
func (in *CassandraStore) DeepCopy() *CassandraStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CassandraStore.
func (*CassandraStore) DeepCopyInto ¶
func (in *CassandraStore) DeepCopyInto(out *CassandraStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudstateCondition ¶
type CloudstateCondition struct { // Type of deployment condition. Type CloudstateConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // The reason for the condition's last transition. Reason string `json:"reason"` // A human readable message indicating details about the transition. Message string `json:"message"` }
CloudstateCondition defines the possible conditions of stateful services.
func (*CloudstateCondition) DeepCopy ¶
func (in *CloudstateCondition) DeepCopy() *CloudstateCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudstateCondition.
func (*CloudstateCondition) DeepCopyInto ¶
func (in *CloudstateCondition) DeepCopyInto(out *CloudstateCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudstateConditionType ¶
type CloudstateConditionType string
CloudstateConditionType are the types of conditions in a StatefulServiceStatus.
const ( // NotReady indicates whether the StatefulService is not ready. This // can be for a variety of reasons. More detail is available in the Reason // field. CloudstateNotReady CloudstateConditionType = "NotReady" )
type GcpCredentials ¶
type GcpCredentials struct { // Secret is the name of a secret in the local namespace to load the credentials from. // +kubebuilder:validation:MinLength=1 // +optional Secret *corev1.LocalObjectReference `json:"secret,omitempty"` // UsernameKey is the key of the username in the secret. Defaults to username. // +optional UsernameKey string `json:"usernameKey,omitempty"` // PasswordKey is the key of the password in the secret. Defaults to password. // +optional PasswordKey string `json:"passwordKey,omitempty"` // KeyspaceKey is the key of the keyspace in the secret. Defaults to keyspace. // +optional KeyspaceKey string `json:"keyspaceKey,omitempty"` }
GcpCredentials are the credentials for a Cloudstate is the credentials for a Spanner instance.
func (*GcpCredentials) DeepCopy ¶
func (in *GcpCredentials) DeepCopy() *GcpCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GcpCredentials.
func (*GcpCredentials) DeepCopyInto ¶
func (in *GcpCredentials) DeepCopyInto(out *GcpCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleCloudSQLPostgresStorage ¶
type GoogleCloudSQLPostgresStorage struct { // The type of disks for the storage to use, either SSD or HDD. // Cannot be changed after creation. Defaults to SSD. // +optional Type GoogleCloudSQLPostgresStorageType `json:"type,omitempty"` // The capacity for the storage. // Can be any value up to 30,720 GB. // Defaults to 1GB. After creation, can only be increased. // +optional Capacity resource.Quantity `json:"capacity,omitempty"` // Whether the storage capacity may be automatically increased as needed. // Defaults to true. // Modifiable after creation. // +optional AutomaticIncrease bool `json:"automaticIncrease,omitempty"` // A limit to how high the capacity may be automatically increased. // A value of 0 means no limit. The default is 0. // Modifiable after creation. // +optional AutomaticIncreaseLimit resource.Quantity `json:"automaticIncreaseLimit,omitempty"` }
func (*GoogleCloudSQLPostgresStorage) DeepCopy ¶
func (in *GoogleCloudSQLPostgresStorage) DeepCopy() *GoogleCloudSQLPostgresStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleCloudSQLPostgresStorage.
func (*GoogleCloudSQLPostgresStorage) DeepCopyInto ¶
func (in *GoogleCloudSQLPostgresStorage) DeepCopyInto(out *GoogleCloudSQLPostgresStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleCloudSQLPostgresStorageType ¶
type GoogleCloudSQLPostgresStorageType string
+kubebuilder:validation:Enum=SSD;HDD
const ( SSDStorage GoogleCloudSQLPostgresStorageType = "SSD" HDDStorage GoogleCloudSQLPostgresStorageType = "HDD" )
type GoogleCloudSQLPostgresStore ¶
type GoogleCloudSQLPostgresStore struct { // The name of the Cloud SQL instance. If not specified, the name of the stateful store resource // will be used. // +optional Name string `json:"name,omitempty"` // The number of cores the Postgres instance should use. // Must be 1, or an even number between 2 and 64. // Defaults to 1. // Modifiable after creation but will take store offline for several minutes. // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=64 // +optional Cores int32 `json:"cores,omitempty"` // The amount of memory the Postgres instance should have. // Must be between 0.9 GiB and 6.5 GiB per vCPU, and must be // a multiple of 256 MiB, and at least 3.75 GiB. // Defaults to 3.75 GiB. // Modifiable after creation but will take store offline for several minutes. // +optional Memory resource.Quantity `json:"memory,omitempty"` // The storage configuration. // +optional Storage GoogleCloudSQLPostgresStorage `json:"storage,omitempty"` // Whether high availability is enabled. // High availability instances run a second slave postgres // instance that can be failed over to should the first fail. // High availability instances roughly double costs. // Defaults to false. // Modifiable after creation but will take store offline for several minutes. // +optional HighAvailability bool `json:"highAvailability,omitempty"` }
GoogleCloudSQLPostgresStore creates a managed Postgres instance for the StatefulService.
func (*GoogleCloudSQLPostgresStore) DeepCopy ¶
func (in *GoogleCloudSQLPostgresStore) DeepCopy() *GoogleCloudSQLPostgresStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleCloudSQLPostgresStore.
func (*GoogleCloudSQLPostgresStore) DeepCopyInto ¶
func (in *GoogleCloudSQLPostgresStore) DeepCopyInto(out *GoogleCloudSQLPostgresStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleCloudSQLPostgresStoreStatus ¶
type GoogleCloudSQLPostgresStoreStatus struct { // InstanceName is the name of the instance. InstanceName string `json:"instanceName"` }
GoogleCloudSQLPostgresStoreStatus defines the status of a Google Cloud SQL postgres store.
func (*GoogleCloudSQLPostgresStoreStatus) DeepCopy ¶
func (in *GoogleCloudSQLPostgresStoreStatus) DeepCopy() *GoogleCloudSQLPostgresStoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleCloudSQLPostgresStoreStatus.
func (*GoogleCloudSQLPostgresStoreStatus) DeepCopyInto ¶
func (in *GoogleCloudSQLPostgresStoreStatus) DeepCopyInto(out *GoogleCloudSQLPostgresStoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresCredentials ¶
type PostgresCredentials struct { // Secret is the name of a secret in the local namespace to load the credentials from. // +optional Secret *corev1.LocalObjectReference `json:"secret,omitempty"` // UsernameKey is the key of the username in the secret. Defaults to username. // +optional UsernameKey string `json:"usernameKey,omitempty"` // PasswordKey is the key of the password in the secret. Defaults to password. // +optional PasswordKey string `json:"passwordKey,omitempty"` // DatabaseKey is the key of the database in the secret. Defaults to database. // +optional DatabaseKey string `json:"databaseKey,omitempty"` }
PostgresCredentials is the credentials for a Postgres instance.
func (*PostgresCredentials) DeepCopy ¶
func (in *PostgresCredentials) DeepCopy() *PostgresCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresCredentials.
func (*PostgresCredentials) DeepCopyInto ¶
func (in *PostgresCredentials) DeepCopyInto(out *PostgresCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresSSL ¶
type PostgresSSL struct { // Mode is the mode that should be used for SSL. // The value here matches the modes supported by the postgres libpq client library: // https://www.postgresql.org/docs/9.1/libpq-ssl.html // Valid values are disable, allow, prefer, require, verify-ca and verify-full. Defaults to disable. // +optional Mode PostgresSSLMode `json:"mode,omitempty"` // Secret is the secret that contain any SSL certificates or keys. // +optional Secret *corev1.LocalObjectReference `json:"secret,omitempty"` // RootCert is the key of the root certificate in the secret. This must be a PEM encoded X509 certificate. // +optional RootCert string `json:"rootCert,omitempty"` // Cert is the key of the client certificate in the secret. This must be a PEM encoded X509 certificate. // It is ignored if using a PKCS-12 keychain. // +optional Cert string `json:"cert,omitempty"` // Key is the key of the private key for the client to use in the secret. This must be a PKCS-12 keychain or a // PKCS-8 DER encoded key. If encrypted, the password should be specified in sslPassword. // +optional Key string `json:"key,omitempty"` // Password is the password to use to decrypt the sslKey. // +optional Password string `json:"password,omitempty"` }
PostgressSSL is the configuration for Postgres SSL connections.
func (*PostgresSSL) DeepCopy ¶
func (in *PostgresSSL) DeepCopy() *PostgresSSL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSSL.
func (*PostgresSSL) DeepCopyInto ¶
func (in *PostgresSSL) DeepCopyInto(out *PostgresSSL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresSSLMode ¶
type PostgresSSLMode string
PostgresSSLMode is the mode for SSL in postgres. +kubebuilder:validation:Enum=disable;allow;prefer;require;verify-ca;verify-full
const ( // PostgresSSLModeDisable disable SSL, use if you don't care about security and don't want to pay the overhead // for encryption. PostgresSSLModeDisable PostgresSSLMode = "disable" // PostgresSSLModeAllow allow SSL, use if you don't care about security but will pay the overhead for encryption // if the server insists on it. PostgresSSLModeAllow PostgresSSLMode = "allow" // PostgresSSLModePrefer prefer SSL, use if you don't care about encryption but will pay the overhead of encryption // if the server supports it. PostgresSSLModePrefer PostgresSSLMode = "prefer" // PostgresSSLModeRequire require SSL, use if you want your data to be encrypted, and you accept the overhead. You // trust that the network will make sure you always connect to the server you want. PostgresSSLModeRequire PostgresSSLMode = "require" // PostgresSSLModeVerifyCA verify CA SSL, use if you want your data encrypted, and you accept the overhead. You // want to be sure that you connect to a server that you trust. PostgresSSLModeVerifyCA PostgresSSLMode = "verify-ca" // PostgresSSLModeVerifyFull verify full SSL, use if you want your data encrypted, and you accept the overhead. You // want to be sure that you connect to a server you trust, and that it's the one you specify. PostgresSSLModeVerifyFull PostgresSSLMode = "verify-full" )
type PostgresStore ¶
type PostgresStore struct { // Host to connect to. // +kubebuilder:validation:MinLength=1 // +optional Host string `json:"host,omitempty"` // Port to connect to. // Defaults to 5432. // +optional Port int32 `json:"port,omitempty"` // Credentials for the Postgres instance. // +optional Credentials *PostgresCredentials `json:"credentials,omitempty"` // SSL configuration for the Postgres connection. // +optional SSL *PostgresSSL `json:"ssl,omitempty"` // GoogleCloudSQL may used to automatically provision a Google CloudSQL instance. // Do not specify a host, port or credentials if this is used. // +optional GoogleCloudSQL *GoogleCloudSQLPostgresStore `json:"googleCloudSql,omitempty"` }
PostgresStore represents a Postgres instance.
func (*PostgresStore) DeepCopy ¶
func (in *PostgresStore) DeepCopy() *PostgresStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresStore.
func (*PostgresStore) DeepCopyInto ¶
func (in *PostgresStore) DeepCopyInto(out *PostgresStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresStoreStatus ¶
type PostgresStoreStatus struct { // GoogleCloudSQL is the status of the managed Google Cloud SQL Postgres instance. // +optional GoogleCloudSQL *GoogleCloudSQLPostgresStoreStatus `json:"googleCloudSql,omitempty"` }
PostgresStoreStatus defines the state of a postgres store.
func (*PostgresStoreStatus) DeepCopy ¶
func (in *PostgresStoreStatus) DeepCopy() *PostgresStoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresStoreStatus.
func (*PostgresStoreStatus) DeepCopyInto ¶
func (in *PostgresStoreStatus) DeepCopyInto(out *PostgresStoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpannerStore ¶
type SpannerStore struct { // Project is the GCP project to use. Project string `json:"project"` // Instance is the Spanner instance id. Instance string `json:"instance"` // Database is the Spanner database id. // Defaults to cloudstate, and can be overridden on a per deployment basis. // +optional Database string `json:"database,omitempty"` // Secret the secret to read Spanner credentials from. // Must have a key.json file in it. // +optional Secret *corev1.LocalObjectReference `json:"secret,omitempty"` }
SpannerStore simply indicates the use of a Cloudstate-managed Spanner store.
func (*SpannerStore) DeepCopy ¶
func (in *SpannerStore) DeepCopy() *SpannerStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpannerStore.
func (*SpannerStore) DeepCopyInto ¶
func (in *SpannerStore) DeepCopyInto(out *SpannerStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulService ¶
type StatefulService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StatefulServiceSpec `json:"spec,omitempty"` Status StatefulServiceStatus `json:"status,omitempty"` }
StatefulService is the Schema for the statefulservices API. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.selector +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Replicas",type=integer,JSONPath=`.status.replicas` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.summary`
func (*StatefulService) DeepCopy ¶
func (in *StatefulService) DeepCopy() *StatefulService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulService.
func (*StatefulService) DeepCopyInto ¶
func (in *StatefulService) DeepCopyInto(out *StatefulService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulService) DeepCopyObject ¶
func (in *StatefulService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulServiceList ¶
type StatefulServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StatefulService `json:"items"` }
StatefulServiceList contains a list of StatefulService. +kubebuilder:object:root=true
func (*StatefulServiceList) DeepCopy ¶
func (in *StatefulServiceList) DeepCopy() *StatefulServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulServiceList.
func (*StatefulServiceList) DeepCopyInto ¶
func (in *StatefulServiceList) DeepCopyInto(out *StatefulServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulServiceList) DeepCopyObject ¶
func (in *StatefulServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulServiceSpec ¶
type StatefulServiceSpec struct { // The containers to run in the StatefulService. At least one container is required. // +kubebuilder:validation:MinItems=1 Containers []corev1.Container `json:"containers"` // The number of replicas to deploy for the StatefulService. // Defaults to 1. // +kubebuilder:validation:Minimum=0 // +optional Replicas *int32 `json:"replicas,omitempty"` // The data store that Cloudstate will use for persisting state. // Defaults to using an in-memory store. // +optional StoreConfig *StatefulServiceStoreConfig `json:"storeConfig,omitempty"` }
StatefulServiceSpec defines the desired state of StatefulService.
func (*StatefulServiceSpec) DeepCopy ¶
func (in *StatefulServiceSpec) DeepCopy() *StatefulServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulServiceSpec.
func (*StatefulServiceSpec) DeepCopyInto ¶
func (in *StatefulServiceSpec) DeepCopyInto(out *StatefulServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulServiceStatus ¶
type StatefulServiceStatus struct { // Summary of the current status. // +optional Summary string `json:"summary,omitempty"` // Replicas that are available for the StatefulService. Replicas int32 `json:"replicas"` // Selector that is used to match pods associated with this StatefulService. // This is needed for the scale sub resource to allow the Kubernetes HPA to work. Selector string `json:"selector"` // Conditions of the StatefulService. // +optional Conditions []CloudstateCondition `json:"conditions,omitempty"` }
StatefulServiceStatus defines the observed state of StatefulService.
func (*StatefulServiceStatus) DeepCopy ¶
func (in *StatefulServiceStatus) DeepCopy() *StatefulServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulServiceStatus.
func (*StatefulServiceStatus) DeepCopyInto ¶
func (in *StatefulServiceStatus) DeepCopyInto(out *StatefulServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulServiceStoreConfig ¶
type StatefulServiceStoreConfig struct { // A reference to the StatefulStore to use. StatefulStore corev1.LocalObjectReference `json:"statefulStore"` // The name of the database to use in the StatefulStore if it supports it. // This is used to namespace the StatefulService's data, so multiple services // can share the same StatefulStore. // Defaults to "cloudstate". // +kubebuilder:validation:MinLength=1 // +optional Database string `json:"database,omitempty"` // The secret to use for the StatefulStore if it supports it. // +optional Secret *corev1.LocalObjectReference `json:"secret,omitempty"` }
StatefulServiceStoreConfig defines the StatefulStore to use and any configuration options.
func (*StatefulServiceStoreConfig) DeepCopy ¶
func (in *StatefulServiceStoreConfig) DeepCopy() *StatefulServiceStoreConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulServiceStoreConfig.
func (*StatefulServiceStoreConfig) DeepCopyInto ¶
func (in *StatefulServiceStoreConfig) DeepCopyInto(out *StatefulServiceStoreConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulStore ¶
type StatefulStore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StatefulStoreSpec `json:"spec,omitempty"` Status StatefulStoreStatus `json:"status,omitempty"` }
StatefulStore is the Schema for the statefulstores API. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.summary`
func (*StatefulStore) DeepCopy ¶
func (in *StatefulStore) DeepCopy() *StatefulStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulStore.
func (*StatefulStore) DeepCopyInto ¶
func (in *StatefulStore) DeepCopyInto(out *StatefulStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulStore) DeepCopyObject ¶
func (in *StatefulStore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulStoreList ¶
type StatefulStoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StatefulStore `json:"items"` }
StatefulStoreList contains a list of StatefulStore. +kubebuilder:object:root=true
func (*StatefulStoreList) DeepCopy ¶
func (in *StatefulStoreList) DeepCopy() *StatefulStoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulStoreList.
func (*StatefulStoreList) DeepCopyInto ¶
func (in *StatefulStoreList) DeepCopyInto(out *StatefulStoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulStoreList) DeepCopyObject ¶
func (in *StatefulStoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulStoreSpec ¶
type StatefulStoreSpec struct { // InMemory store will keep everything in memory. This is the simplest // option to get started, but must not be used in production. // +optional InMemory bool `json:"inMemory,omitempty"` // Postgres will store state in Postgres. // +optional Postgres *PostgresStore `json:"postgres,omitempty"` // SpannerStore uses a Spanner store managed by the Cloudstate infrastructure. // +optional Spanner *SpannerStore `json:"spanner,omitempty"` // Cassandra // +optional Cassandra *CassandraStore `json:"cassandra,omitempty"` }
StatefulStoreSpec defines the desired state of StatefulStore.
func (*StatefulStoreSpec) DeepCopy ¶
func (in *StatefulStoreSpec) DeepCopy() *StatefulStoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulStoreSpec.
func (*StatefulStoreSpec) DeepCopyInto ¶
func (in *StatefulStoreSpec) DeepCopyInto(out *StatefulStoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulStoreStatus ¶
type StatefulStoreStatus struct { // Summary of the current status. // +optional Summary string `json:"summary,omitempty"` // +optional Conditions []CloudstateCondition `json:"conditions,omitempty"` // Postgres if this is a postgres store, the status of that store. // +optional Postgres *PostgresStoreStatus `json:"postgres,omitempty"` }
StatefulStoreStatus defines the observed state of StatefulStore.
func (*StatefulStoreStatus) DeepCopy ¶
func (in *StatefulStoreStatus) DeepCopy() *StatefulStoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulStoreStatus.
func (*StatefulStoreStatus) DeepCopyInto ¶
func (in *StatefulStoreStatus) DeepCopyInto(out *StatefulStoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.