Documentation ¶
Index ¶
- Variables
- func CreateConfigMapDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
- func CreateDownwardAPIDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
- func CreateSecretDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
- func CreateServiceAccountDisk(vmi *v1.VirtualMachineInstance, emptyIso bool) error
- func CreateSysprepDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
- func GetConfigMapDiskPath(volumeName string) string
- func GetConfigMapSourcePath(volumeName string) string
- func GetDownwardAPIDiskPath(volumeName string) string
- func GetDownwardAPISourcePath(volumeName string) string
- func GetSecretDiskPath(volumeName string) string
- func GetSecretSourcePath(volumeName string) string
- func GetServiceAccountDiskPath() string
- func GetSysprepDiskPath(volumeName string) string
- func GetSysprepSourcePath(volumeName string) string
- type Type
Constants ¶
This section is empty.
Variables ¶
var ( // ConfigMapSourceDir represents a location where ConfigMap is attached to the pod ConfigMapSourceDir = filepath.Join(mountBaseDir, "config-map") // SysprepSourceDir represents a location where a Sysprep is attached to the pod SysprepSourceDir = filepath.Join(mountBaseDir, "sysprep") // SecretSourceDir represents a location where Secrets is attached to the pod SecretSourceDir = filepath.Join(mountBaseDir, "secret") // DownwardAPISourceDir represents a location where downwardapi is attached to the pod DownwardAPISourceDir = filepath.Join(mountBaseDir, "downwardapi") // ServiceAccountSourceDir represents the location where the ServiceAccount token is attached to the pod ServiceAccountSourceDir = "/var/run/secrets/kubernetes.io/serviceaccount/" // ConfigMapDisksDir represents a path to ConfigMap iso images ConfigMapDisksDir = filepath.Join(mountBaseDir, "config-map-disks") // SecretDisksDir represents a path to Secrets iso images SecretDisksDir = filepath.Join(mountBaseDir, "secret-disks") // SysprepDisksDir represents a path to Syspreps iso images SysprepDisksDir = filepath.Join(mountBaseDir, "sysprep-disks") // DownwardAPIDisksDir represents a path to DownwardAPI iso images DownwardAPIDisksDir = filepath.Join(mountBaseDir, "downwardapi-disks") // DownwardMetricDisksDir represents a path to DownwardMetric block disk DownwardMetricDisksDir = filepath.Join(mountBaseDir, "downwardmetric-disk") // DownwardMetricDisks represents the disk location for the DownwardMetric disk DownwardMetricDisk = filepath.Join(DownwardAPIDisksDir, "vhostmd0") // ServiceAccountDiskDir represents a path to the ServiceAccount iso image ServiceAccountDiskDir = filepath.Join(mountBaseDir, "service-account-disk") // ServiceAccountDiskName represents the name of the ServiceAccount iso image ServiceAccountDiskName = "service-account.iso" )
Functions ¶
func CreateConfigMapDisks ¶
func CreateConfigMapDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
CreateConfigMapDisks creates ConfigMap iso disks which are attached to vmis
func CreateDownwardAPIDisks ¶ added in v0.35.0
func CreateDownwardAPIDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
CreateDownwardAPIDisks creates DownwardAPI iso disks which are attached to vmis
func CreateSecretDisks ¶
func CreateSecretDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
CreateSecretDisks creates Secret iso disks which are attached to vmis
func CreateServiceAccountDisk ¶ added in v0.9.2
func CreateServiceAccountDisk(vmi *v1.VirtualMachineInstance, emptyIso bool) error
CreateServiceAccountDisk creates the ServiceAccount iso disk which is attached to vmis
func CreateSysprepDisks ¶ added in v0.39.0
func CreateSysprepDisks(vmi *v1.VirtualMachineInstance, emptyIso bool) error
CreateSysprepDisks creates Sysprep iso disks which are attached to vmis from either ConfigMap or Secret as a source
func GetConfigMapDiskPath ¶
GetConfigMapDiskPath returns a path to ConfigMap iso image created based on a volume name
func GetConfigMapSourcePath ¶
GetConfigMapSourcePath returns a path to ConfigMap mounted on a pod
func GetDownwardAPIDiskPath ¶ added in v0.35.0
GetDownwardAPIDiskPath returns a path to downwardAPI iso image created based on volume name
func GetDownwardAPISourcePath ¶ added in v0.35.0
GetDownwardAPISourcePath returns a path to downwardAPI mounted on a pod
func GetSecretDiskPath ¶
GetSecretDiskPath returns a path to Secret iso image created based on volume name
func GetSecretSourcePath ¶
GetSecretSourcePath returns a path to Secret mounted on a pod
func GetServiceAccountDiskPath ¶ added in v0.9.2
func GetServiceAccountDiskPath() string
GetServiceAccountDiskPath returns a path to the ServiceAccount iso image
func GetSysprepDiskPath ¶ added in v0.39.0
GetSysprepDiskPath returns a path to a ConfigMap iso image created based on a volume name
func GetSysprepSourcePath ¶ added in v0.39.0
GetSysprepSourcePath returns a path to the Sysprep volume mounted on a pod
Types ¶
type Type ¶
type Type string
Type represents allowed config types like ConfigMap or Secret
const ( // ConfigMap respresents a configmap type, // https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ ConfigMap Type = "configmap" // Secret represents a secret type, // https://kubernetes.io/docs/concepts/configuration/secret/ Secret Type = "secret" // DownwardAPI represents a DownwardAPI type, // https://kubernetes.io/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/ DownwardAPI Type = "downwardapi" // ServiceAccount represents a secret type, // https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ ServiceAccount Type = "serviceaccount" )