-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enables passing of GCS creds using k8s secret.
- Loading branch information
Showing
5 changed files
with
249 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
pkg/reconciler/kubernetes/tektonresult/testdata/api-deployment-gcs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: tekton-results-api | ||
app.kubernetes.io/part-of: tekton-results | ||
app.kubernetes.io/version: 9f84a1f | ||
name: tekton-results-api | ||
namespace: tekton-pipelines | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: tekton-results-api | ||
app.kubernetes.io/version: 9f84a1f | ||
template: | ||
metadata: | ||
annotations: | ||
cluster-autoscaler.kubernetes.io/safe-to-evict: "false" | ||
labels: | ||
app.kubernetes.io/name: tekton-results-api | ||
app.kubernetes.io/version: 9f84a1f | ||
spec: | ||
containers: | ||
- env: | ||
- name: test | ||
value: tekton-results-postgres-service.tekton-pipelines.svc.cluster.local | ||
image: gcr.io/tekton-releases/github.com/tektoncd/results/cmd/api:9f84a1f@sha256:606816e51ebecb58fccc28f5a95699255ed8742470df673294ce25f69ffc451c | ||
name: test | ||
- env: | ||
- name: DB_HOST | ||
value: tekton-results-postgres-service.tekton-pipelines.svc.cluster.local | ||
- name: DB_USER | ||
valueFrom: | ||
secretKeyRef: | ||
key: POSTGRES_USER | ||
name: tekton-results-postgres | ||
- name: DB_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
key: POSTGRES_PASSWORD | ||
name: tekton-results-postgres | ||
- name: DB_NAME | ||
value: tekton-results | ||
- name: S3_BUCKET_NAME # used to verify that, this value replaced by transformer | ||
value: foo | ||
- name: GOOGLE_APPLICATION_CREDENTIALS | ||
value: creds.json | ||
image: gcr.io/tekton-releases/github.com/tektoncd/results/cmd/api:9f84a1f@sha256:606816e51ebecb58fccc28f5a95699255ed8742470df673294ce25f69ffc451c | ||
name: api | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
add: | ||
- NET_BIND_SERVICE | ||
drop: | ||
- ALL | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
volumeMounts: | ||
- mountPath: /etc/tekton/results | ||
name: config | ||
readOnly: true | ||
- mountPath: /etc/tls | ||
name: tls | ||
readOnly: true | ||
- mountPath: /creds/google | ||
name: google-creds | ||
serviceAccountName: tekton-results-api | ||
volumes: | ||
- configMap: | ||
name: tekton-results-api-config | ||
name: config | ||
- name: tls | ||
secret: | ||
secretName: tekton-results-tls | ||
- name: google-creds | ||
secret: | ||
secretName: foo | ||
items: | ||
- key: bar | ||
path: bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters