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

Adds support for private endpoint annotation #1953

Merged
merged 1 commit into from Nov 9, 2021

Conversation

jLopezbarb
Copy link
Contributor

Signed-off-by: Javier López Barba javier@okteto.com

Fixes #1895

Proposed changes

-Adds support for okteto dev private annotation

Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb requested a review from a team November 8, 2021 12:45
@@ -561,6 +561,9 @@ func translateService(svcName string, s *model.Stack) *apiv1.Service {
annotations := translateAnnotations(svc)
if s.Services[svcName].Public && annotations[model.OktetoAutoIngressAnnotation] == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should work even if s.Services[svcName].Public is false, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We set it to true when there are exposed ports. This way we could support okteto-stack previous implementation

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #1953 (810aebb) into master (b72a73e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1953   +/-   ##
=======================================
  Coverage   33.42%   33.43%           
=======================================
  Files         122      122           
  Lines       13841    13843    +2     
=======================================
+ Hits         4626     4628    +2     
  Misses       8715     8715           
  Partials      500      500           
Impacted Files Coverage Δ
pkg/cmd/stack/translate.go 84.06% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b72a73e...810aebb. Read the comment docs.

@jLopezbarb jLopezbarb merged commit 68cd72c into master Nov 9, 2021
@jLopezbarb jLopezbarb deleted the jlopezbarb/support-private-endpoint-annotation branch November 9, 2021 10:43
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.

Support the "dev.okteto.com/private: true" annotation for stack services
2 participants