@@ -220,7 +220,7 @@ var _ = Describe("Workload cluster creation", func() {
220220 })
221221 })
222222
223- It ("Install and manage Helm chart with ReleaseDrift option enabled" , func () {
223+ FIt ("Install and manage Helm chart with ReleaseDrift option enabled" , func () {
224224 clusterName = fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 ))
225225 clusterctl .ApplyClusterTemplateAndWait (ctx , createApplyClusterTemplateInput (
226226 specName ,
@@ -235,7 +235,7 @@ var _ = Describe("Workload cluster creation", func() {
235235
236236 hcp := & addonsv1alpha1.HelmChartProxy {
237237 ObjectMeta : metav1.ObjectMeta {
238- Name : "nginx-ingress " ,
238+ Name : "ahoy " ,
239239 Namespace : namespace .Name ,
240240 },
241241 Spec : addonsv1alpha1.HelmChartProxySpec {
@@ -244,13 +244,17 @@ var _ = Describe("Workload cluster creation", func() {
244244 "nginxIngress" : "enabled" ,
245245 },
246246 },
247- ReleaseName : "nginx-ingress " ,
248- ReleaseNamespace : "nginx-namespace " ,
249- ChartName : "nginx-ingress " ,
250- RepoURL : "https://helm.nginx.com/stable " ,
247+ ChartName : "hello-world " ,
248+ RepoURL : "https://helm.github.io/examples " ,
249+ ReleaseName : "ahoy " ,
250+ ReleaseNamespace : "ahoy-namespace " ,
251251 ValuesTemplate : nginxValues ,
252- ReleaseDrift : true ,
253252 ReconcileStrategy : string (addonsv1alpha1 .ReconcileStrategyContinuous ),
253+ ReleaseDrift : true ,
254+ Options : addonsv1alpha1.HelmOptions {
255+ Wait : true ,
256+ Timeout : & metav1.Duration {Duration : 5 * time .Minute },
257+ },
254258 },
255259 }
256260
@@ -267,7 +271,7 @@ var _ = Describe("Workload cluster creation", func() {
267271 })
268272
269273 // Updating Nginx deployment and waiting for the release drift
270- By ("Updating Nginx deployment and waiting for the release drift" , func () {
274+ By ("Updating Nginx deployment and waiting for release drift" , func () {
271275 HelmReleaseDriftWithDeployment (ctx , func () HelmReleaseDriftInput {
272276 return HelmReleaseDriftInput {
273277 BootstrapClusterProxy : bootstrapClusterProxy ,
@@ -277,6 +281,37 @@ var _ = Describe("Workload cluster creation", func() {
277281 UpdatedDeploymentReplicas : 2 ,
278282 ExpectedDeploymentReplicas : 1 ,
279283 ExpectedRevision : 2 ,
284+ Validation : ValidationEventually ,
285+ }
286+ })
287+ })
288+
289+ // Update existing Helm chart
290+ By ("Updating HelmChartProxy disabling release drift option" , func () {
291+ hcp .Spec .ReleaseDrift = false
292+ HelmUpgradeSpec (ctx , func () HelmUpgradeInput {
293+ return HelmUpgradeInput {
294+ BootstrapClusterProxy : bootstrapClusterProxy ,
295+ Namespace : namespace ,
296+ ClusterName : clusterName ,
297+ HelmChartProxy : hcp ,
298+ ExpectedRevision : 1 ,
299+ }
300+ })
301+ })
302+
303+ // Updating Nginx deployment and waiting for the release drift
304+ By ("Updating Nginx deployment and waiting release drift to be inactive for a long time" , func () {
305+ HelmReleaseDriftWithDeployment (ctx , func () HelmReleaseDriftInput {
306+ return HelmReleaseDriftInput {
307+ BootstrapClusterProxy : bootstrapClusterProxy ,
308+ Namespace : namespace ,
309+ ClusterName : clusterName ,
310+ HelmChartProxy : hcp ,
311+ UpdatedDeploymentReplicas : 2 ,
312+ ExpectedDeploymentReplicas : 2 ,
313+ ExpectedRevision : 1 ,
314+ Validation : ValidationConsistently ,
280315 }
281316 })
282317 })
0 commit comments