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
kind: BuildConfig
metadata:
annotations:
app.openshift.io/vcs-ref: ""
app.openshift.io/vcs-uri: https://github.com/fedora-infra/planet
name: planet
labels:
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
build: planet
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: planet:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
contextDir: /
type: Git
git:
uri: https://github.com/fedora-infra/planet
type: Git
strategy:
dockerStrategy:
dockerfilePath: Dockerfile
type: Docker
triggers:
- generic:
secretReference:
name: planet-generic-webhook-secret
type: Generic
- github:
secretReference:
name: planet-github-webhook-secret
type: GitHub
- type: ConfigChange
ref: {{ (env == 'production')|ternary('stable', 'staging') }}
strategy:
type: Docker
output:
to:
kind: ImageStreamTag
name: planet:latest
triggers:
- type: ConfigChange
- type: ImageChange
- type: GitHub
github:
secret: "{{ planet_stg_github_secret }}"

View file

@ -1,17 +1,11 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: planet
labels:
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:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: planet
@ -36,9 +30,5 @@ spec:
volumes:
- name: keytab-volume
secret:
secretName: planet-keytab-http
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
secretName: planet-keytab-http