v1alpha1

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// VolumeType is used to determine things like storage classes and
	// volume configs between cluster types.
	//
	// For instance, on GCP we want to use GCE disks, whereas locally we
	// might actually want our NFS volumes
	VolumeType = os.Getenv("VOLUME_TYPE")
	VolumeSize = resource.MustParse("100Mi")
)
View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "app.gec", 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 App

type App struct {
	// See: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
	// we prefix 'v' to the version too, since that's what we slap on the front of our git and container tags.
	// +kubebuilder:validation:Pattern=`^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`
	Version string `json:"version"`
}

func (*App) DeepCopy

func (in *App) DeepCopy() *App

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

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

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

type Bot

type Bot struct {
	App `json:",inline"`
}

func (*Bot) DeepCopy

func (in *Bot) DeepCopy() *Bot

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

func (*Bot) DeepCopyInto

func (in *Bot) DeepCopyInto(out *Bot)

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

func (Bot) HasValidSignature

func (b Bot) HasValidSignature() bool

func (Bot) Image

func (b Bot) Image() string

func (Bot) SBOM

func (b Bot) SBOM() string

type Cluster

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

	Spec   ClusterSpec   `json:"spec,omitempty"`
	Status ClusterStatus `json:"status,omitempty"`
}

Cluster is the Schema for the clusters API

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

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

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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

func (*Cluster) DeepCopyObject

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

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

func (Cluster) InClusterImage

func (c Cluster) InClusterImage(ca ClusterApp) string

func (Cluster) InClusterName

func (c Cluster) InClusterName(ca ClusterApp) string

type ClusterApp

type ClusterApp uint8
const (
	UnknownClusterApp ClusterApp = iota
	ClusterBot
	ClusterProcessor
	ClusterSlacker
	ClusterMeta
)

func (ClusterApp) Resources

func (c ClusterApp) Resources() corev1.ResourceList

func (ClusterApp) String

func (c ClusterApp) String() string

func (ClusterApp) Volume

func (c ClusterApp) Volume(name string) []corev1.Volume

func (ClusterApp) VolumeMount

func (c ClusterApp) VolumeMount(name string) []corev1.VolumeMount

type ClusterList

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

ClusterList contains a list of Cluster

func (*ClusterList) DeepCopy

func (in *ClusterList) DeepCopy() *ClusterList

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

func (*ClusterList) DeepCopyInto

func (in *ClusterList) DeepCopyInto(out *ClusterList)

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

func (*ClusterList) DeepCopyObject

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

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

type ClusterSpec

type ClusterSpec struct {
	Bot       Bot       `json:"bot"`
	Processor Processor `json:"processor"`
	Slacker   Slacker   `json:"slacker"`
	Config    Config    `json:"config"`
}

ClusterSpec defines the desired state of Cluster

func (*ClusterSpec) DeepCopy

func (in *ClusterSpec) DeepCopy() *ClusterSpec

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

func (*ClusterSpec) DeepCopyInto

func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)

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

type ClusterStatus

type ClusterStatus struct {
}

ClusterStatus defines the observed state of Cluster

func (*ClusterStatus) DeepCopy

func (in *ClusterStatus) DeepCopy() *ClusterStatus

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

func (*ClusterStatus) DeepCopyInto

func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)

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

type Config

type Config struct {
	RedisURL string `json:"redis_url"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

type Processor

type Processor struct {
	App `json:",inline"`
}

func (*Processor) DeepCopy

func (in *Processor) DeepCopy() *Processor

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

func (*Processor) DeepCopyInto

func (in *Processor) DeepCopyInto(out *Processor)

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

func (Processor) HasValidSignature

func (p Processor) HasValidSignature() bool

func (Processor) Image

func (p Processor) Image() string

func (Processor) SBOM

func (p Processor) SBOM() string

type Slacker

type Slacker struct {
	App `json:",inline"`
}

func (*Slacker) DeepCopy

func (in *Slacker) DeepCopy() *Slacker

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

func (*Slacker) DeepCopyInto

func (in *Slacker) DeepCopyInto(out *Slacker)

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

func (Slacker) HasValidSignature

func (s Slacker) HasValidSignature() bool

func (Slacker) Image

func (s Slacker) Image() string

func (Slacker) SBOM

func (s Slacker) SBOM() string

Jump to

Keyboard shortcuts

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