Skip to content

Commit 305c670

Browse files
committed
bump workflows go 1.23
1 parent 81b9b7a commit 305c670

File tree

7 files changed

+83
-11
lines changed

7 files changed

+83
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- release-*
1313

1414
env:
15-
GO_VERSION: '1.19'
15+
GO_VERSION: '1.23'
1616

1717
jobs:
1818

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- release-*
1111

1212
env:
13-
GO_VERSION: '1.19'
13+
GO_VERSION: '1.23'
1414
KIND_VERSION: 'v0.14.0'
1515
KIND_IMAGE: 'kindest/node:v1.22.2'
1616
KIND_CLUSTER_NAME: 'e2e-test'

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
permissions:
99
contents: write
1010
env:
11-
GO_VERSION: '1.19'
11+
GO_VERSION: '1.23'
1212

1313
jobs:
1414
Test:
@@ -99,7 +99,7 @@ jobs:
9999
- name: Set up Go
100100
uses: actions/setup-go@v2
101101
with:
102-
go-version: 1.19
102+
go-version: 1.23
103103

104104
- name: Release with GoReleaser
105105
uses: goreleaser/goreleaser-action@v2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.19-alpine3.17 as builder
2+
FROM golang:1.23-alpine3.22 as builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

@@ -23,7 +23,7 @@ COPY apis/ apis/
2323
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
2424
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} go build -a -o manager main.go
2525

26-
FROM alpine:3.17
26+
FROM alpine:3.22
2727
WORKDIR /
2828
COPY --from=builder /workspace/manager .
2929

charts/templates/crd/apps.kusionstack.io_podtransitionrules.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,56 @@ spec:
5050
description: AvailablePolicy is the rule to check if the max
5151
unavailable number is reached by current resource updated.
5252
properties:
53+
maxUnavailablePolicy:
54+
description: MaxUnavailablePolicy is an option to apply
55+
max unavailable by adaptive policy.
56+
properties:
57+
expFunc:
58+
description: |-
59+
ExpFunc is an exponentiation expression to calculate the expected value.
60+
func: f(x) = coeff * x ^ pow.
61+
properties:
62+
coeff:
63+
description: Coeff stands for coefficient in this
64+
exponentiation.
65+
type: string
66+
pow:
67+
description: Pow stands for power in this exponentiation.
68+
type: string
69+
type: object
70+
type: object
5371
maxUnavailableValue:
5472
anyOf:
5573
- type: integer
5674
- type: string
5775
description: |-
58-
MaxUnavailableValue is the expected max unavailable replicas which is allowed to be a integer or a percentage of the whole
76+
MaxUnavailableValue is the expected max unavailable replicas which is allowed to be an integer or a percentage of the whole
5977
number of the target resources.
6078
x-kubernetes-int-or-string: true
79+
minAvailablePolicy:
80+
description: MaxUnavailablePolicy is an option to apply
81+
min available by adaptive policy.
82+
properties:
83+
expFunc:
84+
description: |-
85+
ExpFunc is an exponentiation expression to calculate the expected value.
86+
func: f(x) = coeff * x ^ pow.
87+
properties:
88+
coeff:
89+
description: Coeff stands for coefficient in this
90+
exponentiation.
91+
type: string
92+
pow:
93+
description: Pow stands for power in this exponentiation.
94+
type: string
95+
type: object
96+
type: object
6197
minAvailableValue:
6298
anyOf:
6399
- type: integer
64100
- type: string
65101
description: |-
66-
MinAvailableValue is the expected min available replicas which is allowed to be a integer or a percentage of the whole
102+
MinAvailableValue is the expected min available replicas which is allowed to be an integer or a percentage of the whole
67103
number of the target resources.
68104
x-kubernetes-int-or-string: true
69105
type: object

config/crd/bases/apps.kusionstack.io_podtransitionrules.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,56 @@ spec:
5050
description: AvailablePolicy is the rule to check if the max
5151
unavailable number is reached by current resource updated.
5252
properties:
53+
maxUnavailablePolicy:
54+
description: MaxUnavailablePolicy is an option to apply
55+
max unavailable by adaptive policy.
56+
properties:
57+
expFunc:
58+
description: |-
59+
ExpFunc is an exponentiation expression to calculate the expected value.
60+
func: f(x) = coeff * x ^ pow.
61+
properties:
62+
coeff:
63+
description: Coeff stands for coefficient in this
64+
exponentiation.
65+
type: string
66+
pow:
67+
description: Pow stands for power in this exponentiation.
68+
type: string
69+
type: object
70+
type: object
5371
maxUnavailableValue:
5472
anyOf:
5573
- type: integer
5674
- type: string
5775
description: |-
58-
MaxUnavailableValue is the expected max unavailable replicas which is allowed to be a integer or a percentage of the whole
76+
MaxUnavailableValue is the expected max unavailable replicas which is allowed to be an integer or a percentage of the whole
5977
number of the target resources.
6078
x-kubernetes-int-or-string: true
79+
minAvailablePolicy:
80+
description: MaxUnavailablePolicy is an option to apply
81+
min available by adaptive policy.
82+
properties:
83+
expFunc:
84+
description: |-
85+
ExpFunc is an exponentiation expression to calculate the expected value.
86+
func: f(x) = coeff * x ^ pow.
87+
properties:
88+
coeff:
89+
description: Coeff stands for coefficient in this
90+
exponentiation.
91+
type: string
92+
pow:
93+
description: Pow stands for power in this exponentiation.
94+
type: string
95+
type: object
96+
type: object
6197
minAvailableValue:
6298
anyOf:
6399
- type: integer
64100
- type: string
65101
description: |-
66-
MinAvailableValue is the expected min available replicas which is allowed to be a integer or a percentage of the whole
102+
MinAvailableValue is the expected min available replicas which is allowed to be an integer or a percentage of the whole
67103
number of the target resources.
68104
x-kubernetes-int-or-string: true
69105
type: object

releaser.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.17
1+
FROM alpine:3.22
22

33
WORKDIR /
44
COPY manager /manager

0 commit comments

Comments
 (0)