v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	GroupName = "features.criticalstack.com"
)
View Source
const (
	StackAppReady = "Ready"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: GroupName, 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 VerificationHash = crypto.SHA256

Functions

func ConfigMapHash

func ConfigMapHash(cm *corev1.ConfigMap) []byte

Types

type AppRevision

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

	Spec   AppRevisionSpec   `json:"spec,omitempty"`
	Status AppRevisionStatus `json:"status,omitempty"`
}

AppRevision is the Schema for the stackapps API

func (*AppRevision) DeepCopy

func (in *AppRevision) DeepCopy() *AppRevision

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

func (*AppRevision) DeepCopyInto

func (in *AppRevision) DeepCopyInto(out *AppRevision)

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

func (*AppRevision) DeepCopyObject

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

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

func (*AppRevision) Default

func (r *AppRevision) Default()

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

func (*AppRevision) SetupWebhookWithManager

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

func (*AppRevision) ValidateCreate

func (r *AppRevision) ValidateCreate() error

func (*AppRevision) ValidateDelete

func (r *AppRevision) ValidateDelete() error

func (*AppRevision) ValidateUpdate

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

type AppRevisionCondition

type AppRevisionCondition struct {
	// Type of apprevision condition.
	Type AppRevisionConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`

	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

AppRevisionCondition describes the state of an apprevision at a certain point.

func (*AppRevisionCondition) DeepCopy

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

func (*AppRevisionCondition) DeepCopyInto

func (in *AppRevisionCondition) DeepCopyInto(out *AppRevisionCondition)

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

type AppRevisionConditionType

type AppRevisionConditionType string
const (
	AppRevisionReady            AppRevisionConditionType = "Ready"
	AppRevisionHealthy          AppRevisionConditionType = "Healthy"
	AppRevisionDeploymentFailed AppRevisionConditionType = "DeploymentFailed"
	AppRevisionUpdating         AppRevisionConditionType = "Updating"
)

type AppRevisionConfig

type AppRevisionConfig struct {
	AppNamespace string        `json:"appNamespace"`
	Signing      SigningConfig `json:"signing,omitempty"`
	DevMode      bool          `json:"devMode,omitempty"`
}

func (*AppRevisionConfig) DeepCopy

func (in *AppRevisionConfig) DeepCopy() *AppRevisionConfig

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

func (*AppRevisionConfig) DeepCopyInto

func (in *AppRevisionConfig) DeepCopyInto(out *AppRevisionConfig)

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

type AppRevisionList

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

+kubebuilder:object:root=true AppRevisionList contains a list of AppRevision

func (*AppRevisionList) DeepCopy

func (in *AppRevisionList) DeepCopy() *AppRevisionList

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

func (*AppRevisionList) DeepCopyInto

func (in *AppRevisionList) DeepCopyInto(out *AppRevisionList)

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

func (*AppRevisionList) DeepCopyObject

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

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

type AppRevisionResource

type AppRevisionResource struct {
	unstructured.Unstructured `json:"-"`
}

func (*AppRevisionResource) DeepCopy

func (in *AppRevisionResource) DeepCopy() *AppRevisionResource

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

func (*AppRevisionResource) DeepCopyInto

func (in *AppRevisionResource) DeepCopyInto(out *AppRevisionResource)

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

func (AppRevisionResource) MarshalJSON

func (r AppRevisionResource) MarshalJSON() ([]byte, error)

func (*AppRevisionResource) UnmarshalJSON

func (r *AppRevisionResource) UnmarshalJSON(b []byte) error

type AppRevisionSpec

type AppRevisionSpec struct {
	// Revision number of this version of the application
	Revision uint64 `json:"revision,omitempty"`

	// Manifests represents the name of a ConfigMap in the app namespace containing manifests to be deployed
	Manifests string `json:"manifests"`

	// Signatures is an optional map of VerificationKey names to signatures of the manifest data
	Signatures map[string][]byte `json:"signatures,omitempty"`

	HealthChecks []HealthCheck `json:"healthChecks,omitempty"`

	Config AppRevisionConfig `json:"appRevisionConfig,omitempty"`
}

AppRevisionSpec defines the desired state of AppRevision

func (*AppRevisionSpec) DeepCopy

func (in *AppRevisionSpec) DeepCopy() *AppRevisionSpec

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

func (*AppRevisionSpec) DeepCopyInto

func (in *AppRevisionSpec) DeepCopyInto(out *AppRevisionSpec)

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

type AppRevisionState

type AppRevisionState string
const (
	AppRevisionStateCreating AppRevisionState = "creating"
	AppRevisionStateUpdating AppRevisionState = "updating"
	AppRevisionStateError    AppRevisionState = "error"
	AppRevisionStateReady    AppRevisionState = "ready"
)

type AppRevisionStatus

type AppRevisionStatus struct {
	Resources          []AppRevisionResource  `json:"resources"`
	OriginalResources  []AppRevisionResource  `json:"originalResources"`
	Conditions         []AppRevisionCondition `json:"conditions"`
	ResourceConditions []ResourceCondition    `json:"resourceConditions"`
}

AppRevisionStatus defines the observed state of AppRevision

func (*AppRevisionStatus) DeepCopy

func (in *AppRevisionStatus) DeepCopy() *AppRevisionStatus

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

func (*AppRevisionStatus) DeepCopyInto

func (in *AppRevisionStatus) DeepCopyInto(out *AppRevisionStatus)

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

func (*AppRevisionStatus) Default

func (s *AppRevisionStatus) Default()

Default sets non-nil values for the status

type CurrentReleaseState

type CurrentReleaseState struct {
	Name               string `json:"name"`
	Namespace          string `json:"namespace"`
	StackReleaseStatus `json:"status,omitempty"`
}

func (*CurrentReleaseState) DeepCopy

func (in *CurrentReleaseState) DeepCopy() *CurrentReleaseState

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

func (*CurrentReleaseState) DeepCopyInto

func (in *CurrentReleaseState) DeepCopyInto(out *CurrentReleaseState)

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

type CurrentRevisionState

type CurrentRevisionState struct {
	Name      string                 `json:"name"`
	Namespace string                 `json:"namespace"`
	Revision  uint64                 `json:"revision"`
	Healthy   corev1.ConditionStatus `json:"healthy"`
}

func (*CurrentRevisionState) DeepCopy

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

func (*CurrentRevisionState) DeepCopyInto

func (in *CurrentRevisionState) DeepCopyInto(out *CurrentRevisionState)

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

type HealthCheck

type HealthCheck struct {
	// +kubebuilder:validation:Enum=jsonpath;go-template
	Type  HealthCheckType `json:"type"`
	Value string          `json:"value"`
	Name  string          `json:"name,omitempty"`
}

func (*HealthCheck) DeepCopy

func (in *HealthCheck) DeepCopy() *HealthCheck

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

func (*HealthCheck) DeepCopyInto

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

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

type HealthCheckType

type HealthCheckType string
const (
	HealthCheckTypeJSONPath   HealthCheckType = "jsonpath"
	HealthCheckTypeGoTemplate HealthCheckType = "go-template"
)

type ReleaseBackend

type ReleaseBackend string
const (
	TraefikBackend   ReleaseBackend = "traefik"
	NoReleaseBackend ReleaseBackend = ""
)

type ReleaseConfig

type ReleaseConfig struct {
	Enabled          bool           `json:"enabled,omitempty"`
	ProxyNamespace   string         `json:"proxyNamespace,omitempty"`
	BackendType      ReleaseBackend `json:"backendType,omitempty"`
	IngressPort      int32          `json:"ingressPort,omitempty"`
	ReleaseStages    []ReleaseStage `json:"releaseStages,omitempty"`
	HostName         string         `json:"host,omitempty"`
	RollbackRevision StackAppSpec   `json:"rollbackRevision,omitempty"`
}

func (*ReleaseConfig) DeepCopy

func (in *ReleaseConfig) DeepCopy() *ReleaseConfig

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

func (*ReleaseConfig) DeepCopyInto

func (in *ReleaseConfig) DeepCopyInto(out *ReleaseConfig)

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

type ReleaseStage

type ReleaseStage struct {
	CanaryWeight uint8           `json:"canaryWeight"`
	NextStep     *metav1.Time    `json:"nextStep,omitempty"`
	StepDuration metav1.Duration `json:"stepDuration"`
}

func (*ReleaseStage) DeepCopy

func (in *ReleaseStage) DeepCopy() *ReleaseStage

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

func (*ReleaseStage) DeepCopyInto

func (in *ReleaseStage) DeepCopyInto(out *ReleaseStage)

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

type ResourceCondition

type ResourceCondition struct {
	Type   ResourceConditionType  `json:"type"`
	Status corev1.ConditionStatus `json:"status"`

	Instances []ResourceConditionInstance `json:"instances"`
}

func (*ResourceCondition) DeepCopy

func (in *ResourceCondition) DeepCopy() *ResourceCondition

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

func (*ResourceCondition) DeepCopyInto

func (in *ResourceCondition) DeepCopyInto(out *ResourceCondition)

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

type ResourceConditionInstance

type ResourceConditionInstance struct {
	Status   corev1.ConditionStatus           `json:"status"`
	Reason   string                           `json:"reason,omitempty"`
	Resource corev1.TypedLocalObjectReference `json:"resource"`
}

func (*ResourceConditionInstance) DeepCopy

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

func (*ResourceConditionInstance) DeepCopyInto

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

type ResourceConditionType

type ResourceConditionType string

type ResourceReference

type ResourceReference struct {
	APIVersion      string `json:"apiVersion"`
	Kind            string `json:"kind"`
	Name            string `json:"name"`
	UID             string `json:"uid,omitempty"`
	ResourceVersion string `json:"resourceVersion"`
}

ResourceReference represents a local (to the namespace) resource as known at time of creation

func (*ResourceReference) DeepCopy

func (in *ResourceReference) DeepCopy() *ResourceReference

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

func (*ResourceReference) DeepCopyInto

func (in *ResourceReference) DeepCopyInto(out *ResourceReference)

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

type SigningConfig

type SigningConfig struct {
	Optional                 bool `json:"optional,omitempty"`
	InsecureSkipVerification bool `json:"insecureSkipVerification,omitempty"`
}

func (*SigningConfig) DeepCopy

func (in *SigningConfig) DeepCopy() *SigningConfig

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

func (*SigningConfig) DeepCopyInto

func (in *SigningConfig) DeepCopyInto(out *SigningConfig)

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

type StackApp

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

	Spec   StackAppSpec   `json:"spec,omitempty"`
	Status StackAppStatus `json:"status,omitempty"`
}

StackApp is the Schema for the stackapps API

func (*StackApp) DeepCopy

func (in *StackApp) DeepCopy() *StackApp

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

func (*StackApp) DeepCopyInto

func (in *StackApp) DeepCopyInto(out *StackApp)

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

func (*StackApp) DeepCopyObject

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

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

func (*StackApp) Default

func (s *StackApp) Default()

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

func (*StackApp) SetupWebhookWithManager

func (s *StackApp) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*StackApp) ValidateCreate

func (s *StackApp) ValidateCreate() error

func (*StackApp) ValidateDelete

func (s *StackApp) ValidateDelete() error

func (*StackApp) ValidateUpdate

func (s *StackApp) ValidateUpdate(old runtime.Object) error

type StackAppConditionType

type StackAppConditionType string

type StackAppConfig

type StackAppConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StackAppConfigSpec `json:"spec"`
}

StackAppConfig is the Schema for the stackappconfigs API

func (*StackAppConfig) DeepCopy

func (in *StackAppConfig) DeepCopy() *StackAppConfig

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

func (*StackAppConfig) DeepCopyInto

func (in *StackAppConfig) DeepCopyInto(out *StackAppConfig)

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

func (*StackAppConfig) DeepCopyObject

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

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

type StackAppConfigList

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

StackAppConfigList contains a list of StackAppConfig

func (*StackAppConfigList) DeepCopy

func (in *StackAppConfigList) DeepCopy() *StackAppConfigList

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

func (*StackAppConfigList) DeepCopyInto

func (in *StackAppConfigList) DeepCopyInto(out *StackAppConfigList)

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

func (*StackAppConfigList) DeepCopyObject

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

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

type StackAppConfigSpec

type StackAppConfigSpec struct {
	AppNamespace string            `json:"appNamespace"`
	Releases     ReleaseConfig     `json:"releases,omitempty"`
	StackValues  StackValuesConfig `json:"stackValues,omitempty"`
	AppRevisions AppRevisionConfig `json:"appRevisions,omitempty"`
}

func (*StackAppConfigSpec) DeepCopy

func (in *StackAppConfigSpec) DeepCopy() *StackAppConfigSpec

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

func (*StackAppConfigSpec) DeepCopyInto

func (in *StackAppConfigSpec) DeepCopyInto(out *StackAppConfigSpec)

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

type StackAppList

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

StackAppList contains a list of StackApp

func (*StackAppList) DeepCopy

func (in *StackAppList) DeepCopy() *StackAppList

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

func (*StackAppList) DeepCopyInto

func (in *StackAppList) DeepCopyInto(out *StackAppList)

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

func (*StackAppList) DeepCopyObject

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

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

type StackAppSpec

type StackAppSpec struct {
	AppRevision  AppRevisionSpec `json:"appRevision"`
	MajorVersion uint64          `json:"majorVersion"`
}

StackAppSpec defines the desired state of StackApp

func (*StackAppSpec) DeepCopy

func (in *StackAppSpec) DeepCopy() *StackAppSpec

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

func (*StackAppSpec) DeepCopyInto

func (in *StackAppSpec) DeepCopyInto(out *StackAppSpec)

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

type StackAppState

type StackAppState string
const (
	StackAppStateCreating StackAppState = "creating"
	StackAppStateError    StackAppState = "error"
	StackAppStateReady    StackAppState = "ready"
)

type StackAppStatus

type StackAppStatus struct {
	CurrentRelease CurrentReleaseState `json:"currentRelease,omitempty"`

	State   StackAppState `json:"state"`
	Reason  string        `json:"reason"`
	Message string        `json:"message"`
}

func (*StackAppStatus) DeepCopy

func (in *StackAppStatus) DeepCopy() *StackAppStatus

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

func (*StackAppStatus) DeepCopyInto

func (in *StackAppStatus) DeepCopyInto(out *StackAppStatus)

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

type StackRelease

type StackRelease struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              StackReleaseSpec   `json:"spec,omitempty"`
	Status            StackReleaseStatus `json:"status,omitempty"`
}

StackRelease is the Schema for the stackreleases API +kubebuilder:resource:scope=Cluster

func (*StackRelease) DeepCopy

func (in *StackRelease) DeepCopy() *StackRelease

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

func (*StackRelease) DeepCopyInto

func (in *StackRelease) DeepCopyInto(out *StackRelease)

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

func (*StackRelease) DeepCopyObject

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

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

type StackReleaseCondition

type StackReleaseCondition struct {
	// Type of statefulset condition.
	Type StackReleaseConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`

	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`

	CanaryWeight ReleaseStage `json:"canaryweight"`
}

func (*StackReleaseCondition) DeepCopy

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

func (*StackReleaseCondition) DeepCopyInto

func (in *StackReleaseCondition) DeepCopyInto(out *StackReleaseCondition)

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

type StackReleaseConditionType

type StackReleaseConditionType string
const (
	StackReleaseError      StackReleaseConditionType = "error"
	StackReleaseInstalling StackReleaseConditionType = "installing"
	StackReleaseDeploying  StackReleaseConditionType = "deploying"
)

type StackReleaseList

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

StackReleaseList contains a list of StackRelease

func (*StackReleaseList) DeepCopy

func (in *StackReleaseList) DeepCopy() *StackReleaseList

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

func (*StackReleaseList) DeepCopyInto

func (in *StackReleaseList) DeepCopyInto(out *StackReleaseList)

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

func (*StackReleaseList) DeepCopyObject

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

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

type StackReleaseSpec

type StackReleaseSpec struct {
	AppName         string          `json:"appname"`
	Version         uint64          `json:"version"`
	AppRevision     AppRevisionSpec `json:"apprevision"`
	Config          ReleaseConfig   `json:"releaseconfig"`
	RollBackService string          `json:"rollBackService,omitempty"`
}

func (*StackReleaseSpec) DeepCopy

func (in *StackReleaseSpec) DeepCopy() *StackReleaseSpec

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

func (*StackReleaseSpec) DeepCopyInto

func (in *StackReleaseSpec) DeepCopyInto(out *StackReleaseSpec)

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

type StackReleaseState

type StackReleaseState string
const (
	StackReleaseStateCreating  StackReleaseState = "creating"
	StackReleaseStateError     StackReleaseState = "error"
	StackReleaseStateDeploying StackReleaseState = "deploying"
	StackReleaseStateReady     StackReleaseState = "ready"
	StackReleaseStateRollback  StackReleaseState = "rollback"
)

type StackReleaseStatus

type StackReleaseStatus struct {
	CurrentRevision CurrentRevisionState `json:"currentRevision"`

	State               StackReleaseState       `json:"state"`
	Reason              string                  `json:"reason"`
	Conditions          []StackReleaseCondition `json:"conditions,omitempty"`
	CurrentCanaryWeight ReleaseStage            `json:"currentCanaryWeight,omitempty"`
}

StackReleaseStatus defines the observed state of StackRelease

func (*StackReleaseStatus) DeepCopy

func (in *StackReleaseStatus) DeepCopy() *StackReleaseStatus

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

func (*StackReleaseStatus) DeepCopyInto

func (in *StackReleaseStatus) DeepCopyInto(out *StackReleaseStatus)

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

type StackValue

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

	Spec   StackValueSpec   `json:"spec,omitempty"`
	Status StackValueStatus `json:"status,omitempty"`
}

StackValue is the Schema for the stackvalues API

func (*StackValue) DeepCopy

func (in *StackValue) DeepCopy() *StackValue

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

func (*StackValue) DeepCopyInto

func (in *StackValue) DeepCopyInto(out *StackValue)

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

func (*StackValue) DeepCopyObject

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

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

type StackValueCondition

type StackValueCondition struct {
	// Type of stackvalue condition.
	Type StackValueConditionType `json:"type"`

	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`

	// Last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`
}

