Documentation ¶
Overview ¶
+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
Index ¶
- Constants
- Variables
- func Convert_config_KubectlConfiguration_To_v1alpha1_KubectlConfiguration(in *config.KubectlConfiguration, out *KubectlConfiguration, s conversion.Scope) error
- func Convert_config_ObjectReference_To_v1alpha1_ObjectReference(in *config.ObjectReference, out *ObjectReference, s conversion.Scope) error
- func Convert_config_PathOptions_To_v1alpha1_PathOptions(in *config.PathOptions, out *PathOptions, s conversion.Scope) error
- func Convert_config_PruneOptions_To_v1alpha1_PruneOptions(in *config.PruneOptions, out *PruneOptions, s conversion.Scope) error
- func Convert_config_TemplateOptions_To_v1alpha1_TemplateOptions(in *config.TemplateOptions, out *TemplateOptions, s conversion.Scope) error
- func Convert_config_YTTOptions_To_v1alpha1_YTTOptions(in *config.YTTOptions, out *YTTOptions, s conversion.Scope) error
- func Convert_v1alpha1_KubectlConfiguration_To_config_KubectlConfiguration(in *KubectlConfiguration, out *config.KubectlConfiguration, s conversion.Scope) error
- func Convert_v1alpha1_ObjectReference_To_config_ObjectReference(in *ObjectReference, out *config.ObjectReference, s conversion.Scope) error
- func Convert_v1alpha1_PathOptions_To_config_PathOptions(in *PathOptions, out *config.PathOptions, s conversion.Scope) error
- func Convert_v1alpha1_PruneOptions_To_config_PruneOptions(in *PruneOptions, out *config.PruneOptions, s conversion.Scope) error
- func Convert_v1alpha1_TemplateOptions_To_config_TemplateOptions(in *TemplateOptions, out *config.TemplateOptions, s conversion.Scope) error
- func Convert_v1alpha1_YTTOptions_To_config_YTTOptions(in *YTTOptions, out *config.YTTOptions, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_KubectlConfiguration(obj *KubectlConfiguration)
- func SetObjectDefaults_KubectlConfiguration(in *KubectlConfiguration)
- type KubectlConfiguration
- type ObjectReference
- type PathOptions
- type PruneOptions
- type TemplateOptions
- type ValueType
- type YTTOptions
Constants ¶
const GroupName = "config.cicd.tess.io"
GroupName is the group name used in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_config_KubectlConfiguration_To_v1alpha1_KubectlConfiguration ¶
func Convert_config_KubectlConfiguration_To_v1alpha1_KubectlConfiguration(in *config.KubectlConfiguration, out *KubectlConfiguration, s conversion.Scope) error
Convert_config_KubectlConfiguration_To_v1alpha1_KubectlConfiguration is an autogenerated conversion function.
func Convert_config_ObjectReference_To_v1alpha1_ObjectReference ¶
func Convert_config_ObjectReference_To_v1alpha1_ObjectReference(in *config.ObjectReference, out *ObjectReference, s conversion.Scope) error
Convert_config_ObjectReference_To_v1alpha1_ObjectReference is an autogenerated conversion function.
func Convert_config_PathOptions_To_v1alpha1_PathOptions ¶
func Convert_config_PathOptions_To_v1alpha1_PathOptions(in *config.PathOptions, out *PathOptions, s conversion.Scope) error
func Convert_config_PruneOptions_To_v1alpha1_PruneOptions ¶
func Convert_config_PruneOptions_To_v1alpha1_PruneOptions(in *config.PruneOptions, out *PruneOptions, s conversion.Scope) error
func Convert_config_TemplateOptions_To_v1alpha1_TemplateOptions ¶
func Convert_config_TemplateOptions_To_v1alpha1_TemplateOptions(in *config.TemplateOptions, out *TemplateOptions, s conversion.Scope) error
Convert_config_TemplateOptions_To_v1alpha1_TemplateOptions is an autogenerated conversion function.
func Convert_config_YTTOptions_To_v1alpha1_YTTOptions ¶
func Convert_config_YTTOptions_To_v1alpha1_YTTOptions(in *config.YTTOptions, out *YTTOptions, s conversion.Scope) error
Convert_config_YTTOptions_To_v1alpha1_YTTOptions is an autogenerated conversion function.
func Convert_v1alpha1_KubectlConfiguration_To_config_KubectlConfiguration ¶
func Convert_v1alpha1_KubectlConfiguration_To_config_KubectlConfiguration(in *KubectlConfiguration, out *config.KubectlConfiguration, s conversion.Scope) error
Convert_v1alpha1_KubectlConfiguration_To_config_KubectlConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_ObjectReference_To_config_ObjectReference ¶
func Convert_v1alpha1_ObjectReference_To_config_ObjectReference(in *ObjectReference, out *config.ObjectReference, s conversion.Scope) error
Convert_v1alpha1_ObjectReference_To_config_ObjectReference is an autogenerated conversion function.
func Convert_v1alpha1_PathOptions_To_config_PathOptions ¶
func Convert_v1alpha1_PathOptions_To_config_PathOptions(in *PathOptions, out *config.PathOptions, s conversion.Scope) error
func Convert_v1alpha1_PruneOptions_To_config_PruneOptions ¶
func Convert_v1alpha1_PruneOptions_To_config_PruneOptions(in *PruneOptions, out *config.PruneOptions, s conversion.Scope) error
func Convert_v1alpha1_TemplateOptions_To_config_TemplateOptions ¶
func Convert_v1alpha1_TemplateOptions_To_config_TemplateOptions(in *TemplateOptions, out *config.TemplateOptions, s conversion.Scope) error
Convert_v1alpha1_TemplateOptions_To_config_TemplateOptions is an autogenerated conversion function.
func Convert_v1alpha1_YTTOptions_To_config_YTTOptions ¶
func Convert_v1alpha1_YTTOptions_To_config_YTTOptions(in *YTTOptions, out *config.YTTOptions, s conversion.Scope) error
Convert_v1alpha1_YTTOptions_To_config_YTTOptions is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func SetDefaults_KubectlConfiguration ¶
func SetDefaults_KubectlConfiguration(obj *KubectlConfiguration)
func SetObjectDefaults_KubectlConfiguration ¶
func SetObjectDefaults_KubectlConfiguration(in *KubectlConfiguration)
Types ¶
type KubectlConfiguration ¶
type KubectlConfiguration struct { metav1.TypeMeta `json:",inline"` // Command is the subcommand of kubectl used to run deployment. Command string `json:"command,omitempty"` // PathOptions specifies where to look for specs. PathOptions `json:",inline"` // Template is options for Go text templates. This is similar to Helm // which is based on go templates plus customized funcs. Template *TemplateOptions `json:"template,omitempty"` // YTT is options for running YAML templates. YTT *YTTOptions `json:"ytt,omitempty"` // Prune is a feature which enables us to reconcile resources between git // and apiserver. Prune *PruneOptions `json:"prune,omitempty"` // ExperimentalEnableClusterSize when set to true, will inject another // parameter that captures the number of nodes in current cluster. // When set to true, the kubeconfig must have permission to list nodes. ExperimentalEnableClusterSize bool `json:"experimental_enable_cluster_size,omitempty"` // 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 `json:"followSymlink,omitempty"` }
KubectlConfiguration is the configuration for kubectl releaser plugin.
func (*KubectlConfiguration) DeepCopy ¶
func (in *KubectlConfiguration) DeepCopy() *KubectlConfiguration
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 `json:"namespace,omitempty"` Name string `json:"name"` }
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 { // Path points to the kubernetes spec file or directory. This should be // a relative path to the repository itself. Path string `json:"path,omitempty"` }
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 `json:"labels,omitempty"` // Whilelist specifies the resources that should not be pruned. Whitelist []string `json:"whitelist,omitempty"` }
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 `json:"values,omitempty"` // ConfigMapRefs populates values from ConfigMaps. ConfigMapRefs []ObjectReference `json:"configMapRefs,omitempty"` // SecretRefs populates values from Secrets. SecretRefs []ObjectReference `json:"secretRefs,omitempty"` // ValueType specifies whether we should parse data in configMap as string // or as parsed type. ValueType ValueType `json:"valueType,omitempty"` }
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 YTTOptions ¶
type YTTOptions struct { // Overlay points to the yaml file which defines the overlay spec. Overlay string `json:"overlay,omitempty"` // Values are the files which can populate values. Values []string `json:"values,omitempty"` // ConfigMapRefs populates values from ConfigMaps. ConfigMapRefs []ObjectReference `json:"configMapRefs,omitempty"` // SecretRefs populates values from Secrets. SecretRefs []ObjectReference `json:"secretRefs,omitempty"` // ValueType specifies whether we should parse data in configMap as string // or as parsed type. ValueType ValueType `json:"valueType,omitempty"` }
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.