Skip to content

Commit

Permalink
fix: correct some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saman2000hoseini committed Jul 15, 2023
1 parent 7a5594b commit 8687b34
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion deployments/webhook-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: webhook-proxy
name: jira-webhook-proxy
description: A Helm chart for webhook-proxy app

type: application
Expand Down
2 changes: 1 addition & 1 deletion deployments/webhook-proxy/templates/config-map.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: webhook-proxy-config
name: jira-webhook-proxy-config
data:
config.yml: |-
element:
Expand Down
12 changes: 6 additions & 6 deletions deployments/webhook-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: webhook-proxy
name: webhook-proxy
app: jira-webhook-proxy
name: jira-webhook-proxy
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
app: webhook-proxy
app: jira-webhook-proxy
strategy: { }
template:
metadata:
labels:
app: webhook-proxy
app: jira-webhook-proxy
spec:
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: webhook-proxy
name: jira-webhook-proxy
ports:
- containerPort: 8080
livenessProbe:
Expand All @@ -36,4 +36,4 @@ spec:
volumes:
- name: config-map
configMap:
name: webhook-proxy-config
name: jira-webhook-proxy-config
6 changes: 3 additions & 3 deletions deployments/webhook-proxy/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: webhook-proxy
name: jira-webhook-proxy
labels:
app: webhook-proxy
app: jira-webhook-proxy
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: webhook-proxy
name: jira-webhook-proxy
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
Expand Down
6 changes: 3 additions & 3 deletions deployments/webhook-proxy/templates/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: webhook-proxy
name: jira-webhook-proxy
spec:
host: webhook-proxy.apps.private.{{ .Values.region_hostname }}
host: jira-webhook-proxy.apps.private.{{ .Values.region_hostname }}
port:
targetPort: 8080
to:
kind: Service
name: webhook-proxy
name: jira-webhook-proxy
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
6 changes: 3 additions & 3 deletions deployments/webhook-proxy/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: webhook-proxy
name: jira-webhook-proxy
spec:
selector:
app: webhook-proxy
app: jira-webhook-proxy
ports:
- protocol: TCP
port: {{ .Values.service.port }}
targetPort: 8080
targetPort: 8080

0 comments on commit 8687b34

Please sign in to comment.