AppRevisionCondition describes the state of a stackvalue at a certain point.

func (*StackValueCondition) DeepCopy

func (in *StackValueCondition) DeepCopy() *StackValueCondition

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

func (*StackValueCondition) DeepCopyInto

func (in *StackValueCondition) DeepCopyInto(out *StackValueCondition)

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

type StackValueConditionType

type StackValueConditionType string
const (
	StackValueReady  StackValueConditionType = "Ready"
	StackValueFailed StackValueConditionType = "Failed"
)

type StackValueList

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

StackValueList contains a list of StackValues

func (*StackValueList) DeepCopy

func (in *StackValueList) DeepCopy() *StackValueList

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

func (*StackValueList) DeepCopyInto

func (in *StackValueList) DeepCopyInto(out *StackValueList)

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

func (*StackValueList) DeepCopyObject

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

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

type StackValueSource

type StackValueSource struct {
	Name string `json:"name"`

	// +kubebuilder:validation:Enum=artifactory;vault;aws_s3
	Type  StackValueSourceType `json:"type"`
	Route string               `json:"route"`
	// TODO: this should be specified somewhere else
	Region string `json:"region"`

	Token []byte `json:"token,omitempty"`
}

func (*StackValueSource) DeepCopy

func (in *StackValueSource) DeepCopy() *StackValueSource

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

