spx-policies
Values and chart documentation for components/dependencies/spx-policies in the Superphenix repository. Defaults are the chart defaults.
A Helm chart for templating Validating Admission Policies
Values
DataVolume Labels and Annotations
| Key |
Type |
Default |
Description |
| policies.dv-metadata |
object |
"{}"
|
Check that all DataVolumes have the correct labels and annotations |
| policies.dv-metadata.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.dv-metadata.defaultNetwork |
string |
"kube-system/system-isolated-egress"
|
Value of the "default-network" annotation. |
| policies.dv-metadata.matchConditions |
string |
"[spxid, notNabok]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.dv-metadata.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
DataVolume Sources
| Key |
Type |
Default |
Description |
| policies.dv-sources |
object |
"{}"
|
Check that all DataVolumes have valid sources and references to other resources |
| policies.dv-sources.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.dv-sources.matchConditions |
string |
"[spxid, notNabok]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.dv-sources.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Labels (IaaS)
| Key |
Type |
Default |
Description |
| policies.iaas-labels |
object |
"{}"
|
Check that all IaaS resources have the necessary labels with correct naming |
| policies.iaas-labels.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.iaas-labels.matchConditions |
string |
"[spxid, notSourcedVolSnap, notTmpSnapshot, notNabok]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.iaas-labels.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Name is EffectiveID
| Key |
Type |
Default |
Description |
| policies.iaas-name-is-effective-id |
object |
"{}"
|
Check that all IaaS resources' names match their effective IDs |
| policies.iaas-name-is-effective-id.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.iaas-name-is-effective-id.matchConditions |
string |
"[spxid, notGenerated, notSourcedVolSnap, notTmpSnapshot, notVeleroVolsnap, notNabok]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.iaas-name-is-effective-id.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Network-Attachment-Definitions Config
| Key |
Type |
Default |
Description |
| policies.netattachdef-config |
object |
"{}"
|
Check that all Network Attachment Definitions have the correct config |
| policies.netattachdef-config.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.netattachdef-config.matchConditions |
string |
"[spxid, notGenerated]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.netattachdef-config.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Network Policy MatchLabels
| Key |
Type |
Default |
Description |
| policies.netpol |
object |
"{}"
|
Check that all Network Policies have the correct fields |
| policies.netpol.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.netpol.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.netpol.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Allowed/reserved CIDRs
| Key |
Type |
Default |
Description |
| policies.network-cidr |
object |
"{}"
|
Check that CIDRs used by network resources are allowed |
| policies.network-cidr.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.network-cidr.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.network-cidr.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
| policies.system-workloads |
object |
"{}"
|
Check that system workloads in customer namespaces have the correct fields |
Labels (Org)
| Key |
Type |
Default |
Description |
| policies.org-labels |
object |
"{}"
|
Check that all organizational resources have the necessary labels with correct naming |
| policies.org-labels.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.org-labels.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.org-labels.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Pod Annotations
| Key |
Type |
Default |
Description |
| policies.pod-annotations |
object |
"{}"
|
Check that all virt-launcher pods have the correct network annotations |
| policies.pod-annotations.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.pod-annotations.matchConditions |
string |
"[virtLauncher]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.pod-annotations.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Reference is SPXID
| Key |
Type |
Default |
Description |
| policies.ref-is-spxid |
object |
"{}"
|
Check that all references to other resources are SPXIDs |
| policies.ref-is-spxid.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.ref-is-spxid.matchConditions |
string |
"[spxid, notGeneratedSubnet]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.ref-is-spxid.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Restores (VM)
| Key |
Type |
Default |
Description |
| policies.restore |
object |
"{}"
|
Check that all VM Restores have correct fields |
| policies.restore.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.restore.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.restore.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Snapshots (VM/Volume)
| Key |
Type |
Default |
Description |
| policies.snapshot |
object |
"{}"
|
Check that all VM/Volume Snapshots source names are SPXIDs |
| policies.snapshot.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.snapshot.matchConditions |
string |
"[spxid, notCsiDriver]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.snapshot.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
Subnet
| Key |
Type |
Default |
Description |
| policies.subnet |
object |
"{}"
|
Check that all Subnets have the correct fields |
| policies.subnet.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.subnet.matchConditions |
string |
"[spxid, notGenerated]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.subnet.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
System workloads
| Key |
Type |
Default |
Description |
| policies.system-workloads.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.system-workloads.matchConditions |
string |
"[spxid, systemWorkloads]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.system-workloads.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VM Credentials
| Key |
Type |
Default |
Description |
| policies.vm-credentials |
object |
"{}"
|
Check that all VirtualMachines' and VirtualMachineInstances' access credentials secret names are SPXIDs |
| policies.vm-credentials.debug |
bool |
true
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vm-credentials.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vm-credentials.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VM Interfaces
| Key |
Type |
Default |
Description |
| policies.vm-interfaces |
object |
"{}"
|
Check that all VirtualMachines and VirtualMachineInstances use Bridge or Managedtap interfaces with the correct naming scheme |
| policies.vm-interfaces.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vm-interfaces.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vm-interfaces.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VM Networks
| Key |
Type |
Default |
Description |
| policies.vm-networks |
object |
"{}"
|
Check that all VirtualMachines and VirtualMachineInstances use the Multus network |
| policies.vm-networks.debug |
bool |
true
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vm-networks.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vm-networks.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VM-VMI Same Labels
| Key |
Type |
Default |
Description |
| policies.vm-vmi-same-labels |
object |
"{}"
|
Check that all VirtualMachines and their templated VirtualMachineInstance share the same labels |
| policies.vm-vmi-same-labels.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vm-vmi-same-labels.matchConditions |
string |
"[spxid, notNabok]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vm-vmi-same-labels.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VM Volumes
| Key |
Type |
Default |
Description |
| policies.vm-volumes |
object |
"{}"
|
Check that all VirtualMachines and VirtualMachineInstances use PVC (at least 1) and/or CloudInitNoCloud volumes, and that the PVC name and claimName are SPXIDs |
| policies.vm-volumes.debug |
bool |
true
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vm-volumes.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vm-volumes.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VMI Annotations
| Key |
Type |
Default |
Description |
| policies.vmi-annotations |
object |
"{}"
|
Check that all VirtualMachine templates and VirtualMachineInstances have the correct annotations |
| policies.vmi-annotations.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vmi-annotations.matchConditions |
string |
"[spxid, notNabok]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vmi-annotations.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |
VPC
| Key |
Type |
Default |
Description |
| policies.vpc |
object |
"{}"
|
Check that all VPCs have the correct fields |
| policies.vpc.debug |
bool |
false
|
If debug is True, the VAP only matches resources having the "test-janna" label. |
| policies.vpc.matchConditions |
string |
"[spxid]"
|
Match conditions to target only specific resources. Possible values are: "spxid" (either orgID, projectID, resEffID, namespace, or name is an SPXID), "notGenerated" (doesn't have a "generated" label), "notSourcedVolSnap" (volume snapshot without labels starting with "snapshot.kubevirt.io/source-vm"), "notCsiDriver" (volume snapshot without a "csi-driver/cluster" label), "notTmpSnapshot" (volume snapshot without a name starting with "tmp-snapshot-*"), "virtLauncher" (pod whose name starts with "virt-launcher"), "systemWorkloads" (pod with certain "superphenix.net/workloadClass" label values), ”notNabok” (has label “plan-name” that starts with “migration”). If multiple conditions are provided, ALL must be true for a policy to be evaluated. If ANY is false, there is no match. |
| policies.vpc.validationActions |
string |
"[Deny, Audit]"
|
Actions to take if the validation fails. Possible values are: Deny, Warn, Audit. |