v1alpha2

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the spinnaker v1alpha2 API group +k8s:deepcopy-gen=package,register +groupName=spinnaker.io

Package v1alpha2 contains API Schema definitions for the spinnaker v1alpha2 API group +k8s:deepcopy-gen=package,register +groupName=spinnaker.io

Index

Constants

View Source
const (
	HalConfigSource     = ConfigSource("hal")
	ProfileConfigSource = ConfigSource("profile")
)
View Source
const (
	Read    Authorization = "READ"
	Write                 = "WRITE"
	Execute               = "EXECUTE"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "spinnaker.io", Version: "v1alpha2"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

Types

type AccountConfig

type AccountConfig struct {
	// Enable the injection of SpinnakerAccount
	Enabled bool `json:"enabled,omitempty"`
	// Enable accounts to be added dynamically
	Dynamic bool `json:"dynamic,omitempty"`
}

+k8s:deepcopy-gen=true

func (*AccountConfig) DeepCopy

func (in *AccountConfig) DeepCopy() *AccountConfig

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

func (*AccountConfig) DeepCopyInto

func (in *AccountConfig) DeepCopyInto(out *AccountConfig)

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

type AccountPermissions

type AccountPermissions map[Authorization][]string

func (AccountPermissions) DeepCopy

func (in AccountPermissions) DeepCopy() AccountPermissions

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

func (AccountPermissions) DeepCopyInto

func (in AccountPermissions) DeepCopyInto(out *AccountPermissions)

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

type AccountType

type AccountType string
const (
	KubernetesAccountType AccountType = "Kubernetes"
	AWSAccountType                    = "AWS"
)

type Authorization

type Authorization string

type ConfigSource added in v0.3.3

type ConfigSource string

type ExposeConfig

type ExposeConfig struct {
	Type    string              `json:"type,omitempty"`
	Service ExposeConfigService `json:"service,omitempty"`
}

ExposeConfig represents the configuration for exposing Spinnaker +k8s:openapi-gen=true

func (*ExposeConfig) DeepCopy

func (in *ExposeConfig) DeepCopy() *ExposeConfig

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

func (*ExposeConfig) DeepCopyInto

func (in *ExposeConfig) DeepCopyInto(out *ExposeConfig)

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

func (*ExposeConfig) GetAggregatedAnnotations

func (e *ExposeConfig) GetAggregatedAnnotations(serviceName string) map[string]string

type ExposeConfigService

type ExposeConfigService struct {
	Type        string                                  `json:"type,omitempty"`
	Annotations map[string]string                       `json:"annotations,omitempty"`
	PublicPort  int32                                   `json:"publicPort,omitempty"`
	Overrides   map[string]ExposeConfigServiceOverrides `json:"overrides,omitempty"`
}

ExposeConfigService represents the configuration for exposing Spinnaker using k8s services +k8s:openapi-gen=true

func (*ExposeConfigService) DeepCopy

func (in *ExposeConfigService) DeepCopy() *ExposeConfigService

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

func (*ExposeConfigService) DeepCopyInto

func (in *ExposeConfigService) DeepCopyInto(out *ExposeConfigService)

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

type ExposeConfigServiceOverrides

type ExposeConfigServiceOverrides struct {
	Type        string            `json:"type,omitempty"`
	PublicPort  int32             `json:"publicPort,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

ExposeConfigServiceOverrides represents expose configurations of type service, overriden by specific services +k8s:openapi-gen=true

func (*ExposeConfigServiceOverrides) DeepCopy

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

func (*ExposeConfigServiceOverrides) DeepCopyInto

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

type FreeForm

type FreeForm map[string]interface{}

func (*FreeForm) DeepCopy

func (f *FreeForm) DeepCopy() *FreeForm

func (FreeForm) DeepCopyInto

func (in FreeForm) DeepCopyInto(out *FreeForm)

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

type HashStatus

type HashStatus struct {
	Hash          string      `json:"hash"`
	LastUpdatedAt metav1.Time `json:"lastUpdatedAt,omitempty"`
}

+k8s:openapi-gen=true

func (*HashStatus) DeepCopy

func (in *HashStatus) DeepCopy() *HashStatus

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

func (*HashStatus) DeepCopyInto

func (in *HashStatus) DeepCopyInto(out *HashStatus)

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

type KubernetesAuth

type KubernetesAuth struct {
	// KubeconfigFile referenced as an encrypted secret
	// +optional
	KubeconfigFile string `json:"kubeconfigFile,omitempty"`
	// Kubeconfig referenced as a Kubernetes secret
	// +optional
	KubeconfigSecret *SecretInNamespaceReference `json:"kubeconfigSecret,omitempty"`
	// Kubeconfig config referenced directly
	// +optional
	Kubeconfig *v1.Config `json:"kubeconfig,omitempty"`
	// UseServiceAccount authenticate to the target cluster using the service account mounted in Spinnaker's pods
	// +optional
	UseServiceAccount bool `json:"useServiceAccount"`
}

+k8s:openapi-gen=true

func (*KubernetesAuth) DeepCopy

func (in *KubernetesAuth) DeepCopy() *KubernetesAuth

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

func (*KubernetesAuth) DeepCopyInto

func (in *KubernetesAuth) DeepCopyInto(out *KubernetesAuth)

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

type SecretInNamespaceReference

type SecretInNamespaceReference struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

+k8s:openapi-gen=true

func (*SecretInNamespaceReference) DeepCopy

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

func (*SecretInNamespaceReference) DeepCopyInto

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

type SpinnakerAccount

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

	Spec   SpinnakerAccountSpec   `json:"spec,omitempty"`
	Status SpinnakerAccountStatus `json:"status,omitempty"`
}

SpinnakerAccount is the Schema for the spinnakeraccounts API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="type",type="string",JSONPath=".spec.type",description="Type" +kubebuilder:printcolumn:name="lastValidated",type="date",JSONPath=".status.LastValidatedAt",description="Last Validated" +kubebuilder:printcolumn:name="reason",type="string",JSONPath=".status.InvalidReason",description="Invalid Reason" +kubebuilder:resource:path=spinnakeraccounts,shortName=spinaccount

func (*SpinnakerAccount) DeepCopy

func (in *SpinnakerAccount) DeepCopy() *SpinnakerAccount

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

func (*SpinnakerAccount) DeepCopyInto

func (in *SpinnakerAccount) DeepCopyInto(out *SpinnakerAccount)

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

func (*SpinnakerAccount) DeepCopyObject

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

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

type SpinnakerAccountList

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

SpinnakerAccountList contains a list of SpinnakerAccount

func (*SpinnakerAccountList) DeepCopy

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

func (*SpinnakerAccountList) DeepCopyInto

func (in *SpinnakerAccountList) DeepCopyInto(out *SpinnakerAccountList)

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

func (*SpinnakerAccountList) DeepCopyObject

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

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

type SpinnakerAccountSpec

type SpinnakerAccountSpec struct {
	Enabled bool        `json:"enabled"`
	Type    AccountType `json:"type"`
	// +optional
	Validation ValidationSetting `json:"validation"`
	// +optional
	Permissions AccountPermissions `json:"permissions"`
	// +optional
	Kubernetes *KubernetesAuth `json:"kubernetes,omitempty"`
	// +optional
	Settings FreeForm `json:"settings,omitempty"`
}

SpinnakerAccountSpec defines the desired state of SpinnakerAccount +k8s:openapi-gen=true

func (*SpinnakerAccountSpec) DeepCopy

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

func (*SpinnakerAccountSpec) DeepCopyInto

func (in *SpinnakerAccountSpec) DeepCopyInto(out *SpinnakerAccountSpec)

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

type SpinnakerAccountStatus

type SpinnakerAccountStatus struct {
	InvalidReason   string            `json:"invalidReason"`
	LastValidatedAt *metav1.Timestamp `json:"lastValidatedAt"`
}

SpinnakerAccountStatus defines the observed state of SpinnakerAccount +k8s:openapi-gen=true

func (*SpinnakerAccountStatus) DeepCopy

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

func (*SpinnakerAccountStatus) DeepCopyInto

func (in *SpinnakerAccountStatus) DeepCopyInto(out *SpinnakerAccountStatus)

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

type SpinnakerConfig

type SpinnakerConfig struct {
	// Supporting files for the Spinnaker config
	Files map[string]string `json:"files,omitempty"`
	// Parsed service settings - comments are stripped
	ServiceSettings map[string]FreeForm `json:"service-settings,omitempty"`
	// Service profiles will be parsed as YAML
	Profiles map[string]FreeForm `json:"profiles,omitempty"`
	// Main deployment configuration to be passed to Halyard
	Config FreeForm `json:"config,omitempty"`
}

+k8s:deepcopy-gen=true

func (*SpinnakerConfig) DeepCopy

func (in *SpinnakerConfig) DeepCopy() *SpinnakerConfig

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

func (*SpinnakerConfig) DeepCopyInto

func (in *SpinnakerConfig) DeepCopyInto(out *SpinnakerConfig)

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

func (*SpinnakerConfig) GetConfigObjectArray added in v0.3.3

func (s *SpinnakerConfig) GetConfigObjectArray(svc, prop string) ([]map[string]interface{}, ConfigSource, error)

GetConfigObjectArray reads an untyped array from profile config, if not found, reads itt from hal config

func (*SpinnakerConfig) GetFileContent

func (s *SpinnakerConfig) GetFileContent(key string) []byte

GetFileContent returns the file content at key. It will be base64 decoded if possible.

func (*SpinnakerConfig) GetHalConfigObjectArray

func (s *SpinnakerConfig) GetHalConfigObjectArray(ctx context.Context, prop string) ([]map[string]interface{}, error)

GetHalConfigObjectArray reads an untyped array

func (*SpinnakerConfig) GetHalConfigPropBool

func (s *SpinnakerConfig) GetHalConfigPropBool(prop string, defaultVal bool) (bool, error)

GetHalConfigPropBool returns a boolean property in halconfig

func (*SpinnakerConfig) GetHalConfigPropString

func (s *SpinnakerConfig) GetHalConfigPropString(ctx context.Context, prop string) (string, error)

GetHalConfigPropString returns a property stored in halconfig, decrypting it if necessary We use the dot notation including for arrays e.g. providers.aws.accounts.0.name

func (*SpinnakerConfig) GetHash

func (s *SpinnakerConfig) GetHash() (string, error)

GetHash returns a hash of the config used

func (*SpinnakerConfig) GetRawConfigPropString added in v0.3.3

func (s *SpinnakerConfig) GetRawConfigPropString(svc, prop string) (string, ConfigSource, error)

GetRawConfigPropString returns the raw value of the prop in a service profile file, if not found, returns the value of the prop in the main hal config file

func (*SpinnakerConfig) GetRawHalConfigPropString added in v0.3.3

func (s *SpinnakerConfig) GetRawHalConfigPropString(prop string) (string, error)

GetRawHalConfigPropString returns a property stored in halconfig We use the dot notation including for arrays e.g. providers.aws.accounts.0.name

func (*SpinnakerConfig) GetRawServiceConfigPropString added in v0.3.3

func (s *SpinnakerConfig) GetRawServiceConfigPropString(svc, prop string) (string, error)

GetRawServiceConfigPropString returns the value of the prop in a service profile file, without decrypting any secret reference.

func (*SpinnakerConfig) GetServiceConfigObjectArray added in v0.3.3

func (s *SpinnakerConfig) GetServiceConfigObjectArray(svc, prop string) ([]map[string]interface{}, error)

GetServiceConfigObjectArray reads an untyped array from profile config

func (*SpinnakerConfig) GetServiceConfigPropString

func (s *SpinnakerConfig) GetServiceConfigPropString(ctx context.Context, svc, prop string) (string, error)

GetServiceConfigPropString returns the value of the prop in a service profile file

func (*SpinnakerConfig) GetServiceSettingsPropString

func (s *SpinnakerConfig) GetServiceSettingsPropString(ctx context.Context, svc, prop string) (string, error)

GetServiceSettingsPropString returns a service settings prop for a given service

func (*SpinnakerConfig) SetHalConfigProp

func (s *SpinnakerConfig) SetHalConfigProp(prop string, value interface{}) error

SetHalConfigProp sets a property in the config

func (*SpinnakerConfig) SetServiceConfigProp added in v0.3.3

func (s *SpinnakerConfig) SetServiceConfigProp(svc, prop string, value interface{}) error

SetServiceConfigProp sets a property in the profile config

type SpinnakerDeploymentStatus

type SpinnakerDeploymentStatus struct {
	// Name of the service deployed
	Name string `json:"name"`
	// Image deployed
	// +optional
	Image string `json:"image,omitempty"`
	// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
	// +optional
	Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"`
	// Total number of ready pods targeted by this deployment.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"`
}

SpinnakerDeploymentStatus represents the deployment status of a single service

func (*SpinnakerDeploymentStatus) DeepCopy

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

func (*SpinnakerDeploymentStatus) DeepCopyInto

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

type SpinnakerService

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

	Spec   SpinnakerServiceSpec   `json:"spec,omitempty"`
	Status SpinnakerServiceStatus `json:"status,omitempty"`
}

