Skip to content

Commit dfcdcb2

Browse files
denverwilliamshaskojur
authored andcommitted
Add missing path for pod_delete lfn-cnti#1973
1 parent 6e8d831 commit dfcdcb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tasks/workload/reliability.cr

+3-1
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,15 @@ task "pod_delete", ["install_litmus"] do |t, args|
435435
experiment_url = "https://raw.githubusercontent.com/litmuschaos/chaos-charts/#{LitmusManager::Version}/faults/kubernetes/pod-delete/fault.yaml"
436436
rbac_url = "https://raw.githubusercontent.com/litmuschaos/chaos-charts/#{LitmusManager::RBAC_VERSION}/charts/generic/pod-delete/rbac.yaml"
437437

438-
# rbac_url = "https://hub.litmuschaos.io/api/chaos/#{LitmusManager::Version}?file=charts/generic/pod-delete/rbac.yaml"
438+
experiment_path = LitmusManager.download_template(experiment_url, "#{t.name}_experiment.yaml")
439+
439440
rbac_url = "https://raw.githubusercontent.com/litmuschaos/chaos-charts/#{LitmusManager::Version}/charts/generic/pod-delete/rbac.yaml"
440441
rbac_path = LitmusManager.download_template(rbac_url, "#{t.name}_rbac.yaml")
441442
rbac_yaml = File.read(rbac_path)
442443
rbac_yaml = rbac_yaml.gsub("namespace: default", "namespace: #{app_namespace}")
443444
File.write(rbac_path, rbac_yaml)
444445

446+
445447
KubectlClient::Apply.file(experiment_path, namespace: app_namespace)
446448
KubectlClient::Apply.file(rbac_path)
447449
end

0 commit comments

Comments
 (0)