diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index da64c20..843e5cd 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -112,8 +112,9 @@ jobs: ./scripts/generate-tls-cert.sh export GITHUB_TOKEN=${{ steps.app-token.outputs.token }} make docker-buildx kind-load-image - helm install attest-provider charts/external-data-provider \ + helm install attest-provider charts/attest-provider \ --set provider.tls.caBundle="$(cat certs/ca.crt | base64 | tr -d '\n\r')" \ + --set image="docker/attest-provider:dev" \ --namespace security \ --wait --debug diff --git a/charts/external-data-provider/.helmignore b/charts/attest-provider/.helmignore similarity index 100% rename from charts/external-data-provider/.helmignore rename to charts/attest-provider/.helmignore diff --git a/charts/external-data-provider/Chart.yaml b/charts/attest-provider/Chart.yaml similarity index 86% rename from charts/external-data-provider/Chart.yaml rename to charts/attest-provider/Chart.yaml index f4a5d81..09429f7 100644 --- a/charts/external-data-provider/Chart.yaml +++ b/charts/attest-provider/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 description: A Helm chart for attest external data provider name: attest-provider -version: 0.0.1 +version: 0.0.2 home: https://github.com/docker/attest-provider sources: - https://github.com/docker/attest-provider.git -appVersion: 0.0.1 +appVersion: 0.0.2 diff --git a/charts/external-data-provider/README.md b/charts/attest-provider/README.md similarity index 100% rename from charts/external-data-provider/README.md rename to charts/attest-provider/README.md diff --git a/charts/external-data-provider/templates/external-data-provider-deployment.yaml b/charts/attest-provider/templates/attest-provider-deployment.yaml similarity index 80% rename from charts/external-data-provider/templates/external-data-provider-deployment.yaml rename to charts/attest-provider/templates/attest-provider-deployment.yaml index d0d9a65..b06772f 100644 --- a/charts/external-data-provider/templates/external-data-provider-deployment.yaml +++ b/charts/attest-provider/templates/attest-provider-deployment.yaml @@ -14,7 +14,7 @@ spec: run: attest-provider spec: containers: - - image: docker/attest-provider:dev + - image: {{ .Values.image }} imagePullPolicy: IfNotPresent name: attest-provider securityContext: @@ -52,6 +52,11 @@ spec: mountPath: /tmp/gatekeeper readOnly: true {{- end }} + {{- if .Values.certSecret }} + - name: tls-cert-key + mountPath: {{ .Values.certDir }} + readOnly: true + {{- end }} restartPolicy: Always nodeSelector: kubernetes.io/os: linux @@ -66,3 +71,13 @@ spec: - key: ca.crt path: ca.crt {{- end }} + {{- if .Values.certSecret }} + - name: tls-cert-key + secret: + secretName: {{ .Values.certSecret }} + items: + - key: tls.crt + path: tls.crt + - key: tls.key + path: tls.key + {{- end }} diff --git a/charts/external-data-provider/templates/external-data-provider-service.yaml b/charts/attest-provider/templates/attest-provider-service.yaml similarity index 100% rename from charts/external-data-provider/templates/external-data-provider-service.yaml rename to charts/attest-provider/templates/attest-provider-service.yaml diff --git a/charts/external-data-provider/templates/external-data-provider.yaml b/charts/attest-provider/templates/attest-provider.yaml similarity index 100% rename from charts/external-data-provider/templates/external-data-provider.yaml rename to charts/attest-provider/templates/attest-provider.yaml diff --git a/charts/external-data-provider/values.yaml b/charts/attest-provider/values.yaml similarity index 86% rename from charts/external-data-provider/values.yaml rename to charts/attest-provider/values.yaml index 4d28e1f..7d707a1 100644 --- a/charts/external-data-provider/values.yaml +++ b/charts/attest-provider/values.yaml @@ -1,3 +1,5 @@ +image: "docker/attest-provider:0.0.2@sha256:de950017a4077835504f441d6a7224ea84b51c8d86e75e8c8ac8e307190724fd" + certDir: /certs clientCAFile: /tmp/gatekeeper/ca.crt port: 8090