-
Notifications
You must be signed in to change notification settings - Fork 63
Add option to use project name as namespace for the task pods #166
Conversation
e2bf7d1
to
37eded8
Compare
Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com>
37eded8
to
ca7607d
Compare
pkg/common/namespace.go
Outdated
Domain NamespaceMapping = iota | ||
NmProjectDomain NamespaceMapping = iota | ||
NmDomain NamespaceMapping = iota | ||
NmProject NamespaceMapping = iota |
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.
Project
is already declared in the package, so I just prefixed all of these with Nm
. Let me know if there is a preferred practice around this.
Codecov Report
@@ Coverage Diff @@
## master #166 +/- ##
==========================================
- Coverage 62.79% 62.78% -0.01%
==========================================
Files 100 100
Lines 7284 7288 +4
==========================================
+ Hits 4574 4576 +2
- Misses 2124 2126 +2
Partials 586 586
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
pkg/common/namespace.go
Outdated
NmProjectDomain NamespaceMapping = iota | ||
NmDomain NamespaceMapping = iota | ||
NmProject NamespaceMapping = iota |
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.
NmProjectDomain NamespaceMapping = iota | |
NmDomain NamespaceMapping = iota | |
NmProject NamespaceMapping = iota | |
NamespaceMappingProjectDomain NamespaceMapping = iota | |
NamespaceMappingDomain | |
NamespaceMappingProject |
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.
Looks good to me, I would like to get @katrogan to take a look though...
* Add option to use project name as namespace for the task pods Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> * rename Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
* Add option to use project name as namespace for the task pods Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> * rename Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
…D and OAuth2 configs, OAuth2 Metadata over gRPC #minor (#168) * wip: OAuth2 Support Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * wip Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * wip Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * tighten security of generated tokens Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Support storing form post values in auth code JWT Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * save secrets to k8s secrets Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Expose metadata endpoints over gRPC Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * trim OpenID Connect config further Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Selectively authenticate gRPC endpoints Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Support external oauth2 server and Okta Config Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * update config Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fix nil secrets data map Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fixed the pointer overwrite issue in oauthServer metadata (#183) Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com> Co-authored-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Unit tests Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Unit tests Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Simplify config further and move auth package up Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fix clusterresource Project and domain(#167) * Fix clusterresource Project Signed-off-by: Anand Swaminathan <aswaminathan@lyft.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Bump flyteidl version to pick up auth role field number fix (#169) Signed-off-by: Katrina Rogan <katroganGH@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Add option to use project name as namespace for the task pods (#166) * Add option to use project name as namespace for the task pods Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> * rename Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * GetExecution performance improvements (#171) Signed-off-by: Katrina Rogan <katroganGH@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Add exists check for workflow & node executions (#172) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Remove legacy fetch for workflow execution inputs (#173) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Added release workflow (#170) Signed-off-by: yuvraj <evalsocket@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update Flyteidl version (#175) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Added version in flyteadmin (#154) * wip: added version pkg Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: resolve conflict Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: added version in rpc Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: small fixes Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: Added panic cache in get version service Signed-off-by: yuvraj <evalsocket@gmail.com> * Added flytestdlib for version package Signed-off-by: yuvraj <evalsocket@gmail.com> * Added version service test Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: added ldflags in goreleaser Signed-off-by: yuvraj <evalsocket@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Propagate nesting and principal for child executions (#177) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Write workflow and node execution events asynchronously (#174) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Add sensible flyteadmin config defaults (#179) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Lint Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * further cleanup Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Only register authserver when auth is enabled Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update to latest flyteidl and separate auth interfaces Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * dead code Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * PR Comments Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * merge master Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Move to authorizedUris Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update to released flyteidl Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fix response expiry and add unit tests Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update go mod Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * fix unit tests that broke because of identity changes Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> Co-authored-by: pmahindrakar-oss <77798312+pmahindrakar-oss@users.noreply.github.com> Co-authored-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com> Co-authored-by: Anand Swaminathan <aswaminathan@lyft.com> Co-authored-by: Katrina Rogan <katrina@nuclyde.io> Co-authored-by: Jeev B <jeevb@users.noreply.github.com> Co-authored-by: Yuvraj <10830562+evalsocket@users.noreply.github.com> Co-authored-by: Flyte Bot <admin@flyte.org>
* Add option to use project name as namespace for the task pods Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> * rename Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com>
…D and OAuth2 configs, OAuth2 Metadata over gRPC #minor (#168) * wip: OAuth2 Support Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * wip Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * wip Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * tighten security of generated tokens Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Support storing form post values in auth code JWT Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * save secrets to k8s secrets Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Expose metadata endpoints over gRPC Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * trim OpenID Connect config further Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Selectively authenticate gRPC endpoints Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Support external oauth2 server and Okta Config Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * update config Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fix nil secrets data map Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fixed the pointer overwrite issue in oauthServer metadata (#183) Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com> Co-authored-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Unit tests Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Unit tests Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Simplify config further and move auth package up Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fix clusterresource Project and domain(#167) * Fix clusterresource Project Signed-off-by: Anand Swaminathan <aswaminathan@lyft.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Bump flyteidl version to pick up auth role field number fix (#169) Signed-off-by: Katrina Rogan <katroganGH@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Add option to use project name as namespace for the task pods (#166) * Add option to use project name as namespace for the task pods Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> * rename Signed-off-by: Jeev B <jeev.balakrishnan@freenome.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * GetExecution performance improvements (#171) Signed-off-by: Katrina Rogan <katroganGH@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Add exists check for workflow & node executions (#172) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Remove legacy fetch for workflow execution inputs (#173) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Added release workflow (#170) Signed-off-by: yuvraj <evalsocket@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update Flyteidl version (#175) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Added version in flyteadmin (#154) * wip: added version pkg Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: resolve conflict Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: added version in rpc Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: small fixes Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: Added panic cache in get version service Signed-off-by: yuvraj <evalsocket@gmail.com> * Added flytestdlib for version package Signed-off-by: yuvraj <evalsocket@gmail.com> * Added version service test Signed-off-by: yuvraj <evalsocket@gmail.com> * wip: added ldflags in goreleaser Signed-off-by: yuvraj <evalsocket@gmail.com> Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Propagate nesting and principal for child executions (#177) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Write workflow and node execution events asynchronously (#174) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Add sensible flyteadmin config defaults (#179) Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Lint Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * further cleanup Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Only register authserver when auth is enabled Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update to latest flyteidl and separate auth interfaces Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * dead code Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * PR Comments Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * merge master Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Move to authorizedUris Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update to released flyteidl Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Fix response expiry and add unit tests Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * Update go mod Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> * fix unit tests that broke because of identity changes Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com> Co-authored-by: pmahindrakar-oss <77798312+pmahindrakar-oss@users.noreply.github.com> Co-authored-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com> Co-authored-by: Anand Swaminathan <aswaminathan@lyft.com> Co-authored-by: Katrina Rogan <katrina@nuclyde.io> Co-authored-by: Jeev B <jeevb@users.noreply.github.com> Co-authored-by: Yuvraj <10830562+evalsocket@users.noreply.github.com> Co-authored-by: Flyte Bot <admin@flyte.org>
TL;DR
Use project name as namespace for task pods
Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
https://github.com/lyft/flyte/issues/
Follow-up issue
NA
OR
https://github.com/lyft/flyte/issues/