Skip to content

Commit

Permalink
resourcegen: always use https startup probe for web pod
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Aug 2, 2024
1 parent 529412b commit f9f5ef0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,19 @@ func GenpolicyRegressionTests() map[string]*applyappsv1.DeploymentApplyConfigura
func Emojivoto(smMode serviceMeshMode) []any {
ns := ""
var emojiSvcImage, emojiVotingSvcImage, emojiWebImage, emojiWebVoteBotImage, emojiSvcHost, votingSvcHost string
var httpProbeScheme corev1.URIScheme
switch smMode {
case ServiceMeshDisabled:
emojiSvcImage = "ghcr.io/3u13r/emojivoto-emoji-svc:coco-1"
emojiVotingSvcImage = "ghcr.io/3u13r/emojivoto-voting-svc:coco-1"
emojiWebImage = "ghcr.io/3u13r/emojivoto-web:coco-1"
emojiWebVoteBotImage = emojiWebImage
httpProbeScheme = corev1.URISchemeHTTP
emojiSvcHost = "emoji-svc:8080"
votingSvcHost = "voting-svc:8080"
case ServiceMeshIngressEgress:
emojiSvcImage = "docker.io/buoyantio/emojivoto-emoji-svc:v11"
emojiVotingSvcImage = "docker.io/buoyantio/emojivoto-voting-svc:v11"
emojiWebImage = "docker.io/buoyantio/emojivoto-web:v11"
emojiWebVoteBotImage = "ghcr.io/3u13r/emojivoto-web:coco-1"
httpProbeScheme = corev1.URISchemeHTTPS
emojiSvcHost = "127.137.0.1:8081"
votingSvcHost = "127.137.0.2:8081"
default:
Expand Down Expand Up @@ -433,7 +430,7 @@ func Emojivoto(smMode serviceMeshMode) []any {
WithReadinessProbe(applycorev1.Probe().
WithHTTPGet(applycorev1.HTTPGetAction().
WithPort(intstr.FromInt(8080)).
WithScheme(httpProbeScheme),
WithScheme(corev1.URISchemeHTTPS),
).
WithInitialDelaySeconds(1).
WithPeriodSeconds(5),
Expand Down

0 comments on commit f9f5ef0

Please sign in to comment.