v1alpha1

package
v0.0.0-...-ecaab16 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the renovate v1beta1 API group +kubebuilder:object:generate=true +groupName=renovate.renovatebot.com

Index

Constants

View Source
const (
	//ScalingStrategy_NONE A single batch be created and no parallelization will take place
	ScalingStrategy_NONE = "none"
	//ScalingStrategy_SIZE Create batches based on number of repositories. If 30 repositories have been found and size
	//is defined as 10, then 3 batches will be created.
	ScalingStrategy_SIZE = "size"
)
View Source
const (
	PlatformType_GITHUB = "github"
	PlatformType_GITLAB = "gitlab"
)
View Source
const (
	LogLevel_TRACE = "trace"
	LogLevel_DEBUG = "debug"
	LogLevel_INFO  = "info"
	LogLevel_WARN  = "warn"
	LogLevel_ERROR = "error"
	LogLevel_FATAL = "fatal"
)
View Source
const (
	SharedCacheTypes_REDIS = "redis"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "renovate.renovatebot.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 LogLevel

type LogLevel string

+kubebuilder:validation:Enum=trace;debug;info;warn;error;fatal

type LoggingSettings

type LoggingSettings struct {
	//+kubebuilder:default=info
	Level LogLevel `json:"level"`
}

func (*LoggingSettings) DeepCopy

func (in *LoggingSettings) DeepCopy() *LoggingSettings

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

func (*LoggingSettings) DeepCopyInto

func (in *LoggingSettings) DeepCopyInto(out *LoggingSettings)

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

type Platform

type Platform struct {
	PlatformType PlatformTypes   `json:"type"`
	Endpoint     string          `json:"endpoint"`
	Token        v1.EnvVarSource `json:"token"`
}

func (*Platform) DeepCopy

func (in *Platform) DeepCopy() *Platform

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

func (*Platform) DeepCopyInto

func (in *Platform) DeepCopyInto(out *Platform)

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

type PlatformTypes

type PlatformTypes string

+kubebuilder:validation:Enum=github;gitlab

type Renovate

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

	Spec   RenovateSpec   `json:"spec,omitempty"`
	Status RenovateStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:shortName=ren +kubebuilder:printcolumn:name="Suspended",type=boolean,JSONPath=`.spec.suspend` +kubebuilder:printcolumn:name="DryRun",type=boolean,JSONPath=`.spec.renovate.dryRun` +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.renovate.version` Renovate crd object

func (*Renovate) DeepCopy

func (in *Renovate) DeepCopy() *Renovate

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

func (*Renovate) DeepCopyInto

func (in *Renovate) DeepCopyInto(out *Renovate)

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

func (*Renovate) DeepCopyObject

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

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

type RenovateAppConfig

type RenovateAppConfig struct {
	Platform Platform `json:"platform"`

	//+kubebuilder:default:="27.15.0"
	RenovateVersion string `json:"version,omitempty"`

	//+kubebuilder:default:=false
	DryRun *bool `json:"dryRun,omitempty"`

	//+kubebuilder:default:=true
	OnBoarding *bool `json:"onBoarding,omitempty"`

	//+kubebuilder:default:=10
	PrHourlyLimit int `json:"prHourlyLimit,omitempty"`

	AddLabels []string `json:"addLabels,omitempty"`

	GithubTokenSelector v1.EnvVarSource `json:"githubToken,omitempty"`
}

func (*RenovateAppConfig) DeepCopy

func (in *RenovateAppConfig) DeepCopy() *RenovateAppConfig

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

func (*RenovateAppConfig) DeepCopyInto

func (in *RenovateAppConfig) DeepCopyInto(out *RenovateAppConfig)

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

type RenovateDiscoveryConfig

type RenovateDiscoveryConfig struct {
	//+kubebuilder:validation:Optional
	//+kubebuilder:default:="0 */2 * * *"
	Schedule string `json:"schedule"`
}

func (*RenovateDiscoveryConfig) DeepCopy

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

func (*RenovateDiscoveryConfig) DeepCopyInto

func (in *RenovateDiscoveryConfig) DeepCopyInto(out *RenovateDiscoveryConfig)

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

type RenovateList

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

RenovateList contains a list of Renovate

func (*RenovateList) DeepCopy

func (in *RenovateList) DeepCopy() *RenovateList

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

func (*RenovateList) DeepCopyInto

func (in *RenovateList) DeepCopyInto(out *RenovateList)

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

func (*RenovateList) DeepCopyObject

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

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

type RenovateSpec

type RenovateSpec struct {
	RenovateAppConfig RenovateAppConfig `json:"renovate"`

	RenovateDiscoveryConfig RenovateDiscoveryConfig `json:"discovery,omitempty"`

	//+kubebuilder:validation:Optional
	//+kubebuilder:default:=false
	Suspend *bool `json:"suspend"`

	Schedule string `json:"schedule"`

	//+kubebuilder:validation:Optional
	Logging LoggingSettings `json:"logging"`

	//+kubebuilder:validation:Optional
	SharedCache SharedCache `json:"sharedCache"`

	//+kubebuilder:validation:Optional
	ScalingSpec ScalingSpec `json:"scaling"`
}

RenovateSpec defines the desired state of Renovate

func (*RenovateSpec) DeepCopy

func (in *RenovateSpec) DeepCopy() *RenovateSpec

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

func (*RenovateSpec) DeepCopyInto

func (in *RenovateSpec) DeepCopyInto(out *RenovateSpec)

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

type RenovateStatus

type RenovateStatus struct {
	DiscoveredRepositories []RepositoryPath `json:"discoveredDepositories"`
}

RenovateStatus defines the observed state of Renovate

func (*RenovateStatus) DeepCopy

func (in *RenovateStatus) DeepCopy() *RenovateStatus

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

func (*RenovateStatus) DeepCopyInto

func (in *RenovateStatus) DeepCopyInto(out *RenovateStatus)

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

type RepositoryPath

type RepositoryPath string

type ScalingSpec

type ScalingSpec struct {
	//+kubebuilder:validation:Enum=none;size
	//+kubebuilder:default:="none"
	ScalingStrategy ScalingStrategy `json:"strategy,omitempty"`

	//MaxWorkers Maximum number of parallel workers to start. A single worker will only process a single batch at maximum
	//+kubebuilder:default:=1
	MaxWorkers int32 `json:"maxWorkers"`

	//Size if ScalingStrategy
	Size int `json:"size,omitempty"`
}

func (*ScalingSpec) DeepCopy

func (in *ScalingSpec) DeepCopy() *ScalingSpec

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

func (*ScalingSpec) DeepCopyInto

func (in *ScalingSpec) DeepCopyInto(out *ScalingSpec)

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

type ScalingStrategy

type ScalingStrategy string

type SharedCache

type SharedCache struct {
	Enabled bool `json:"enabled"`

	Type        SharedCacheTypes       `json:"type,omitempty"`
	RedisConfig SharedCacheRedisConfig `json:"redis,omitempty"`
}

func (*SharedCache) DeepCopy

func (in *SharedCache) DeepCopy() *SharedCache

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

func (*SharedCache) DeepCopyInto

func (in *SharedCache) DeepCopyInto(out *SharedCache)

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

type SharedCacheRedisConfig

type SharedCacheRedisConfig struct {
	Url string `json:"url"`
}

func (*SharedCacheRedisConfig) DeepCopy

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

func (*SharedCacheRedisConfig) DeepCopyInto

func (in *SharedCacheRedisConfig) DeepCopyInto(out *SharedCacheRedisConfig)

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

type SharedCacheTypes

type SharedCacheTypes string

+kubebuilder:validation:Enum=redis

Jump to

Keyboard shortcuts

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