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
- Variables
- func Convert_config_MyAppConfiguration_To_v1beta1_MyAppConfiguration(in *config.MyAppConfiguration, out *MyAppConfiguration, s conversion.Scope) error
- func Convert_v1beta1_MyAppConfiguration_To_config_MyAppConfiguration(in *MyAppConfiguration, out *config.MyAppConfiguration, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_MyAppConfiguration(obj *MyAppConfiguration)
- func SetObjectDefaults_MyAppConfiguration(in *MyAppConfiguration)
- type MyAppConfiguration
- type TLSConfig
Constants ¶
const GroupName = "config.luxaslabs.com"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder( addKnownTypes, addDefaultingFuncs, ) AddToScheme = localSchemeBuilder.AddToScheme // SchemeGroupVersion is'the group & version for this scheme SchemeGroupVersion = schema.GroupVersion{ Group: GroupName, Version: "v1beta1", } )
Functions ¶
func Convert_config_MyAppConfiguration_To_v1beta1_MyAppConfiguration ¶
func Convert_config_MyAppConfiguration_To_v1beta1_MyAppConfiguration(in *config.MyAppConfiguration, out *MyAppConfiguration, s conversion.Scope) error
func Convert_v1beta1_MyAppConfiguration_To_config_MyAppConfiguration ¶
func Convert_v1beta1_MyAppConfiguration_To_config_MyAppConfiguration(in *MyAppConfiguration, out *config.MyAppConfiguration, s conversion.Scope) error
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_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"` // Default: "0.0.0.0" ServerAddress string `json:"serverAddress"` // Default: 9090 // +optional HTTPSPort uint32 `json:"httpsPort"` // TLSConfig holds settings for the TLS configuration TLSConfig TLSConfig `json:"tlsConfig"` }
+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 TLSConfig ¶
type TLSConfig struct { // +optional TLSCertFile string `json:"tlsCertFile"` // +optional TLSPrivateKeyFile string `json:"tlsPrivateKeyFile"` }
func (*TLSConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSConfig.
func (*TLSConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.