v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the nats v1alpha1 API group +kubebuilder:object:generate=true +groupName=nats.jradikk

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "nats.jradikk", 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 AccountLimits

type AccountLimits struct {
	// Conn is the maximum number of connections (-1 for unlimited)
	// +kubebuilder:default=-1
	Conn int64 `json:"conn,omitempty"`

	// Subs is the maximum number of subscriptions (-1 for unlimited)
	// +kubebuilder:default=-1
	Subs int64 `json:"subs,omitempty"`

	// Payload is the maximum message payload size in bytes (-1 for unlimited)
	// +kubebuilder:default=-1
	Payload int64 `json:"payload,omitempty"`

	// Data is the maximum data size in bytes (-1 for unlimited)
	// +kubebuilder:default=-1
	Data int64 `json:"data,omitempty"`

	// Exports is the maximum number of exports (-1 for unlimited)
	// +kubebuilder:default=-1
	Exports int64 `json:"exports,omitempty"`

	// Imports is the maximum number of imports (-1 for unlimited)
	// +kubebuilder:default=-1
	Imports int64 `json:"imports,omitempty"`

	// WildcardExports whether wildcards are allowed in exports
	// +kubebuilder:default=true
	WildcardExports bool `json:"wildcardExports,omitempty"`

	// JetStream defines JetStream-specific limits
	JetStream *JetStreamLimits `json:"jetstream,omitempty"`
}

AccountLimits defines limits for a NATS account

func (*AccountLimits) DeepCopy

func (in *AccountLimits) DeepCopy() *AccountLimits

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

func (*AccountLimits) DeepCopyInto

func (in *AccountLimits) DeepCopyInto(out *AccountLimits)

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

type AuthMode

type AuthMode string

AuthMode defines the authentication mode for NATS +kubebuilder:validation:Enum=token;jwt;mixed

const (
	AuthModeToken AuthMode = "token"
	AuthModeJWT   AuthMode = "jwt"
	AuthModeMixed AuthMode = "mixed"
)

type JWTConfig

type JWTConfig struct {
	// ResolverDir is the directory path where the resolver is stored
	// +kubebuilder:default="/var/lib/nats-resolver"
	ResolverDir string `json:"resolverDir,omitempty"`

	// OperatorSeedSecret references an existing operator seed (optional)
	OperatorSeedSecret *OperatorSeedSecretRef `json:"operatorSeedSecret,omitempty"`

	// OperatorName is the name of the NATS operator
	// +kubebuilder:default="NATS Operator"
	OperatorName string `json:"operatorName,omitempty"`

	// SystemAccountName is the name of the NatsAccount resource that serves as the
	// NATS system account. If the named NatsAccount does not exist, the operator will
	// create it automatically. Defaults to "<authconfig-name>-system-account", which
	// avoids collisions when multiple NatsAuthConfig resources exist in the same namespace.
	// Set this explicitly only when migrating from a manually-created system account.
	SystemAccountName string `json:"systemAccountName,omitempty"`
}

JWTConfig defines JWT-specific configuration

func (*JWTConfig) DeepCopy

func (in *JWTConfig) DeepCopy() *JWTConfig

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

func (*JWTConfig) DeepCopyInto

func (in *JWTConfig) DeepCopyInto(out *JWTConfig)

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

type JetStreamLimits

