Skip to content

Commit 4629c88

Browse files
authored
add back ops tasks. swap gitops to read-write (#496)
1 parent 6e1bbc7 commit 4629c88

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# apiVersion: runwhen.com/v1
2-
# kind: GenerationRules
3-
# spec:
4-
# generationRules:
5-
# - resourceTypes:
6-
# - deployment
7-
# matchRules:
8-
# - type: pattern
9-
# pattern: ".+"
10-
# properties: [name]
11-
# mode: substring
12-
# slxs:
13-
# - baseName: depl-ops
14-
# levelOfDetail: detailed
15-
# qualifiers: ["resource", "namespace", "cluster"]
16-
# baseTemplateName: k8s-deployment-ops
17-
# outputItems:
18-
# - type: slx
19-
# # - type: runbook
20-
# # templateName: k8s-deployment-ops-taskset.yaml
1+
apiVersion: runwhen.com/v1
2+
kind: GenerationRules
3+
spec:
4+
generationRules:
5+
- resourceTypes:
6+
- deployment
7+
matchRules:
8+
- type: pattern
9+
pattern: ".+"
10+
properties: [name]
11+
mode: substring
12+
slxs:
13+
- baseName: depl-ops
14+
levelOfDetail: detailed
15+
qualifiers: ["resource", "namespace", "cluster"]
16+
baseTemplateName: k8s-deployment-ops
17+
outputItems:
18+
- type: slx
19+
- type: runbook
20+
templateName: k8s-deployment-ops-taskset.yaml

codebundles/k8s-gitops-gh-remediate/runbook.robot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Suite Setup Suite Initialization
1818
*** Tasks ***
1919
Remediate Readiness and Liveness Probe GitOps Manifests in Namespace `${NAMESPACE}`
2020
[Documentation] Fixes misconfigured readiness or liveness probe configurations for pods in a namespace that are managed in a GitHub GitOps repository
21-
[Tags] access:read-only readiness liveness probe remediate gitops github
21+
[Tags] access:read-write readiness liveness probe remediate gitops github
2222
${probe_health}= RW.CLI.Run Bash File
2323
... bash_file=validate_all_probes.sh
2424
... cmd_override=./validate_all_probes.sh ${NAMESPACE}
@@ -57,7 +57,7 @@ Remediate Readiness and Liveness Probe GitOps Manifests in Namespace `${NAMESPAC
5757

5858
Increase ResourceQuota Limit for Namespace `${NAMESPACE}` in GitHub GitOps Repository
5959
[Documentation] Looks for a resourcequota object in the namespace and increases it if applicable, and if it is managed in a GitHub GitOps repository
60-
[Tags] access:read-only resourcequota quota namespace remediate github gitops
60+
[Tags] access:read-write resourcequota quota namespace remediate github gitops
6161
${quota_usage}= RW.CLI.Run Bash File
6262
... bash_file=resource_quota_check.sh
6363
... env=${env}
@@ -100,7 +100,7 @@ Increase ResourceQuota Limit for Namespace `${NAMESPACE}` in GitHub GitOps Repos
100100

101101
Adjust Pod Resources to Match VPA Recommendation in `${NAMESPACE}`
102102
[Documentation] Queries the namespace for any Vertical Pod Autoscaler resource recommendations and applies them to GitOps GitHub controlled manifests.
103-
[Tags] access:read-only recommendation resources utilization gitops github pods cpu memory allocation vpa
103+
[Tags] access:read-write recommendation resources utilization gitops github pods cpu memory allocation vpa
104104
${vpa_usage}= RW.CLI.Run Bash File
105105
... bash_file=vpa_recommendations.sh
106106
... env=${env}
@@ -143,7 +143,7 @@ Adjust Pod Resources to Match VPA Recommendation in `${NAMESPACE}`
143143

144144
Expand Persistent Volume Claims in Namespace `${NAMESPACE}`
145145
[Documentation] Checks the disk utilization for all PVCs and updates the GitOps manifest for any that are highly utilized.
146-
[Tags] access:read-only recommendation pv pvc utilization gitops github persistentvolumeclaim persistentvolume storage capacity
146+
[Tags] access:read-write recommendation pv pvc utilization gitops github persistentvolumeclaim persistentvolume storage capacity
147147
${pvc_utilization}= RW.CLI.Run Bash File
148148
... bash_file=pvc_utilization_check.sh
149149
... env=${env}

0 commit comments

Comments
 (0)