Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModifyDataObjectTaskName = "modify-data-object" ModifyDataObjectTaskrunName = "taskrun-modify-data-object" UnusualRestartCountThreshold = 3 ReasonError = "Error" )
View Source
const ( CreateVMFromManifestTaskName = "create-vm-from-manifest" SetOwnerReference = "setOwnerReference" )
View Source
const CleanupVMTaskName = "cleanup-vm"
View Source
const (
DigestResultName = "digest"
)
View Source
const DiskVirtCustomizeTaskName = "disk-virt-customize"
View Source
const DiskVirtSysprepTaskName = "disk-virt-sysprep"
View Source
const ExecuteInVMTaskName = "execute-in-vm"
View Source
const ExpectedGenerateSshKeysMessage = "The key fingerprint is"
View Source
const ExpectedSuccessfulVMCreation = "apiVersion: kubevirt.io/v1\nkind: VirtualMachine\n"
View Source
const (
GenerateSshKeysTaskName = "generate-ssh-keys"
)
View Source
const (
PollInterval = 1 * time.Second
)
View Source
const SpacesSmall = " "
View Source
const (
WaitForVMIStatusTaskName = "wait-for-vmi-status"
)
Variables ¶
View Source
var CreateVMFromManifestParams = createVMFromManifestParams{
Namespace: "namespace",
Manifest: "manifest",
Virtctl: "virtctl",
StartVM: "startVM",
RunStrategy: "runStrategy",
}
View Source
var CreateVMResults = createVMResults{
Name: "name",
Namespace: "namespace",
}
View Source
var DiskVirtLibguestfsTasksParams = diskVirtLibguestfsTasksParams{
PVCName: "pvc",
VirtCommandsFileNameCommands: "virtCommands",
AdditionalOptions: "additionalVirtOptions",
Verbose: "verbose",
}
View Source
var ExecuteOrCleanupVMParams = executeOrCleanupVMParams{
VMName: "vmName",
VMNamespace: "vmNamespace",
SecretName: "secretName",
Command: "command",
Args: "args",
Script: "script",
Stop: "stop",
Delete: "delete",
Timeout: "timeout",
}
View Source
var GenerateSshKeysParams = generateSshKeysParams{
PublicKeySecretName: "publicKeySecretName",
PublicKeySecretNamespace: "publicKeySecretNamespace",
PrivateKeySecretName: "privateKeySecretName",
PrivateKeySecretNamespace: "privateKeySecretNamespace",
PrivateKeyConnectionOptions: "privateKeyConnectionOptions",
AdditionalSSHKeygenOptions: "additionalSSHKeygenOptions",
}
View Source
var GenerateSshKeysResults = generateSshKeysResults{
PublicKeySecretName: "publicKeySecretName",
PublicKeySecretNamespace: "publicKeySecretNamespace",
PrivateKeySecretName: "privateKeySecretName",
PrivateKeySecretNamespace: "privateKeySecretNamespace",
}
View Source
var ModifyDataObjectParams = modifyDataObjectParams{
Manifest: "manifest",
WaitForSuccess: "waitForSuccess",
AllowReplace: "allowReplace",
DeleteObject: "deleteObject",
DeleteObjectName: "deleteObjectName",
DeleteObjectKind: "deleteObjectKind",
DataObjectNamespace: "namespace",
}
View Source
var ModifyDataObjectResults = modifyDataObjectResults{
Name: "name",
Namespace: "namespace",
}
View Source
var PrivateKeyConnectionOptions = privateKeyConnectionOptions{
Type: "type",
User: "user",
PrivateKey: "ssh-privatekey",
HostPublicKey: "host-public-key",
DisableStrictHostKeyCheckingAttr: "disable-strict-host-key-checking",
AdditionalSSHOptionsAttr: "additional-ssh-options",
}
View Source
var Timeouts = timeouts{ Zero: &metav1.Duration{0 * time.Second}, TaskRunExtraWaitDelay: &metav1.Duration{5 * time.Minute}, SmallDVCreation: &metav1.Duration{15 * time.Minute}, QuickTaskRun: &metav1.Duration{5 * time.Minute}, DefaultTaskRun: &metav1.Duration{10 * time.Minute}, WaitBeforeExecutingVM: &metav1.Duration{30 * time.Second}, WaitForVMStart: &metav1.Duration{5 * time.Minute}, PipelineRunExtraWaitDelay: &metav1.Duration{30 * time.Minute}, }
View Source
var WaitForVMIStatusTasksParams = waitForVMIStatusTasksParams{
VMIName: "vmiName",
VMINamespace: "vmiNamespace",
SuccessCondition: "successCondition",
FailureCondition: "failureCondition",
}
Functions ¶
func E2ETestsName ¶
func E2ETestsRandomName ¶
func ToStringBoolean ¶
Types ¶
type CreateVMMode ¶
type CreateVMMode string
const ( CreateVMVMManifestMode CreateVMMode = "CreateVMVMManifestMode" CreateVMVirtctlMode CreateVMMode = "CreateVMVirtctlMode" )
type ExecInVMMode ¶
type ExecInVMMode string
const ( ExecuteInVMMode ExecInVMMode = "execute-in-vm" CleanupVMMode ExecInVMMode = "cleanup-vm" )
type LibguestfsTaskType ¶
type LibguestfsTaskType string
const ( VirtSysPrepTaskType LibguestfsTaskType = "virt-sysprep" VirtCustomizeTaskType LibguestfsTaskType = "virt-customize" )
type TargetNamespace ¶
type TargetNamespace string
const ( DeployTargetNS TargetNamespace = "deploy" SystemTargetNS TargetNamespace = "system" EmptyTargetNS TargetNamespace = "empty" )
Click to show internal directories.
Click to hide internal directories.