type JetStreamLimits struct {
	// MemoryStorage is the max number of bytes stored in memory across all streams (-1 for unlimited, 0 to disable)
	MemoryStorage int64 `json:"memoryStorage,omitempty"`

	// DiskStorage is the max number of bytes stored on disk across all streams (-1 for unlimited, 0 to disable)
	DiskStorage int64 `json:"diskStorage,omitempty"`

	// Streams is the maximum number of streams (-1 for unlimited)
	Streams int64 `json:"streams,omitempty"`

	// Consumer is the maximum number of consumers (-1 for unlimited)
	Consumer int64 `json:"consumer,omitempty"`

	// MaxAckPending is the maximum number of outstanding acks per stream (-1 for unlimited)
	MaxAckPending int64 `json:"maxAckPending,omitempty"`

	// MemoryMaxStreamBytes is the max bytes a memory backed stream can have (-1 for unlimited, 0 to disable)
	MemoryMaxStreamBytes int64 `json:"memoryMaxStreamBytes,omitempty"`

	// DiskMaxStreamBytes is the max bytes a disk backed stream can have (-1 for unlimited, 0 to disable)
	DiskMaxStreamBytes int64 `json:"diskMaxStreamBytes,omitempty"`

	// MaxBytesRequired requires max_bytes to be set when creating streams
	MaxBytesRequired bool `json:"maxBytesRequired,omitempty"`
}

JetStreamLimits defines JetStream resource limits for an account

func (*JetStreamLimits) DeepCopy added in v1.1.0

func (in *JetStreamLimits) DeepCopy() *JetStreamLimits

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

func (*JetStreamLimits) DeepCopyInto added in v1.1.0

func (in *JetStreamLimits) DeepCopyInto(out *JetStreamLimits)

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

type NatsAccount

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

	Spec   NatsAccountSpec   `json:"spec,omitempty"`
	Status NatsAccountStatus `json:"status,omitempty"`
}

NatsAccount is the Schema for the natsaccounts API

func (*NatsAccount) DeepCopy

func (in *NatsAccount) DeepCopy() *NatsAccount

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

func (*NatsAccount) DeepCopyInto

func (in *NatsAccount) DeepCopyInto(out *NatsAccount)

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

func (*NatsAccount) DeepCopyObject

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

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

type NatsAccountList

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

NatsAccountList contains a list of NatsAccount

func (*NatsAccountList) DeepCopy

func (in *NatsAccountList) DeepCopy() *NatsAccountList

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

func (*NatsAccountList) DeepCopyInto

func (in *NatsAccountList) DeepCopyInto(out *NatsAccountList)

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

func (*NatsAccountList) DeepCopyObject

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

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

type NatsAccountRef

type NatsAccountRef struct {
	// Name of the NatsAccount
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// Namespace of the NatsAccount (defaults to same namespace)
	Namespace string `json:"namespace,omitempty"`
}

NatsAccountRef references a NatsAccount

func (*NatsAccountRef) DeepCopy

func (in *NatsAccountRef) DeepCopy() *NatsAccountRef

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

func (*NatsAccountRef) DeepCopyInto

func (in *NatsAccountRef) DeepCopyInto(out *NatsAccountRef)

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

type NatsAccountSpec

type NatsAccountSpec struct {
	// AuthConfigRef references the NatsAuthConfig
	// +kubebuilder:validation:Required
	AuthConfigRef NatsAuthConfigRef `json:"authConfigRef"`

	// Description of the account
	Description string `json:"description,omitempty"`

	// Limits defines resource limits for this account
	Limits *AccountLimits `json:"limits,omitempty"`

	// ExistingSeedSecret references an existing account seed (optional)
	ExistingSeedSecret *SecretRef `json:"existingSeedSecret,omitempty"`
}

NatsAccountSpec defines the desired state of NatsAccount

func (*NatsAccountSpec) DeepCopy

func (in *NatsAccountSpec) DeepCopy() *NatsAccountSpec

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

func (*NatsAccountSpec) DeepCopyInto

func (in *NatsAccountSpec) DeepCopyInto(out *NatsAccountSpec)

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

type NatsAccountStatus

type NatsAccountStatus struct {
	// AccountID is the public key of the account
	AccountID string `json:"accountId,omitempty"`

	// PublicKey is the public key of the account (same as AccountID)
	PublicKey string `json:"publicKey,omitempty"`

	// JWTSecretRef references the Secret containing the account JWT
	JWTSecretRef SecretRef `json:"jwtSecretRef,omitempty"`

	// Conditions represent the latest available observations of the object's state
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration reflects the generation of the most recently observed NatsAccount
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// LastReconciled is the timestamp of the last reconciliation
	LastReconciled *metav1.Time `json:"lastReconciled,omitempty"`
}

