coreos-cincinnati: remove legacy conditional bits from templates

This commit is contained in:
Luca BRUNO 2022-05-17 08:41:29 +00:00
parent e600040304
commit 5ae24a905c
No known key found for this signature in database
GPG key ID: A9834A2252078E4E
2 changed files with 0 additions and 31 deletions

View file

@ -2,11 +2,7 @@
apiVersion: v1
kind: BuildConfig
metadata:
{% if ocp4 %}
name: "coreos-cincinnati"
{% else %}
name: "coreos-cincinnati-stub"
{% endif %}
labels:
app: "coreos-cincinnati"
spec:
@ -31,8 +27,4 @@ spec:
output:
to:
kind: "ImageStreamTag"
{% if ocp4 %}
name: "fedora-coreos-cincinnati:gitref-{{fcos_cincinnati_build_git_sha}}"
{% else %}
name: "fedora-coreos-cincinnati:dumnati-{{fcos_cincinnati_build_git_sha}}"
{% endif %}

View file

@ -2,11 +2,7 @@
apiVersion: v1
kind: DeploymentConfig
metadata:
{% if ocp4 %}
name: coreos-cincinnati
{% else %}
name: coreos-cincinnati-stub
{% endif %}
labels:
app: coreos-cincinnati
spec:
@ -32,11 +28,7 @@ spec:
spec:
containers:
- name: "fcos-graph-builder"
{% if ocp4 %}
image: "image-registry.openshift-image-registry.svc:5000/coreos-cincinnati/fedora-coreos-cincinnati:gitref-{{fcos_cincinnati_deploy_git_sha}}"
{% else %}
image: "{{fcos_cincinnati_registry}}:5000/coreos-cincinnati/fedora-coreos-cincinnati:dumnati-{{fcos_cincinnati_deploy_git_sha}}"
{% endif %}
args: [
"/usr/local/bin/fcos-graph-builder",
"-v",
@ -47,11 +39,7 @@ spec:
mountPath: "/etc/cincinnati/"
readOnly: true
- name: "fcos-policy-engine"
{% if ocp4 %}
image: "image-registry.openshift-image-registry.svc:5000/coreos-cincinnati/fedora-coreos-cincinnati:gitref-{{fcos_cincinnati_deploy_git_sha}}"
{% else %}
image: "{{fcos_cincinnati_registry}}:5000/coreos-cincinnati/fedora-coreos-cincinnati:dumnati-{{fcos_cincinnati_deploy_git_sha}}"
{% endif %}
args: [
"/usr/local/bin/fcos-policy-engine",
"-v",
@ -66,15 +54,4 @@ spec:
configMap:
name: "coreos-cincinnati-config-stub"
triggers:
{% if ocp4 %}
- type: "ConfigChange"
{% else %}
- imageChangeParams:
automatic: true
containerNames:
- "dumnati"
from:
kind: ImageStreamTag
name: "fedora-coreos-cincinnati:dumnati-{{fcos_cincinnati_deploy_git_sha}}"
type: ImageChange
{% endif %}