Skip to content

Commit

Permalink
Adds support for private endpoint annotation (#1953)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier López Barba <javier@okteto.com>
  • Loading branch information
jLopezbarb committed Nov 9, 2021
1 parent 083a437 commit 68cd72c
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 89 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/stack/translate.go
Expand Up @@ -561,6 +561,9 @@ func translateService(svcName string, s *model.Stack) *apiv1.Service {
annotations := translateAnnotations(svc)
if s.Services[svcName].Public && annotations[model.OktetoAutoIngressAnnotation] == "" {
annotations[model.OktetoAutoIngressAnnotation] = "true"
if annotations[model.OktetoPrivateSvcAnnotation] == "true" {
annotations[model.OktetoAutoIngressAnnotation] = "private"
}
}
return &apiv1.Service{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 68cd72c

Please sign in to comment.