Browse Source

Minor alterations for prod deploy

35-pssaas-kerberos-bypass
Jonathan Christison 3 years ago
parent
commit
dc8de982f0
  1. 4
      k8s/prod/app/service-account.yaml
  2. 4
      k8s/prod/app/tekton-rbac.yaml
  3. 6
      k8s/prod/osh-client-tekton/pipeline/osh-client-from-source-pipeline.yaml
  4. 16
      k8s/prod/osh-client-tekton/task/osh-client-from-source.yaml
  5. 2
      src/main/resources/application.properties

4
k8s/prod/app/service-account.yaml

@ -2,11 +2,11 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
labels: labels:
app.kubernetes.io/name: osh-wrapper-client-sa app.kubernetes.io/name: osh
app.kubernetes.io/version: 1.0.0-SNAPSHOT app.kubernetes.io/version: 1.0.0-SNAPSHOT
app.openshift.io/runtime: quarkus app.openshift.io/runtime: quarkus
env: prod env: prod
name: osh-wrapper-client-sa name: osh
namespace: psse-scanchain-prod namespace: psse-scanchain-prod
imagePullSecrets: imagePullSecrets:
- name: pct-security-osh-wrapper-client-pull-secret - name: pct-security-osh-wrapper-client-pull-secret

4
k8s/prod/app/tekton-rbac.yaml

@ -21,11 +21,11 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: osh-wrapper-tekton-rolebinding name: osh-wrapper-tekton-rolebinding
namespace: pct-security-tooling namespace: psse-scanchain-prod
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
name: osh-wrapper-tekton name: osh-wrapper-tekton
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: osh-wrapper-client-sa name: osh

6
k8s/prod/osh-client-tekton/pipeline/osh-client-from-source-pipeline.yaml

@ -15,6 +15,10 @@ spec:
description: The revision or tag description: The revision or tag
type: string type: string
- name: mock-build-params
description: The parameters to pass to covscan mock-build
type: string
- name: archive-name - name: archive-name
description: The name of the git archive file description: The name of the git archive file
type: string type: string
@ -77,6 +81,8 @@ spec:
params: params:
- name: targz-file - name: targz-file
value: $(params.archive-name) value: $(params.archive-name)
- name: mock-build-params
value: $(params.mock-build-params)
runAfter: runAfter:
- archive - archive
taskRef: taskRef:

16
k8s/prod/osh-client-tekton/task/osh-client-from-source.yaml

@ -13,15 +13,10 @@ spec:
default: "source.tar.gz" default: "source.tar.gz"
description: The filename of the tar.gz we'll be uploading to covscan description: The filename of the tar.gz we'll be uploading to covscan
- name: scan-profile - name: mock-build-params
type: string type: string
description: The scan profile we will use description: Parameters pushed to mock build
default: "snyk-only-unstable" default: "-p snyk-only-unstable --tarball-build-script=:"
- name: tarball-build-script
type: string
description: Parameters to be passed to tarball-build-script
default: ":"
volumes: volumes:
- name: osh-client-kerb-vol - name: osh-client-kerb-vol
@ -72,7 +67,6 @@ spec:
script: | script: |
#!/bin/bash #!/bin/bash
echo $(params.scan-profile) echo $(params.mock-build-params)
echo $(params.tarball-build-script)
echo $(params.targz-file) echo $(params.targz-file)
covscan mock-build -p $(params.scan-profile) --tarball-build-script=$(params.tarball-build-script) /workspace/source-tars/$(params.targz-file) covscan mock-build $(params.mock-build-params) /workspace/source-tars/$(params.targz-file)

2
src/main/resources/application.properties

@ -78,7 +78,7 @@ quarkus.arc.remove-unused-beans=false
#Always provide swagger ui #Always provide swagger ui
# Probably we need to check these 2 settings # Probably we need to check these 2 settings
%prod.quarkus.openshift.service-account=osh-wrapper-client-sa %prod.quarkus.openshift.service-account=osh
%prod.quarkus.openshift.namespace=pct-security-tooling %prod.quarkus.openshift.namespace=pct-security-tooling
%prod.quarkus.openshift.name=osh %prod.quarkus.openshift.name=osh

Loading…
Cancel
Save