File tree 6 files changed +27
-17
lines changed
6 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ RUN rm -rf /go/src /go/pkg
24
24
RUN if [ "${ARCH}" == "amd64" ]; then \
25
25
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \
26
26
fi
27
+ RUN if [ "${ARCH}" == "amd64" ]; then \
28
+ GO111MODULE=on go install sigs.k8s.io/kustomize/kustomize/v3; \
29
+ fi
27
30
ARG SONOBUOY_VERSION=0.17.2
28
31
RUN if [ "${ARCH}" != "arm" ]; then \
29
32
set -x; \
30
33
curl -sL "https://github.com/vmware-tanzu/sonobuoy/releases/download/v${SONOBUOY_VERSION}/sonobuoy_${SONOBUOY_VERSION}_linux_${ARCH}.tar.gz" \
31
34
| tar -xz -C /usr/local/bin; \
32
35
chmod +x /usr/local/bin/sonobuoy; \
33
36
fi
34
-
35
37
# ENV DAPPER_RUN_ARGS --privileged
36
38
ENV DAPPER_ENV REPO TAG DRONE_TAG
37
39
ENV DAPPER_SOURCE /go/src/github.com/rancher/system-upgrade-controller/
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ services:
23
23
- target : /var/lib/rancher
24
24
type : volume
25
25
- target : /var/lib/rancher/k3s/server/manifests/system-upgrade-controller.yaml
26
- source : ../../manifests /system-upgrade-controller.yaml
26
+ source : ../../dist/artifacts /system-upgrade-controller.yaml
27
27
type : bind
28
28
- target : /var/lib/rancher/k3s/server/manifests/system-upgrade-plans/bionic.yaml
29
29
source : ./bionic.yaml
@@ -51,7 +51,7 @@ services:
51
51
- target : /var/lib/rancher
52
52
type : volume
53
53
- target : /var/lib/rancher/k3s/server/manifests/system-upgrade-controller.yaml
54
- source : ../../manifests /system-upgrade-controller.yaml
54
+ source : ../../dist/artifacts /system-upgrade-controller.yaml
55
55
type : bind
56
56
- target : /var/lib/rancher/k3s/server/manifests/system-upgrade-plans/bionic.yaml
57
57
source : ./bionic.yaml
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ resources:
4
4
- manifests/system-upgrade-controller.yaml
5
5
images :
6
6
- name : rancher/system-upgrade-controller
7
- newTag : v0.3.1
7
+ newTag : v0.4.0
Original file line number Diff line number Diff line change 1
- ---
2
1
apiVersion : v1
3
2
kind : Namespace
4
3
metadata :
32
31
SYSTEM_UPGRADE_CONTROLLER_DEBUG : " false"
33
32
SYSTEM_UPGRADE_CONTROLLER_THREADS : " 2"
34
33
SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS : " 900"
35
- SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT : " 6 "
36
- SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY : " IfNotPresent "
34
+ SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT : " 99 "
35
+ SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY : " Always "
37
36
SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE : " rancher/kubectl:v1.17.0"
38
37
SYSTEM_UPGRADE_JOB_PRIVILEGED : " true"
39
38
SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH : " 900"
62
61
serviceAccountName : system-upgrade
63
62
containers :
64
63
- name : system-upgrade-controller
65
- image : rancher/system-upgrade-controller:v0.3.1
64
+ image : rancher/system-upgrade-controller:v0.4.0
66
65
imagePullPolicy : IfNotPresent
67
66
envFrom :
68
67
- configMapRef :
Original file line number Diff line number Diff line change @@ -25,3 +25,14 @@ docker image save --output ./dist/artifacts/system-upgrade-controller-${ARCH}.ta
25
25
${REPO} /system-upgrade-controller:latest
26
26
echo ${REPO} /system-upgrade-controller:${TAG} > ./dist/images.txt
27
27
echo Built ${REPO} /system-upgrade-controller:${TAG}
28
+
29
+ reset-kustomization () {
30
+ cp -vf /tmp/kustomization.yaml .
31
+ }
32
+
33
+ if [ " $ARCH " = " amd64" ]; then
34
+ cp kustomization.yaml /tmp/
35
+ trap reset-kustomization EXIT
36
+ kustomize edit set image " rancher/system-upgrade-controller=${REPO} /system-upgrade-controller:${VERSION} "
37
+ kustomize build --reorder=none --output ./dist/artifacts/system-upgrade-controller.yaml
38
+ fi
Original file line number Diff line number Diff line change @@ -28,13 +28,11 @@ docker image save --output ./dist/artifacts/system-upgrade-controller-e2e-tests-
28
28
echo ${REPO} /system-upgrade-controller:${TAG} -e2e-tests >> ./dist/images.txt
29
29
echo Built ${REPO} /system-upgrade-controller:${TAG} -e2e-tests
30
30
31
- if [ " $ARCH " == " arm" ]; then
32
- exit 0
31
+ if [ " $ARCH " = " amd64" ]; then
32
+ sonobuoy gen plugin \
33
+ --format=junit \
34
+ --image ${REPO} /system-upgrade-controller:${VERSION} -e2e-tests \
35
+ --name system-upgrade-controller \
36
+ --type job \
37
+ > ./dist/artifacts/system-upgrade-controller-e2e-tests.yaml
33
38
fi
34
-
35
- sonobuoy gen plugin \
36
- --format=junit \
37
- --image ${REPO} /system-upgrade-controller:${VERSION} -e2e-tests \
38
- --name system-upgrade-controller \
39
- --type job \
40
- > ./dist/artifacts/system-upgrade-controller-e2e-tests.yaml
You can’t perform that action at this time.
0 commit comments