Skip to content

Commit

Permalink
Remove quaytoken
Browse files Browse the repository at this point in the history
This is now handled by the image controller
  • Loading branch information
stuartwdouglas committed Nov 10, 2023
1 parent 98b313a commit 2375d77
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions deploy/base-development.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ kubectl apply -f $DIR/namespace.yaml
kubectl config set-context --current --namespace=test-jvm-namespace
kubectl delete --ignore-not-found secret jvm-build-image-secrets jvm-build-git-secrets jvm-build-maven-repo-secrets jvm-build-maven-repo-aws-secrets jvm-build-s3-secrets jvm-build-git-repo-secrets

if [ -n "$QUAY_ORG" ] && [ -n "$QUAY_TOKEN" ]; then
kubectl delete --ignore-not-found secret -n image-controller quaytoken
kubectl create secret generic -n image-controller quaytoken --from-literal "quaytoken=$QUAY_TOKEN" --from-literal "organization=$QUAY_ORG"
fi
kubectl create secret generic jvm-build-image-secrets --from-file=.dockerconfigjson=$HOME/.docker/config.json --type=kubernetes.io/dockerconfigjson
kubectl create secret generic jvm-build-git-secrets --from-literal .git-credentials="
https://$GITHUB_E2E_ORGANIZATION:$GITHUB_TOKEN@github.com
Expand Down
9 changes: 0 additions & 9 deletions deploy/operator/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ spec:
labels:
app: hacbs-jvm-operator
spec:
volumes:
- name: quaytoken
secret:
optional: false
secretName: quaytoken
securityContext:
runAsNonRoot: true
containers:
Expand All @@ -37,10 +32,6 @@ spec:
limits:
memory: "1024Mi"
cpu: "500m"
volumeMounts:
- mountPath: "/workspace"
name: quaytoken
readOnly: true
securityContext:
readOnlyRootFilesystem: true
serviceAccountName: hacbs-jvm-operator
7 changes: 0 additions & 7 deletions deploy/operator/overlays/dev-template/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,3 @@ patches:
kind: Deployment
name: hacbs-jvm-operator
- patch: |-
- op: replace
path: /spec/template/spec/volumes/0/secret/optional
value: true
target:
kind: Deployment
name: hacbs-jvm-operator

0 comments on commit 2375d77

Please sign in to comment.