Skip to content

Commit 6de7e1a

Browse files
authored
Merge pull request noobaa#1731 from tangledbytes/utkarsh/fix/probe-upgrade-fail
Fix upgrade failure due to readiness probe
2 parents ef270ff + ec61475 commit 6de7e1a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

deploy/operator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ metadata:
44
name: noobaa-operator
55
spec:
66
replicas: 1
7+
strategy:
8+
type: Recreate
79
selector:
810
matchLabels:
911
noobaa-operator: deployment

pkg/bundle/deploy.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6391,14 +6391,16 @@ spec:
63916391
sourceNamespace: default
63926392
`
63936393

6394-
const Sha256_deploy_operator_yaml = "44022d49f1e87196410ff28589fca9001c25928957dfa3db208eab58220d364d"
6394+
const Sha256_deploy_operator_yaml = "49b1f15cdda417e6cd5b99dd162ca666e24bf18184f5abc45eaaa690da6d3898"
63956395

63966396
const File_deploy_operator_yaml = `apiVersion: apps/v1
63976397
kind: Deployment
63986398
metadata:
63996399
name: noobaa-operator
64006400
spec:
64016401
replicas: 1
6402+
strategy:
6403+
type: Recreate
64026404
selector:
64036405
matchLabels:
64046406
noobaa-operator: deployment

pkg/operator/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func RunOperator(cmd *cobra.Command, args []string) {
4848
// Probe address from CLI flag (defaults to :8081)
4949
probeAddr := os.Getenv("HEALTH_PROBE_BIND_ADDRESS")
5050
if probeAddr == "" {
51-
probeAddr = ":8081"
51+
probeAddr = "0.0.0.0:8081"
5252
}
5353

5454
config := util.KubeConfig()

0 commit comments

Comments
 (0)