Skip to content

[V2] An interim list of events for GitLab resource v2beta1

Hossein Pursultani requested to merge 1512-gitlab-cr-v2beta1-events into v2

🔵 This MR is part of the implementation of Operator V2.

Summary

This is an interim list of events for v2beta1 of GitLab resource. For each event, its trigger conditions, type (Normal or Warning), and message format are defined.

Background

See:

Key Changes

  • Event Reasons are defined as constants
  • Trigger, Type, and Message format for events are commented

Benefits

  • Better communication of state of the resource and progress of the controller

Limitations

  • This is an interim list. It may change based on the implementation requirements of GitLab controller.

Further Work

  • Events are not documented. They need user facing documentation.

Examples

Example 1

> kubectl describe gitlab test
...
Events:

TYPE        REASON                      AGE                 FROM                MESSAGE
----        ------                      ---                 ----                -------
Normal      ConfigurationValidated      1h (x10 over 2d)    gitlab-controller   specification is valid
Warning     ConfigurationOverwritten    1h (x10 over 2d)    gitlab-controller   field is ignored: ".spec.podTemplate.hostPID"
Normal      InstallStarted              1h (x10 over 2d)    gitlab-controller   install workflow started: "16.10.0"
Normal      SecretsReady                2d (x1 over 2d)     gitlab-controller   secrets generated: "[test-root-password,test-gitaly-auth-token,...]"
Warning     PostgreSQLConnectionFailed  1h (x10 over 2d)    gitlab-controller   postgresql databases failed: "main": "failed: Connection refused"

Related Issues

Edited by Hossein Pursultani

Merge request reports