-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate janitor to kubetest2 (#1700)
- Loading branch information
1 parent
b39ea0a
commit 6f4be22
Showing
4 changed files
with
19 additions
and
54 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: "[Janitor] kubetest2 sweeper" | ||
description: "🗑️ Deletes kubetest2 resources when they're no longer needed" | ||
inputs: | ||
max_resource_age_duration: | ||
description: "Golang duration after creation when resources become eligible for deletion" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
export PATH=${PATH}:$(go env GOPATH)/bin | ||
go install sigs.k8s.io/kubetest2/...@latest | ||
go install github.com/aws/aws-k8s-tester/kubetest2/...@latest | ||
kubetest2 eksapi-janitor -max-resource-age=${{ inputs.max_resource_age_duration }} |
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