Skip to content

Commit 193363b

Browse files
authored
Merge pull request #4 from zqzten/v0.4
kapacity-manager v0.4.0 #release
2 parents ad4bea9 + 505f23e commit 193363b

7 files changed

+25
-10
lines changed

.github/workflows/ci.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout code
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515
- name: Set up Helm
16-
uses: azure/setup-helm@v3
16+
uses: azure/setup-helm@v4
1717
with:
1818
version: v3.12.0
1919
- name: Set up Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: 3.9
2323
check-latest: true

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
- name: Git config
1919
run: |
2020
git config user.name "$GITHUB_ACTOR"
2121
git config user.email "[email protected]"
2222
- name: Install Helm
23-
uses: azure/setup-helm@v3
23+
uses: azure/setup-helm@v4
2424
with:
2525
version: v3.12.0
2626
- name: Run chart-releaser

charts/kapacity-manager/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.3.0
18+
version: 0.4.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: v0.3.0
24+
appVersion: v0.4.0

charts/kapacity-manager/templates/crds/autoscaling.kapacitystack.io_intelligenthorizontalpodautoscalers.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ spec:
9797
scaleDown:
9898
description: ScaleDown is the behavior configuration for scaling down.
9999
properties:
100+
disabled:
101+
description: Disabled means if the scaling of this direction is disabled.
102+
type: boolean
100103
grayStrategy:
101104
description: GrayStrategy is the configuration of the strategy for gray change of replicas. If not set, gray change will be disabled.
102105
properties:
@@ -133,6 +136,9 @@ spec:
133136
scaleUp:
134137
description: ScaleUp is the behavior configuration for scaling up.
135138
properties:
139+
disabled:
140+
description: Disabled means if the scaling of this direction is disabled.
141+
type: boolean
136142
grayStrategy:
137143
description: GrayStrategy is the configuration of the strategy for gray change of replicas. If not set, gray change will be disabled.
138144
properties:

charts/kapacity-manager/templates/crds/autoscaling.kapacitystack.io_replicaprofiles.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ spec:
3333
spec:
3434
description: ReplicaProfileSpec defines the desired state of ReplicaProfile.
3535
properties:
36+
allowedScalingDirection:
37+
default: Both
38+
description: AllowedScalingDirection is the allowed scaling direction. Note that it only cares about online replicas. It defaults to Both.
39+
enum:
40+
- Both
41+
- Neither
42+
- Up
43+
- Down
44+
type: string
3645
behavior:
3746
default:
3847
podSorter:

charts/kapacity-manager/templates/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ spec:
7373
value: {{ .Values.timezone }}
7474
{{- with .Values.securityContext }}
7575
securityContext:
76-
{{- toYaml .Values.securityContext | nindent 12 }}
76+
{{- toYaml .Values.securityContext | nindent 10 }}
7777
{{- end }}
7878
image: "{{ .Values.image.registry }}/{{ .Values.image.repository.namespace }}/{{ .Values.image.repository.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
7979
imagePullPolicy: {{ .Values.image.pullPolicy }}
@@ -101,7 +101,7 @@ spec:
101101
initialDelaySeconds: 5
102102
periodSeconds: 10
103103
resources:
104-
{{- toYaml .Values.resources | nindent 12 }}
104+
{{- toYaml .Values.resources | nindent 10 }}
105105
volumeMounts:
106106
- name: config
107107
mountPath: /etc/kapacity

charts/kapacity-manager/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ algorithmJob:
110110
horizontalPredictive:
111111
registry: ghcr.io
112112
repository: traas-stack/kapacity-algorithm-horizontal-predictive
113-
tag: v0.2.0
113+
tag: v0.3.0
114114

115115
# Set a path to enable logging to disk.
116116
logPath: ""

0 commit comments

Comments
 (0)