Skip to content

Add Mutating Webhooks for PodGangSet#17

Merged
unmarshall merged 7 commits into
mainfrom
ritika/mutatingwebhooks
Jan 24, 2025
Merged

Add Mutating Webhooks for PodGangSet#17
unmarshall merged 7 commits into
mainfrom
ritika/mutatingwebhooks

Conversation

@ritikasrivastava

@ritikasrivastava ritikasrivastava commented Dec 12, 2024

Copy link
Copy Markdown
Contributor

Defaulting webhook to add defaults to PodGangSet CR is added in this PR.

@unmarshall

Copy link
Copy Markdown
Collaborator

@ritikasrivastava please rebase your PR then i can review it.

Comment thread operator/internal/webhook/pgs/mutation/handler.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/handler.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/handler.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/podgangset.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/podgangset.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/podgangset.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/podClique.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/pod.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/pod.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/pod.go Outdated
@unmarshall

Copy link
Copy Markdown
Collaborator

Can you also add a short description to the PR?

Comment thread operator/internal/webhook/pgs/mutation/handler.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/register.go

@unmarshall unmarshall left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you rebase your PR on top of Dmitry's PR that got merged and also removes the UpdateStrategy?
There are some minor changes requested. Once that is done then we can merge this PR.

Comment thread operator/internal/webhook/pgs/mutation/podgangset.go
Comment thread operator/internal/webhook/pgs/mutation/handler.go Outdated
Comment thread operator/internal/webhook/pgs/mutation/podgangset.go
Comment thread operator/internal/webhook/pgs/mutation/podgangset.go Outdated
}

func defaultPodCliqueTemplateSpec(cliqueSpecs []v1alpha1.PodCliqueTemplateSpec) {
for _, cliqueSpec := range cliqueSpecs {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For every PodClique, can replicas ever be 0? This is only possible if we need to support scale down to 0. Lets discuss this point in the next sync.

Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
Signed-off-by: Ritika Srivastava <risrivastava@nvidia.com>
@unmarshall unmarshall merged commit 31b0bef into main Jan 24, 2025
@unmarshall unmarshall deleted the ritika/mutatingwebhooks branch January 24, 2025 16:09
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