v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=redis.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: redis.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Instance

type Instance struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              InstanceSpec   `json:"spec,omitempty"`
	Status            InstanceStatus `json:"status,omitempty"`
}

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

func (*Instance) DeepCopyObject

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

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

func (*Instance) SetupWebhookWithManager

func (r *Instance) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Instance) ValidateCreate

func (r *Instance) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Instance) ValidateDelete

func (r *Instance) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Instance) ValidateUpdate

func (r *Instance) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type InstanceList

type InstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Instance CRD objects
	Items []Instance `json:"items,omitempty"`
}

InstanceList is a list of Instances

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

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

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

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

func (*InstanceList) DeepCopyObject

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

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

type InstanceSpec

type InstanceSpec struct {
	State *InstanceSpecResource `json:"state,omitempty" tf:"-"`

	Resource InstanceSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

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

type InstanceSpecMaintenancePolicy added in v0.5.0

type InstanceSpecMaintenancePolicy struct {
	// Output only. The time when the policy was created.
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
	// resolution and up to nine fractional digits.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// Optional. Description of what this policy is for.
	// Create/Update methods return INVALID_ARGUMENT if the
	// length is greater than 512.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// Output only. The time when the policy was last updated.
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
	// resolution and up to nine fractional digits.
	// +optional
	UpdateTime *string `json:"updateTime,omitempty" tf:"update_time"`
	// Optional. Maintenance window that is applied to resources covered by this policy.
	// Minimum 1. For the current version, the maximum number
	// of weekly_window is expected to be one.
	// +optional
	WeeklyMaintenanceWindow []InstanceSpecMaintenancePolicyWeeklyMaintenanceWindow `json:"weeklyMaintenanceWindow,omitempty" tf:"weekly_maintenance_window"`
}

func (*InstanceSpecMaintenancePolicy) DeepCopy added in v0.5.0

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

func (*InstanceSpecMaintenancePolicy) DeepCopyInto added in v0.5.0

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

type InstanceSpecMaintenancePolicyCodec added in v0.5.0

type InstanceSpecMaintenancePolicyCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecMaintenancePolicyCodec) Decode added in v0.5.0

func (InstanceSpecMaintenancePolicyCodec) Encode added in v0.5.0

func (InstanceSpecMaintenancePolicyCodec) IsEmpty added in v0.5.0

type InstanceSpecMaintenancePolicyWeeklyMaintenanceWindow added in v0.5.0

type InstanceSpecMaintenancePolicyWeeklyMaintenanceWindow struct {
	// Required. The day of week that maintenance updates occur.
	//
	// - DAY_OF_WEEK_UNSPECIFIED: The day of the week is unspecified.
	// - MONDAY: Monday
	// - TUESDAY: Tuesday
	// - WEDNESDAY: Wednesday
	// - THURSDAY: Thursday
	// - FRIDAY: Friday
	// - SATURDAY: Saturday
	// - SUNDAY: Sunday Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
	Day *string `json:"day" tf:"day"`
	// Output only. Duration of the maintenance window.
	// The current window is fixed at 1 hour.
	// A duration in seconds with up to nine fractional digits,
	// terminated by 's'. Example: "3.5s".
	// +optional
	Duration *string `json:"duration,omitempty" tf:"duration"`
	// Required. Start time of the window in UTC time.
	StartTime *InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTime `json:"startTime" tf:"start_time"`
}

func (*InstanceSpecMaintenancePolicyWeeklyMaintenanceWindow) DeepCopy added in v0.5.0

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

func (*InstanceSpecMaintenancePolicyWeeklyMaintenanceWindow) DeepCopyInto added in v0.5.0

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

type InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTime added in v0.5.0

type InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTime struct {
	// Hours of day in 24 hour format. Should be from 0 to 23.
	// An API may choose to allow the value "24:00:00" for scenarios like business closing time.
	// +optional
	Hours *int64 `json:"hours,omitempty" tf:"hours"`
	// Minutes of hour of day. Must be from 0 to 59.
	// +optional
	Minutes *int64 `json:"minutes,omitempty" tf:"minutes"`
	// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
	// +optional
	Nanos *int64 `json:"nanos,omitempty" tf:"nanos"`
	// Seconds of minutes of the time. Must normally be from 0 to 59.
	// An API may allow the value 60 if it allows leap-seconds.
	// +optional
	Seconds *int64 `json:"seconds,omitempty" tf:"seconds"`
}

