Fix issues with sample deployment.
We uncovered issues while testing the job in our deployment but had not
updated the samples.
Issues: - Need to specify kunit-review instead of kunit for gerrit component to
poll for updates
- privileged is an attribute of SecurityContext not PodSecurityContext
Change-Id: Id3fb556bced24a227480ebcc4170efd376ce3eac
Signed-off-by: Avi Kondareddy <avikr@google.com>
diff --git a/config.yaml b/config.yaml
index 603d709..1a0242a 100644
--- a/config.yaml
+++ b/config.yaml
@@ -25,19 +25,19 @@
gcs_credentials_secret: "{FILL IN WITH SECRET HOLDING KEY OF CLOUD SERVICE ACCOUNT}"
presubmits:
- https://kunit.googlesource.com/linux:
+ https://kunit-review.googlesource.com/linux:
- name: kunit-test-presubmit
branches:
- kunit/alpha/master
decorate: true
always_run: true
spec:
- securityContext:
- privileged: true
volumes:
- name: shared-mem
emptyDir: {}
containers:
+ securityContext:
+ privileged: true
- image: gcr.io/kunit-presubmit/kunit
command:
- /kunit.sh
diff --git a/deployment.yaml b/deployment.yaml
index 35521f5..596d6d9 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -255,8 +255,7 @@
image: gcr.io/k8s-prow/gerrit:v20181203-6a1345b
args:
- --config-path=/etc/config/config.yaml
- - --cookiefile=/etc/cookies/cookies
- - --gerrit-projects=https://kunit.googlesource.com=linux
+ - --gerrit-projects=https://kunit-review.googlesource.com=linux
- --last-sync-fallback=/store/gerrit
volumeMounts:
- name: config
@@ -264,17 +263,10 @@
readOnly: true
- name: gerrit-volume
mountPath: /store
- - name: cookies
- mountPath: /etc/cookies
- readOnly: true
volumes:
- name: config
configMap:
name: config
- - name: cookies
- secret:
- defaultMode: 420
- secretName: http-cookiefile
- name: gerrit-volume
persistentVolumeClaim:
claimName: gerrit-storage
@@ -299,17 +291,7 @@
image: gcr.io/k8s-prow/crier:v20181203-6a1345b
args:
- --gerrit-workers=1
- - --cookiefile=/etc/cookies/cookies
- - --gerrit-projects=https://kunit.googlesource.com=linux
- volumeMounts:
- - name: cookies
- mountPath: /etc/cookies
- readOnly: true
- volumes:
- - name: cookies
- secret:
- defaultMode: 420
- secretName: http-cookiefile
+ - --gerrit-projects=https://kunit-review.googlesource.com=linux
### Cluster rbac rules
---
apiVersion: v1