You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 90656aa
Browse filesBrowse the repository at this point in the historyBrowse files
{{- fail (printf "nodeGroup %s: evictionHardMemory (%s) must be strictly less than evictionSoftMemory (%s)" $groupName $evictionHardMemory $evictionSoftMemory) }}
225
238
{{- end }}
239
+
{{- else }}
240
+
{{- fail (printf "nodeGroup %s: evictionHardMemory and evictionSoftMemory must use the same unit type (both percentage or both absolute) — got evictionHardMemory=%s, evictionSoftMemory=%s" $groupName $evictionHardMemory $evictionSoftMemory) }}
errorMessage: "nodeGroup md0: evictionHardMemory and evictionSoftMemory must use the same unit type (both percentage or both absolute) — got evictionHardMemory=1Gi, evictionSoftMemory=10%"
errorMessage: "nodeGroup md0: evictionHardMemory and evictionSoftMemory must use the same unit type (both percentage or both absolute) — got evictionHardMemory=10%, evictionSoftMemory=1Gi"
781
+
782
+
################################################
783
+
# Reservation field format validation #
784
+
################################################
785
+
786
+
- it: rejects invalid CPU format for kubeReservedCpu
787
+
release:
788
+
name: test-k8s
789
+
namespace: tenant-test
790
+
set:
791
+
_namespace:
792
+
etcd: etcd
793
+
ingress: nginx
794
+
host: example.com
795
+
_cluster:
796
+
cluster-domain: cozy.local
797
+
nodeGroups:
798
+
md0:
799
+
minReplicas: 0
800
+
maxReplicas: 10
801
+
instanceType: ""
802
+
ephemeralStorage: 20Gi
803
+
roles:
804
+
- worker
805
+
resources: {}
806
+
kubelet:
807
+
kubeReservedCpu: "banana"
808
+
asserts:
809
+
- failedTemplate:
810
+
errorMessage: "nodeGroup md0: invalid kubeReservedCpu value \"banana\" — must be a valid Kubernetes CPU quantity (e.g. 100m, 0.5, 1)"
811
+
812
+
- it: rejects invalid memory format for systemReservedMemory
813
+
release:
814
+
name: test-k8s
815
+
namespace: tenant-test
816
+
set:
817
+
_namespace:
818
+
etcd: etcd
819
+
ingress: nginx
820
+
host: example.com
821
+
_cluster:
822
+
cluster-domain: cozy.local
823
+
nodeGroups:
824
+
md0:
825
+
minReplicas: 0
826
+
maxReplicas: 10
827
+
instanceType: ""
828
+
ephemeralStorage: 20Gi
829
+
roles:
830
+
- worker
831
+
resources: {}
832
+
kubelet:
833
+
systemReservedMemory: "abc"
834
+
asserts:
835
+
- failedTemplate:
836
+
errorMessage: "nodeGroup md0: invalid systemReservedMemory value \"abc\" — must be a valid Kubernetes memory quantity (e.g. 128Mi, 1Gi)"
837
+
838
+
################################################
839
+
# Multi-nodeGroup isolation test #
840
+
################################################
841
+
842
+
- it: renders independent kubelet args for multiple node groups
0 commit comments