Skip to content

Commit

Permalink
feat: build for linux/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard committed Oct 30, 2023
1 parent 40b34d2 commit 680eeea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: gen build

build:
docker build -t ghcr.io/siderolabs/kube-scheduler .
docker buildx build --platform=linux/amd64,linux/arm64 -t ghcr.io/siderolabs/kube-scheduler .

gen:
deepcopy-gen --input-dirs ./apis/config --go-header-file ./hack/boilerplate.txt -O zz_generated.deepcopy
Expand Down
8 changes: 1 addition & 7 deletions hack/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ metadata:
name: kube-scheduler-siderolabs
namespace: kube-system
labels:
k8s-app: fluentd-logging
k8s-app: kube-scheduler-siderolabs
spec:
selector:
matchLabels:
Expand Down Expand Up @@ -133,8 +133,6 @@ spec:
mountPath: /etc/kubernetes/kubeconfig
- name: config-volume
mountPath: /etc/kubernetes
- name: tls-volume
mountPath: /etc/ssl
volumes:
- name: credentials-volume
projected:
Expand All @@ -147,7 +145,3 @@ spec:
items:
- key: config
path: kube-scheduler-configuration.yaml
- name: tls-volume
hostPath:
path: /etc/ssl
type: Directory
6 changes: 0 additions & 6 deletions pkg/controllers/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ const bmcPasswordAnnotation = "bmc.siderolabs.com/password"

type BMCs map[string]*bmc.BMCInfo

var (
bmcs = make(BMCs)
)

// NodeManager manages the power state of nodes.
type NodeManager struct {
informerFactory informers.SharedInformerFactory
Expand Down Expand Up @@ -136,8 +132,6 @@ func (c *NodeManager) nodeUpdate(old, new interface{}) {
func (c *NodeManager) nodeDelete(obj interface{}) {
node := obj.(*v1.Node)

delete(bmcs, node.Name)

klog.Infof("node deleted: %q", node.Name)
}

Expand Down

0 comments on commit 680eeea

Please sign in to comment.