Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap KeptnEvaluation Controller #161

Closed
3 of 4 tasks
Tracked by #122 ...
thisthat opened this issue Oct 13, 2022 · 0 comments · Fixed by #168
Closed
3 of 4 tasks
Tracked by #122 ...

Bootstrap KeptnEvaluation Controller #161

thisthat opened this issue Oct 13, 2022 · 0 comments · Fixed by #168
Assignees

Comments

@thisthat
Copy link
Member

thisthat commented Oct 13, 2022

Goal

Extend the Keptn Operator with a controller for KeptnEvaluation CRDs.

Technical Details

The Controller should monitor KeptnEvaluation CRDs:

apiVersion: lifecycle.keptn.sh/v1alpha1
kind: KeptnEvaluation
metadata:
  name: my-prometheus-evaluation-asdolkfj
spec:
  evaluationDefinition: my-prometheus-evaluation #name of the KeptnEvaluationDefinition to use
status:
  evaluationStatus: #array
    - name: query-1 #string
      value: 10 #string with the result from query-1
      status: passed #enum: passed/failed
   - name: query-2
      value: 50
      status: failed
 overallStatus: failed

This controller should monitor KeptnEvaluation CRDs and fetch KeptnEvaluationDefinitions and KeptnEvaluationProvider CRDs.
KeptnEvaluationDefinition is fetched based on the name of spec.evaluationDefinition.
KeptnEvaluationProvider is fetched based on value of spec.source from the KeptnEvaluationDefinition.

Acceptance Criteria

  • KeptnEvaluation CRD is defined
  • The controller monitor the KeptnEvaluation CRD
  • The controller fetched KeptnEvaluationDefinitions and KeptnEvaluationProviders

DoD

  • The operator monitors KeptnEvaluation CRDs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants