summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/okd/molecule/default/vars
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/community/okd/molecule/default/vars
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/community/okd/molecule/default/vars')
-rw-r--r--ansible_collections/community/okd/molecule/default/vars/main.yml94
1 files changed, 94 insertions, 0 deletions
diff --git a/ansible_collections/community/okd/molecule/default/vars/main.yml b/ansible_collections/community/okd/molecule/default/vars/main.yml
new file mode 100644
index 000000000..66fb0d33c
--- /dev/null
+++ b/ansible_collections/community/okd/molecule/default/vars/main.yml
@@ -0,0 +1,94 @@
+---
+k8s_pod_annotations: {}
+
+k8s_pod_metadata:
+ labels:
+ app: '{{ k8s_pod_name }}'
+ annotations: '{{ k8s_pod_annotations }}'
+
+k8s_pod_spec:
+ serviceAccount: "{{ k8s_pod_service_account }}"
+ containers:
+ - image: "{{ k8s_pod_image }}"
+ imagePullPolicy: Always
+ name: "{{ k8s_pod_name }}"
+ command: "{{ k8s_pod_command }}"
+ readinessProbe:
+ initialDelaySeconds: 15
+ exec:
+ command:
+ - /bin/true
+ resources: "{{ k8s_pod_resources }}"
+ ports: "{{ k8s_pod_ports }}"
+ env: "{{ k8s_pod_env }}"
+
+k8s_pod_service_account: default
+
+k8s_pod_resources:
+ limits:
+ cpu: "100m"
+ memory: "100Mi"
+
+k8s_pod_command: []
+
+k8s_pod_ports: []
+
+k8s_pod_env: []
+
+k8s_pod_template:
+ metadata: "{{ k8s_pod_metadata }}"
+ spec: "{{ k8s_pod_spec }}"
+
+k8s_deployment_spec:
+ template: '{{ k8s_pod_template }}'
+ selector:
+ matchLabels:
+ app: '{{ k8s_pod_name }}'
+ replicas: 1
+
+k8s_deployment_template:
+ apiVersion: apps/v1
+ kind: Deployment
+ spec: '{{ k8s_deployment_spec }}'
+
+okd_dc_triggers:
+ - type: ConfigChange
+ - type: ImageChange
+ imageChangeParams:
+ automatic: true
+ containerNames:
+ - '{{ k8s_pod_name }}'
+ from:
+ kind: ImageStreamTag
+ name: '{{ image_name }}:{{ image_tag }}'
+
+okd_dc_spec:
+ template: '{{ k8s_pod_template }}'
+ triggers: '{{ okd_dc_triggers }}'
+ replicas: 1
+ strategy:
+ type: Recreate
+
+okd_dc_template:
+ apiVersion: v1
+ kind: DeploymentConfig
+ spec: '{{ okd_dc_spec }}'
+
+okd_imagestream_template:
+ apiVersion: image.openshift.io/v1
+ kind: ImageStream
+ metadata:
+ name: '{{ image_name }}'
+ spec:
+ lookupPolicy:
+ local: true
+ tags:
+ - annotations: null
+ from:
+ kind: DockerImage
+ name: '{{ image }}'
+ name: '{{ image_tag }}'
+ referencePolicy:
+ type: Source
+
+image_tag: latest