![Tristan Cacqueray](/assets/img/avatar_default.png)
This change replaces the existing tasks with a dhall function to generates all the kubernetes objects. The operator nows converts the CR spec to a dhall `Input`, then it applies the function output to the cluster. Follow-up changes demonstrate how runtime operations can be performed around that function. This change updates the zuul-ci_v1alpha1_zuul_cr.yaml file with the actual CR defined in the zuul specification so that it can be used in the functional tests. Depends-On: https://review.opendev.org/702753 Change-Id: Iea51bccf90def6e827d2c5846ad6a7e4c86a5bc1
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: zuul-operator
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: zuul-operator
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: zuul-operator
|
|
spec:
|
|
serviceAccountName: zuul-operator
|
|
containers:
|
|
- name: ansible
|
|
command:
|
|
- /usr/local/bin/ao-logs
|
|
- /tmp/ansible-operator/runner
|
|
- stdout
|
|
image: "docker.io/zuul/zuul-operator"
|
|
imagePullPolicy: "IfNotPresent"
|
|
volumeMounts:
|
|
- mountPath: /tmp/ansible-operator/runner
|
|
name: runner
|
|
readOnly: true
|
|
- name: operator
|
|
image: "docker.io/zuul/zuul-operator"
|
|
imagePullPolicy: "IfNotPresent"
|
|
volumeMounts:
|
|
- mountPath: /tmp/ansible-operator/runner
|
|
name: runner
|
|
env:
|
|
- name: WATCH_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: OPERATOR_NAME
|
|
value: "zuul-operator"
|
|
volumes:
|
|
- name: runner
|
|
emptyDir: {}
|