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

Using Tenant recorder to emit and record events about the reconciliation #173

Closed
prometherion opened this issue Dec 20, 2020 · 0 comments · Fixed by #282
Closed

Using Tenant recorder to emit and record events about the reconciliation #173

prometherion opened this issue Dec 20, 2020 · 0 comments · Fixed by #282
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@prometherion
Copy link
Member

Describe the feature

As a Cluster Administrator, I'd like to check events of the last reconciliations rather than debugging the Capsule logs.

Controller Runtime provides recorder to deal with events recorder.

What would the new user story look like?

  1. kubectl describe tnt <name>
  2. checking the last events for a Tenant

Expected behavior

# kubectl describe tenant oil
Name:         tenant-owner                                                                                                                                                                                                                    
Namespace:                                                                                                                                                                                                                                    
Labels:       <none>                                                                                                                                                                                                                          
Annotations:  <none>                                                                                                                                                                                                                          
API Version:  capsule.clastix.io/v1alpha1                                                                                                                                                                                                     
Kind:         Tenant 
  Type    Reason     Age   From               Message
  ----    ------     ----  ----               -------
  Normal  Scheduled  19s   default-scheduler  Successfully assigned capsule-system/capsule-controller-manager-74bd94f9fc-4zcnm to capsule-control-plane
  Normal  Pulled     18s   kubelet            Container image "quay.io/clastix/capsule:v0.0.3" already present on machine
  Normal  Created    18s   kubelet            Created container manager
  Normal  Started    18s   kubelet            Started container manager
  Normal  Pulled     18s   kubelet            Container image "gcr.io/kubebuilder/kube-rbac-proxy:v0.5.0" already present on machine
  Normal  Created    18s   kubelet            Created container kube-rbac-proxy
  Normal  Started    18s   kubelet            Started container kube-rbac-proxy

YMMV, just for the sake of understanding used the Pod ones.

@prometherion prometherion added enhancement New feature or request v0.1.0 To be implemented/hotfixed for 0.1.0 labels Dec 20, 2020
@prometherion prometherion self-assigned this Dec 20, 2020
@prometherion prometherion removed the v0.1.0 To be implemented/hotfixed for 0.1.0 label May 4, 2021
@prometherion prometherion added this to the v0.1.0 milestone May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant