-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1853 from bertinatto/efs-volume-metrics
STOR-1422: Add field for enabling EFS volume metrics
- Loading branch information
Showing
20 changed files
with
2,164 additions
and
3 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
108 changes: 108 additions & 0 deletions
108
operator/v1/tests/clustercsidrivers.operator.openshift.io/AWSEFSDriverVolumeMetrics.yaml
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,108 @@ | ||
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this | ||
name: "ClusterCSIDriver" | ||
crdName: clustercsidrivers.operator.openshift.io | ||
featureGate: AWSEFSDriverVolumeMetrics | ||
tests: | ||
onCreate: | ||
- name: Should be able to create a minimal ClusterCSIDriver | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: {} # No spec is required for a ClusterCSIDriver | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
- name: Should be able to create ClusterCSIDriver with AWS EFS volume metrics disabled | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
driverConfig: | ||
driverType: AWS | ||
aws: | ||
efsVolumeMetrics: | ||
state: Disabled | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
driverConfig: | ||
driverType: AWS | ||
aws: | ||
efsVolumeMetrics: | ||
state: Disabled | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
- name: Should be able to create ClusterCSIDriver with AWS EFS volume metrics enabled as RecursiveWalk | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
driverConfig: | ||
driverType: AWS | ||
aws: | ||
efsVolumeMetrics: | ||
state: RecursiveWalk | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
driverConfig: | ||
driverType: AWS | ||
aws: | ||
efsVolumeMetrics: | ||
state: RecursiveWalk | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
- name: Should be able to create ClusterCSIDriver with AWS EFS volume metrics enabled as RecursiveWalk and custom config | ||
initial: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
driverConfig: | ||
driverType: AWS | ||
aws: | ||
efsVolumeMetrics: | ||
state: RecursiveWalk | ||
recursiveWalk: | ||
refreshPeriodMinutes: 100 | ||
fsRateLimit: 10 | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
expected: | | ||
apiVersion: operator.openshift.io/v1 | ||
kind: ClusterCSIDriver | ||
metadata: | ||
name: efs.csi.aws.com | ||
spec: | ||
driverConfig: | ||
driverType: AWS | ||
aws: | ||
efsVolumeMetrics: | ||
state: RecursiveWalk | ||
recursiveWalk: | ||
refreshPeriodMinutes: 100 | ||
fsRateLimit: 10 | ||
logLevel: Normal | ||
operatorLogLevel: Normal |
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
Oops, something went wrong.