Skip to content

Commit

Permalink
update template + update dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmathia committed Jan 29, 2024
1 parent 543ed20 commit 2d3d2cb
Show file tree
Hide file tree
Showing 4 changed files with 39,358 additions and 217,121 deletions.
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. create X ressources in Y providers '...'

1. create X resources in Y providers '...'
2. setup Kexa as '....'
3. Scroll down to '....'
4. See error
Expand All @@ -24,9 +25,9 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Environment (please provide as much information as possible about the execution context):**
- config
- rules
- docker/CI-CD/scripts
- config
- rules
- docker/CI-CD/scripts

**Additional context**
Add any other context about the problem here.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ A clear and concise description of what you want to happen.
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Add any other context or screenshots about the feature request here.
110 changes: 110 additions & 0 deletions Kexa/rules/rules-with-var.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
- version: 2.0.0
alert_template: &alert_template
min: &min
date: 06-12-2023
alert:
fatal:
<<: *alert_template
error:
<<: *alert_template
warning:
<<: *alert_template
info:
<<: *alert_template
global:
<<: *alert_template
conditions:
- level: 0
min: *min
- level: 1
min: *min
- level: 2
min: *min
- level: 3
min: *min
rules:
- name: "git-is-repository-private"
description: "this rule is to check if git repo is private"
applied: false
level: 0
cloudProvider: github
objectName: repositories
conditions:
- property: private
condition: EQUAL
value: true
- name: "git-is-branch-protected"
description: "this rule is to check if git branch is protected"
applied: false
level: 0
cloudProvider: github
objectName: branches
conditions:
- operator: NAND
criteria:
- property: protected
condition: DIFFERENT
value: true
- property: name
condition: EQUAL
value: master
- name: "kub-alert-if-namespace-not-exist"
description: "this rule is to check if namespace exists and notify if exists"
applied: false
level: 0
cloudProvider: kubernetes
objectName: namespaces
conditions:
- property: metadata.name
condition: DIFFERENT
value: dev-cloudprices-apiclient
- name: "kub-are-all-pods-running-namespace"
description: "this rule is to check if all pods are running for a namespace"
applied: false
level: 2
cloudProvider: kubernetes
objectName: pods
conditions:
- operator: NAND
criteria:
- property: status.phase
condition: DIFFERENT
value: Running
- property: metadata.namespace
condition: EQUAL
value: thecloudprices-manorga
- name: "kub-are-all-pods-not-running"
description: "this rule is to be notified if pods are not running"
applied: false
level: 2
cloudProvider: kubernetes
objectName: pods
conditions:
- operator: OR
criteria:
- property: status.phase
condition: EQUAL
value: Running
- property: status.phase
condition: EQUAL
value: Succeeded
- name: "kub-all-my-helm-is-deployed"
description: "this rule is to check if some helm are not deployed"
applied: false
level: 2
cloudProvider: kubernetes
objectName: helm
conditions:
- property: status
condition: EQUAL
value: deployed
- name: "git-count-repo-orga"
description: "this rule is to count the number of repos in a git organization"
applied: false
level: 0
cloudProvider: github
objectName: repositories
conditions:
- property: topics
condition: COUNT
value: 0
Loading

0 comments on commit 2d3d2cb

Please sign in to comment.