config

package
v0.0.0-...-f3f1ec7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=config.cicd.tess.io

Index

Constants

View Source
const GroupName = "config.cicd.tess.io"

GroupName is the group name used in this package

Variables

View Source
var (
	// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

This section is empty.

Types

type KubectlConfiguration

type KubectlConfiguration struct {
	metav1.TypeMeta

	// Command is the subcommand of kubectl used to run deployment.
	Command string
	// PathOptions specifies where to look for specs.
	PathOptions

	// Template is options for Go text templates. This is similar to Helm
	// which is based on go templates plus customized funcs.
	Template *TemplateOptions
	// YTT is options for running YAML templates.
	YTT *YTTOptions
	// Prune is a feature which enables us to reconcile resources between git
	// and apiserver.
	Prune *PruneOptions

	// ExperimentalEnableClusterSize when set to true, will inject another
	// parameter that captures the number of nodes in this cluster.
	ExperimentalEnableClusterSize bool

	// FollowSymlink defines how to handle symbolic links in release path. The default value is false, which means the rendered specs does not follow symbolic links.
	FollowSymlink bool
}

KubectlConfiguration is the configuration for kubectl releaser plugin.

func (*KubectlConfiguration) DeepCopy

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

func (*KubectlConfiguration) DeepCopyInto

func (in *KubectlConfiguration) DeepCopyInto(out *KubectlConfiguration)

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

func (*KubectlConfiguration) DeepCopyObject

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

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

type ObjectReference

type ObjectReference struct {
	Namespace string
	Name      string
}

ObjectReference defines the reference to another object.

func (*ObjectReference) DeepCopy

func (in *ObjectReference) DeepCopy() *ObjectReference

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

func (*ObjectReference) DeepCopyInto

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

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

type PathOptions

type PathOptions struct {
	// Paths points to a list of kubernetes spec file or directory. This should
	// be a relative path to the repository itself.
	Paths []string
}

func (*PathOptions) DeepCopy

func (in *PathOptions) DeepCopy() *PathOptions

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

func (*PathOptions) DeepCopyInto

func (in *PathOptions) DeepCopyInto(out *PathOptions)

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

type PruneOptions

type PruneOptions struct {
	// Labels specifies the common labels that used to filter resources that
	// are in apiserver but not in git.
	Labels map[string]string
	// SkipList specifies the resources that should not be pruned.
	SkipList []string
}

PruneOptions defines the options related to resource pruning: In situation when we want to delete resources in apiserver which are not in git any more.

func (*PruneOptions) DeepCopy

func (in *PruneOptions) DeepCopy() *PruneOptions

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

func (*PruneOptions) DeepCopyInto

func (in *PruneOptions) DeepCopyInto(out *PruneOptions)

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

type TemplateOptions

type TemplateOptions struct {
	// Values are the files which can populate values.
	Values []string
	// ConfigMapRefs populates values from ConfigMaps.
	ConfigMapRefs []ObjectReference
	// SecretRefs populates values from Secrets.
	SecretRefs []ObjectReference
	// ValueType specifies whether we should parse data in configMap as string
	// or as parsed type.
	ValueType ValueType
}

TemplateOptions defines the contextual data for Go templates.

func (*TemplateOptions) DeepCopy

func (in *TemplateOptions) DeepCopy() *TemplateOptions

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

func (*TemplateOptions) DeepCopyInto

func (in *TemplateOptions) DeepCopyInto(out *TemplateOptions)

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

type ValueType

type ValueType string
const (
	// ValueTypeRaw parses "true" as true, "null" as nil, "123" as 123.
	ValueTypeRaw ValueType = "raw"
	// ValueTypeString parses "true" as "true", "null" as "null", "123" as "123"
	ValueTypeStr ValueType = "str"
)

func (ValueType) Func

func (v ValueType) Func() func(string, map[string]interface{}) error

type YTTOptions

type YTTOptions struct {
	// Overlay points to the yaml file which defines the overlay spec.
	Overlay string
	// Values are the files which can populate values.
	Values []string
	// ConfigMapRefs populates values from ConfigMaps.
	ConfigMapRefs []ObjectReference
	// SecretRefs populates values from Secrets.
	SecretRefs []ObjectReference
	// ValueType specifies whether we should parse data in configMap as string
	// or as parsed type.
	ValueType ValueType
}

YTTOptions defines the options related to YTT yaml templating. Note: This is an experimental feature.

func (*YTTOptions) DeepCopy

func (in *YTTOptions) DeepCopy() *YTTOptions

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

func (*YTTOptions) DeepCopyInto

func (in *YTTOptions) DeepCopyInto(out *YTTOptions)

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

Directories

Path Synopsis
+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config +k8s:conversion-gen-external-types=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config/v1alpha1 +k8s:defaulter-gen=TypeMeta +groupName=config.cicd.tess.io
+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config +k8s:conversion-gen-external-types=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config/v1alpha1 +k8s:defaulter-gen=TypeMeta +groupName=config.cicd.tess.io
+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config +k8s:conversion-gen-external-types=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config/v1alpha2 +k8s:defaulter-gen=TypeMeta +groupName=config.cicd.tess.io
+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config +k8s:conversion-gen-external-types=github.com/ebay/releaser/pkg/deployer/plugins/kubectl/apis/config/v1alpha2 +k8s:defaulter-gen=TypeMeta +groupName=config.cicd.tess.io

Jump to

Keyboard shortcuts

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