SpinnakerService is the Schema for the spinnakerservices API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="version",type="string",JSONPath=".status.version",description="Version" +kubebuilder:printcolumn:name="lastConfigured",type="date",JSONPath=".status.lastDeployed.config.lastUpdatedAt",description="Last Configured" +kubebuilder:printcolumn:name="status",type="string",JSONPath=".status.status",description="Status" +kubebuilder:printcolumn:name="services",type="number",JSONPath=".status.serviceCount",description="Services" +kubebuilder:printcolumn:name="url",type="string",JSONPath=".status.uiUrl",description="URL" +kubebuilder:printcolumn:name="apiUrl",type="string",JSONPath=".status.apiUrl",description="API URL",priority=1 +kubebuilder:resource:path=spinnakerservices,shortName=spinsvc

func (*SpinnakerService) DeepCopy

func (in *SpinnakerService) DeepCopy() *SpinnakerService

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

func (*SpinnakerService) DeepCopyInterface

func (s *SpinnakerService) DeepCopyInterface() SpinnakerServiceInterface

func (*SpinnakerService) DeepCopyInto

func (in *SpinnakerService) DeepCopyInto(out *SpinnakerService)

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

func (*SpinnakerService) DeepCopyObject

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

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

func (*SpinnakerService) GetAccountsConfig

