mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-06 09:46:22 -03:00
remove ixvols code
This commit is contained in:
committed by
Kjeld Schouten
parent
1c6d8bb0ea
commit
7f64234a2f
@@ -333,8 +333,6 @@ tests:
|
||||
namespace: ix-namespace
|
||||
ixChartContext:
|
||||
some: context
|
||||
ixVolumes:
|
||||
- hostPath: /mnt/pool/ix-applications/test
|
||||
persistence:
|
||||
test1:
|
||||
enabled: true
|
||||
@@ -400,16 +398,6 @@ tests:
|
||||
chmod: 770
|
||||
recursive: true
|
||||
mountPath: /test7
|
||||
test8:
|
||||
enabled: true
|
||||
type: ixVolume
|
||||
datasetName: test
|
||||
autoPermissions:
|
||||
enabled: true
|
||||
chown: true
|
||||
chmod: 770
|
||||
recursive: true
|
||||
mountPath: /test8
|
||||
test9:
|
||||
enabled: true
|
||||
type: nfs
|
||||
@@ -419,13 +407,6 @@ tests:
|
||||
enabled: true
|
||||
chown: true
|
||||
mountPath: /test9
|
||||
# Should not show up, without enabled true
|
||||
test10:
|
||||
type: ixVolume
|
||||
datasetName: test
|
||||
autoPermissions:
|
||||
chown: true
|
||||
mountPath: /test10
|
||||
asserts:
|
||||
- documentIndex: *jobDoc
|
||||
isKind:
|
||||
@@ -490,13 +471,6 @@ tests:
|
||||
content:
|
||||
name: test7
|
||||
emptyDir: {}
|
||||
- documentIndex: *jobDoc
|
||||
contains:
|
||||
path: spec.template.spec.volumes
|
||||
content:
|
||||
name: test8
|
||||
hostPath:
|
||||
path: /mnt/pool/ix-applications/test
|
||||
- documentIndex: *jobDoc
|
||||
contains:
|
||||
path: spec.template.spec.volumes
|
||||
@@ -656,19 +630,6 @@ tests:
|
||||
echo "Ownership before: [$before]"
|
||||
echo "Ownership after: [$(stat -c "%u:%g" /mounts/test7)]"
|
||||
echo ""
|
||||
echo "Automatically correcting permissions for /mounts/test8..."
|
||||
before=$(stat -c "%a" /mounts/test8)
|
||||
chmod -R 770 /mounts/test8 || echo "Failed setting permissions using chmod..."
|
||||
echo "Permissions before: [$before]"
|
||||
echo "Permissions after: [$(stat -c "%a" /mounts/test8)]"
|
||||
echo ""
|
||||
echo "Automatically correcting ownership for /mounts/test8..."
|
||||
before=$(stat -c "%u:%g" /mounts/test8)
|
||||
/usr/sbin/nfs4xdr_winacl -a chown -G 568 -r -c "/mounts/test8" -p "/mounts/test8" || echo "Failed setting ownership using winacl..."
|
||||
|
||||
echo "Ownership before: [$before]"
|
||||
echo "Ownership after: [$(stat -c "%u:%g" /mounts/test8)]"
|
||||
echo ""
|
||||
echo "Automatically correcting ownership for /mounts/test9..."
|
||||
before=$(stat -c "%u:%g" /mounts/test9)
|
||||
/usr/sbin/nfs4xdr_winacl -a chown -G 568 -c "/mounts/test9" -p "/mounts/test9" || echo "Failed setting ownership using winacl..."
|
||||
@@ -755,7 +716,7 @@ tests:
|
||||
chown: true
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: Auto Permissions - Allowed persistent types for auto permissions are [hostPath, emptyDir, nfs, ixVolume], but got [device] on [test]
|
||||
errorMessage: Auto Permissions - Allowed persistent types for auto permissions are [hostPath, emptyDir, nfs], but got [device] on [test]
|
||||
|
||||
- it: should fail trying to set permissions on readOnly
|
||||
set:
|
||||
|
||||
Reference in New Issue
Block a user