Storage Classes
By default, this is disabled.
vCluster does not sync storage classes from the host cluster to the virtual cluster. While it's not strictly required when you're syncing PersistentVolume and PersistentVolumeClaim resources, syncing StorageClass resources may be required for informational purposes or ensuring that storage is handled consistently between the host and virtual clusters.
Sync StorageClasses from the host to virtual cluster​
sync:
fromHost:
storageClasses:
enabled: true
Config reference​
storageClasses
required object ​
StorageClasses defines if storage classes should get synced from the host cluster to the virtual cluster, but not back. If auto, is automatically enabled when the virtual scheduler is enabled.
storageClasses
required object ​enabled
required string|boolean auto ​
Enabled defines if this option should be enabled.
enabled
required string|boolean auto ​patches
required object[] ​
Patches patch the resource according to the provided specification.
patches
required object[] ​path
required string ​
Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
path
required string ​expression
required string ​
Expression transforms the value according to the given JavaScript expression.
expression
required string ​reverseExpression
required string ​
ReverseExpression transforms the value according to the given JavaScript expression.
reverseExpression
required string ​reference
required object ​
Reference treats the path value as a reference to another object and will rewrite it based on the chosen mode
automatically. In single-namespace mode this will translate the name to "vxxxxxxxxx" to avoid conflicts with
other names, in multi-namespace mode this will not translate the name.
reference
required object ​apiVersion
required string ​
APIVersion is the apiVersion of the referenced object.
apiVersion
required string ​apiVersionPath
required string ​
APIVersionPath is optional relative path to use to determine the kind. If APIVersionPath is not found, will fallback to apiVersion.
apiVersionPath
required string ​kind
required string ​
Kind is the kind of the referenced object.
kind
required string ​kindPath
required string ​
KindPath is the optional relative path to use to determine the kind. If KindPath is not found, will fallback to kind.
kindPath
required string ​namePath
required string ​
NamePath is the optional relative path to the reference name within the object.
namePath
required string ​namespacePath
required string ​
NamespacePath is the optional relative path to the reference namespace within the object. If omitted or not found, namespacePath equals to the
metadata.namespace path of the object.
namespacePath
required string ​labels
required object ​
Labels treats the path value as a labels selector.
labels
required object ​