From 8687b34c27a1797733052f0b2b31580fbf338dbe Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 15 Jul 2023 16:54:49 +0330 Subject: [PATCH] fix: correct some issues --- deployments/webhook-proxy/Chart.yaml | 2 +- deployments/webhook-proxy/templates/config-map.yaml | 2 +- deployments/webhook-proxy/templates/deployment.yaml | 12 ++++++------ deployments/webhook-proxy/templates/hpa.yaml | 6 +++--- deployments/webhook-proxy/templates/route.yaml | 6 +++--- deployments/webhook-proxy/templates/service.yaml | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/deployments/webhook-proxy/Chart.yaml b/deployments/webhook-proxy/Chart.yaml index 67cc1e7..d2f0d20 100644 --- a/deployments/webhook-proxy/Chart.yaml +++ b/deployments/webhook-proxy/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: webhook-proxy +name: jira-webhook-proxy description: A Helm chart for webhook-proxy app type: application diff --git a/deployments/webhook-proxy/templates/config-map.yaml b/deployments/webhook-proxy/templates/config-map.yaml index ee7332e..32be266 100644 --- a/deployments/webhook-proxy/templates/config-map.yaml +++ b/deployments/webhook-proxy/templates/config-map.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: ConfigMap metadata: - name: webhook-proxy-config + name: jira-webhook-proxy-config data: config.yml: |- element: diff --git a/deployments/webhook-proxy/templates/deployment.yaml b/deployments/webhook-proxy/templates/deployment.yaml index d796e2f..c1bd54f 100644 --- a/deployments/webhook-proxy/templates/deployment.yaml +++ b/deployments/webhook-proxy/templates/deployment.yaml @@ -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: @@ -36,4 +36,4 @@ spec: volumes: - name: config-map configMap: - name: webhook-proxy-config + name: jira-webhook-proxy-config diff --git a/deployments/webhook-proxy/templates/hpa.yaml b/deployments/webhook-proxy/templates/hpa.yaml index 8d822be..3b969ac 100644 --- a/deployments/webhook-proxy/templates/hpa.yaml +++ b/deployments/webhook-proxy/templates/hpa.yaml @@ -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: diff --git a/deployments/webhook-proxy/templates/route.yaml b/deployments/webhook-proxy/templates/route.yaml index 13fde6f..de6e255 100644 --- a/deployments/webhook-proxy/templates/route.yaml +++ b/deployments/webhook-proxy/templates/route.yaml @@ -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 diff --git a/deployments/webhook-proxy/templates/service.yaml b/deployments/webhook-proxy/templates/service.yaml index 0652d12..c82fb32 100644 --- a/deployments/webhook-proxy/templates/service.yaml +++ b/deployments/webhook-proxy/templates/service.yaml @@ -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 \ No newline at end of file + targetPort: 8080