Skip to content

Commit 69c3947

Browse files
committed
chore(KFLUXSPRT-5265): Add deployment & secret to konflux-support-ops base
1 parent c639f7a commit 69c3947

File tree

2 files changed

+105
-2
lines changed

2 files changed

+105
-2
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: support-ops
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: support-ops
10+
template:
11+
metadata:
12+
labels:
13+
app: support-ops
14+
spec:
15+
containers:
16+
- name: support-ops
17+
image: quay.io/klakshma/konflux-support-ops:latest
18+
imagePullPolicy: Always
19+
env:
20+
- name: PYTHONPATH
21+
value: "/app"
22+
- name: SLACK_BOT_TOKEN
23+
valueFrom:
24+
secretKeyRef:
25+
name: support-ops-secrets
26+
key: slack-bot-token
27+
- name: SLACK_APP_TOKEN
28+
valueFrom:
29+
secretKeyRef:
30+
name: support-ops-secrets
31+
key: slack-app-token
32+
# Sandbox tokens (fallback)
33+
- name: SLACK_SANDBOX_BOT_TOKEN
34+
valueFrom:
35+
secretKeyRef:
36+
name: support-ops-secrets
37+
key: slack-sandbox-bot-token
38+
optional: true
39+
- name: SLACK_SANDBOX_APP_TOKEN
40+
valueFrom:
41+
secretKeyRef:
42+
name: support-ops-secrets
43+
key: slack-sandbox-app-token
44+
optional: true
45+
# JIRA API Keys for different bots
46+
- name: JIRA_API_KEY_KONFLUX
47+
valueFrom:
48+
secretKeyRef:
49+
name: support-ops-secrets
50+
key: jira-api-key-konflux
51+
- name: JIRA_API_KEY_PIPELINES
52+
valueFrom:
53+
secretKeyRef:
54+
name: support-ops-secrets
55+
key: jira-api-key-pipelines
56+
- name: JIRA_API_KEY_OPENSHIFT_PIPELINES
57+
valueFrom:
58+
secretKeyRef:
59+
name: support-ops-secrets
60+
key: jira-api-key-openshift-pipelines
61+
- name: JIRA_API_KEY_RHN
62+
valueFrom:
63+
secretKeyRef:
64+
name: support-ops-secrets
65+
key: jira-api-key-rhn
66+
- name: TELCO_PRE_GA_JIRA_TOKEN
67+
valueFrom:
68+
secretKeyRef:
69+
name: support-ops-secrets
70+
key: telco-pre-ga-jira-token
71+
- name: JIRA_API_KEY_SP_RHEL
72+
valueFrom:
73+
secretKeyRef:
74+
name: support-ops-secrets
75+
key: jira-api-key-sp-rhel
76+
- name: JIRA_API_KEY_TFT
77+
valueFrom:
78+
secretKeyRef:
79+
name: support-ops-secrets
80+
key: jira-api-key-tft
81+
- name: JIRA_API_KEY_OSCI
82+
valueFrom:
83+
secretKeyRef:
84+
name: support-ops-secrets
85+
key: jira-api-key-osci
86+
# Configuration
87+
- name: ENABLE_TOKEN_VALIDATION
88+
value: "true"
89+
resources:
90+
limits:
91+
cpu: 500m
92+
memory: 512Mi
93+
requests:
94+
cpu: 100m
95+
memory: 256Mi
96+
securityContext:
97+
allowPrivilegeEscalation: false
98+
capabilities:
99+
drop:
100+
- "ALL"
101+
seccompProfile:
102+
type: RuntimeDefault
103+
readOnlyRootFilesystem: true
104+
runAsNonRoot: true

components/konflux-support-ops/base/kustomization.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33

44
resources:
5-
# - deployment.yaml
6-
# - service.yaml
5+
- deployment.yaml
76

87
namespace: konflux-support-ops

0 commit comments

Comments
 (0)