-
Notifications
You must be signed in to change notification settings - Fork 710
CONSOLE-5279: Migrate secrets e2e tests from Cypress to Playwright #16522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| This is ascii |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ȹȻɣʄɣɱɰ |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,223 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const testerDeployment = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'apps/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'Deployment', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'busybox-deployment', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| labels: { app: 'busybox' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spec: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| replicas: 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| strategy: { type: 'RollingUpdate' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| selector: { matchLabels: { app: 'busybox' } }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| template: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { labels: { app: 'busybox' } }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spec: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volumes: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'testpvc', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| persistentVolumeClaim: { claimName: 'testpvc' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| containers: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'busybox', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| image: 'busybox', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| imagePullPolicy: 'IfNotPresent', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volumeDevices: [{ name: 'testpvc', devicePath: '/data' }], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| command: ['sh', '-c', 'echo Container 1 is Running ; sleep 3600'], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const PVC = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'PersistentVolumeClaim', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: 'testpvc' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spec: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| storageClassName: 'gp2-csi', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| accessModes: ['ReadWriteOnce'], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| resources: { requests: { storage: '1Gi' } }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const PVCGP3 = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'PersistentVolumeClaim', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: 'testpvcgp3' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spec: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| storageClassName: 'gp3-csi', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| accessModes: ['ReadWriteOnce'], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| resources: { requests: { storage: '1Gi' } }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const SnapshotClass = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'snapshot.storage.k8s.io/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'VolumeSnapshotClass', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: 'csi-hostpath-snapclass' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| driver: 'ebs.csi.aws.com', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| deletionPolicy: 'Delete', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const patchForVolume = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| op: 'add' as const, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| path: '/spec/template/spec/volumes/-', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| value: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'testpvc-snapshot-restore', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| persistentVolumeClaim: { claimName: 'testpvc-snapshot-restore' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // --- Storage Class provisioner fixtures --- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export type Parameter = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: string; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id?: string; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| values?: string | string[]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hintText?: string; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nestedParameter?: Parameter; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const provisionersMap: Record<string, Parameter[]> = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/aws-ebs': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Type', id: 'type', values: ['io1', 'gp2', 'sc1', 'st1'] }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'IOPS per GiB', id: 'iopsPerGB', values: '10' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Filesystem type', id: 'fsType', values: 'ext4' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Encrypted', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'encrypted', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nestedParameter: { name: 'KMS key ID', values: 'sample-kms-id' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/cinder': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Volume type', id: 'type', values: 'ext4' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Availability zone', id: 'availability', values: 'lalitpur' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/azure-file': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'SKU name', id: 'skuName', hintText: 'Azure storage account SKU tier', values: 'sample-name' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Location', id: 'location', hintText: 'Azure storage account name', values: 'bhaktapur' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Azure storage account name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'storageAccount', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hintText: 'Azure storage account name', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| values: 'test-account', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/azure-disk': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Storage account type', id: 'storageaccounttype', hintText: 'Storage account type', values: 'tester' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Account kind', id: 'kind', values: ['shared', 'dedicated', 'managed'] }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/quobyte': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Quobyte API server', id: 'quobyteAPIServer', values: 'test.xyzab' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Registry address(es)', id: 'registry', values: 'xyz.abc' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Admin secret name', id: 'adminSecretName', values: 'secret-admin' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Admin secret namespace', id: 'adminSecretNamespace', values: 'secret-ns' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'User', id: 'user', values: 'admin' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Quobyte configuration', id: 'quobyteConfig', values: 'config' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Quobyte tenant', id: 'quobyteTenant', values: 'tester' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/vsphere-volume': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Disk format', id: 'diskformat', values: ['thin', 'zeroed thick', 'eager zeroed thick'] }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Datastore', id: 'datastore', values: 'store-thin' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/portworx-volume': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Filesystem', id: 'fs', values: ['none', 'xfs', 'ext4'] }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Block size', id: 'block_size', values: '1024' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'Number of synchronous replicas to be provided in the form of replication factor', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id: 'repl', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| values: '2', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'I/O priority', id: 'io_priority', values: ['high', 'medium', 'low'] }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Snapshot interval', id: 'snap_interval', values: '5' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Aggregation level', id: 'aggregation_level', values: '2024' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Ephemeral', id: 'ephemeral' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/scaleio': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'API gateway', id: 'gateway', values: 'abc.xyz' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'System name', id: 'system', values: 'test-sys' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Protection domain', id: 'protectionDomain', values: 'local' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Storage pool', id: 'storagePool', values: 'simple-pool' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Storage mode', id: 'storageMode', values: ['ThinProvisioned', 'ThickProvisioned'] }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Secret reference', id: 'secretRef', values: 'simpleSecret' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Read Only', id: 'readOnly' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Filesystem Type', id: 'fsType', values: 'ext2' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'kubernetes.io/storageos': [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Pool', id: 'pool', values: 'test-pool' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Description', id: 'description', values: 'storage drive' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Filesystem type', id: 'fsType', values: 'ext3' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Admin secret name', id: 'adminSecretName', values: 'admin-secret-name' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { name: 'Admin secret namespace', id: 'adminSecretNamespace', values: 'secret-ns' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // --- VolumeAttributesClass fixtures --- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export const getVACFixtures = (suffix: string) => { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const names = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TEST_VAC_LOW_IOPS: `test-vac-low-iops-${suffix}`, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TEST_VAC_HIGH_IOPS: `test-vac-high-iops-${suffix}`, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TEST_VAC_INVALID: `test-vac-invalid-${suffix}`, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TEST_STORAGECLASS: `test-storageclass-${suffix}`, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TEST_PVC: 'test-pvc', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TEST_DEPLOYMENT: 'test-deployment', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...names, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| VAC_LOW_IOPS: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'storage.k8s.io/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'VolumeAttributesClass', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: names.TEST_VAC_LOW_IOPS }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| driverName: 'ebs.csi.aws.com', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parameters: { iops: '3000', throughput: '125', type: 'gp3' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| VAC_HIGH_IOPS: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'storage.k8s.io/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'VolumeAttributesClass', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: names.TEST_VAC_HIGH_IOPS }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| driverName: 'ebs.csi.aws.com', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parameters: { iops: '3000', throughput: '125', type: 'gp3' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+172
to
+185
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Both define Proposed fix VAC_HIGH_IOPS: {
apiVersion: 'storage.k8s.io/v1',
kind: 'VolumeAttributesClass',
metadata: { name: names.TEST_VAC_HIGH_IOPS },
driverName: 'ebs.csi.aws.com',
- parameters: { iops: '3000', throughput: '125', type: 'gp3' },
+ parameters: { iops: '6000', throughput: '250', type: 'gp3' },
},📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| VAC_INVALID: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'storage.k8s.io/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'VolumeAttributesClass', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: names.TEST_VAC_INVALID }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| driverName: 'ebs.csi.aws.com', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parameters: { iops: '999999', throughput: '999999', type: 'gp3' }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| STORAGE_CLASS: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'storage.k8s.io/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'StorageClass', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: names.TEST_STORAGECLASS }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| provisioner: 'ebs.csi.aws.com', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| allowVolumeExpansion: true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| getDeployment: (namespace: string, pvcName: string) => ({ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| apiVersion: 'apps/v1', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kind: 'Deployment', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { name: names.TEST_DEPLOYMENT, namespace }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spec: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| replicas: 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| selector: { matchLabels: { app: 'test-app' } }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| template: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| metadata: { labels: { app: 'test-app' } }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| spec: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| containers: [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name: 'container', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| image: 'image-registry.openshift-image-registry.svc:5000/openshift/httpd:latest', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volumeMounts: [{ name: 'storage', mountPath: '/data' }], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volumes: [{ name: 'storage', persistentVolumeClaim: { claimName: pvcName } }], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/console
Length of output: 28032
🏁 Script executed:
Repository: openshift/console
Length of output: 104
🏁 Script executed:
Repository: openshift/console
Length of output: 4874
🏁 Script executed:
Repository: openshift/console
Length of output: 108
🏁 Script executed:
Repository: openshift/console
Length of output: 207
🏁 Script executed:
Repository: openshift/console
Length of output: 18799
🏁 Script executed:
Repository: openshift/console
Length of output: 1402
Align PVC
spec.volumeModewithtesterDeployment’svolumeDevicesusage.In
frontend/e2e/mocks/storage.ts,testerDeploymentmountstestpvcviavolumeDevices(block-mode), but thePVCfixture omitsspec.volumeMode(defaults toFilesystem). This mismatch can prevent the Deployment pod from scheduling/attaching even though the clone/snapshot tests only wait for the PVC to becomeBound. SetPVC.spec.volumeMode: 'Block'for this test (or switchtesterDeploymenttovolumeMountsif the intent is filesystem).🤖 Prompt for AI Agents