@@ -29,7 +29,7 @@ import (
2929const (
3030 remoteChartSource = "https://charts.bitnami.com/bitnami"
3131 remoteChartName = "nginx"
32- remoteChartVersion = "13.2.23 "
32+ remoteChartVersion = "22.4.0 "
3333)
3434
3535// Test that we can install a remote chart (e.g bitnami/nginx)
@@ -48,11 +48,13 @@ func TestRemoteChartInstall(t *testing.T) {
4848 defer k8s .DeleteNamespace (t , kubectlOptions , namespaceName )
4949 k8s .CreateNamespace (t , kubectlOptions , namespaceName )
5050
51- // Override service type to node port
51+ // Override service type to node port and disable PDB (requires policy/v1 API
52+ // which may not be available on older k8s clusters)
5253 options := & Options {
5354 KubectlOptions : kubectlOptions ,
5455 SetValues : map [string ]string {
5556 "service.type" : "NodePort" ,
57+ "pdb.create" : "false" ,
5658 },
5759 Version : remoteChartVersion ,
5860 }
@@ -160,9 +162,11 @@ func waitForRemoteChartPods(t *testing.T, kubectlOptions *k8s.KubectlOptions, re
160162 remoteChartName , releaseName ,
161163 ),
162164 }
163- k8s .WaitUntilNumPodsCreated (t , kubectlOptions , filters , podCount , 30 , 10 * time .Second )
165+ // Use longer timeout (60 retries * 10s = 10 min) to handle slower CI environments
166+ // and potential resource contention when multiple helm tests run in parallel
167+ k8s .WaitUntilNumPodsCreated (t , kubectlOptions , filters , podCount , 60 , 10 * time .Second )
164168 pods := k8s .ListPods (t , kubectlOptions , filters )
165169 for _ , pod := range pods {
166- k8s .WaitUntilPodAvailable (t , kubectlOptions , pod .Name , 30 , 10 * time .Second )
170+ k8s .WaitUntilPodAvailable (t , kubectlOptions , pod .Name , 60 , 10 * time .Second )
167171 }
168172}
0 commit comments