Skip to content

Commit

Permalink
[Do Not Merge] Bump sleep to 180 seconds for cachebuster
Browse files Browse the repository at this point in the history
  • Loading branch information
florkbr committed Sep 26, 2024
1 parent 4a3dd44 commit 9ce1392
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion controllers/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (r *FrontendReconciliation) populateCacheBustContainer(j *batchv1.Job) erro
pathsToCacheBust := createCachePurgePathList(r.Frontend, r.FrontendEnvironment)

// Construct the akamai cache bust command
command := fmt.Sprintf("sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete %s", strings.Join(pathsToCacheBust, " "))
command := fmt.Sprintf("sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete %s", strings.Join(pathsToCacheBust, " "))

// Modify the obejct to set the things we care about
cacheBustContainer := v1.Container{
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/cachebust/02-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
command:
- /bin/bash
- '-c'
- 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html'
- 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html'
resources: {}
volumeMounts:
- name: akamai-edgerc
Expand Down Expand Up @@ -148,7 +148,7 @@ spec:
command:
- /bin/bash
- '-c'
- 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json'
- 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json'
resources: {}
volumeMounts:
- name: akamai-edgerc
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/cachebust/04-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
command:
- /bin/bash
- '-c'
- 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html'
- 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html'
resources: {}
volumeMounts:
- name: akamai-edgerc
Expand Down Expand Up @@ -148,7 +148,7 @@ spec:
command:
- /bin/bash
- '-c'
- 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json'
- 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json'
resources: {}
volumeMounts:
- name: akamai-edgerc
Expand Down

0 comments on commit 9ce1392

Please sign in to comment.