Skip to content

implement podgangset validating webhook#9

Merged
dmitsh merged 3 commits into
mainfrom
ds-adm
Dec 16, 2024
Merged

implement podgangset validating webhook#9
dmitsh merged 3 commits into
mainfrom
ds-adm

Conversation

@dmitsh

@dmitsh dmitsh commented Dec 4, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@dmitsh dmitsh marked this pull request as draft December 4, 2024 04:15
@dmitsh dmitsh self-assigned this Dec 4, 2024
@dmitsh dmitsh changed the title initial implementation of podgangset validation implement podgangset validating webhook Dec 4, 2024
@dmitsh dmitsh force-pushed the ds-adm branch 5 times, most recently from 67d87dd to 0c740b0 Compare December 7, 2024 06:21
@dmitsh dmitsh force-pushed the ds-adm branch 2 times, most recently from 11ef4d7 to e5d38d4 Compare December 12, 2024 00:21
@dmitsh dmitsh marked this pull request as ready for review December 12, 2024 00:23
@dmitsh dmitsh force-pushed the ds-adm branch 4 times, most recently from b6d0b05 to 4967866 Compare December 12, 2024 18:27
Signed-off-by: Dmitry Shmulevich <dshmulevich@nvidia.com>
 * Updated API removing pointer types where not required.
 * Added code in cmd/main.go to call RegisterWebhooks.
 * Refactored validation webhook for PodGangSet.
Signed-off-by: Madhav Bhargava <madhav.bhargava@sap.com>
@dmitsh dmitsh force-pushed the ds-adm branch 3 times, most recently from 7e03550 to fd2a0b1 Compare December 16, 2024 00:38
Signed-off-by: Dmitry Shmulevich <dshmulevich@nvidia.com>

@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.

/lgtm

func (h *Handler) Handle(ctx context.Context, req admission.Request) admission.Response {
panic("implement me")
log := h.logger.WithValues("name", req.Name, "namespace", req.Namespace, "resource", fmt.Sprintf("%s/%s", req.Kind.Group, req.Kind.Kind), "operation", req.Operation, "user", req.UserInfo.Username)
log.V(1).Info("Grove validation webhook invoked")

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.

Suggested change
log.V(1).Info("Grove validation webhook invoked")
log.V(1).Info("PodGangSet validation webhook invoked")

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.

This has already been done.

@dmitsh dmitsh merged commit 4111c6e into main Dec 16, 2024
@dmitsh dmitsh deleted the ds-adm branch December 16, 2024 05:04
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