diff --git a/charts/gitdb/Chart.yaml b/charts/gitdb/Chart.yaml index 6b59756..75ac630 100644 --- a/charts/gitdb/Chart.yaml +++ b/charts/gitdb/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.30 +version: 0.1.31 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gitdb/templates/hpa.yaml b/charts/gitdb/templates/hpa.yaml index a9c1ad3..7a5961a 100644 --- a/charts/gitdb/templates/hpa.yaml +++ b/charts/gitdb/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "gitdb.fullname" . }} @@ -13,16 +13,20 @@ spec: minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} {{- end }} diff --git a/internal/gitdb/tracing/tracing.go b/internal/gitdb/tracing/tracing.go index c1a1528..59dd5a1 100644 --- a/internal/gitdb/tracing/tracing.go +++ b/internal/gitdb/tracing/tracing.go @@ -52,7 +52,7 @@ var _ Tracing = Noop{} type Noop struct{} -func (n Noop) StartSpanFromContext(ctx context.Context, cfg SpanConfig, callback func(ctx context.Context) error) error { +func (n Noop) StartSpanFromContext(ctx context.Context, _ SpanConfig, callback func(ctx context.Context) error) error { return callback(ctx) } @@ -60,7 +60,7 @@ func (n Noop) WrapRoundTrip(rt http.RoundTripper) http.RoundTripper { return rt } -func (n Noop) AttachTag(ctx context.Context, key string, value interface{}) { +func (n Noop) AttachTag(_ context.Context, _ string, _ interface{}) { } func (n Noop) DynamicFields() []log.DynamicFields { diff --git a/known_hosts.sh b/known_hosts.sh index d2a6ae2..641cca1 100755 --- a/known_hosts.sh +++ b/known_hosts.sh @@ -48,7 +48,6 @@ ssh-keygen -l -f ${known_hosts_file} | sort > "$fingerprints" diff - "$fingerprints" <