Skip to content

feat: webhook configuration deploy dependency#538

Merged
dmmordvi merged 4 commits intomainfrom
feat/webhook-configuration-deploy-dependency
Jan 22, 2026
Merged

feat: webhook configuration deploy dependency#538
dmmordvi merged 4 commits intomainfrom
feat/webhook-configuration-deploy-dependency

Conversation

@dmmordvi
Copy link
Contributor

No description provided.

Signed-off-by: Dmitry Mordvinov <dmitry.mordvinov@flant.com>
Signed-off-by: Dmitry Mordvinov <dmitry.mordvinov@flant.com>
@dmmordvi dmmordvi requested a review from ilya-lesikov January 22, 2026 13:03
@dmmordvi dmmordvi marked this pull request as ready for review January 22, 2026 15:49

func getWebhookStage(meta *spec.ResourceMeta) common.Stage {
if _, found := spec.FindAnnotationsOrLabelsByKeyPattern(meta.Annotations, common.AnnotationKeyPatternDeployDependency); found {
// If webhook has deploy-dependency annotation - use standard StageInstall, as for other resources
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't bother with comments, this code is straightforward

}

func getWebhookStage(meta *spec.ResourceMeta) common.Stage {
if _, found := spec.FindAnnotationsOrLabelsByKeyPattern(meta.Annotations, common.AnnotationKeyPatternDeployDependency); found {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not touch the annotation directly here. It's a job of manualInternalDependencies() to figure it out. Just pass the result of manualInternalDependencies() down to deployConditions, like we do in weight() function here.

@ilya-lesikov ilya-lesikov changed the title feat/webhook configuration deploy dependency feat: webhook configuration deploy dependency Jan 22, 2026
Signed-off-by: Dmitry Mordvinov <dmitry.mordvinov@flant.com>
@dmmordvi dmmordvi requested a review from ilya-lesikov January 22, 2026 16:56
@dmmordvi dmmordvi merged commit dcb818b into main Jan 22, 2026
7 checks passed
@dmmordvi dmmordvi deleted the feat/webhook-configuration-deploy-dependency branch January 22, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants