Skip to content

Commit

Permalink
chore: 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 ed70cec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: ci

on:
push:
branches:
- main

jobs:
build:
Expand All @@ -10,9 +12,11 @@ jobs:
-
name: Checkout
uses: actions/checkout@v4

-
name: Set up QEMU
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -23,9 +27,6 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '^1.13.1'
-
name: Build
run: make build

-
name: Login to ghcr.io
Expand All @@ -34,6 +35,7 @@ jobs:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

-
name: Push container
run: docker push ghcr.io/siderolabs/kube-scheduler:latest
name: Build
run: make PUSH=true build
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
PUSH ?= false

all: gen build

build:
docker build -t ghcr.io/siderolabs/kube-scheduler .
docker buildx build --push=$(PUSH) --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 ed70cec

Please sign in to comment.