Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump golang up to 1.23 #49

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22 AS builder
FROM golang:1.23 AS builder
WORKDIR /go/src/github.com/rakutentech/passenger-go-exporter

COPY go.mod go.sum ./
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Implemented in golang, keeps memory consumption below 100MB, and runs on CPU 0.0

## Supported version

- golang: 1.22
- Passenger: 6.0.18, or later.
- golang: 1.23
- Passenger: 6.0.23, or later.

All other versions have not been tested.

Expand Down Expand Up @@ -39,7 +39,7 @@ Passenger Go Exporter side defines similarly.
- mountPath: /tmp/ruby
name: tmp
- name: passenger-exporter
image: ghcr.io/rakutentech/passenger-go-exporter:v1.4.2
image: ghcr.io/rakutentech/passenger-go-exporter:v1.4.4
imagePullPolicy: IfNotPresent
env:
- name: PASSENGER_INSTANCE_REGISTRY_DIR
Expand Down
112 changes: 57 additions & 55 deletions test/kubernetes/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
app: example
spec:
replicas: 0
strategy:
rollingUpdate:
maxUnavailable: 25%
Expand All @@ -19,60 +20,61 @@ spec:
labels:
app: example
spec:

volumes:
- name: tmp
emptyDir: {}
- name: tmp
emptyDir: {}
containers:
- name: example
image: example
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 3000
readinessProbe:
timeoutSeconds: 2
httpGet:
path: /
port: 3000
env:
- name: PASSENGER_INSTANCE_REGISTRY_DIR
value: /tmp/ruby
volumeMounts:
- mountPath: /tmp/ruby
name: tmp
- name: passenger-exporter
image: passenger-exporter
imagePullPolicy: IfNotPresent
env:
- name: PASSENGER_INSTANCE_REGISTRY_DIR
value: /tmp/ruby
ports:
- containerPort: 9768
name: http
protocol: TCP
livenessProbe:
initialDelaySeconds: 10
timeoutSeconds: 2
httpGet:
path: /health
port: 9768
readinessProbe:
timeoutSeconds: 1
httpGet:
path: /health
port: 9768
resources:
limits:
cpu: 20m
memory: 60Mi
requests:
cpu: 20m
memory: 60Mi
volumeMounts:
- mountPath: /tmp/ruby
name: tmp
- name: example
image: example
imagePullPolicy: IfNotPresent
ports:
- containerPort: 3000
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 3000
readinessProbe:
timeoutSeconds: 2
httpGet:
path: /
port: 3000
env:
- name: PASSENGER_INSTANCE_REGISTRY_DIR
value: /tmp/ruby
volumeMounts:
- mountPath: /tmp/ruby
name: tmp
- name: passenger-exporter
image: passenger-exporter
imagePullPolicy: IfNotPresent
env:
- name: PASSENGER_INSTANCE_REGISTRY_DIR
value: /tmp/ruby
ports:
- containerPort: 9768
name: http
protocol: TCP
livenessProbe:
initialDelaySeconds: 10
timeoutSeconds: 2
httpGet:
path: /health
port: 9768
readinessProbe:
timeoutSeconds: 1
httpGet:
path: /health
port: 9768
resources:
limits:
cpu: 20m
memory: 60Mi
requests:
cpu: 20m
memory: 60Mi
volumeMounts:
- mountPath: /tmp/ruby
name: tmp
Loading