NatsAccountStatus defines the observed state of NatsAccount

func (*NatsAccountStatus) DeepCopy

func (in *NatsAccountStatus) DeepCopy() *NatsAccountStatus

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

func (*NatsAccountStatus) DeepCopyInto

func (in *NatsAccountStatus) DeepCopyInto(out *NatsAccountStatus)

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

type NatsAuthConfig

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

	Spec   NatsAuthConfigSpec   `json:"spec,omitempty"`
	Status NatsAuthConfigStatus `json:"status,omitempty"`
}

NatsAuthConfig is the Schema for the natsauthconfigs API

func (*NatsAuthConfig) DeepCopy

func (in *NatsAuthConfig) DeepCopy() *NatsAuthConfig

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

func (*NatsAuthConfig) DeepCopyInto

func (in *NatsAuthConfig) DeepCopyInto(out *NatsAuthConfig)

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

func (*NatsAuthConfig) DeepCopyObject

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

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

type NatsAuthConfigList

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

NatsAuthConfigList contains a list of NatsAuthConfig

func (*NatsAuthConfigList) DeepCopy

func (in *NatsAuthConfigList) DeepCopy() *NatsAuthConfigList

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

func (*NatsAuthConfigList) DeepCopyInto

func (in *NatsAuthConfigList) DeepCopyInto(out *NatsAuthConfigList)

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

func (*NatsAuthConfigList) DeepCopyObject

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

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

type NatsAuthConfigRef

type NatsAuthConfigRef struct {
	// Name of the NatsAuthConfig
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// Namespace of the NatsAuthConfig (defaults to same namespace)
	Namespace string `json:"namespace,omitempty"`
}

NatsAuthConfigRef references a NatsAuthConfig

func (*NatsAuthConfigRef) DeepCopy

func (in *NatsAuthConfigRef) DeepCopy() *NatsAuthConfigRef

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

func (*NatsAuthConfigRef) DeepCopyInto

func (in *NatsAuthConfigRef) DeepCopyInto(out *NatsAuthConfigRef)

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

type NatsAuthConfigSpec

type NatsAuthConfigSpec struct {
	// NatsURL is the URL for NATS clients to connect
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^nats://.*`
	NatsURL string `json:"natsURL"`

	// Mode defines the authentication mode (token, jwt, or mixed)
	// +kubebuilder:validation:Required
	// +kubebuilder:default="jwt"
	Mode AuthMode `json:"mode"`

	// ServerAuthConfig defines where to write the server auth configuration
	// +kubebuilder:validation:Required
	ServerAuthConfig ServerAuthConfigRef `json:"serverAuthConfig"`

	// JWT configuration (required if mode is jwt or mixed)
	JWT *JWTConfig `json:"jwt,omitempty"`
}

NatsAuthConfigSpec defines the desired state of NatsAuthConfig

func (*NatsAuthConfigSpec) DeepCopy

func (in *NatsAuthConfigSpec) DeepCopy() *NatsAuthConfigSpec

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

func (*NatsAuthConfigSpec) DeepCopyInto

func (in *NatsAuthConfigSpec) DeepCopyInto(out *NatsAuthConfigSpec)

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

type NatsAuthConfigStatus

