Skip to content

Commit 49504e1

Browse files
committed
✏️ Fix
modified: Chart.yaml; modified: templates/deployment.yaml; modified: templates/kube-scheduler-config.yaml; modified: ../../pkg/plugins/archfilter/archfilter.go
1 parent 47a516c commit 49504e1

File tree

4 files changed

+26
-21
lines changed

4 files changed

+26
-21
lines changed

charts/kube-arch-scheduler/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.0.12
17-
appVersion: 0.0.4
16+
version: 0.0.13
17+
appVersion: 0.0.5

charts/kube-arch-scheduler/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
args:
3232
- kube-arch-scheduler
3333
- --config=/scheduler/scheduler-config.yaml
34-
- --v=3
34+
- --v=2
3535
resources:
3636
{{- toYaml .Values.controllerManager.manager.resources | nindent 12 }}
3737
volumeMounts:

charts/kube-arch-scheduler/templates/kube-scheduler-config.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ data:
88
apiVersion: kubescheduler.config.k8s.io/v1beta3
99
kind: KubeSchedulerConfiguration
1010
profiles:
11-
{{ if .Values.addToDefaultScheduler }}
12-
- plugins:
13-
{{ else }}
14-
- schedulerName: {{ .Values.nonDefaultSchedulerName }}
15-
plugins:
16-
{{ end }}
17-
filter:
18-
enabled:
19-
- name: "archfilter"
20-
score:
21-
enabled:
22-
- name: "archfilter"
23-
pluginConfig:
24-
- name: archfilter
25-
args:
26-
weight:
27-
{{ .Values.weight | toYaml | indent 14 }}
11+
{{- if .Values.addToDefaultScheduler }}
12+
- plugins:
13+
{{- else }}
14+
- schedulerName: {{ .Values.nonDefaultSchedulerName }}
15+
plugins:
16+
{{- end }}
17+
filter:
18+
enabled:
19+
- name: "archfilter"
20+
score:
21+
enabled:
22+
- name: "archfilter"
23+
pluginConfig:
24+
- name: archfilter
25+
args:
26+
weight:
27+
{{ .Values.weight | toYaml | indent 16 }}
2828

pkg/plugins/archfilter/archfilter.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ package archfilter
22

33
import (
44
"context"
5+
"crypto/tls"
56
"encoding/json"
67
"errors"
78
"fmt"
9+
"net/http"
810
"time"
911

1012
"github.com/google/go-containerregistry/pkg/authn"
@@ -121,7 +123,10 @@ func GetPodArchitectures(pod *v1.Pod) ([]ImageArch, error) {
121123
if err != nil {
122124
return containers, err
123125
}
124-
index, err := remote.Index(ref, remote.WithAuthFromKeychain(authn.DefaultKeychain))
126+
index, err := remote.Index(ref, remote.WithAuthFromKeychain(authn.DefaultKeychain),
127+
remote.WithTransport(&http.Transport{
128+
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
129+
}))
125130
if err != nil {
126131
return containers, err
127132
}

0 commit comments

Comments
 (0)