Skip to content

Commit

Permalink
Merge pull request #1569 from FabianKramm/main
Browse files Browse the repository at this point in the history
refactor: add startup probes
  • Loading branch information
FabianKramm authored Feb 28, 2024
2 parents 306de8b + da639a2 commit de69d08
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: false
go-version: "1.21"
go-version: "1.22"
- name: Setup Just
uses: extractions/setup-just@v1
- name: Setup Syft
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
cache: false
- name: Setup Just
uses: extractions/setup-just@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: false
go-version: "1.21"
go-version: "1.22"
- name: Setup Just
uses: extractions/setup-just@v1
- name: Setup Cosgin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"
cache: false
- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.21.5 as builder
FROM golang:1.22 as builder

WORKDIR /vcluster-dev
ARG TARGETOS
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cli
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as builder
FROM golang:1.22 as builder

WORKDIR /vcluster-dev
ARG TARGETOS
Expand Down
7 changes: 7 additions & 0 deletions charts/eks/templates/syncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,13 @@ spec:
{{- end }}
{{- if .Values.syncer.readinessProbe }}
{{- if .Values.syncer.readinessProbe.enabled }}
startupProbe:
httpGet:
path: /readyz
port: 8443
scheme: HTTPS
failureThreshold: 300
periodSeconds: 6
readinessProbe:
httpGet:
path: /readyz
Expand Down
7 changes: 7 additions & 0 deletions charts/k0s/templates/syncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,13 @@ spec:
{{- end }}
{{- if .Values.syncer.readinessProbe }}
{{- if .Values.syncer.readinessProbe.enabled }}
startupProbe:
httpGet:
path: /readyz
port: 8443
scheme: HTTPS
failureThreshold: 300
periodSeconds: 6
readinessProbe:
httpGet:
path: /readyz
Expand Down
7 changes: 7 additions & 0 deletions charts/k3s/templates/syncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,13 @@ spec:
{{- end }}
{{- if .Values.syncer.readinessProbe }}
{{- if .Values.syncer.readinessProbe.enabled }}
startupProbe:
httpGet:
path: /readyz
port: 8443
scheme: HTTPS
failureThreshold: 300
periodSeconds: 6
readinessProbe:
httpGet:
path: /readyz
Expand Down
7 changes: 7 additions & 0 deletions charts/k8s/templates/syncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ spec:
{{- end }}
{{- if .Values.syncer.readinessProbe }}
{{- if .Values.syncer.readinessProbe.enabled }}
startupProbe:
httpGet:
path: /readyz
port: 8443
scheme: HTTPS
failureThreshold: 300
periodSeconds: 6
readinessProbe:
httpGet:
path: /readyz
Expand Down

0 comments on commit de69d08

Please sign in to comment.