Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=virtlet.k8s
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type ImageTranslation
- type TLSCertificate
- type TLSConfig
- type TranslationRule
- type TransportProfile
- type VirtletConfig
- type VirtletConfigMapping
- type VirtletConfigMappingList
- type VirtletConfigMappingSpec
- type VirtletImageMapping
- func (vim *VirtletImageMapping) ConfigName() string
- func (in *VirtletImageMapping) DeepCopy() *VirtletImageMapping
- func (in *VirtletImageMapping) DeepCopyInto(out *VirtletImageMapping)
- func (in *VirtletImageMapping) DeepCopyObject() runtime.Object
- func (vim *VirtletImageMapping) Payload() (ImageTranslation, error)
- type VirtletImageMappingList
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register the objects SchemeGroupVersion = schema.GroupVersion{Group: groupName, Version: version} // AddToScheme adds the objects to the scheme AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type ImageTranslation ¶
type ImageTranslation struct { // Prefix allows to have several config-sets and distinguish them by using `prefix/imageName` notation. Optional. Prefix string `yaml:"prefix,omitempty" json:"prefix,omitempty"` // Rules is a list of translations Rules []TranslationRule `yaml:"translations" json:"translations"` // Transports is a map of available transport profiles available for endpoints Transports map[string]TransportProfile `yaml:"transports" json:"transports"` }
ImageTranslation is a single translation config with optional prefix name
func (*ImageTranslation) DeepCopy ¶
func (in *ImageTranslation) DeepCopy() *ImageTranslation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageTranslation.
func (*ImageTranslation) DeepCopyInto ¶
func (in *ImageTranslation) DeepCopyInto(out *ImageTranslation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLSCertificate ¶
type TLSCertificate struct { // Cert certificate (PEM) block Cert string `yaml:"cert,omitempty" json:"cert,omitempty"` // Key - keypair (PEM) block Key string `yaml:"key,omitempty" json:"key,omitempty"` }
TLSCertificate has the x509 certificate PEM data with optional PEM private key
func (*TLSCertificate) DeepCopy ¶
func (in *TLSCertificate) DeepCopy() *TLSCertificate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSCertificate.
func (*TLSCertificate) DeepCopyInto ¶
func (in *TLSCertificate) DeepCopyInto(out *TLSCertificate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLSConfig ¶
type TLSConfig struct { // Certificates - TLS certificates to use for connection Certificates []TLSCertificate `yaml:"certificates,omitempty" json:"certificates,omitempty"` // ServerName is used to verify the hostname on the returned certificates. Needed when url points to domain that // differs from CN of certificate ServerName string `yaml:"serverName,omitempty" json:"serverName,omitempty"` // Insecure is a flag to bypass server certificate validation Insecure bool `yaml:"insecure,omitempty" json:"insecure,omitempty"` }
TLSConfig has the TLS transport parameters
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.
type TranslationRule ¶
type TranslationRule struct { // Name defines a mapping from a fixed name Name string `yaml:"name,omitempty" json:"name,omitempty"` // Regex defines a mapping from all names that match this regexp. In this case replacements can be used for Endpoint.URL Regex string `yaml:"regexp,omitempty" json:"regexp,omitempty"` // URL is the image URL URL string `yaml:"url,omitempty" json:"url,omitempty"` // Transport is the optional transport profile name to be used for the downloading Transport string `yaml:"transport,omitempty" json:"transport,omitempty"` }
TranslationRule represents a single translation rule from either name or regexp to Endpoint
func (*TranslationRule) DeepCopy ¶
func (in *TranslationRule) DeepCopy() *TranslationRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TranslationRule.
func (*TranslationRule) DeepCopyInto ¶
func (in *TranslationRule) DeepCopyInto(out *TranslationRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransportProfile ¶
type TransportProfile struct { // MaxRedirects is the maximum number of redirects that downloader is allowed to follow. Default is 9 (download fails on request #10) MaxRedirects *int `yaml:"maxRedirects,omitempty" json:"maxRedirects,omitempty"` // TLS config TLS *TLSConfig `yaml:"tls,omitempty" json:"tls,omitempty"` // TimeoutMilliseconds specifies a time limit in milliseconds for http(s) download request. <= 0 is no timeout (default) TimeoutMilliseconds int `yaml:"timeout,omitempty" json:"timeout,omitempty"` // Proxy server to use for downloading Proxy string `yaml:"proxy,omitempty" json:"proxy,omitempty"` }
TransportProfile contains all the http transport settings
func (*TransportProfile) DeepCopy ¶
func (in *TransportProfile) DeepCopy() *TransportProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransportProfile.
func (*TransportProfile) DeepCopyInto ¶
func (in *TransportProfile) DeepCopyInto(out *TransportProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtletConfig ¶
type VirtletConfig struct { // FdServerSocketPath specifies the path to fdServer socket. FDServerSocketPath *string `json:"fdServerSocketPath,omitempty"` // DatabasePath specifies the path to Virtlet database. DatabasePath *string `json:"databasePath,omitempty"` // DownloadProtocol specifies the download protocol to use. // It defaults to "https". DownloadProtocol *string `json:"downloadProtocol,omitempty"` // ImageDir specifies the image store directory. ImageDir *string `json:"imageDir,omitempty"` // ImageTranslationConfigsDir specifies the directory with // image translation configuration files. Empty string means // such directory is not used. ImageTranslationConfigsDir *string `json:"imageTranslationConfigsDir,omitempty"` // SkipImageTranslation disables image translations. SkipImageTranslation *bool `json:"skipImageTranslation,omitempty"` // LibvirtURI specifies the libvirt connnection URI. LibvirtURI *string `json:"libvirtURI,omitempty"` // RawDevices specifies a comma-separated list of raw device // glob patterns which VMs can access. RawDevices *string `json:"rawDevices,omitempty"` // CRISocketPath specifies the socket path for the gRPC endpoint. CRISocketPath *string `json:"criSocketPath,omitempty"` // DisableLogging disables the streaming server DisableLogging *bool `json:"disableLogging,omitempty"` // True if KVM should be disabled. DisableKVM *bool `json:"disableKVM,omitempty"` // True if SR-IOV support should be enabled. EnableSriov *bool `json:"enableSriov,omitempty"` // CNIPluginDir specifies the location of CNI configurations. CNIPluginDir *string `json:"cniPluginDir,omitempty"` // CNIConfigDir specifies the location of CNI configurations. CNIConfigDir *string `json:"cniConfigDir,omitempty"` // CalicoSubnetSize specifies the size of Calico subnetwork. CalicoSubnetSize *int `json:"calicoSubnetSize,omitempty"` // EnableRegexpImageTranslation is true if regexp-based image // translations are enabled. EnableRegexpImageTranslation *bool `json:"enableRegexpImageTranslation,omitempty"` // CPUModel specifies the default CPU model to use in the libvirt domain definition. // It can be overridden using VirtletCPUModel pod annotation. CPUModel *string `json:"cpuModel,omitempty"` // StreamPort specifies the configurable stream port of virtlet server. StreamPort *int `json:"streamPort,omitempty"` // LogLevel specifies the log level to use LogLevel *int `json:"logLevel,omitempty"` // Kubelet's root dir KubeletRootDir *string `json:"kubeletRootDir,omitempty"` }
VirtletConfig denotes a configuration for VirtletManager.
func (*VirtletConfig) DeepCopy ¶
func (in *VirtletConfig) DeepCopy() *VirtletConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfig.
func (*VirtletConfig) DeepCopyInto ¶
func (in *VirtletConfig) DeepCopyInto(out *VirtletConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtletConfigMapping ¶
type VirtletConfigMapping struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` Spec VirtletConfigMappingSpec `json:"spec,omitempty"` }
VirtletConfigMapping specifies the mapping of node names or labels to Virtlet configs.
func (*VirtletConfigMapping) DeepCopy ¶
func (in *VirtletConfigMapping) DeepCopy() *VirtletConfigMapping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfigMapping.
func (*VirtletConfigMapping) DeepCopyInto ¶
func (in *VirtletConfigMapping) DeepCopyInto(out *VirtletConfigMapping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtletConfigMapping) DeepCopyObject ¶
func (in *VirtletConfigMapping) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtletConfigMappingList ¶
type VirtletConfigMappingList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []VirtletConfigMapping `json:"items,omitempty"` }
VirtletConfigMappingList lists the mappings between node names or labels and Virtlet configs.
func (*VirtletConfigMappingList) DeepCopy ¶
func (in *VirtletConfigMappingList) DeepCopy() *VirtletConfigMappingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfigMappingList.
func (*VirtletConfigMappingList) DeepCopyInto ¶
func (in *VirtletConfigMappingList) DeepCopyInto(out *VirtletConfigMappingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtletConfigMappingList) DeepCopyObject ¶
func (in *VirtletConfigMappingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type VirtletConfigMappingSpec ¶
type VirtletConfigMappingSpec struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` // NodeSelector specifies the labels that must be matched for this // mapping to apply to the node. NodeSelector map[string]string `json:"nodeSelector,omitempty"` // Node name to match. NodeName string `json:"nodeName,omitempty"` // Priority specifies the priority of this setting. Priority int // VirtletConfig to apply. Config *VirtletConfig `json:"config,omitempty"` }
VirtletConfigMappingSpec is the contents of a VirtletConfigMapping.
func (*VirtletConfigMappingSpec) DeepCopy ¶
func (in *VirtletConfigMappingSpec) DeepCopy() *VirtletConfigMappingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletConfigMappingSpec.
func (*VirtletConfigMappingSpec) DeepCopyInto ¶
func (in *VirtletConfigMappingSpec) DeepCopyInto(out *VirtletConfigMappingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VirtletImageMapping ¶
type VirtletImageMapping struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` Spec ImageTranslation `json:"spec"` }
VirtletImageMapping represents an ImageTranslation wrapped in k8s object.
func (*VirtletImageMapping) ConfigName ¶
func (vim *VirtletImageMapping) ConfigName() string
ConfigName returns the name of the config.
func (*VirtletImageMapping) DeepCopy ¶
func (in *VirtletImageMapping) DeepCopy() *VirtletImageMapping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletImageMapping.
func (*VirtletImageMapping) DeepCopyInto ¶
func (in *VirtletImageMapping) DeepCopyInto(out *VirtletImageMapping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtletImageMapping) DeepCopyObject ¶
func (in *VirtletImageMapping) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*VirtletImageMapping) Payload ¶
func (vim *VirtletImageMapping) Payload() (ImageTranslation, error)
Payload returns the actual translation for the mapping.
type VirtletImageMappingList ¶
type VirtletImageMappingList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []VirtletImageMapping `json:"items"` }
VirtletImageMappingList is a k8s representation of list of translation configs.
func (*VirtletImageMappingList) DeepCopy ¶
func (in *VirtletImageMappingList) DeepCopy() *VirtletImageMappingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtletImageMappingList.
func (*VirtletImageMappingList) DeepCopyInto ¶
func (in *VirtletImageMappingList) DeepCopyInto(out *VirtletImageMappingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VirtletImageMappingList) DeepCopyObject ¶
func (in *VirtletImageMappingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.