v1alpha1

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the authenticator v1alpha1 API group +kubebuilder:object:generate=true +groupName=authenticator.snappcloud.io

Index

Constants

View Source
const (
	INVALID_OBJECT        = "invalid object passed"
	INVALID_TYPE_MUTATION = "invalid operation on type"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "authenticator.snappcloud.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
)
View Source
var (
	ValidationTimeout time.Duration
)

Functions

This section is empty.

Types

type BasicAuthenticator

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

	Spec   BasicAuthenticatorSpec   `json:"spec,omitempty"`
	Status BasicAuthenticatorStatus `json:"status,omitempty"`
}

BasicAuthenticator is the Schema for the basicauthenticators API

func (*BasicAuthenticator) DeepCopy

func (in *BasicAuthenticator) DeepCopy() *BasicAuthenticator

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

func (*BasicAuthenticator) DeepCopyInto

func (in *BasicAuthenticator) DeepCopyInto(out *BasicAuthenticator)

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

func (*BasicAuthenticator) DeepCopyObject

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

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

func (*BasicAuthenticator) Default

func (r *BasicAuthenticator) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*BasicAuthenticator) SetupWebhookWithManager

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

func (*BasicAuthenticator) ValidateCreate

func (r *BasicAuthenticator) ValidateCreate() error

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

func (*BasicAuthenticator) ValidateDelete

func (r *BasicAuthenticator) ValidateDelete() error

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

func (*BasicAuthenticator) ValidateUpdate

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

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

type BasicAuthenticatorList

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

BasicAuthenticatorList contains a list of BasicAuthenticator

func (*BasicAuthenticatorList) DeepCopy

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

func (*BasicAuthenticatorList) DeepCopyInto

func (in *BasicAuthenticatorList) DeepCopyInto(out *BasicAuthenticatorList)

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

func (*BasicAuthenticatorList) DeepCopyObject

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

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

type BasicAuthenticatorSpec

type BasicAuthenticatorSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=sidecar;deployment
	// Type is used to determine that nginx should be sidercar or deployment
	Type string `json:"type"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Maximum=5
	// +kubebuilder:validation:Minimum=0
	Replicas int `json:"replicas,omitempty"`

	// +kubebuilder:validation:Optional
	Selector metav1.LabelSelector `json:"selector,omitempty"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default=ClusterIP
	ServiceType string `json:"serviceType"`

	// +kubebuilder:validation:Required
	AppPort int `json:"appPort"`

	// +kubebuilder:validation:Optional
	AppService string `json:"appService"`

	// +kubebuilder:validation:Optional
	// +kubebuilder:default=false
	AdaptiveScale bool `json:"adaptiveScale"`

	// +kubebuilder:validation:Required
	// +kubebuilder:default=80
	AuthenticatorPort int `json:"authenticatorPort"`

	// +kubebuilder:validation:Optional
	CredentialsSecretRef string `json:"credentialsSecretRef"`
}

BasicAuthenticatorSpec defines the desired state of BasicAuthenticator

func (*BasicAuthenticatorSpec) DeepCopy

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

func (*BasicAuthenticatorSpec) DeepCopyInto

func (in *BasicAuthenticatorSpec) DeepCopyInto(out *BasicAuthenticatorSpec)

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

type BasicAuthenticatorStatus

type BasicAuthenticatorStatus struct {
	ReadyReplicas int    `json:"readyReplicas"`
	Reason        string `json:"reason"`
	State         string `json:"state"`
}

BasicAuthenticatorStatus defines the observed state of BasicAuthenticator

func (*BasicAuthenticatorStatus) DeepCopy

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

func (*BasicAuthenticatorStatus) DeepCopyInto

func (in *BasicAuthenticatorStatus) DeepCopyInto(out *BasicAuthenticatorStatus)

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