func (*InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTime) DeepCopy added in v0.5.0

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

func (*InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTime) DeepCopyInto added in v0.5.0

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

type InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTimeCodec added in v0.5.0

type InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTimeCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTimeCodec) Decode added in v0.5.0

func (InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTimeCodec) Encode added in v0.5.0

func (InstanceSpecMaintenancePolicyWeeklyMaintenanceWindowStartTimeCodec) IsEmpty added in v0.5.0

type InstanceSpecMaintenanceSchedule added in v0.5.0

type InstanceSpecMaintenanceSchedule struct {
	// Output only. The end time of any upcoming scheduled maintenance for this instance.
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
	// resolution and up to nine fractional digits.
	// +optional
	EndTime *string `json:"endTime,omitempty" tf:"end_time"`
	// Output only. The deadline that the maintenance schedule start time
	// can not go beyond, including reschedule.
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
	// resolution and up to nine fractional digits.
	// +optional
	ScheduleDeadlineTime *string `json:"scheduleDeadlineTime,omitempty" tf:"schedule_deadline_time"`
	// Output only. The start time of any upcoming scheduled maintenance for this instance.
	// A timestamp in RFC3339 UTC "Zulu" format, with nanosecond
	// resolution and up to nine fractional digits.
	// +optional
	StartTime *string `json:"startTime,omitempty" tf:"start_time"`
}

func (*InstanceSpecMaintenanceSchedule) DeepCopy added in v0.5.0

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

func (*InstanceSpecMaintenanceSchedule) DeepCopyInto added in v0.5.0

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

type InstanceSpecMaintenanceScheduleCodec added in v0.5.0

type InstanceSpecMaintenanceScheduleCodec struct {
}

+k8s:deepcopy-gen=false

func (InstanceSpecMaintenanceScheduleCodec) Decode added in v0.5.0

func (InstanceSpecMaintenanceScheduleCodec) Encode added in v0.5.0

func (InstanceSpecMaintenanceScheduleCodec) IsEmpty added in v0.5.0

type InstanceSpecResource

type InstanceSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Only applicable to STANDARD_HA tier which protects the instance
	// against zonal failures by provisioning it across two zones.
	// If provided, it must be a different zone from the one provided in
	// [locationId].
	// +optional
	AlternativeLocationID *string `json:"alternativeLocationID,omitempty" tf:"alternative_location_id"`
	// Optional. Indicates whether OSS Redis AUTH is enabled for the
	// instance. If set to "true" AUTH is enabled on the instance.
	// Default value is "false" meaning AUTH is disabled.
	// +optional
	AuthEnabled *bool `json:"authEnabled,omitempty" tf:"auth_enabled"`
	// AUTH String set on the instance. This field will only be populated if auth_enabled is true.
	// +optional
	AuthString *string `json:"-" sensitive:"true" tf:"auth_string"`
	// The full name of the Google Compute Engine network to which the
	// instance is connected. If left unspecified, the default network
	// will be used.
	// +optional
	AuthorizedNetwork *string `json:"authorizedNetwork,omitempty" tf:"authorized_network"`
	// The connection mode of the Redis instance. Default value: "DIRECT_PEERING" Possible values: ["DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS"]
	// +optional
	ConnectMode *string `json:"connectMode,omitempty" tf:"connect_mode"`
	// The time the instance was created in RFC3339 UTC "Zulu" format,
	// accurate to nanoseconds.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// The current zone where the Redis endpoint is placed.
	// For Basic Tier instances, this will always be the same as the
	// [locationId] provided by the user at creation time. For Standard Tier
	// instances, this can be either [locationId] or [alternativeLocationId]
	// and can change after a failover event.
	// +optional
	CurrentLocationID *string `json:"currentLocationID,omitempty" tf:"current_location_id"`
	// An arbitrary and optional user-provided name for the instance.
	// +optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name"`
	// Hostname or IP address of the exposed Redis endpoint used by clients
	// to connect to the service.
	// +optional
	Host *string `json:"host,omitempty" tf:"host"`
	// Resource labels to represent user provided metadata.
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// The zone where the instance will be provisioned. If not provided,
	// the service will choose a zone for the instance. For STANDARD_HA tier,
	// instances will be created across two zones for protection against
	// zonal failures. If [alternativeLocationId] is also provided, it must
	// be different from [locationId].
	// +optional
	LocationID *string `json:"locationID,omitempty" tf:"location_id"`
	// Maintenance policy for an instance.
	// +optional
	MaintenancePolicy *InstanceSpecMaintenancePolicy `json:"maintenancePolicy,omitempty" tf:"maintenance_policy"`
	// Upcoming maintenance schedule.
	// +optional
	MaintenanceSchedule *InstanceSpecMaintenanceSchedule `json:"maintenanceSchedule,omitempty" tf:"maintenance_schedule"`
	// Redis memory size in GiB.
	MemorySizeGb *int64 `json:"memorySizeGb" tf:"memory_size_gb"`
	// The ID of the instance or a fully qualified identifier for the instance.
	Name *string `json:"name" tf:"name"`
	// Output only. Cloud IAM identity used by import / export operations
	// to transfer data to/from Cloud Storage. Format is "serviceAccount:".
	// The value may change over time for a given instance so should be
	// checked before each import/export operation.
	// +optional
	PersistenceIamIdentity *string `json:"persistenceIamIdentity,omitempty" tf:"persistence_iam_identity"`
	// The port number of the exposed Redis endpoint.
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// Redis configuration parameters, according to http://redis.io/topics/config.
	// Please check Memorystore documentation for the list of supported parameters:
	// https://cloud.google.com/memorystore/docs/redis/reference/rest/v1/projects.locations.instances#Instance.FIELDS.redis_configs
	// +optional
	RedisConfigs *map[string]string `json:"redisConfigs,omitempty" tf:"redis_configs"`
	// The version of Redis software. If not provided, latest supported
	// version will be used. Please check the API documentation linked
	// at the top for the latest valid values.
	// +optional
	RedisVersion *string `json:"redisVersion,omitempty" tf:"redis_version"`
	// The name of the Redis region of the instance.
	// +optional
	Region *string `json:"region,omitempty" tf:"region"`
	// The CIDR range of internal addresses that are reserved for this
	// instance. If not provided, the service will choose an unused /29
	// block, for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be
	// unique and non-overlapping with existing subnets in an authorized
	// network.
	// +optional
	ReservedIPRange *string `json:"reservedIPRange,omitempty" tf:"reserved_ip_range"`
	// List of server CA certificates for the instance.
	// +optional
	ServerCaCerts []InstanceSpecServerCaCerts `json:"serverCaCerts,omitempty" tf:"server_ca_certs"`
	// The service tier of the instance. Must be one of these values:
	//
	// - BASIC: standalone instance
	// - STANDARD_HA: highly available primary/replica instances Default value: "BASIC" Possible values: ["BASIC", "STANDARD_HA"]
	// +optional
	Tier *string `json:"tier,omitempty" tf:"tier"`
	// The TLS mode of the Redis instance, If not provided, TLS is disabled for the instance.
	//
	// - SERVER_AUTHENTICATION: Client to Server traffic encryption enabled with server authentication Default value: "DISABLED" Possible values: ["SERVER_AUTHENTICATION", "DISABLED"]
	// +optional
	TransitEncryptionMode *string `json:"transitEncryptionMode,omitempty" tf:"transit_encryption_mode"`
}

func (*InstanceSpecResource) DeepCopy

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

func (*InstanceSpecResource) DeepCopyInto

func (in *InstanceSpecResource) DeepCopyInto(out *InstanceSpecResource)

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

type InstanceSpecServerCaCerts

type InstanceSpecServerCaCerts struct {
	// The certificate data in PEM format.
	// +optional
	Cert *string `json:"cert,omitempty" tf:"cert"`
	// The time when the certificate was created.
	// +optional
	CreateTime *string `json:"createTime,omitempty" tf:"create_time"`
	// The time when the certificate expires.
	// +optional
	ExpireTime *string `json:"expireTime,omitempty" tf:"expire_time"`
	// Serial number, as extracted from the certificate.
	// +optional
	SerialNumber *string `json:"serialNumber,omitempty" tf:"serial_number"`
	// Sha1 Fingerprint of the certificate.
	// +optional
	Sha1Fingerprint *string `json:"sha1Fingerprint,omitempty" tf:"sha1_fingerprint"`
}

func (*InstanceSpecServerCaCerts) DeepCopy

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

func (*InstanceSpecServerCaCerts) DeepCopyInto

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

type InstanceStatus

type InstanceStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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