1
1
# Copyright (c) 2023 Contributors to the Eclipse Foundation
2
- #
3
- # See the NOTICE file(s) distributed with this work for additional
4
- # information regarding copyright ownership.
5
- #
6
- # This program and the accompanying materials are made available under the
7
- # terms of the Apache License, Version 2.0 which is available at
8
- # https://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
- # License for the specific language governing permissions and limitations
14
- # under the License.
15
- #
16
- # SPDX-License-Identifier: Apache-2.0
17
- #
2
+ #
3
+ # See the NOTICE file(s) distributed with this work for additional
4
+ # information regarding copyright ownership.
5
+ #
6
+ # This program and the accompanying materials are made available under the
7
+ # terms of the Apache License, Version 2.0 which is available at
8
+ # https://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
+ # License for the specific language governing permissions and limitations
14
+ # under the License.
15
+ #
16
+ # SPDX-License-Identifier: Apache-2.0
17
+ #
18
18
19
- {{- if .Values.runtime. autoscaling.enabled }}
19
+ {{- if .Values.autoscaling.enabled }}
20
20
---
21
21
apiVersion : autoscaling/v2beta1
22
22
kind : HorizontalPodAutoscaler
@@ -32,16 +32,16 @@ spec:
32
32
minReplicas : {{ .Values.autoscaling.minReplicas }}
33
33
maxReplicas : {{ .Values.autoscaling.maxReplicas }}
34
34
metrics :
35
- {{- if .Values.runtime. autoscaling.targetCPUUtilizationPercentage }}
35
+ {{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
36
36
- type : Resource
37
37
resource :
38
38
name : cpu
39
- targetAverageUtilization : {{ .Values.runtime. autoscaling.targetCPUUtilizationPercentage }}
39
+ targetAverageUtilization : {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
40
40
{{- end }}
41
- {{- if .Values.runtime. autoscaling.targetMemoryUtilizationPercentage }}
41
+ {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
42
42
- type : Resource
43
43
resource :
44
44
name : memory
45
- targetAverageUtilization : {{ .Values.runtime. autoscaling.targetMemoryUtilizationPercentage }}
45
+ targetAverageUtilization : {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
46
46
{{- end }}
47
47
{{- end }}
0 commit comments