Skip to content

✨ feat: record event on resource creation #535

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

Merged
merged 1 commit into from
May 6, 2025
Merged

✨ feat: record event on resource creation #535

merged 1 commit into from
May 6, 2025

Conversation

jfbus
Copy link
Contributor

@jfbus jfbus commented May 5, 2025

No events are currently generated by reconcilers. This adds an event on every IaaS resource creation.

kubectl describe osccluster.infrastructure.cluster.x-k8s.io/test-cluster-api
[...]
Events:
  Type    Reason                  Age   From                   Message
  ----    ------                  ----  ----                   -------
  Normal  NetCreated              11s   osccluster-controller  Net created
  Normal  SubnetCreated           10s   osccluster-controller  Subnet created [loadbalancer nat bastion] cloudgouv-eu-west-1a
  Normal  SubnetCreated           9s    osccluster-controller  Subnet created [controlplane] cloudgouv-eu-west-1a
  Normal  SubnetCreated           8s    osccluster-controller  Subnet created [worker] cloudgouv-eu-west-1a
  Normal  InternetServiceCreated  8s    osccluster-controller  Internet service created
  Normal  RouteTableCreated       7s    osccluster-controller  Route table created [loadbalancer nat bastion]
  Normal  NatServicesCreated      6s    osccluster-controller  NAT created cloudgouv-eu-west-1a
  Normal  RouteTableCreated       5s    osccluster-controller  Route table created [controlplane]
  Normal  RouteTableCreated       5s    osccluster-controller  Route table created [worker]
  Normal  SecurityGroupCreated    4s    osccluster-controller  Security group created [loadbalancer]
  Normal  SecurityGroupCreated    2s    osccluster-controller  Security group created [worker]

@jfbus jfbus marked this pull request as ready for review May 5, 2025 13:12
@jfbus jfbus merged commit 1fc03f0 into main May 6, 2025
6 checks passed
@jfbus jfbus deleted the feat/events branch May 6, 2025 15:01
@jfbus jfbus added the kind/feature Feature resolution label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature resolution
Development

Successfully merging this pull request may close these issues.

2 participants