Skip to content

Commit ec0d343

Browse files
committed
feat: add arm and manfiests to dist
Signed-off-by: vsoch <[email protected]>
1 parent 9c36a11 commit ec0d343

19 files changed

+2437
-25
lines changed

.github/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -eEu -o pipefail
44

55
# Show logs for the manager (need to do this while it exists)
6-
sleep 10
7-
manager=$(kubectl get pods -l component=state-machine-manager -o json | jq -r .items[0].metadata.name)
6+
sleep 15
7+
manager=$(kubectl get pods -l control-plane=controller-manager -n state-machine-operator-system -o json | jq -r .items[0].metadata.name)
88
echo "Manager pod is $manager"
99
kubectl logs $manager
1010

.github/workflows/e2e-test.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ jobs:
2727

2828
test:
2929
needs: [build]
30-
env:
31-
registry: ghcr.io/converged-computing
32-
namespace: state-machine-operator-system
33-
controller_container: ghcr.io/flux-framework/fluxqueue
34-
scheduler_container: ghcr.io/flux-framework/fluxqueue-scheduler
35-
postgres_container: ghcr.io/flux-framework/fluxqueue-postgres
36-
3730
runs-on: ubuntu-latest
3831
name: test state machine operator
3932
steps:

.github/workflows/test-flux.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: test-flux
22
on:
3-
pull_request: []
3+
pull_request:
4+
types: [opened, reopened]
45

56
jobs:
67
build:

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ docker-push: ## Push docker image with the manager.
146146
manager:
147147
$(CONTAINER_TOOL) build -f docker/manager/Dockerfile -t ${MANAGER_IMG} .
148148

149+
.PHONY: pre-push
150+
pre-push: generate api build-config-arm build-config helm
151+
git status
152+
153+
.PHONY: build-config-arm
154+
build-config-arm: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
155+
cd config/manager && $(KUSTOMIZE) edit set image controller=${ARMIMG}
156+
$(KUSTOMIZE) build config/default > examples/dist/state-machine-operator-arm.yaml
157+
149158
.PHONY: kind
150159
kind: manager ## Build docker image with the manager and load into kind
151160
kind load docker-image ${MANAGER_IMG}

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 44 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chart/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ spec:
4949
securityContext: {{- toYaml .Values.controllerManager.podSecurityContext | nindent
5050
8 }}
5151
serviceAccountName: {{ include "chart.fullname" . }}-controller-manager
52-
terminationGracePeriodSeconds: 10
52+
terminationGracePeriodSeconds: 10

chart/templates/leader-election-rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ roleRef:
5050
subjects:
5151
- kind: ServiceAccount
5252
name: '{{ include "chart.fullname" . }}-controller-manager'
53-
namespace: '{{ .Release.Namespace }}'
53+
namespace: '{{ .Release.Namespace }}'

chart/templates/manager-rbac.yaml

Lines changed: 148 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ rules:
1111
- events
1212
verbs:
1313
- create
14+
- delete
15+
- get
16+
- list
17+
- patch
1418
- update
1519
- watch
1620
- apiGroups:
@@ -29,7 +33,7 @@ rules:
2933
- apiGroups:
3034
- ""
3135
resources:
32-
- rolebindings
36+
- miniclusters
3337
verbs:
3438
- create
3539
- delete
@@ -41,7 +45,19 @@ rules:
4145
- apiGroups:
4246
- ""
4347
resources:
44-
- roles
48+
- miniclusters/finalizers
49+
verbs:
50+
- create
51+
- delete
52+
- get
53+
- list
54+
- patch
55+
- update
56+
- watch
57+
- apiGroups:
58+
- ""
59+
resources:
60+
- miniclusters/status
4561
verbs:
4662
- create
4763
- delete
@@ -126,6 +142,19 @@ rules:
126142
- patch
127143
- update
128144
- watch
145+
- apiGroups:
146+
- batch
147+
resources:
148+
- pods/log
149+
verbs:
150+
- create
151+
- delete
152+
- exec
153+
- get
154+
- list
155+
- patch
156+
- update
157+
- watch
129158
- apiGroups:
130159
- ""
131160
resources:
@@ -188,6 +217,14 @@ rules:
188217
verbs:
189218
- create
190219
- patch
220+
- apiGroups:
221+
- ""
222+
resources:
223+
- nodes
224+
verbs:
225+
- get
226+
- list
227+
- watch
191228
- apiGroups:
192229
- ""
193230
resources:
@@ -296,6 +333,90 @@ rules:
296333
- patch
297334
- update
298335
- watch
336+
- apiGroups:
337+
- events.k8s.io
338+
resources:
339+
- events
340+
verbs:
341+
- create
342+
- delete
343+
- get
344+
- list
345+
- patch
346+
- update
347+
- watch
348+
- apiGroups:
349+
- flux-framework.org
350+
resources:
351+
- miniclusters
352+
verbs:
353+
- create
354+
- delete
355+
- get
356+
- list
357+
- patch
358+
- update
359+
- watch
360+
- apiGroups:
361+
- flux-framework.org
362+
resources:
363+
- miniclusters/finalizers
364+
verbs:
365+
- create
366+
- delete
367+
- get
368+
- list
369+
- patch
370+
- update
371+
- watch
372+
- apiGroups:
373+
- flux-framework.org
374+
resources:
375+
- miniclusters/status
376+
verbs:
377+
- create
378+
- delete
379+
- get
380+
- list
381+
- patch
382+
- update
383+
- watch
384+
- apiGroups:
385+
- jobset.x-k8s.io
386+
resources:
387+
- jobsets
388+
verbs:
389+
- create
390+
- delete
391+
- get
392+
- list
393+
- patch
394+
- update
395+
- watch
396+
- apiGroups:
397+
- jobset.x-k8s.io
398+
resources:
399+
- jobsets/finalizers
400+
verbs:
401+
- create
402+
- delete
403+
- get
404+
- list
405+
- patch
406+
- update
407+
- watch
408+
- apiGroups:
409+
- jobset.x-k8s.io
410+
resources:
411+
- jobsets/status
412+
verbs:
413+
- create
414+
- delete
415+
- get
416+
- list
417+
- patch
418+
- update
419+
- watch
299420
- apiGroups:
300421
- networking.k8s.io
301422
resources:
@@ -308,6 +429,30 @@ rules:
308429
- patch
309430
- update
310431
- watch
432+
- apiGroups:
433+
- rbac.authorization.k8s.io
434+
resources:
435+
- clusterrolebindings
436+
verbs:
437+
- create
438+
- delete
439+
- get
440+
- list
441+
- patch
442+
- update
443+
- watch
444+
- apiGroups:
445+
- rbac.authorization.k8s.io
446+
resources:
447+
- clusterroles
448+
verbs:
449+
- create
450+
- delete
451+
- get
452+
- list
453+
- patch
454+
- update
455+
- watch
311456
- apiGroups:
312457
- rbac.authorization.k8s.io
313458
resources:
@@ -372,4 +517,4 @@ roleRef:
372517
subjects:
373518
- kind: ServiceAccount
374519
name: '{{ include "chart.fullname" . }}-controller-manager'
375-
namespace: '{{ .Release.Namespace }}'
520+
namespace: '{{ .Release.Namespace }}'

chart/templates/metrics-auth-rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ roleRef:
3131
subjects:
3232
- kind: ServiceAccount
3333
name: '{{ include "chart.fullname" . }}-controller-manager'
34-
namespace: '{{ .Release.Namespace }}'
34+
namespace: '{{ .Release.Namespace }}'

chart/templates/metrics-reader-rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ rules:
88
- nonResourceURLs:
99
- /metrics
1010
verbs:
11-
- get
11+
- get

0 commit comments

Comments
 (0)