github.com/opendevstack/tailor@v1.3.5-0.20220119161809-cab064e60a67/internal/test/e2e/testdata/deploymentconfig/0/template.yml (about) 1 apiVersion: v1 2 kind: Template 3 parameters: 4 - name: TAILOR_NAMESPACE 5 required: true 6 objects: 7 - apiVersion: v1 8 kind: Secret 9 metadata: 10 name: foo-user 11 type: kubernetes.io/basic-auth 12 data: 13 password: c2VjcmV0 14 username: dXNlcg== 15 - apiVersion: apps.openshift.io/v1 16 kind: DeploymentConfig 17 metadata: 18 labels: 19 app: foo 20 name: foo 21 spec: 22 replicas: 1 23 revisionHistoryLimit: 10 24 selector: 25 app: foo 26 strategy: 27 activeDeadlineSeconds: 21600 28 resources: {} 29 rollingParams: 30 intervalSeconds: 1 31 maxSurge: 25% 32 maxUnavailable: 25% 33 timeoutSeconds: 600 34 updatePeriodSeconds: 1 35 type: Rolling 36 template: 37 metadata: 38 labels: 39 app: foo 40 spec: 41 containers: 42 - env: 43 - name: FOO 44 value: abc 45 - name: QUX 46 valueFrom: 47 secretKeyRef: 48 key: username 49 name: foo-user 50 - name: BAZ 51 value: http://baz.${TAILOR_NAMESPACE}.svc:8080/ 52 image: docker-registry.default.svc:5000/${TAILOR_NAMESPACE}/foo:latest 53 imagePullPolicy: Always 54 livenessProbe: 55 failureThreshold: 3 56 httpGet: 57 path: "/health" 58 port: 8080 59 scheme: HTTP 60 initialDelaySeconds: 6 61 periodSeconds: 10 62 successThreshold: 1 63 timeoutSeconds: 3 64 name: foo 65 ports: 66 - containerPort: 8080 67 protocol: TCP 68 readinessProbe: 69 failureThreshold: 3 70 httpGet: 71 path: "/health" 72 port: 8080 73 scheme: HTTP 74 initialDelaySeconds: 3 75 periodSeconds: 10 76 successThreshold: 1 77 timeoutSeconds: 3 78 resources: 79 limits: 80 cpu: 100m 81 memory: 128Mi 82 requests: 83 cpu: 50m 84 memory: 128Mi 85 terminationMessagePath: /dev/termination-log 86 terminationMessagePolicy: File 87 dnsPolicy: ClusterFirst 88 restartPolicy: Always 89 schedulerName: default-scheduler 90 securityContext: {} 91 terminationGracePeriodSeconds: 30 92 test: false 93 triggers: 94 - type: ConfigChange