v1alpha1

package
v0.0.0-...-fb622d0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the microk8s v1alpha1 API group +kubebuilder:object:generate=true +groupName=microk8s.canonical.com

Index

Constants

This section is empty.

Variables

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

type AddonRepositorySpec struct {
	// Name is the name used to refer to the addon repository.
	Name string `json:"name"`
	// Repository is the source to use for the addon repository.
	Repository string `json:"repository"`
	// Reference is the a git tag to checkout (leave empty to fetch the default branch).
	Reference string `json:"reference,omitempty"`
}

func (*AddonRepositorySpec) DeepCopy

func (in *AddonRepositorySpec) DeepCopy() *AddonRepositorySpec

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

func (*AddonRepositorySpec) DeepCopyInto

func (in *AddonRepositorySpec) DeepCopyInto(out *AddonRepositorySpec)

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

type AddonRepositoryStatus

type AddonRepositoryStatus struct {
	// Name is the name of the addon repository
	Name string `json:"name"`
	// Status is the status of the addon repository
	Status string `json:"status"`
}

func (*AddonRepositoryStatus) DeepCopy

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

func (*AddonRepositoryStatus) DeepCopyInto

func (in *AddonRepositoryStatus) DeepCopyInto(out *AddonRepositoryStatus)

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

type Configuration

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

	Spec   ConfigurationSpec   `json:"spec,omitempty"`
	Status ConfigurationStatus `json:"status,omitempty"`
}

Configuration is the Schema for the configurations API

func (*Configuration) DeepCopy

func (in *Configuration) DeepCopy() *Configuration

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

func (*Configuration) DeepCopyInto

func (in *Configuration) DeepCopyInto(out *Configuration)

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

func (*Configuration) DeepCopyObject

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

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

type ConfigurationList

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

ConfigurationList contains a list of Configuration

func (*ConfigurationList) DeepCopy

func (in *ConfigurationList) DeepCopy() *ConfigurationList

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

func (*ConfigurationList) DeepCopyInto

func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)

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

func (*ConfigurationList) DeepCopyObject

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

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

type ConfigurationSpec

type ConfigurationSpec struct {

	// AddonRepositories is the list of addon repositories to configure.
	AddonRepositories []AddonRepositorySpec `json:"addonRepositories,omitempty"`

	// ContainerdRegistryConfigs is configuration for the image registries.
	// The key name is the name of the registry, and the value is the contents
	// of the hosts.toml file.
	ContainerdRegistryConfigs map[string]string `json:"containerdRegistryConfigs,omitempty"`

	// ContainerdEnv is environment variables for the containerd service.
	ContainerdEnv string `json:"containerdEnv,omitempty"`

	// PodCIDR is the CIDR to use for pods. This should match any CNI configuration.
	PodCIDR string `json:"podCIDR,omitempty"`

	// ExtraSANs is a list of extra subject alternative names to add to the server certificates.
	ExtraSANs []string `json:"extraSANs,omitempty"`

	// ExtraSANIPs is a list of extra IP addresses to include as SANs to the server certificates.
	ExtraSANIPs []string `json:"extraSANIPs,omitempty"`

	// ExtraKubeletArgs are extra arguments to pass to kubelet.
	ExtraKubeletArgs map[string]*string `json:"extraKubeletArgs,omitempty"`

	// ExtraAPIServerArgs are extra arguments to pass to kube-apiserver.
	ExtraAPIServerArgs map[string]*string `json:"extraKubeAPIServerArgs,omitempty"`
}

ConfigurationSpec defines the desired state of Configuration

func (*ConfigurationSpec) DeepCopy

func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec

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

func (*ConfigurationSpec) DeepCopyInto

func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)

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

type ConfigurationStatus

type ConfigurationStatus struct {

	// AddonRepositories is the status of the addon repositories
	AddonRepositories []AddonRepositoryStatus `json:"addonRepositories"`
}

ConfigurationStatus defines the observed state of Configuration

func (*ConfigurationStatus) DeepCopy

func (in *ConfigurationStatus) DeepCopy() *ConfigurationStatus

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

func (*ConfigurationStatus) DeepCopyInto

func (in *ConfigurationStatus) DeepCopyInto(out *ConfigurationStatus)

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

type MicroK8sNode

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

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

MicroK8sNode is the Schema for the microk8snodes API

func (*MicroK8sNode) DeepCopy

func (in *MicroK8sNode) DeepCopy() *MicroK8sNode

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

func (*MicroK8sNode) DeepCopyInto

func (in *MicroK8sNode) DeepCopyInto(out *MicroK8sNode)

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

func (*MicroK8sNode) DeepCopyObject

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

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

type MicroK8sNodeList

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

MicroK8sNodeList contains a list of MicroK8sNode

func (*MicroK8sNodeList) DeepCopy

func (in *MicroK8sNodeList) DeepCopy() *MicroK8sNodeList

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

func (*MicroK8sNodeList) DeepCopyInto

func (in *MicroK8sNodeList) DeepCopyInto(out *MicroK8sNodeList)

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

func (*MicroK8sNodeList) DeepCopyObject

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

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

type MicroK8sNodeStatus

type MicroK8sNodeStatus struct {

	// LastUpdate is the timestamp of the last update of this node.
	LastUpdate metav1.Time `json:"lastUpdate"`

	// Revision is the installed MicroK8s snap revision.
	Revision string `json:"revision"`

	// Channel is the channel MicroK8s is tracking.
	Channel string `json:"channel"`

	// Version is the MicroK8s snap version.
	Version string `json:"version"`

	// Confinement is the MicroK8s snap confinement level.
	Confinement string `json:"confinement"`
}

MicroK8sNodeStatus defines the observed state of MicroK8sNode

func (*MicroK8sNodeStatus) DeepCopy

func (in *MicroK8sNodeStatus) DeepCopy() *MicroK8sNodeStatus

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

func (*MicroK8sNodeStatus) DeepCopyInto

func (in *MicroK8sNodeStatus) DeepCopyInto(out *MicroK8sNodeStatus)

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