-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing file for the Operator e2e tests (#672)
* Added missing file for the Operator e2e tests * Added new line to address yaml linting
- Loading branch information
1 parent
a98aac9
commit 16afb67
Showing
1 changed file
with
224 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
apiVersion: storage.dell.com/v1 | ||
kind: ContainerStorageModule | ||
metadata: | ||
name: test-vxflexos | ||
namespace: test-vxflexos | ||
spec: | ||
driver: | ||
csiDriverType: "powerflex" | ||
csiDriverSpec: | ||
# fsGroupPolicy: Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. | ||
# Allowed values: ReadWriteOnceWithFSType, File , None | ||
# Default value: ReadWriteOnceWithFSType | ||
fSGroupPolicy: "File" | ||
# storageCapacity: Helps the scheduler to schedule the pod on a node satisfying the topology constraints, only if the requested capacity is available on the storage array | ||
# Allowed values: | ||
# true: enable storage capacity tracking | ||
# false: disable storage capacity tracking | ||
storageCapacity: true | ||
configVersion: v2.11.0 | ||
replicas: 1 | ||
dnsPolicy: ClusterFirstWithHostNet | ||
forceUpdate: false | ||
forceRemoveDriver: true | ||
common: | ||
image: "dellemc/csi-vxflexos:nightly" | ||
imagePullPolicy: IfNotPresent | ||
envs: | ||
- name: X_CSI_VXFLEXOS_ENABLELISTVOLUMESNAPSHOT | ||
value: "false" | ||
- name: X_CSI_VXFLEXOS_ENABLESNAPSHOTCGDELETE | ||
value: "false" | ||
- name: X_CSI_DEBUG | ||
value: "true" | ||
- name: X_CSI_ALLOW_RWO_MULTI_POD_ACCESS | ||
value: "false" | ||
# Specify kubelet config dir path. | ||
# Ensure that the config.yaml file is present at this path. | ||
# Default value: None | ||
- name: KUBELET_CONFIG_DIR | ||
value: "/var/lib/kubelet" | ||
- name: "CERT_SECRET_COUNT" | ||
value: "0" | ||
- name: X_CSI_QUOTA_ENABLED | ||
value: "false" | ||
sideCars: | ||
# sdc-monitor is disabled by default, due to high CPU usage | ||
- name: sdc-monitor | ||
enabled: false | ||
image: dellemc/sdc:4.5.2.1 | ||
envs: | ||
- name: HOST_PID | ||
value: "1" | ||
- name: MDM | ||
value: "10.x.x.x,10.x.x.x" #provide MDM value | ||
# health monitor is disabled by default, refer to driver documentation before enabling it | ||
# Also set the env variable controller.envs.X_CSI_HEALTH_MONITOR_ENABLED to "true". | ||
- name: csi-external-health-monitor-controller | ||
enabled: false | ||
args: ["--monitor-interval=60s"] | ||
# Uncomment the following to configure how often external-provisioner polls the driver to detect changed capacity | ||
# Configure when the storageCapacity is set as "true" | ||
# Allowed values: 1m,2m,3m,...,10m,...,60m etc. Default value: 5m | ||
#- name: provisioner | ||
# args: ["--capacity-poll-interval=5m"] | ||
|
||
controller: | ||
envs: | ||
# X_CSI_HEALTH_MONITOR_ENABLED: Enable/Disable health monitor of CSI volumes from Controller plugin - volume condition. | ||
# Install the 'external-health-monitor' sidecar accordingly. | ||
# Allowed values: | ||
# true: enable checking of health condition of CSI volumes | ||
# false: disable checking of health condition of CSI volumes | ||
# Default value: false | ||
- name: X_CSI_HEALTH_MONITOR_ENABLED | ||
value: "false" | ||
#"controller.nodeSelector" defines what nodes would be selected for pods of controller deployment | ||
# Leave as blank to use all nodes | ||
# Allowed values: map of key-value pairs | ||
# Default value: None | ||
# Examples: | ||
# node-role.kubernetes.io/control-plane: "" | ||
nodeSelector: | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint | ||
# node-role.kubernetes.io/master: "" | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint | ||
# node-role.kubernetes.io/control-plane: "" | ||
|
||
# "controller.tolerations" defines tolerations that would be applied to controller deployment | ||
# Leave as blank to install controller on worker nodes | ||
# Default value: None | ||
tolerations: | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint | ||
# - key: "node-role.kubernetes.io/master" | ||
# operator: "Exists" | ||
# effect: "NoSchedule" | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint | ||
# - key: "node-role.kubernetes.io/control-plane" | ||
# operator: "Exists" | ||
# effect: "NoSchedule" | ||
node: | ||
envs: | ||
# X_CSI_HEALTH_MONITOR_ENABLED: Enable/Disable health monitor of CSI volumes from node plugin - volume usage | ||
# Allowed values: | ||
# true: enable checking of health condition of CSI volumes | ||
# false: disable checking of health condition of CSI volumes | ||
# Default value: false | ||
- name: X_CSI_HEALTH_MONITOR_ENABLED | ||
value: "false" | ||
# X_CSI_APPROVE_SDC_ENABLED: Enables/Disable SDC approval | ||
# Allowed values: | ||
# true: enable SDC approval | ||
# false: disable SDC approval | ||
# Default value: false | ||
- name: X_CSI_APPROVE_SDC_ENABLED | ||
value: "false" | ||
# X_CSI_RENAME_SDC_ENABLED: Enable/Disable rename of SDC | ||
# Allowed values: | ||
# true: enable renaming | ||
# false: disable renaming | ||
# Default value: false | ||
- name: X_CSI_RENAME_SDC_ENABLED | ||
value: "false" | ||
# X_CSI_MAX_VOLUMES_PER_NODE: Defines the maximum PowerFlex volumes that can be created per node | ||
# Allowed values: Any value greater than or equal to 0 | ||
# Default value: "0" | ||
- name: X_CSI_MAX_VOLUMES_PER_NODE | ||
value: "0" | ||
# X_CSI_RENAME_SDC_PREFIX: defines a string for prefix of the SDC name. | ||
# "prefix" + "worker_node_hostname" should not exceed 31 chars. | ||
# Default value: none | ||
# Examples: "rhel-sdc", "sdc-test" | ||
- name: X_CSI_RENAME_SDC_PREFIX | ||
value: "" | ||
# "node.nodeSelector" defines what nodes would be selected for pods of node daemonset | ||
# Leave as blank to use all nodes | ||
# Allowed values: map of key-value pairs | ||
# Default value: None | ||
# Examples: | ||
# node-role.kubernetes.io/control-plane: "" | ||
nodeSelector: | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint | ||
# node-role.kubernetes.io/master: "" | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint | ||
# node-role.kubernetes.io/control-plane: "" | ||
|
||
# "node.tolerations" defines tolerations that would be applied to node daemonset | ||
# Leave as blank to install node driver only on worker nodes | ||
# Default value: None | ||
tolerations: | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/master taint | ||
# - key: "node-role.kubernetes.io/master" | ||
# operator: "Exists" | ||
# effect: "NoSchedule" | ||
# Uncomment if nodes you wish to use have the node-role.kubernetes.io/control-plane taint | ||
# - key: "node-role.kubernetes.io/control-plane" | ||
# operator: "Exists" | ||
# effect: "NoSchedule" | ||
initContainers: | ||
- image: dellemc/sdc:4.5.2.1 | ||
imagePullPolicy: IfNotPresent | ||
name: sdc | ||
envs: | ||
- name: MDM | ||
value: "10.x.x.x,10.x.x.x" #provide MDM value | ||
modules: | ||
# Replication: allows to configure replication | ||
# Replication CRDs must be installed before installing driver | ||
- name: replication | ||
# enabled: Enable/Disable replication feature | ||
# Allowed values: | ||
# true: enable replication feature(install dell-csi-replicator sidecar) | ||
# false: disable replication feature(do not install dell-csi-replicator sidecar) | ||
# Default value: false | ||
enabled: true | ||
configVersion: v1.9.0 | ||
components: | ||
- name: dell-csi-replicator | ||
# image: Image to use for dell-csi-replicator. This shouldn't be changed | ||
# Allowed values: string | ||
# Default value: None | ||
image: dellemc/dell-csi-replicator:v1.9.0 | ||
envs: | ||
# replicationPrefix: prefix to prepend to storage classes parameters | ||
# Allowed values: string | ||
# Default value: replication.storage.dell.com | ||
- name: "X_CSI_REPLICATION_PREFIX" | ||
value: "replication.storage.dell.com" | ||
# replicationContextPrefix: prefix to use for naming of resources created by replication feature | ||
# Allowed values: string | ||
- name: "X_CSI_REPLICATION_CONTEXT_PREFIX" | ||
value: "powerflex" | ||
- name: dell-replication-controller-manager | ||
# image: Defines controller image. This shouldn't be changed | ||
# Allowed values: string | ||
image: dellemc/dell-replication-controller:v1.9.0 | ||
envs: | ||
# TARGET_CLUSTERS_IDS: comma separated list of cluster IDs of the targets clusters. DO NOT include the source(wherever CSM Operator is deployed) cluster ID | ||
# Set the value to "self" in case of stretched/single cluster configuration | ||
# Allowed values: string | ||
- name: "TARGET_CLUSTERS_IDS" | ||
value: "self" | ||
# Replication log level | ||
# Allowed values: "error", "warn"/"warning", "info", "debug" | ||
# Default value: "debug" | ||
- name: "REPLICATION_CTRL_LOG_LEVEL" | ||
value: "debug" | ||
# replicas: Defines number of controller replicas | ||
# Allowed values: int | ||
# Default value: 1 | ||
- name: "REPLICATION_CTRL_REPLICAS" | ||
value: "1" | ||
# retryIntervalMin: Initial retry interval of failed reconcile request. | ||
# It doubles with each failure, upto retry-interval-max | ||
# Allowed values: time | ||
- name: "RETRY_INTERVAL_MIN" | ||
value: "1s" | ||
# RETRY_INTERVAL_MAX: Maximum retry interval of failed reconcile request | ||
# Allowed values: time | ||
- name: "RETRY_INTERVAL_MAX" | ||
value: "5m" | ||
- name: dell-replication-controller-init | ||
# image: Defines replication init container image. This shouldn't be changed | ||
# Allowed values: string | ||
image: dellemc/dell-replication-init:v1.0.0 |