Skip to content

Commit

Permalink
chore: patch the service account in openfaas-fn ns to allow for pulli…
Browse files Browse the repository at this point in the history
…ng openfaas flask base images
  • Loading branch information
abhimanyubabbar committed Aug 26, 2024
1 parent 4e2ec5b commit ebdd471
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ut-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,15 @@ jobs:
--set gateway.image=rudderlabs/rudder-openfaas-gateway:0.25.2 \
--set faasnetes.image=rudderlabs/rudder-openfaas-faas-netes:0.15.4
- name: Create regcred secret
- name: Create regcred secret in openfaas
run: kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username=${{ secrets.DOCKERHUB_USERNAME }} --docker-password=${{ secrets.DOCKERHUB_TOKEN }} --docker-email=${{ secrets.DOCKERHUB_EMAIL }} -n openfaas

- name: Create regcred secret in openfaas-fn
run: kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username=${{ secrets.DOCKERHUB_USERNAME }} --docker-password=${{ secrets.DOCKERHUB_TOKEN }} --docker-email=${{ secrets.DOCKERHUB_EMAIL }} -n openfaas-fn

- name: Patch default service account in openfaas-fn
run: 'kubectl patch serviceaccount default -n openfaas-fn -p ''{"imagePullSecrets": [{"name": "regcred"}]}'''

- name: Patch Gateway Deployment with ImagePullSecret
run: 'kubectl patch deployment gateway -n openfaas -p=''{"spec": {"template": {"spec": {"imagePullSecrets": [{"name": "regcred"}]}}}}'''

Expand Down

0 comments on commit ebdd471

Please sign in to comment.