Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENG-620: project-based namespaces #630

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

parikls
Copy link
Contributor

@parikls parikls commented Mar 12, 2025

No description provided.

Copy link

linear bot commented Mar 12, 2025

ENG-620 platform-secrets

@github-actions github-actions bot added the review-ready PR is ready for the review label Mar 12, 2025
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 13.58025% with 70 lines in your changes missing coverage. Please review.

Project coverage is 21.57%. Comparing base (7c90922) to head (6dc4630).

Files with missing lines Patch % Lines
platform_secrets/service.py 0.00% 41 Missing ⚠️
platform_secrets/kube_client.py 25.00% 15 Missing ⚠️
platform_secrets/api.py 0.00% 14 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (7c90922) and HEAD (6dc4630). Click for more details.

HEAD has 47 uploads less than BASE
Flag BASE (7c90922) HEAD (6dc4630)
unit 24 1
integration 24 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #630       +/-   ##
===========================================
- Coverage   93.46%   21.57%   -71.90%     
===========================================
  Files           7        7               
  Lines         597      445      -152     
  Branches       36       19       -17     
===========================================
- Hits          558       96      -462     
- Misses         30      349      +319     
+ Partials        9        0        -9     
Flag Coverage Δ
integration ?
unit 21.57% <13.58%> (-3.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

+ org_project_validator
)

secret_response_validator = (
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can remove response validator

t.Key("target_namespace"): t.String(min_length=1, max_length=253),
t.Key("secret_names"): t.List(t.String(), min_length=1),
}
secret_unwrap_validator = (
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this? since you deleted /copy endpoint

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zubenkoivan sure. removed

@@ -24,6 +25,10 @@
NAMESPACE_PROJECT_LABEL = "platform.apolo.us/project"


def generate_namespace_name(org_name: str, project_name: str) -> str:
return f"platform--{org_name}--{project_name}"
Copy link
Contributor

Choose a reason for hiding this comment

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

this combination can be larger than 253 characters. I think we will need to concatenate substring of the full name with the substring of the full name hash to avoid name conflicts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zubenkoivan pushed a new version of that function. Please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-ready PR is ready for the review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants