Skip to content

Commit

Permalink
Add hold annotation for istio-proxy (#576)
Browse files Browse the repository at this point in the history
* Add hold annotation for istio-proxy

* Fix test

---------

Co-authored-by: Martin Gencur <[email protected]>
  • Loading branch information
ReToCode and mgencur authored Aug 17, 2023
1 parent a7237b0 commit 39774f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/eventshub/eventshub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func ExampleIstioAnnotation() {
// labels:
// app: eventshub-hubhub
// annotations:
// proxy.istio.io/config: "{ 'holdApplicationUntilProxyStarts': true }"
// sidecar.istio.io/inject: "true"
// sidecar.istio.io/rewriteAppHTTPProbers: "true"
// spec:
Expand Down
1 change: 1 addition & 0 deletions pkg/manifest/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func WithIstioPodAnnotations(cfg map[string]interface{}) {
podAnnotations := map[string]interface{}{
"sidecar.istio.io/inject": "true",
"sidecar.istio.io/rewriteAppHTTPProbers": "true",
"proxy.istio.io/config": "{ 'holdApplicationUntilProxyStarts': true }",
}

WithAnnotations(podAnnotations)(cfg)
Expand Down

0 comments on commit 39774f1

Please sign in to comment.