func (s *SpinnakerService) GetAccountsConfig() AccountConfig

func (*SpinnakerService) GetExpose

func (s *SpinnakerService) GetExpose() ExposeConfig

func (*SpinnakerService) GetSpinnakerConfig

func (s *SpinnakerService) GetSpinnakerConfig() *SpinnakerConfig

func (*SpinnakerService) GetStatus

func (s *SpinnakerService) GetStatus() *SpinnakerServiceStatus

func (*SpinnakerService) GetValidation

func (s *SpinnakerService) GetValidation() SpinnakerValidation

type SpinnakerServiceBuilder

type SpinnakerServiceBuilder struct{}

func (*SpinnakerServiceBuilder) DeepCopy

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

func (*SpinnakerServiceBuilder) DeepCopyInto

func (in *SpinnakerServiceBuilder) DeepCopyInto(out *SpinnakerServiceBuilder)

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

func (*SpinnakerServiceBuilder) GetGroupVersion

func (s *SpinnakerServiceBuilder) GetGroupVersion() schema.GroupVersion

func (*SpinnakerServiceBuilder) New

func (*SpinnakerServiceBuilder) NewList

type SpinnakerServiceBuilderInterface

type SpinnakerServiceBuilderInterface interface {
	New() SpinnakerServiceInterface
	NewList() SpinnakerServiceListInterface
	GetGroupVersion() schema.GroupVersion
}

