-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall-tas.yaml
45 lines (45 loc) · 1.53 KB
/
install-tas.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: tekton.dev/v1alpha1
kind: StepAction
metadata:
name: install-tas-from-repository
spec:
description: >-
This StepAction install trusted artifact signer.
image: registry.redhat.io/openshift4/ose-cli
params:
- name: credentials
type: string
description: Name of the volume with credentials.
- name: repository
type: string
description: Volume with resources to be applied.
- name: workdir
type: string
description: Repository home directory.
default: ""
- name: KUBECONFIG
type: string
description: KUBECONFIG path.
- name: clusterName
type: string
description: The name of a ClusterTemplateInstance.
volumeMounts:
- name: "$(params.credentials)"
mountPath: /credentials
- name: "$(params.repository)"
mountPath: /repository
env:
- name: KUBECONFIG
value: "/credentials/$(params.KUBECONFIG)"
- name: WORKDIR
value: "$(params.workdir)"
- name: CLUSTERNAME
value: "$(params.clusterName)"
script: |
cd /repository/$WORKDIR
sed -i 's#https://your-oidc-issuer-url#http://${CLUSTERNAME}/auth/realms/trusted-artifact-signer#' config/samples/rhtas_v1alpha1_securesign.yaml
sed -i 's#rhtas.redhat.com/metrics: "true"#rhtas.redhat.com/metrics: "false"#' config/samples/rhtas_v1alpha1_securesign.yaml
oc create ns tas-e2e
oc create -f config/samples/rhtas_v1alpha1_securesign.yaml -n tas-e2e
sleep 1
oc wait --for=condition=Ready securesign/securesign-sample --timeout=9m -n tas-e2e