-
Notifications
You must be signed in to change notification settings - Fork 19
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
ObservedGeneration in conditions #275
ObservedGeneration in conditions #275
Conversation
fix panic when object created with pause
…#243) * Update resource.go * Update Chart.yaml
* fix encryption config ID backward compatibility * revert database encryption key secret path
16e8f1b
to
0a41cb4
Compare
0a41cb4
to
194dc1b
Compare
@@ -630,16 +654,6 @@ func (r *Reconciler) syncNodeSetSpecInline( | |||
} | |||
} | |||
|
|||
if !meta.IsStatusConditionTrue(database.Status.Conditions, DatabasePreparedCondition) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kobzonega а это получается, у нас на NodeSet-ах прокручивалась одна лишняя итерация reconcile всегда, которая навешивала DatabasePreparedCondition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Именно в этой строчке скорее была опечатка, код перенес выше в метод handleResourcesSync
https://github.com/ydb-platform/ydb-kubernetes-operator/pull/275/files#diff-fdcac52a438f64dabd1c874f4afc8106d2804e90eac89634771c2b1846257e7cR473-R481
Но если отвечать в общем, то всегда после изменения .status.state
для объекта выполняется Update и вызывается повторный Reconcile спустя 1сек (StatusUpdateRequeueDelay). Это происходит для явного сохранения state объекта в k8s api, например чтобы по полю status явно определять этап на котором остановилось выполнение из-за ошибки/ожидания.
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
missing info about observed generation for object
What is the new behavior?
ObservedGeneration
inside.status.conditions
ObservedGeneration
for NodeSet objectsOther information