Skip to content

Commit

Permalink
Fix config
Browse files Browse the repository at this point in the history
fix

deleted harbortoken.yaml

Fix last config
  • Loading branch information
AnnaNarra committed Sep 25, 2024
1 parent 9561c90 commit 3ea8440
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Setup nodeJS
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 18

- name: Install the packages necessary for lint checking
working-directory: ./qlkube
Expand Down
4 changes: 2 additions & 2 deletions qlkube/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.3-alpine
FROM node:18-alpine

RUN mkdir --parent /qlkube
RUN chown node:node /qlkube && chmod 770 /qlkube
Expand All @@ -13,6 +13,6 @@ RUN yarn install --production=true --frozen-lockfile

COPY src/*.js ./src/

ENV NODE_EXTRA_CA_CERTS /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
ENV NODE_EXTRA_CA_CERTS=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt

ENTRYPOINT [ "yarn", "start" ]
6 changes: 6 additions & 0 deletions qlkube/deploy/qlkube/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ spec:
- name: configuration
mountPath: "{{ .Values.configuration.mountPath }}/{{ .Values.configuration.wrappers.fileName }}"
subPath: "{{ .Values.configuration.wrappers.fileName }}"
- name: harbor-token
mountPath: "/var/run/secrets/harbor_token.json"
subPath: "harbor_token.json"
volumes:
- name: configuration
configMap:
name: "{{ include "qlkube.fullname" . }}"
- name: harbor-token
secret:
secretName: {{ include "qlkube.fullname" . }}-harbor-token
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ metadata:
type: Opaque
stringData:
harbor_token.json: |
{{ .Values.harborToken | toJson | ndent 4 }}
{{ .Values.harborToken | toJson | indent 4 }}

0 comments on commit 3ea8440

Please sign in to comment.