Planet: improve readability of deployment and buildconfig

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura 2024-01-24 17:43:42 -03:00 committed by phsmoura
parent d3ae9b2981
commit 5f7b2bab72
2 changed files with 19 additions and 44 deletions

View file

@ -1,41 +1,26 @@
apiVersion: build.openshift.io/v1 apiVersion: build.openshift.io/v1
kind: BuildConfig kind: BuildConfig
metadata: metadata:
annotations: name: planet
app.openshift.io/vcs-ref: ""
app.openshift.io/vcs-uri: https://github.com/fedora-infra/planet
labels: labels:
app: planet app: planet
app.kubernetes.io/component: planet build: planet
app.kubernetes.io/instance: planet
app.kubernetes.io/name: planet
app.kubernetes.io/part-of: planet-app
name: planet
spec: spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: planet:latest
postCommit: {}
resources: {}
runPolicy: Serial runPolicy: Serial
source: source:
contextDir: / type: Git
git: git:
uri: https://github.com/fedora-infra/planet uri: https://github.com/fedora-infra/planet
type: Git ref: {{ (env == 'production')|ternary('stable', 'staging') }}
strategy: strategy:
dockerStrategy: type: Docker
dockerfilePath: Dockerfile output:
type: Docker to:
triggers: kind: ImageStreamTag
- generic: name: planet:latest
secretReference: triggers:
name: planet-generic-webhook-secret - type: ConfigChange
type: Generic - type: ImageChange
- github: - type: GitHub
secretReference: github:
name: planet-github-webhook-secret secret: "{{ planet_stg_github_secret }}"
type: GitHub
- type: ConfigChange

View file

@ -1,17 +1,11 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: planet
labels: labels:
app: planet app: planet
app.kubernetes.io/component: planet
app.kubernetes.io/instance: planet
app.kubernetes.io/name: planet
app.kubernetes.io/part-of: planet-app
name: planet
spec: spec:
progressDeadlineSeconds: 600
replicas: 1 replicas: 1
revisionHistoryLimit: 10
selector: selector:
matchLabels: matchLabels:
app: planet app: planet
@ -36,9 +30,5 @@ spec:
volumes: volumes:
- name: keytab-volume - name: keytab-volume
secret: secret:
secretName: planet-keytab-http secretName: planet-keytab-http
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30