type NatsAuthConfigStatus struct {
	// OperatorPubKey is the public key of the NATS operator (JWT mode)
	OperatorPubKey string `json:"operatorPubKey,omitempty"`

	// SystemAccountPubKey is the public key of the auto-managed system account (JWT mode)
	SystemAccountPubKey string `json:"systemAccountPubKey,omitempty"`

	// ResolverReady indicates if the resolver is ready (JWT mode)
	ResolverReady bool `json:"resolverReady,omitempty"`

	// LastReconciled is the timestamp of the last reconciliation
	LastReconciled *metav1.Time `json:"lastReconciled,omitempty"`

	// Conditions represent the latest available observations of the object's state
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration reflects the generation of the most recently observed NatsAuthConfig
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

NatsAuthConfigStatus defines the observed state of NatsAuthConfig

func (*NatsAuthConfigStatus) DeepCopy

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

func (*NatsAuthConfigStatus) DeepCopyInto

func (in *NatsAuthConfigStatus) DeepCopyInto(out *NatsAuthConfigStatus)

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

type NatsUser

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

	Spec   NatsUserSpec   `json:"spec,omitempty"`
	Status NatsUserStatus `json:"status,omitempty"`
}

NatsUser is the Schema for the natsusers API

func (*NatsUser) DeepCopy

func (in *NatsUser) DeepCopy() *NatsUser

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

func (*NatsUser) DeepCopyInto

func (in *NatsUser) DeepCopyInto(out *NatsUser)

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

func (*NatsUser) DeepCopyObject

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

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

type NatsUserList

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

NatsUserList contains a list of NatsUser

func (*NatsUserList) DeepCopy

func (in *NatsUserList) DeepCopy() *NatsUserList

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

func (*NatsUserList) DeepCopyInto

func (in *NatsUserList) DeepCopyInto(out *NatsUserList)

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

func (*NatsUserList) DeepCopyObject

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

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

type NatsUserSpec

type NatsUserSpec struct {
	// AuthConfigRef references the NatsAuthConfig
	// +kubebuilder:validation:Required
	AuthConfigRef NatsAuthConfigRef `json:"authConfigRef"`

	// AuthType defines the authentication type (token, jwt, or inherit from NatsAuthConfig)
	// +kubebuilder:default="inherit"
	AuthType UserAuthType `json:"authType,omitempty"`

	// AccountRef references the NatsAccount (required for JWT mode)
	AccountRef *NatsAccountRef `json:"accountRef,omitempty"`

	// Username for token-based auth
	Username string `json:"username,omitempty"`

	// PasswordFrom defines how to obtain the password (for token auth)
	PasswordFrom *PasswordSource `json:"passwordFrom,omitempty"`

	// Permissions defines publish/subscribe permissions
	Permissions *Permissions `json:"permissions,omitempty"`

	// ExistingSeedSecret references an existing user seed (optional, JWT mode)
	ExistingSeedSecret *SecretRef `json:"existingSeedSecret,omitempty"`
}

NatsUserSpec defines the desired state of NatsUser

func (*NatsUserSpec) DeepCopy

func (in *NatsUserSpec) DeepCopy() *NatsUserSpec

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

func (*NatsUserSpec) DeepCopyInto

func (in *NatsUserSpec) DeepCopyInto(out *NatsUserSpec)

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

type NatsUserStatus

type NatsUserStatus struct {
	// State represents the current state of the user
	// +kubebuilder:default="Pending"
	State UserState `json:"state,omitempty"`

	// Reason provides more detail about the current state
	Reason string `json:"reason,omitempty"`

	// SecretRef references the Secret containing user credentials
	SecretRef SecretRef `json:"secretRef,omitempty"`

	// PublicKey is the public key of the user (JWT mode)
	PublicKey string `json:"publicKey,omitempty"`

	// Conditions represent the latest available observations of the object's state
	Conditions []metav1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration reflects the generation of the most recently observed NatsUser
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// LastReconciled is the timestamp of the last reconciliation
	LastReconciled *metav1.Time `json:"lastReconciled,omitempty"`
}

NatsUserStatus defines the observed state of NatsUser

func (*NatsUserStatus) DeepCopy

func (in *NatsUserStatus) DeepCopy() *NatsUserStatus

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

func (*NatsUserStatus) DeepCopyInto

func (in *NatsUserStatus) DeepCopyInto(out *NatsUserStatus)

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

type OperatorSeedSecretRef

