Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit fd92d5b

Browse files
committed
Merge pull request #215 from robertabbott/abbott/fixHttpInKVChecks
I had http and https backwards
2 parents d76f6b9 + b00aaab commit fd92d5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration/single-node-slug-deploy/check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func generatePreparerPod(workdir string) (string, error) {
138138
}
139139
manifest.RunAs = "root"
140140
manifest.StatusPort = preparerStatusPort
141+
manifest.StatusHTTP = true
141142

142143
manifestBytes, err := manifest.Marshal()
143144
if err != nil {
@@ -300,7 +301,6 @@ func postHelloManifest(dir string) error {
300301
manifest := &pods.Manifest{}
301302
manifest.Id = "hello"
302303
manifest.StatusPort = 43770
303-
manifest.StatusHTTP = true
304304
stanza := pods.LaunchableStanza{
305305
LaunchableId: "hello",
306306
LaunchableType: "hoist",

pkg/watch/health.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ func updatePods(store kp.Store,
166166
Client: client,
167167
}
168168
if man.Manifest.StatusHTTP {
169-
sc.URI = fmt.Sprintf("https://%s:%d/_status", node, man.Manifest.StatusPort)
170-
} else {
171169
sc.URI = fmt.Sprintf("http://%s:%d/_status", node, man.Manifest.StatusPort)
170+
} else {
171+
sc.URI = fmt.Sprintf("https://%s:%d/_status", node, man.Manifest.StatusPort)
172172
}
173173
newPod := PodWatch{
174174
manifest: man.Manifest,

0 commit comments

Comments
 (0)