type SpinnakerServiceInterface

type SpinnakerServiceInterface interface {
	v1.Object
	runtime.Object
	GetStatus() *SpinnakerServiceStatus
	GetExpose() ExposeConfig
	GetSpinnakerConfig() *SpinnakerConfig
	DeepCopyInterface() SpinnakerServiceInterface
	GetAccountsConfig() AccountConfig
	GetValidation() SpinnakerValidation
}

type SpinnakerServiceList

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

SpinnakerServiceList contains a list of SpinnakerService

func (*SpinnakerServiceList) DeepCopy

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

func (*SpinnakerServiceList) DeepCopyInto

func (in *SpinnakerServiceList) DeepCopyInto(out *SpinnakerServiceList)

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

func (*SpinnakerServiceList) DeepCopyObject

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

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

func (*SpinnakerServiceList) GetItems

type SpinnakerServiceListInterface

type SpinnakerServiceListInterface interface {
	runtime.Object
	GetItems() []SpinnakerServiceInterface
}

type SpinnakerServiceSpec

type SpinnakerServiceSpec struct {
	SpinnakerConfig SpinnakerConfig `json:"spinnakerConfig" protobuf:"bytes,1,opt,name=spinnakerConfig"`
	// +optional
	Validation SpinnakerValidation `json:"validation,omitempty"`
	// +optional
	Expose ExposeConfig `json:"expose,omitempty"`
	// +optional
	Accounts AccountConfig `json:"accounts,omitempty"`
}

SpinnakerServiceSpec defines the desired state of SpinnakerService +k8s:openapi-gen=true

