v1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=management.llmos.ai

+k8s:deepcopy-gen=package +groupName=management.llmos.ai

+k8s:deepcopy-gen=package +groupName=management.llmos.ai

Index

Constants

This section is empty.

Variables

View Source
var (
	ClusterRoleExists    condition.Cond = "ClusterRoleExists"
	NamespacedRoleExists condition.Cond = "NamespacedRoleExists"
)
View Source
var (
	// UpgradeCompleted is true when the upgrade is completion
	UpgradeCompleted condition.Cond = "Completed"
	// UpgradeChartsRepoReady is true when the upgrade chart repo is ready
	UpgradeChartsRepoReady condition.Cond = "ChartsRepoReady"
	// ManifestUpgradeComplete is true when the llmos-operator charts is upgraded
	ManifestUpgradeComplete condition.Cond = "ManifestUpgradeComplete"
	// ManagedAddonsIsReady is true when all the activated managed-addons are upgraded
	ManagedAddonsIsReady condition.Cond = "ManagedAddonsIsReady"
	// NodesUpgraded is true when all nodes are upgraded
	NodesUpgraded condition.Cond = "NodesUpgraded"
)
View Source
var (
	GlobalRoleResourceName          = "globalroles"
	ManagedAddonResourceName        = "managedaddons"
	RoleTemplateResourceName        = "roletemplates"
	RoleTemplateBindingResourceName = "roletemplatebindings"
	SettingResourceName             = "settings"
	TokenResourceName               = "tokens"
	UpgradeResourceName             = "upgrades"
	UserResourceName                = "users"
	VersionResourceName             = "versions"
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: management.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

View Source
var (
	SettingConfigured condition.Cond = "configured"
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back 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 AddonState

type AddonState string
const (
	AddonCondChartDeployed cond.Cond = "ChartDeployed"
	AddonCondInProgress    cond.Cond = "InProgress"
	AddonCondReady         cond.Cond = "Ready"

	AddonStateEnabled    AddonState = "Enabled"
	AddonStateDisabled   AddonState = "Disabled"
	AddonStateDeployed   AddonState = "Deployed"
	AddonStateInProgress AddonState = "InProgress"
	AddonStateComplete   AddonState = "Complete"
	AddonStateError      AddonState = "Error"
	AddonStateFailed     AddonState = "Failed"
)

type GlobalRole

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

	// Spec holds the desired configs of the GlobalRole.
	// +optional
	Spec GlobalRoleSpec `json:"spec,omitempty"`

	// Rules holds a list of PolicyRules that are applied to the local cluster only.
	// +optional
	Rules []rbacv1.PolicyRule `json:"rules,omitempty"`

	// NamespacedRules are the rules that are active in each namespace of this GlobalRole.
	// These are applied to the local cluster only.
	// * has no special meaning in the keys - these keys are read as raw strings
	// and must exactly match with one existing namespace.
	// +optional
	NamespacedRules map[string][]rbacv1.PolicyRule `json:"namespacedRules,omitempty"`

	// Status is the most recently observed status of the GlobalRole.
	// +optional
	Status GlobalRoleStatus `json:"status,omitempty"`
}

func NewGlobalRole

func NewGlobalRole(namespace, name string, obj GlobalRole) *GlobalRole

func (*GlobalRole) DeepCopy

func (in *GlobalRole) DeepCopy() *GlobalRole

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

func (*GlobalRole) DeepCopyInto

func (in *GlobalRole) DeepCopyInto(out *GlobalRole)

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

func (*GlobalRole) DeepCopyObject

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

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

type GlobalRoleList

type GlobalRoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []GlobalRole `json:"items"`
}

GlobalRoleList is a list of GlobalRole resources

func (*GlobalRoleList) DeepCopy

func (in *GlobalRoleList) DeepCopy() *GlobalRoleList

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

func (*GlobalRoleList) DeepCopyInto

func (in *GlobalRoleList) DeepCopyInto(out *GlobalRoleList)

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

func (*GlobalRoleList) DeepCopyObject

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

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

type GlobalRoleSpec

type GlobalRoleSpec struct {
	// DisplayName is the human-readable name displayed in the UI.
	// +optional
	DisplayName string `json:"displayName,omitempty"`

	// NewUserDefault specifies that all new users created should be bound to this role if true.
	// +optional
	NewUserDefault bool `json:"newUserDefault,omitempty"`

	// Builtin specifies that this GlobalRole was created by LLMOS if true.
	// +optional
	Builtin bool `json:"builtin,omitempty"`
}