func (*StackValueSource) DeepCopyInto

func (in *StackValueSource) DeepCopyInto(out *StackValueSource)

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

type StackValueSourceType

type StackValueSourceType string
const (
	StackValueSourceArtifactory StackValueSourceType = "artifactory"
	StackValueSourceAWSS3       StackValueSourceType = "aws_s3" // aws.s3 maybe?
	StackValueSourceVault       StackValueSourceType = "vault"
)

type StackValueSpec

type StackValueSpec struct {
	AppName string `json:"appName"`

	// ObjectType is the kind of resource to be created
	ObjectType string `json:"objectType"`

	// +kubebuilder:validation:Enum=artifactory;aws_s3;vault
	SourceType StackValueSourceType `json:"sourceType"`
	Path       string               `json:"path"`
}

StackValueSpec defines the desired state of StackValue

func (*StackValueSpec) DeepCopy

func (in *StackValueSpec) DeepCopy() *StackValueSpec

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

func (*StackValueSpec) DeepCopyInto

func (in *StackValueSpec) DeepCopyInto(out *StackValueSpec)

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

type StackValueStatus

type StackValueStatus struct {
	Conditions []StackValueCondition `json:"conditions,omitempty"`
}

StackValueStatus defines the observed state of StackValue

func (*StackValueStatus) DeepCopy