type OperatorSeedSecretRef struct {
	// Name of the Secret containing the operator seed
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// Namespace of the Secret
	// +kubebuilder:validation:Required
	Namespace string `json:"namespace"`

	// Key within the Secret
	// +kubebuilder:default="operator.seed"
	Key string `json:"key,omitempty"`
}

OperatorSeedSecretRef references an existing operator seed

func (*OperatorSeedSecretRef) DeepCopy

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

func (*OperatorSeedSecretRef) DeepCopyInto

func (in *OperatorSeedSecretRef) DeepCopyInto(out *OperatorSeedSecretRef)

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

type PasswordSource

type PasswordSource struct {
	// Generate indicates whether to generate a random password
	Generate bool `json:"generate,omitempty"`

	// SecretRef references an existing Secret containing the password
	SecretRef *SecretRef `json:"secretRef,omitempty"`
}

PasswordSource defines how to obtain the password for token auth

func (*PasswordSource) DeepCopy

func (in *PasswordSource) DeepCopy() *PasswordSource

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

func (*PasswordSource) DeepCopyInto

func (in *PasswordSource) DeepCopyInto(out *PasswordSource)

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

type Permissions

type Permissions struct {
	// PublishAllow is a list of subjects the user can publish to
	PublishAllow []string `json:"publishAllow,omitempty"`

	// PublishDeny is a list of subjects the user cannot publish to
	PublishDeny []string `json:"publishDeny,omitempty"`

	// SubscribeAllow is a list of subjects the user can subscribe to
	SubscribeAllow []string `json:"subscribeAllow,omitempty"`

	// SubscribeDeny is a list of subjects the user cannot subscribe to
	SubscribeDeny []string `json:"subscribeDeny,omitempty"`
}

Permissions defines publish/subscribe permissions

func (*Permissions) DeepCopy

func (in *Permissions) DeepCopy() *Permissions

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

func (*Permissions) DeepCopyInto

func (in *Permissions) DeepCopyInto(out *Permissions)

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

type SecretRef

type SecretRef struct {
	// Name of the Secret
	Name string `json:"name,omitempty"`

	// Namespace of the Secret
	Namespace string `json:"namespace,omitempty"`
}

SecretRef references a Kubernetes Secret

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

type ServerAuthConfigRef

type ServerAuthConfigRef struct {
	// Name of the ConfigMap or Secret
	// +kubebuilder:validation:Required
	Name string `json:"name"`

	// Namespace of the ConfigMap or Secret
	// +kubebuilder:validation:Required
	Namespace string `json:"namespace"`

	// Key within the ConfigMap or Secret
	// +kubebuilder:default="auth.conf"
	Key string `json:"key,omitempty"`

	// Type of the resource (ConfigMap or Secret)
	// +kubebuilder:validation:Enum=ConfigMap;Secret
	// +kubebuilder:default="ConfigMap"
	Type string `json:"type,omitempty"`
}

ServerAuthConfigRef defines where to write the server auth configuration

func (*ServerAuthConfigRef) DeepCopy

func (in *ServerAuthConfigRef) DeepCopy() *ServerAuthConfigRef

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

func (*ServerAuthConfigRef) DeepCopyInto

func (in *ServerAuthConfigRef) DeepCopyInto(out *ServerAuthConfigRef)

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

type UserAuthType

type UserAuthType string

UserAuthType defines the authentication type for a user +kubebuilder:validation:Enum=token;jwt;inherit

const (
	UserAuthTypeToken   UserAuthType = "token"
	UserAuthTypeJWT     UserAuthType = "jwt"
	UserAuthTypeInherit UserAuthType = "inherit"
)

type UserState

type UserState string

UserState represents the state of the user +kubebuilder:validation:Enum=Ready;Error;Pending

const (
	UserStateReady   UserState = "Ready"
	UserStateError   UserState = "Error"
	UserStatePending UserState = "Pending"
)

Jump to

Keyboard shortcuts

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