func (*GlobalRoleSpec) DeepCopy

func (in *GlobalRoleSpec) DeepCopy() *GlobalRoleSpec

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

func (*GlobalRoleSpec) DeepCopyInto

func (in *GlobalRoleSpec) DeepCopyInto(out *GlobalRoleSpec)

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

type GlobalRoleStatus

type GlobalRoleStatus struct {
	// Conditions is a slice of Condition, indicating the status of specific backing RBAC objects.
	// There is one condition per ClusterRole and Role managed by the GlobalRole.
	// +optional
	Conditions []common.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the most recent generation (metadata.generation in GlobalRole CR)
	// observed by the controller. Populated by the system.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// LastUpdate is a k8s timestamp of the last time the status was updated.
	// +optional
	LastUpdate string `json:"lastUpdateTime,omitempty"`

	// State represent a state of "Complete", "InProgress" or "Error".
	// +optional
	// +kubebuilder:validation:Enum={"Complete","InProgress","Error"}
	State string `json:"state,omitempty"`
}

func (*GlobalRoleStatus) DeepCopy

func (in *GlobalRoleStatus) DeepCopy() *GlobalRoleStatus

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

func (*GlobalRoleStatus) DeepCopyInto

func (in *GlobalRoleStatus) DeepCopyInto(out *GlobalRoleStatus)

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

type ManagedAddon

type ManagedAddon struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ManagedAddonSpec   `json:"spec"`
	Status            ManagedAddonStatus `json:"status,omitempty"`
}

ManagedAddon helps to manage the lifecycle of the LLMOS system addons.

func NewManagedAddon

func NewManagedAddon(namespace, name string, obj ManagedAddon) *ManagedAddon

func (*ManagedAddon) DeepCopy

func (in *ManagedAddon) DeepCopy() *ManagedAddon

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

func (*ManagedAddon) DeepCopyInto

func (in *ManagedAddon) DeepCopyInto(out *ManagedAddon)

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

func (*ManagedAddon) DeepCopyObject

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

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

type ManagedAddonList

type ManagedAddonList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ManagedAddon `json:"items"`
}

ManagedAddonList is a list of ManagedAddon resources

func (*ManagedAddonList) DeepCopy

func (in *ManagedAddonList) DeepCopy() *ManagedAddonList

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

func (*ManagedAddonList) DeepCopyInto

func (in *ManagedAddonList) DeepCopyInto(out *ManagedAddonList)

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

func (*ManagedAddonList) DeepCopyObject

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

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

type ManagedAddonSpec

type ManagedAddonSpec struct {
	// +kubebuilder:validation:Required
	Repo string `json:"repo"`
	// +kubebuilder:validation:Required
	Chart string `json:"chart"`
	// +kubebuilder:validation:Required
	Version string `json:"version"`
	// +kubebuilder:validation:Required
	Enabled bool `json:"enabled"`
	// +optional, reinstall or waiting for operator intervention
	FailurePolicy string `json:"failurePolicy,omitempty"`
	// +optional, default values content
	DefaultValuesContent string `json:"defaultValuesContent,omitempty"`
	// +optional, custom values that override the default values
	ValuesContent string `json:"valuesContent,omitempty"`
}

func (*ManagedAddonSpec) DeepCopy

func (in *ManagedAddonSpec) DeepCopy() *ManagedAddonSpec

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

func (*ManagedAddonSpec) DeepCopyInto

func (in *ManagedAddonSpec) DeepCopyInto(out *ManagedAddonSpec)

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

type ManagedAddonStatus