func (*SpinnakerServiceSpec) DeepCopy

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

func (*SpinnakerServiceSpec) DeepCopyInto

func (in *SpinnakerServiceSpec) DeepCopyInto(out *SpinnakerServiceSpec)

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

type SpinnakerServiceStatus

type SpinnakerServiceStatus struct {
	// Current deployed version of Spinnaker
	// +optional
	Version string `json:"version,omitempty"`
	// Last deployed hashes
	// +optional
	LastDeployed map[string]HashStatus `json:"lastDeployed,omitempty"`
	// Services deployment information
	// +optional
	// +listType=map
	// +listMapKey=name
	Services []SpinnakerDeploymentStatus `json:"services,omitempty"`
	// Overall Spinnaker status
	// +optional
	Status string `json:"status,omitempty"`
	// Number of services in Spinnaker
	// +optional
	ServiceCount int `json:"serviceCount,omitempty"`
	// Exposed Deck URL
	// +optional
	UIUrl string `json:"uiUrl"`
	// Exposed Gate URL
	// +optional
	APIUrl string `json:"apiUrl"`
	// Number of accounts
	// +optional
	AccountCount int `json:"accountCount,omitempty"`
}

SpinnakerServiceStatus defines the observed state of SpinnakerService +k8s:openapi-gen=true

func (*SpinnakerServiceStatus) DeepCopy

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

func (*SpinnakerServiceStatus) DeepCopyInto

func (in *SpinnakerServiceStatus) DeepCopyInto(out *SpinnakerServiceStatus)

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

func (*SpinnakerServiceStatus) UpdateHashIfNotExist

func (s *SpinnakerServiceStatus) UpdateHashIfNotExist(key, hash string, t time.Time, updateTime bool) HashStatus

GetUpdateHash updates the hash at key `key` and returns the prior copy if one existed LastDeployed should then contain the hash and the time if updateTime is true or if there was no hash

type SpinnakerValidation

type SpinnakerValidation struct {
	// Report errors but do not fail validation, defaults to true
	// +optional
	FailOnError *bool `json:"failOnError,omitempty"`
	// Number of seconds between each validation
	// +optional
	FrequencySeconds intstr.IntOrString `json:"frequencySeconds,omitempty"`
	// Fail validation on the first failed validation, defaults to false
	// +optional
	FailFast bool `json:"failFast"`
	// +optional
	Providers map[string]ValidationSetting `json:"providers,omitempty"`
	// +optional
	PersistentStorage map[string]ValidationSetting `json:"persistentStorage,omitempty"`
	// +optional
	MetricStores map[string]ValidationSetting `json:"metricStores,omitempty"`
	// +optional
	Notifications map[string]ValidationSetting `json:"notifications,omitempty"`
	// +optional
	CI map[string]ValidationSetting `json:"ci,omitempty"`
	// +optional
	Pubsub map[string]ValidationSetting `json:"pubsub,omitempty"`
	// +optional
	Canary map[string]ValidationSetting `json:"canary,omitempty"`
}

validation settings for the deployment

func (*SpinnakerValidation) DeepCopy

func (in *SpinnakerValidation) DeepCopy() *SpinnakerValidation

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

func (*SpinnakerValidation) DeepCopyInto

func (in *SpinnakerValidation) DeepCopyInto(out *SpinnakerValidation)

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

func (*SpinnakerValidation) GetValidationSettings

func (s *SpinnakerValidation) GetValidationSettings() ValidationSetting

type ValidationSetting

type ValidationSetting struct {
	// Enable or disable validation, defaults to false
	Enabled bool `json:"enabled"`
	// Report errors but do not fail validation, defaults to true
	// +optional
	FailOnError *bool `json:"failOnError,omitempty"`
	// Number of seconds between each validation
	// +optional
	FrequencySeconds intstr.IntOrString `json:"frequencySeconds,omitempty"`
}

func (*ValidationSetting) DeepCopy

func (in *ValidationSetting) DeepCopy() *ValidationSetting

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

func (*ValidationSetting) DeepCopyInto

func (in *ValidationSetting) DeepCopyInto(out *ValidationSetting)

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

func (*ValidationSetting) IsFatal

func (v *ValidationSetting) IsFatal() bool

func (*ValidationSetting) NeedsValidation

func (v *ValidationSetting) NeedsValidation(lastValid metav1.Time) bool

Jump to

Keyboard shortcuts

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