Skip to content

Commit 9241831

Browse files
authored
Merge pull request #958 from RedHatInsights/fix-session-affinity-location
(fix): move session afinity from private to public.
2 parents c51967d + ab11710 commit 9241831

File tree

1 file changed

+5
-5
lines changed
  • controllers/cloud.redhat.com/providers/web

1 file changed

+5
-5
lines changed

controllers/cloud.redhat.com/providers/web/impl.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ func makeService(cache *rc.ObjectCache, deployment *crd.Deployment, app *crd.Clo
6363
},
6464
)
6565

66+
// Set session affinity if enabled
67+
if deployment.WebServices.Public.SessionAffinity {
68+
s.Spec.SessionAffinity = core.ServiceAffinityClientIP
69+
}
70+
6671
if env.Spec.Providers.Web.Mode == "local" {
6772
authPortNumber := env.Spec.Providers.Web.AuthPort
6873

@@ -108,11 +113,6 @@ func makeService(cache *rc.ObjectCache, deployment *crd.Deployment, app *crd.Clo
108113
Protocol: core.ProtocolTCP,
109114
},
110115
)
111-
112-
// Set session affinity if enabled
113-
if deployment.WebServices.Public.SessionAffinity {
114-
s.Spec.SessionAffinity = core.ServiceAffinityClientIP
115-
}
116116
}
117117

118118
var pub, priv bool

0 commit comments

Comments
 (0)