-
Notifications
You must be signed in to change notification settings - Fork 729
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
Set .status.observedGeneration #3392
Comments
It sounds like a good idea. One important thing to discuss though: The purpose of I think it's an important distinction. Let's take an example with this Elasticsearch resource, where let's say we increased apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: mycluster
generation: 12
spec:
version: 7.8.0
nodeSets:
count: 3
name: default
status:
availableNodes: 1
health: green
phase: ApplyingChanges
observedGeneration: 12 We see here that ECK has processed the resource in generation 12 ( |
Yes, of course. If you check out the krane documentation I linked to you’ll see how that’s done. It’s easy and we’re ready to do it in our use case, but blocked on this requirement of the operator; that’s why I opened this feature request, not because I believe it’s the only requirement :) |
@sebgl Are you able to describe what is necessary in order to implement this such that we might take a shot at it? The lack of an ability to robustly monitor ElasticSearch rollout is problematic for our application deployments which must perform indexing operations as soon as ElasticSearch is ready. |
I'm going to proceed on implementing this, moving forward with the below assumption: The
The status being observed using these fields only apply to generation Please let me know if this assumption does not hold true, or needs further clarification. |
Closing as this is implemented now. Starting with ECK operator version 2.1 and Elasticsearch and Kibana. |
Proposal
In order for deployment tools like krane to deterministically monitor the rollout of custom resources, those resources must set
.status.observedGeneration
.This is a feature request for exactly that in this operator, such that our automation may effectively monitor rollout.
The text was updated successfully, but these errors were encountered: