v1

package
v0.0.0-...-8ae6845 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:conversion-gen=github.com/luxas/sample-config/pkg/apis/config +k8s:conversion-gen=k8s.io/component-base/config/v1alpha1 +k8s:defaulter-gen=TypeMeta

Index

Constants

View Source
const (
	DefaultAddress = "0.0.0.0"
	DefaultPort    = 9090
)
View Source
const GroupName = "config.luxaslabs.com"

GroupName is the group name use in this package

Variables

View Source
var (
	// SchemeBuilder the schema builder
	SchemeBuilder = runtime.NewSchemeBuilder(
		addKnownTypes,
		addDefaultingFuncs,
	)

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   GroupName,
	Version: "v1",
}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_config_MyAppConfiguration_To_v1_MyAppConfiguration

func Convert_config_MyAppConfiguration_To_v1_MyAppConfiguration(in *config.MyAppConfiguration, out *MyAppConfiguration, s conversion.Scope) error

Convert_config_MyAppConfiguration_To_v1_MyAppConfiguration is an autogenerated conversion function.

func Convert_config_ServerConfiguration_To_v1_ServerConfiguration

func Convert_config_ServerConfiguration_To_v1_ServerConfiguration(in *config.ServerConfiguration, out *ServerConfiguration, s conversion.Scope) error

Convert_config_ServerConfiguration_To_v1_ServerConfiguration is an autogenerated conversion function.

func Convert_v1_MyAppConfiguration_To_config_MyAppConfiguration

func Convert_v1_MyAppConfiguration_To_config_MyAppConfiguration(in *MyAppConfiguration, out *config.MyAppConfiguration, s conversion.Scope) error

Convert_v1_MyAppConfiguration_To_config_MyAppConfiguration is an autogenerated conversion function.

func Convert_v1_ServerConfiguration_To_config_ServerConfiguration

func Convert_v1_ServerConfiguration_To_config_ServerConfiguration(in *ServerConfiguration, out *config.ServerConfiguration, s conversion.Scope) error

Convert_v1_ServerConfiguration_To_config_ServerConfiguration is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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_MyAppConfiguration

func SetDefaults_MyAppConfiguration(obj *MyAppConfiguration)

SetDefaults_MyAppConfiguration defaults the object

func SetObjectDefaults_MyAppConfiguration

func SetObjectDefaults_MyAppConfiguration(in *MyAppConfiguration)

Types

type MyAppConfiguration

type MyAppConfiguration struct {
	metav1.TypeMeta `json:",inline"`

	// ClientConnection configures the connection to Kubernetes
	ClientConnection componentbaseconfigext.ClientConnectionConfiguration `json:"clientConnection"`
	// LeaderElection configures so the component can be deployed in HA mode on k8s
	LeaderElection componentbaseconfigext.LeaderElectionConfiguration `json:"leaderElection"`
	// Server holds configuration settings for the HTTPS server
	Server ServerConfiguration `json:"server"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*MyAppConfiguration) DeepCopy

func (in *MyAppConfiguration) DeepCopy() *MyAppConfiguration

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

func (*MyAppConfiguration) DeepCopyInto

func (in *MyAppConfiguration) DeepCopyInto(out *MyAppConfiguration)

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

func (*MyAppConfiguration) DeepCopyObject

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

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

type ServerConfiguration

type ServerConfiguration struct {
	// Default: "0.0.0.0"
	// +optional
	Address string `json:"address"`
	// Default: 10250
	// +optional
	Port uint32 `json:"port"`
	// +optional
	TLSCertFile string `json:"tlsCertFile"`
	// +optional
	TLSPrivateKeyFile string `json:"tlsPrivateKeyFile"`
}

func (*ServerConfiguration) DeepCopy

func (in *ServerConfiguration) DeepCopy() *ServerConfiguration

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

func (*ServerConfiguration) DeepCopyInto

func (in *ServerConfiguration) DeepCopyInto(out *ServerConfiguration)

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

Jump to

Keyboard shortcuts

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