type ManagedAddonStatus struct {
	// Conditions is an array of current conditions
	Conditions []common.Condition `json:"conditions,omitempty"`
	// State is the state of managedAddon.
	State AddonState `json:"state,omitempty"`

	// Represents time when the job was completed. It is not guaranteed to
	// be set in happens-before order across separate operations.
	// It is represented in RFC3339 form and is in UTC.
	// The completion time is set when the job finishes successfully, and only then.
	// The value cannot be updated or removed. The value indicates the same or
	// later point in time as the startTime field.
	// +optional
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`

	// The number of pods which reached phase Succeeded.
	// The value increases monotonically for a given spec. However, it may
	// decrease in reaction to scale down of elastic indexed jobs.
	// +optional
	Succeeded int32 `json:"succeeded,omitempty"`

	// The number of pods which have a Ready condition.
	// +optional
	Ready *int32 `json:"ready,omitempty"`

	// The number of pending and running pods which are not terminating (without
	// a deletionTimestamp).
	// The value is zero for finished jobs.
	// +optional
	Active int32 `json:"active,omitempty"`

	// The name of the job that was created for this managedAddon.
	JobName string `json:"jobName,omitempty"`
}

func (*ManagedAddonStatus) DeepCopy

func (in *ManagedAddonStatus) DeepCopy() *ManagedAddonStatus

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

func (*ManagedAddonStatus) DeepCopyInto

func (in *ManagedAddonStatus) DeepCopyInto(out *ManagedAddonStatus)

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

type NodeUpgradeStatus

type NodeUpgradeStatus struct {
	// +optional
	State string `json:"state,omitempty"`
	// +optional
	Reason string `json:"reason,omitempty"`
	// +optional
	Message string `json:"message,omitempty"`
}

func (*NodeUpgradeStatus) DeepCopy

func (in *NodeUpgradeStatus) DeepCopy() *NodeUpgradeStatus

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

func (*NodeUpgradeStatus) DeepCopyInto

func (in *NodeUpgradeStatus) DeepCopyInto(out *NodeUpgradeStatus)

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

type RoleTemplate

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

	// Spec holds the desired configs of the RoleTemplate.
	// +optional
	Spec RoleTemplateSpec `json:"spec,omitempty"`

	// Rules hold a list of PolicyRules for this RoleTemplate.
	// +optional
	Rules []rbacv1.PolicyRule `json:"rules,omitempty"`

	// Status is the most recently observed status of the RoleTemplate.
	// +optional
	Status RoleTemplateStatus `json:"status,omitempty"`
}

func NewRoleTemplate

func NewRoleTemplate(namespace, name string, obj RoleTemplate) *RoleTemplate

func (*RoleTemplate) DeepCopy

func (in *RoleTemplate) DeepCopy() *RoleTemplate

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

func (*RoleTemplate) DeepCopyInto

func (in *RoleTemplate) DeepCopyInto(out *RoleTemplate)

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

func (*RoleTemplate) DeepCopyObject

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

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

type RoleTemplateBinding

type RoleTemplateBinding struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// RoleTemplateRef can reference a RoleTemplate in the current namespace or a GlobalRole in the global namespace.
	// If the RoleTemplateRef cannot be resolved, the Webhook must return an error.
	// This field is immutable.
	RoleTemplateRef RoleTemplateRef `json:"roleTemplateRef"`
	// Subjects holds references to the objects the global role applies to.
	// +optional
	// +listType=atomic
	Subjects []rbacv1.Subject `json:"subjects,omitempty"`

	// NamespaceId is the namespace id of the namespace the role template binding is applied to.
	NamespaceId string `json:"namespaceId,omitempty"`
}

RoleTemplateBinding binds a given subject user to a GlobalRole.

func NewRoleTemplateBinding

func NewRoleTemplateBinding(namespace, name string, obj RoleTemplateBinding) *RoleTemplateBinding

func (*RoleTemplateBinding) DeepCopy

func (in *RoleTemplateBinding) DeepCopy() *RoleTemplateBinding

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

func (*RoleTemplateBinding) DeepCopyInto

func (in *RoleTemplateBinding) DeepCopyInto(out *RoleTemplateBinding)

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

func (*RoleTemplateBinding) DeepCopyObject

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

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

type RoleTemplateBindingList

type RoleTemplateBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RoleTemplateBinding `json:"items"`
}

RoleTemplateBindingList is a list of RoleTemplateBinding resources

func (*RoleTemplateBindingList) DeepCopy

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

func (*RoleTemplateBindingList) DeepCopyInto

func (in *RoleTemplateBindingList) DeepCopyInto(out *RoleTemplateBindingList)

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

func (*RoleTemplateBindingList) DeepCopyObject

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

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

type RoleTemplateList

type RoleTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RoleTemplate `json:"items"`
}

RoleTemplateList is a list of RoleTemplate resources

func (*RoleTemplateList) DeepCopy

func (in *RoleTemplateList) DeepCopy() *RoleTemplateList

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

func (*RoleTemplateList) DeepCopyInto

func (in *RoleTemplateList) DeepCopyInto(out *RoleTemplateList)

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

func (*RoleTemplateList) DeepCopyObject

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

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

type RoleTemplateRef

type RoleTemplateRef struct {
	// APIGroup is the group for the resource being referenced
	APIGroup string `json:"apiGroup"`
	// Kind is the type of resource being referenced
	Kind string `json:"kind"`
	// Name is the name of resource being referenced
	Name string `json:"name"`
}

func (*RoleTemplateRef) DeepCopy

func (in *RoleTemplateRef) DeepCopy() *RoleTemplateRef

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

func (*RoleTemplateRef) DeepCopyInto

func (in *RoleTemplateRef) DeepCopyInto(out *RoleTemplateRef)

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

type RoleTemplateSpec

type RoleTemplateSpec struct {
	// DisplayName is the human-readable name displayed in the UI.
	// +optional
	DisplayName string `json:"displayName,omitempty"`

	// Builtin specifies that this RoleTemplate was created by LLMOS if true.
	// +optional
	Builtin bool `json:"builtin,omitempty"`

	// Locked specified that if new bindings will not be able to use this RoleTemplate.
	// +optional
	Locked bool `json:"locked,omitempty"`

	// NewNamespaceDefault specifies that this RoleTemplate should be applied to all new created namespaces if true.
	NewNamespaceDefault bool `json:"newNamespaceDefault,omitempty"`
}

func (*RoleTemplateSpec) DeepCopy

func (in *RoleTemplateSpec) DeepCopy() *RoleTemplateSpec

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

func (*RoleTemplateSpec) DeepCopyInto

func (in *RoleTemplateSpec) DeepCopyInto(out *RoleTemplateSpec)

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

type RoleTemplateStatus

type RoleTemplateStatus struct {
	// Conditions is a slice of Condition, indicating the status of specific backing RBAC objects.
	// There is one condition per ClusterRole and Role managed by the RoleTemplate.
	// +optional
	Conditions []common.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the most recent generation (metadata.generation in RoleTemplate CR)
	// observed by the controller. Populated by the system.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// LastUpdate is a k8s timestamp of the last time the status was updated.
	// +optional
	LastUpdate string `json:"lastUpdateTime,omitempty"`

	// State represent a state of "Complete", "InProgress" or "Error".
	// +optional
	// +kubebuilder:validation:Enum={"Complete","InProgress","Error"}
	State string `json:"state,omitempty"`
}

func (*RoleTemplateStatus) DeepCopy

func (in *RoleTemplateStatus) DeepCopy() *RoleTemplateStatus

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

func (*RoleTemplateStatus) DeepCopyInto

func (in *RoleTemplateStatus) DeepCopyInto(out *RoleTemplateStatus)

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

type Setting

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

	// +optional
	Value string `json:"value,omitempty"`

	// +optional
	Default string `json:"default,omitempty"`

	// +optional
	Customized bool `json:"customized,omitempty"`

	// +optional
	Source string `json:"source,omitempty"`

	Status SettingStatus `json:"status,omitempty"`
}

func NewSetting

func NewSetting(namespace, name string, obj Setting) *Setting

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

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

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

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

func (*Setting) DeepCopyObject

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

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

type SettingList

type SettingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Setting `json:"items"`
}

SettingList is a list of Setting resources

func (*SettingList) DeepCopy

func (in *SettingList) DeepCopy() *SettingList

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

func (*SettingList) DeepCopyInto

func (in *SettingList) DeepCopyInto(out *SettingList)

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

func (*SettingList) DeepCopyObject

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

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

type SettingStatus

type SettingStatus struct {
	// +optional
	Conditions []common.Condition `json:"conditions,omitempty"`
}

func (*SettingStatus) DeepCopy

func (in *SettingStatus) DeepCopy() *SettingStatus

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

func (*SettingStatus) DeepCopyInto

func (in *SettingStatus) DeepCopyInto(out *SettingStatus)

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

type Token

type Token struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TokenSpec   `json:"spec"`
	Status            TokenStatus `json:"status,omitempty"`
}

func NewToken

func NewToken(namespace, name string, obj Token) *Token

func (*Token) DeepCopy

func (in *Token) DeepCopy() *Token

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

func (*Token) DeepCopyInto

func (in *Token) DeepCopyInto(out *Token)

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

func (*Token) DeepCopyObject

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

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

type TokenList

type TokenList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Token `json:"items"`
}

TokenList is a list of Token resources

func (*TokenList) DeepCopy

func (in *TokenList) DeepCopy() *TokenList

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

func (*TokenList) DeepCopyInto

func (in *TokenList) DeepCopyInto(out *TokenList)

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

func (*TokenList) DeepCopyObject

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

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

type TokenSpec

type TokenSpec struct {
	// +kubebuilder:validation:Required
	UserId string `json:"userId"`

	// +kubebuilder:validation:Required
	AuthProvider string `json:"authProvider"`

	// +optional
	Expired    bool   `json:"expired,omitempty"`
	TTLSeconds int64  `json:"ttlSeconds,omitempty"`
	Token      string `json:"token,omitempty"`
}

func (*TokenSpec) DeepCopy

func (in *TokenSpec) DeepCopy() *TokenSpec

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

func (*TokenSpec) DeepCopyInto

func (in *TokenSpec) DeepCopyInto(out *TokenSpec)

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

type TokenStatus

type TokenStatus struct {
	ExpiresAt metav1.Time `json:"expiresAt,omitempty"`
	IsExpired bool        `json:"isExpired"`
}

func (*TokenStatus) DeepCopy

func (in *TokenStatus) DeepCopy() *TokenStatus

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

func (*TokenStatus) DeepCopyInto

func (in *TokenStatus) DeepCopyInto(out *TokenStatus)

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

type Upgrade

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

	Spec   UpgradeSpec   `json:"spec,omitempty"`
	Status UpgradeStatus `json:"status,omitempty"`
}

Upgrade is the Schema for the upgrades API

func NewUpgrade

func NewUpgrade(namespace, name string, obj Upgrade) *Upgrade

func (*Upgrade) DeepCopy

func (in *Upgrade) DeepCopy() *Upgrade

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

func (*Upgrade) DeepCopyInto

func (in *Upgrade) DeepCopyInto(out *Upgrade)

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

func (*Upgrade) DeepCopyObject

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

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

type UpgradeJobStatus

type UpgradeJobStatus struct {
	Name           string      `json:"name"`
	HelmChartName  string      `json:"helmChartName"`
	Complete       bool        `json:"complete"`
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

func (*UpgradeJobStatus) DeepCopy

func (in *UpgradeJobStatus) DeepCopy() *UpgradeJobStatus

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

func (*UpgradeJobStatus) DeepCopyInto

func (in *UpgradeJobStatus) DeepCopyInto(out *UpgradeJobStatus)

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

type UpgradeList

type UpgradeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Upgrade `json:"items"`
}

UpgradeList is a list of Upgrade resources

func (*UpgradeList) DeepCopy

func (in *UpgradeList) DeepCopy() *UpgradeList

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

func (*UpgradeList) DeepCopyInto

func (in *UpgradeList) DeepCopyInto(out *UpgradeList)

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

func (*UpgradeList) DeepCopyObject

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

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

type UpgradeManagedAddonStatus

type UpgradeManagedAddonStatus struct {
	Name           string      `json:"name"`
	JobName        string      `json:"jobName,omitempty"`
	Complete       bool        `json:"complete"`
	Disabled       bool        `json:"disabled"`
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

func (*UpgradeManagedAddonStatus) DeepCopy

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

func (*UpgradeManagedAddonStatus) DeepCopyInto

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

type UpgradePlanStatus

type UpgradePlanStatus struct {
	Name           string      `json:"name"`
	Complete       bool        `json:"complete"`
	LatestHash     string      `json:"latestHash,omitempty"`
	LatestVersion  string      `json:"latestVersion,omitempty"`
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
}

func (*UpgradePlanStatus) DeepCopy

func (in *UpgradePlanStatus) DeepCopy() *UpgradePlanStatus

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

func (*UpgradePlanStatus) DeepCopyInto

func (in *UpgradePlanStatus) DeepCopyInto(out *UpgradePlanStatus)

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

type UpgradeSpec

type UpgradeSpec struct {
	// +kubebuilder:validation:Required
	// The LLMOS Operator version to upgrade to
	Version string `json:"version"`

	// +Optional, Specify the Kubernetes version to upgrade to
	KubernetesVersion string `json:"kubernetesVersion,omitempty"`

	// +Optional, override the default image registry if provided
	Registry string `json:"registry,omitempty"`

	// +Optional, Specify the drain spec
	Drain *upgradev1.DrainSpec `json:"drain,omitempty"`
}

UpgradeSpec defines the desired state of Upgrade

func (*UpgradeSpec) DeepCopy

func (in *UpgradeSpec) DeepCopy() *UpgradeSpec

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

func (*UpgradeSpec) DeepCopyInto

func (in *UpgradeSpec) DeepCopyInto(out *UpgradeSpec)

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

type UpgradeStatus

type UpgradeStatus struct {
	// +optional
	Conditions []common.Condition `json:"conditions,omitempty"`
	// +optional, a map of node name to upgrade status
	NodeStatuses map[string]NodeUpgradeStatus `json:"nodeStatuses,omitempty"`
	// +optional, previous llmos version
	PreviousVersion string `json:"previousVersion,omitempty"`
	// +optional, previous Kubernetes version
	PreviousKubernetesVersion string `json:"PreviousKubernetesVersion,omitempty"`
	// +optional, Node image used for upgrade
	NodeImageId string `json:"nodeImageId,omitempty"`
	// +optional
	State string `json:"state,omitempty"`
	// +optional, save the applied version
	AppliedVersion string `json:"appliedVersion,omitempty"`
	// +optional, a list of upgrade jobs that are required to be completed before the upgrade can be ready
	UpgradeJobs []UpgradeJobStatus `json:"upgradeJobs,omitempty"`
	// +optional, a map of plan name to upgrade status
	PlanStatus []UpgradePlanStatus `json:"planStatus,omitempty"`
	// +optional, a list of managed addon upgrade status
	ManagedAddonStatus []UpgradeManagedAddonStatus `json:"managedAddonStatus,omitempty"`
	// +optional
	StartTime metav1.Time `json:"startTime,omitempty"`
	// +optional
	CompleteTime metav1.Time `json:"completeTime,omitempty"`
}

UpgradeStatus defines the observed state of Upgrade

func (*UpgradeStatus) DeepCopy

func (in *UpgradeStatus) DeepCopy() *UpgradeStatus

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

func (*UpgradeStatus) DeepCopyInto

func (in *UpgradeStatus) DeepCopyInto(out *UpgradeStatus)

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

type User

type User struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              UserSpec   `json:"spec"`
	Status            UserStatus `json:"status,omitempty"`
}

func NewUser

func NewUser(namespace, name string, obj User) *User

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

type UserList

type UserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []User `json:"items"`
}

UserList is a list of User resources

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

type UserSpec

type UserSpec struct {
	// +kubebuilder:validation:Required
	Username string `json:"username"`

	// +optional
	DisplayName string `json:"displayName,omitempty"`

	// +optional
	Description string `json:"description,omitempty"`

	// +kubebuilder:validation:Required
	Password string `json:"password"`

	// +kubebuilder:default:=true
	Active bool `json:"active"`
}

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

type UserStatus

type UserStatus struct {
	Conditions     []common.Condition `json:"conditions,omitempty"`
	LastUpdateTime string             `json:"lastUpdateTime,omitempty"`
	IsAdmin        bool               `json:"isAdmin"`
	IsActive       bool               `json:"isActive"`
}

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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

type Version

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

	Spec VersionSpec `json:"spec,omitempty"`
}

Version is the Schema for the upgrade version

func NewVersion

func NewVersion(namespace, name string, obj Version) *Version

func (*Version) DeepCopy

func (in *Version) DeepCopy() *Version

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

func (*Version) DeepCopyInto

func (in *Version) DeepCopyInto(out *Version)

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

func (*Version) DeepCopyObject

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

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

type VersionList

type VersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Version `json:"items"`
}

VersionList is a list of Version resources

func (*VersionList) DeepCopy

func (in *VersionList) DeepCopy() *VersionList

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

func (*VersionList) DeepCopyInto

func (in *VersionList) DeepCopyInto(out *VersionList)

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

func (*VersionList) DeepCopyObject

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

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

type VersionSpec

type VersionSpec struct {
	// +optional, Specify the minimum version that can be upgraded from
	MinUpgradableVersion string `json:"minUpgradableVersion,omitempty"`

	// +optional, Specify the kubernetes version to upgrade to
	KubernetesVersion string `json:"kubernetesVersion,omitempty"`

	// +kubebuilder:validation:Required
	ReleaseDate string `json:"releaseDate,omitempty"`

	// +optional, Specify the tags of the version
	Tags []string `json:"tags,omitempty"`
}

VersionSpec defines the desired state of Version

func (*VersionSpec) DeepCopy

func (in *VersionSpec) DeepCopy() *VersionSpec

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

func (*VersionSpec) DeepCopyInto

func (in *VersionSpec) DeepCopyInto(out *VersionSpec)

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