Skip to content

Commit

Permalink
disable sidecar injection from service mesh
Browse files Browse the repository at this point in the history
Signed-off-by: zufardhiyaulhaq <[email protected]>
  • Loading branch information
zufardhiyaulhaq committed Sep 4, 2021
1 parent b49ca8c commit f65c9cc
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,7 @@ jobs:
run: kubectl apply -f ./examples/deployment
- name: deploy ngrok
run: kubectl apply -f ./examples/http/simple
- run: sleep 180
- run: kubectl get ngrok -A
- name: waiting ngrok-operator to start
run: sleep 180
- name: check ngrok object
run: kubectl get ngrok -A
6 changes: 4 additions & 2 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,7 @@ jobs:
run: kubectl apply -f ./examples/deployment
- name: deploy ngrok
run: kubectl apply -f ./examples/http/simple
- run: sleep 180
- run: kubectl get ngrok -A
- name: waiting ngrok-operator to start
run: sleep 180
- name: check ngrok object
run: kubectl get ngrok -A
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ https://ngrok.zufardhiyaulhaq.com
|-----|------|---------|-------------|
| operator.image | string | `"zufardhiyaulhaq/ngrok-operator"` | |
| operator.replica | int | `1` | |
| operator.tag | string | `"v1.1.0"` | |
| operator.tag | string | `"v1.2.0"` | |
| resources.limits.cpu | string | `"200m"` | |
| resources.limits.memory | string | `"100Mi"` | |
| resources.requests.cpu | string | `"100m"` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/ngrok-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ https://ngrok.zufardhiyaulhaq.com
|-----|------|---------|-------------|
| operator.image | string | `"zufardhiyaulhaq/ngrok-operator"` | |
| operator.replica | int | `1` | |
| operator.tag | string | `"v1.1.0"` | |
| operator.tag | string | `"v1.2.0"` | |
| resources.limits.cpu | string | `"200m"` | |
| resources.limits.memory | string | `"100Mi"` | |
| resources.requests.cpu | string | `"100m"` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/ngrok-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ operator:
# image of ngrok-operator
image: "zufardhiyaulhaq/ngrok-operator"
# tag of ngrok-operator image
tag: "v1.1.0"
tag: "v1.2.0"
# number of replica for deployment
replica: 1

Expand Down
Binary file modified charts/releases/ngrok-operator-1.1.0.tgz
Binary file not shown.
5 changes: 0 additions & 5 deletions examples/http/simple/ngrok.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ spec:
# bind an HTTPS or HTTP endpoint or both
bind_tls: both

# auth protect your http
# with user password combination
# <user>:<password>
auth: user:password

# enable inspection
# only works for http protocol
inspect: true
Expand Down
7 changes: 7 additions & 0 deletions pkg/builder/pod_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ func (n *NgrokPodBuilder) Build() (*corev1.Pod, error) {
"app": n.Name,
"generated": "ngrok-operator",
},
Annotations: map[string]string{
"sidecar.istio.io/inject": "false",
"linkerd.io/inject": "disabled",
"kuma.io/sidecar-injection": "disabled",
"appmesh.k8s.aws/sidecarInjectorWebhook": "disabled",
"injector.nsm.nginx.com/auto-inject": "false",
},
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ tunnels:
{{ if eq .Protocol "http" }}
inspect: {{ .Inspect }}
{{if .Auth }}
{{if .AuthToken }}{{if .Auth }}
auth: {{ .Auth }}
{{ end }}
{{ end }}{{ end }}
{{if .HostHeader }}
host_header: {{ .HostHeader }}
{{ end }}
Expand Down

0 comments on commit f65c9cc

Please sign in to comment.