-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
End-to-end test conditional remediation
- Loading branch information
Showing
22 changed files
with
767 additions
and
28 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: install-fail-remediate | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
install: | ||
remediation: | ||
remediateLastFailure: true | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
# Make wait fail. With single replica helm doesn't actually wait, see: | ||
# https://github.com/helm/helm/issues/5814#issuecomment-567130226 | ||
replicaCount: 2 | ||
faults: | ||
unready: true | ||
timeout: 3s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: install-fail-retry | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
install: | ||
remediation: | ||
retries: 1 | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
# Make wait fail. With single replica helm doesn't actually wait, see: | ||
# https://github.com/helm/helm/issues/5814#issuecomment-567130226 | ||
replicaCount: 2 | ||
faults: | ||
unready: true | ||
timeout: 3s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: install-fail | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
# Make wait fail. With single replica helm doesn't actually wait, see: | ||
# https://github.com/helm/helm/issues/5814#issuecomment-567130226 | ||
replicaCount: 2 | ||
faults: | ||
unready: true | ||
timeout: 3s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: install-test-fail-ignore | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
test: | ||
enable: true | ||
ignoreFailures: true | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
faults: | ||
testFail: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: install-test-fail | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
test: | ||
enable: true | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
faults: | ||
testFail: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
config/testdata/upgrade-fail-remediate-uninstall/install.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: upgrade-fail-remediate-uninstall | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi |
28 changes: 28 additions & 0 deletions
28
config/testdata/upgrade-fail-remediate-uninstall/upgrade.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: upgrade-fail-remediate-uninstall | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
upgrade: | ||
remediation: | ||
remediateLastFailure: true | ||
strategy: uninstall | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
# Make wait fail. With single replica helm doesn't actually wait, see: | ||
# https://github.com/helm/helm/issues/5814#issuecomment-567130226 | ||
replicaCount: 2 | ||
faults: | ||
unready: true | ||
timeout: 3s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: upgrade-fail-remediate | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2alpha1 | ||
kind: HelmRelease | ||
metadata: | ||
name: upgrade-fail-remediate | ||
spec: | ||
interval: 5m | ||
chart: | ||
name: podinfo | ||
version: '^4.0.0' | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 1m | ||
upgrade: | ||
remediation: | ||
remediateLastFailure: true | ||
values: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
# Make wait fail. With single replica helm doesn't actually wait, see: | ||
# https://github.com/helm/helm/issues/5814#issuecomment-567130226 | ||
replicaCount: 2 | ||
faults: | ||
unready: true | ||
timeout: 3s |
Oops, something went wrong.