-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from maheshrayas/ignore-kube-saver
feat: Ignore downscale/upscale if ignore annotation is set
- Loading branch information
Showing
4 changed files
with
139 additions
and
61 deletions.
There are no files selected for viewing
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,30 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: kuber14 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: kuber14 | ||
name: test-kuber14-deploy1 | ||
annotations: | ||
kubesaver.com/ignore: "true" | ||
labels: | ||
app: go-app-kuber14 | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: go-app | ||
template: | ||
metadata: | ||
labels: | ||
app: go-app | ||
spec: | ||
containers: | ||
- name: go-app | ||
image: maheshrayas/goapp:1.0 | ||
ports: | ||
- containerPort: 8090 | ||
--- |
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,7 @@ | ||
rules: | ||
- id: rules-downscale-kuber14 | ||
uptime: Mon-Sun 22:59-23:00 Australia/Sydney | ||
jmespath: "metadata.name == 'kuber14'" | ||
resource: | ||
- Namespace | ||
replicas: 0 |