This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Pod Mutating Webhook & Secret Annotation Injector #242
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
kumare3
reviewed
Mar 19, 2021
few comments |
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
EngHabu
force-pushed
the
inject-secrets-2
branch
from
March 22, 2021 21:49
e35a9a8
to
9e582ca
Compare
kumare3
reviewed
Mar 22, 2021
mgr, err := manager.New(kubecfg, manager.Options{ | ||
Port: cfg.ListenPort, | ||
CertDir: cfg.CertDir, | ||
Namespace: limitNamespace, |
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.
if we add multiple namespaces - how does this work?
kumare3
reviewed
Mar 22, 2021
Co-authored-by: Ketan Umare <[email protected]> Signed-off-by: Haytham Abuelfutuh <[email protected]>
EngHabu
force-pushed
the
inject-secrets-2
branch
from
March 22, 2021 23:11
51b5a5b
to
f55c336
Compare
kumare3
previously approved these changes
Mar 22, 2021
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.
lgtm, can you update the readme for flytepropeller to add that it contains this too?
Signed-off-by: Haytham Abuelfutuh <[email protected]>
kumare3
approved these changes
Mar 22, 2021
kumare3
added a commit
that referenced
this pull request
May 25, 2021
* Pod Mutating Webhook & Secret Annotation Injector Signed-off-by: Haytham Abuelfutuh <[email protected]> * Marshal the entire secret object instead Signed-off-by: Haytham Abuelfutuh <[email protected]> * docs Signed-off-by: Haytham Abuelfutuh <[email protected]> * cmd docs Signed-off-by: Haytham Abuelfutuh <[email protected]> * refactor Signed-off-by: Haytham Abuelfutuh <[email protected]> * Unit tests Signed-off-by: Haytham Abuelfutuh <[email protected]> * Update pkg/utils/secrets/marshaler.go Co-authored-by: Ketan Umare <[email protected]> Signed-off-by: Haytham Abuelfutuh <[email protected]> * introduce webhook in README Signed-off-by: Haytham Abuelfutuh <[email protected]> Co-authored-by: Ketan Umare <[email protected]> Signed-off-by: Ketan Umare <[email protected]>
2 tasks
eapolinario
pushed a commit
to eapolinario/flytepropeller
that referenced
this pull request
Aug 9, 2023
* Pod Mutating Webhook & Secret Annotation Injector Signed-off-by: Haytham Abuelfutuh <[email protected]> * Marshal the entire secret object instead Signed-off-by: Haytham Abuelfutuh <[email protected]> * docs Signed-off-by: Haytham Abuelfutuh <[email protected]> * cmd docs Signed-off-by: Haytham Abuelfutuh <[email protected]> * refactor Signed-off-by: Haytham Abuelfutuh <[email protected]> * Unit tests Signed-off-by: Haytham Abuelfutuh <[email protected]> * Update pkg/utils/secrets/marshaler.go Co-authored-by: Ketan Umare <[email protected]> Signed-off-by: Haytham Abuelfutuh <[email protected]> * introduce webhook in README Signed-off-by: Haytham Abuelfutuh <[email protected]> Co-authored-by: Ketan Umare <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Haytham Abuelfutuh [email protected]
TL;DR
Add a Pod Mutating WebHook cmd for flytepropeller. The current setup only implements a secrets injector that can either inject secrets available to FlytePropeller or k8s secrets.
Type
Are all requirements met?
Complete description
flytepropeller webhook init-certs
command issues a CA/Cert/PrivateKey and store them into a secret given a secret nameflytepropeller webhook
creates a MutatingWebhookConfigration object in etcd., a webhook server and registers it with API Server. From there:inject-flyte-secrets: true
.inject-flyte-secrets: true
to CRDs if the task has secrets in its TaskTemplate.Tracking Issue
flyteorg/flyte#800