func (in *StackValueStatus) DeepCopy() *StackValueStatus

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

func (*StackValueStatus) DeepCopyInto

func (in *StackValueStatus) DeepCopyInto(out *StackValueStatus)

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

type StackValuesConfig

type StackValuesConfig struct {
	// Enabled is true when StackValues are enabled
	Enabled bool `json:"enabled"`

	// Secret is a reference to a secret containing auth data
	Secret  *corev1.SecretReference `json:"secret,omitempty"`
	Sources []*StackValueSource     `json:"sources,omitempty"`
}

func (*StackValuesConfig) DeepCopy

func (in *StackValuesConfig) DeepCopy() *StackValuesConfig

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

func (*StackValuesConfig) DeepCopyInto

func (in *StackValuesConfig) DeepCopyInto(out *StackValuesConfig)

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

func (StackValuesConfig) Source

type Values

type Values []StackValue

func (Values) DeepCopy

func (in Values) DeepCopy() Values

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

func (Values) DeepCopyInto

func (in Values) DeepCopyInto(out *Values)

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

type VerificationKey

type VerificationKey struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Data              string `json:"data"`
}

VerificationKey is the Schema for the verificationkeys API

func (*VerificationKey) DeepCopy

func (in *VerificationKey) DeepCopy() *VerificationKey

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

func (*VerificationKey) DeepCopyInto

func (in *VerificationKey) DeepCopyInto(out *VerificationKey)

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

func (*VerificationKey) DeepCopyObject

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

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

func (*VerificationKey) PublicKey

func (vk *VerificationKey) PublicKey() (*rsa.PublicKey, error)

func (*VerificationKey) SetupWebhookWithManager

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

func (*VerificationKey) ValidateCreate

func (vk *VerificationKey) ValidateCreate() error

func (*VerificationKey) ValidateDelete

func (vk *VerificationKey) ValidateDelete() error

func (*VerificationKey) ValidateUpdate

func (vk *VerificationKey) ValidateUpdate(old runtime.Object) error

func (*VerificationKey) VerifyConfigMapSignature

func (vk *VerificationKey) VerifyConfigMapSignature(signature []byte, cm *corev1.ConfigMap) error

type VerificationKeyList

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

VerificationKeyList contains a list of VerificationKey

func (*VerificationKeyList) DeepCopy

func (in *VerificationKeyList) DeepCopy() *VerificationKeyList

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

func (*VerificationKeyList) DeepCopyInto

func (in *VerificationKeyList) DeepCopyInto(out *VerificationKeyList)

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

func (*VerificationKeyList) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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