v1beta1

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1beta1 contains managed resources for Azure cache services such as Redis. +kubebuilder:object:generate=true +groupName=cache.azure.crossplane.io +versionName=v1beta1

Index

Constants

View Source
const (
	Group   = "cache.azure.crossplane.io"
	Version = "v1beta1"
)

Package type metadata.

View Source
const (
	// SupportedRedisVersion is the only minor version of Redis currently
	// supported by Azure Cache for Redis. The version cannot be specified at
	// creation time.
	SupportedRedisVersion = "3.2"
)

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	RedisKind             = reflect.TypeOf(Redis{}).Name()
	RedisGroupKind        = schema.GroupKind{Group: Group, Kind: RedisKind}.String()
	RedisKindAPIVersion   = RedisKind + "." + SchemeGroupVersion.String()
	RedisGroupVersionKind = SchemeGroupVersion.WithKind(RedisKind)
)

Redis type metadata.

Functions

This section is empty.

Types

type Redis

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

	Spec   RedisSpec   `json:"spec"`
	Status RedisStatus `json:"status,omitempty"`
}

A Redis is a managed resource that represents an Azure Redis cluster. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.provisioningState" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".status.atProvider.redisVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}

func (*Redis) DeepCopy

func (in *Redis) DeepCopy() *Redis

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

func (*Redis) DeepCopyInto

func (in *Redis) DeepCopyInto(out *Redis)

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

func (*Redis) DeepCopyObject

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

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

func (*Redis) GetCondition

func (mg *Redis) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Redis.

func (*Redis) GetDeletionPolicy

func (mg *Redis) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Redis.

func (*Redis) GetProviderConfigReference

func (mg *Redis) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Redis.

func (*Redis) GetProviderReference

func (mg *Redis) GetProviderReference() *xpv1.Reference

GetProviderReference of this Redis. Deprecated: Use GetProviderConfigReference.

func (*Redis) GetPublishConnectionDetailsTo

func (mg *Redis) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Redis.

func (*Redis) GetWriteConnectionSecretToReference

func (mg *Redis) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Redis.

func (*Redis) ResolveReferences

func (mg *Redis) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this Redis.

func (*Redis) SetConditions

func (mg *Redis) SetConditions(c ...xpv1.Condition)

SetConditions of this Redis.

func (*Redis) SetDeletionPolicy

func (mg *Redis) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Redis.

func (*Redis) SetProviderConfigReference

func (mg *Redis) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Redis.

func (*Redis) SetProviderReference

func (mg *Redis) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Redis. Deprecated: Use SetProviderConfigReference.

func (*Redis) SetPublishConnectionDetailsTo

func (mg *Redis) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Redis.

func (*Redis) SetWriteConnectionSecretToReference

func (mg *Redis) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Redis.

type RedisList

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

RedisList contains a list of Redis.

func (*RedisList) DeepCopy

func (in *RedisList) DeepCopy() *RedisList

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

func (*RedisList) DeepCopyInto

func (in *RedisList) DeepCopyInto(out *RedisList)

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

func (*RedisList) DeepCopyObject

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

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

func (*RedisList) GetItems

func (l *RedisList) GetItems() []resource.Managed

GetItems of this RedisList.

type RedisObservation

type RedisObservation struct {
	// RedisVersion - Redis version.
	RedisVersion string `json:"redisVersion,omitempty"`

	// ProvisioningState - Redis instance provisioning status. Possible values
	// include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking',
	// 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded',
	// 'Unlinking', 'Unprovisioning', 'Updating'
	ProvisioningState string `json:"provisioningState,omitempty"`

	// HostName - Redis host name.
	HostName string `json:"hostName,omitempty"`

	// Port - Redis non-SSL port.
	Port int `json:"port,omitempty"`

	// SSLPort - Redis SSL port.
	SSLPort int `json:"sslPort,omitempty"`

	// LinkedServers - List of the linked servers associated with the cache
	LinkedServers []string `json:"linkedServers,omitempty"`

	// ID - Resource ID.
	ID string `json:"id,omitempty"`

	// Name - Resource name.
	Name string `json:"name,omitempty"`
}

RedisObservation represents the observed state of the Redis object in Azure.

func (*RedisObservation) DeepCopy

func (in *RedisObservation) DeepCopy() *RedisObservation

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

func (*RedisObservation) DeepCopyInto

func (in *RedisObservation) DeepCopyInto(out *RedisObservation)

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

type RedisParameters

