[V2] An interim list of events for GitLab resource v2beta1
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:
- [Spike] Investigate a structured GitLab resourc... (#1389 - closed)
- Implement Events to communicate major CR progre... (#323)
Key Changes
- Event
Reason
s are defined as constants - Trigger,
Type
, andMessage
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