type RedisParameters struct {

	// ResourceGroupName in which to create this resource.
	// +immutable
	ResourceGroupName string `json:"resourceGroupName,omitempty"`

	// ResourceGroupNameRef to fetch resource group name.
	// +immutable
	ResourceGroupNameRef *xpv1.Reference `json:"resourceGroupNameRef,omitempty"`

	// ResourceGroupNameSelector to select a reference to a resource group.
	// +immutable
	ResourceGroupNameSelector *xpv1.Selector `json:"resourceGroupNameSelector,omitempty"`

	// Sku - The SKU of the Redis cache to deploy.
	SKU SKU `json:"sku"`

	// Location in which to create this resource.
	// +immutable
	Location string `json:"location"`

	// SubnetID specifies the full resource ID of a subnet in a virtual network
	// to deploy the Redis cache in. Example format:
	// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
	// +immutable
	// +optional
	SubnetID *string `json:"subnetId,omitempty"`

	// StaticIP address. Required when deploying a Redis cache inside an
	// existing Azure Virtual Network.
	// +immutable
	// +optional
	StaticIP *string `json:"staticIp,omitempty"`

	// RedisConfiguration - All Redis Settings. Few possible keys:
	// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency
	// maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,
	// slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,
	// list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,
	// set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
	// +optional
	RedisConfiguration map[string]string `json:"redisConfiguration,omitempty"`

	// EnableNonSSLPort specifies whether the non-ssl Redis server port (6379)
	// is enabled.
	// +optional
	EnableNonSSLPort *bool `json:"enableNonSslPort,omitempty"`

	// TenantSettings - A dictionary of tenant settings
	// +optional
	TenantSettings map[string]string `json:"tenantSettings,omitempty"`

	// ShardCount specifies the number of shards to be created on a Premium
	// Cluster Cache.
	// +optional
	ShardCount *int `json:"shardCount,omitempty"`

	// MinimumTLSVersion - Optional: requires clients to use a specified TLS
	// version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible
	// values include: 'OneFullStopZero', 'OneFullStopOne', 'OneFullStopTwo'
	// +optional
	MinimumTLSVersion *string `json:"minimumTlsVersion,omitempty"`

	// Zones - A list of availability zones denoting where the resource needs to come from.
	// +immutable
	// +optional
	Zones []string `json:"zones,omitempty"`

	// Tags - Resource tags.
	// +optional
	Tags map[string]string `json:"tags,omitempty"`
}

RedisParameters define the desired state of an Azure Redis cluster. https://docs.microsoft.com/en-us/rest/api/redis/redis/create#redisresource

func (*RedisParameters) DeepCopy

func (in *RedisParameters) DeepCopy() *RedisParameters

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

func (*RedisParameters) DeepCopyInto

func (in *RedisParameters) DeepCopyInto(out *RedisParameters)

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

type RedisSpec

type RedisSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       RedisParameters `json:"forProvider"`
}

A RedisSpec defines the desired state of a Redis.

func (*RedisSpec) DeepCopy

func (in *RedisSpec) DeepCopy() *RedisSpec

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

func (*RedisSpec) DeepCopyInto

func (in *RedisSpec) DeepCopyInto(out *RedisSpec)

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

type RedisStatus

type RedisStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          RedisObservation `json:"atProvider,omitempty"`
}

A RedisStatus represents the observed state of a Redis.

func (*RedisStatus) DeepCopy

func (in *RedisStatus) DeepCopy() *RedisStatus

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

func (*RedisStatus) DeepCopyInto

func (in *RedisStatus) DeepCopyInto(out *RedisStatus)

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

type SKU

type SKU struct {

	// Name specifies what type of Redis cache to deploy. Valid values: (Basic,
	// Standard, Premium). Possible values include: 'Basic', 'Standard',
	// 'Premium'
	// +kubebuilder:validation:Enum=Basic;Standard;Premium
	Name string `json:"name"`

	// Family specifies which family to use. Valid values: (C, P). Possible
	// values include: 'C', 'P'
	// +kubebuilder:validation:Enum=C;P
	Family string `json:"family"`

	// Capacity specifies the size of Redis cache to deploy. Valid values: for C
	// family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4).
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=6
	Capacity int `json:"capacity"`
}

An SKU represents the performance and cost oriented properties of a Redis.

func (*SKU) DeepCopy

func (in *SKU) DeepCopy() *SKU

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

func (*SKU) DeepCopyInto

func (in *SKU) DeepCopyInto(out *SKU)

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