Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix: Change name label to respect the nameOverride (#8249)
Browse files Browse the repository at this point in the history
  • Loading branch information
mowies authored Jul 4, 2022
1 parent efbaa15 commit 6df14ca
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 38 deletions.
59 changes: 29 additions & 30 deletions chart/README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@

Helm-service
===========

Helm Chart for the keptn helm-service


## Configuration

The following table lists the configurable parameters of the Helm-service chart and their default values.

| Parameter | Description | Default |
| ------------------------ | ----------------------- | -------------- |
| `helmservice.image.repository` | Container image name | `"docker.io/keptn/helm-service"` |
| `helmservice.image.pullPolicy` | Kubernetes image pull policy | `"IfNotPresent"` |
| `helmservice.image.tag` | Container tag | `""` |
| `helmservice.service.enabled` | Creates a kubernetes service for the helm-service | `true` |
| `distributor.stageFilter` | Sets the stage this helm service belongs to | `""` |
| `distributor.serviceFilter` | Sets the service this helm service belongs to | `""` |
| `distributor.projectFilter` | Sets the project this helm service belongs to | `""` |
| `distributor.image.repository` | Container image name | `"docker.io/keptn/distributor"` |
| `distributor.image.pullPolicy` | Kubernetes image pull policy | `"IfNotPresent"` |
| `distributor.image.tag` | Container tag | `""` |
| `remoteControlPlane.enabled` | Enables remote execution plane mode | `false` |
| `remoteControlPlane.api.protocol` | Used protocol (http, https | `"https"` |
| `remoteControlPlane.api.hostname` | Hostname of the control plane cluster (and port) | `""` |
| `remoteControlPlane.api.apiValidateTls` | Defines if the control plane certificate should be validated | `true` |
| `remoteControlPlane.api.token` | Keptn api token | `""` |
| `imagePullSecrets` | Secrets to use for container registry credentials | `[]` |
| `serviceAccount.create` | Enables the service account creation | `true` |
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.name` | The name of the service account to use. | `""` |
| `podAnnotations` | Annotations to add to the created pods | `{}` |
| `podSecurityContext` | Set the pod security context (e.g. fsgroups) | `{}` |
| `securityContext` | Set the security context (e.g. runasuser) | `{}` |
| `resources` | Resource limits and requests | `{}` |
| `nodeSelector` | Node selector configuration | `{}` |
| `tolerations` | Tolerations for the pods | `[]` |
| `affinity` | Affinity rules | `{}` |
| Parameter | Description | Default |
|-----------------------------------------|--------------------------------------------------------------|----------------------------------|
| `nameOverride` | Override the name label and distributor subscription name | `""` |
| `helmservice.image.repository` | Container image name | `"docker.io/keptn/helm-service"` |
| `helmservice.image.pullPolicy` | Kubernetes image pull policy | `"IfNotPresent"` |
| `helmservice.image.tag` | Container tag | `""` |
| `helmservice.service.enabled` | Creates a kubernetes service for the helm-service | `true` |
| `distributor.stageFilter` | Sets the stage this helm service belongs to | `""` |
| `distributor.serviceFilter` | Sets the service this helm service belongs to | `""` |
| `distributor.projectFilter` | Sets the project this helm service belongs to | `""` |
| `distributor.image.repository` | Container image name | `"docker.io/keptn/distributor"` |
| `distributor.image.pullPolicy` | Kubernetes image pull policy | `"IfNotPresent"` |
| `distributor.image.tag` | Container tag | `""` |
| `remoteControlPlane.enabled` | Enables remote execution plane mode | `false` |
| `remoteControlPlane.api.protocol` | Used protocol (http, https | `"https"` |
| `remoteControlPlane.api.hostname` | Hostname of the control plane cluster (and port) | `""` |
| `remoteControlPlane.api.apiValidateTls` | Defines if the control plane certificate should be validated | `true` |
| `remoteControlPlane.api.token` | Keptn api token | `""` |
| `imagePullSecrets` | Secrets to use for container registry credentials | `[]` |
| `serviceAccount.create` | Enables the service account creation | `true` |
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.name` | The name of the service account to use. | `""` |
| `podAnnotations` | Annotations to add to the created pods | `{}` |
| `podSecurityContext` | Set the pod security context (e.g. fsgroups) | `{}` |
| `securityContext` | Set the security context (e.g. runasuser) | `{}` |
| `resources` | Resource limits and requests | `{}` |
| `nodeSelector` | Node selector configuration | `{}` |
| `tolerations` | Tolerations for the pods | `[]` |
| `affinity` | Affinity rules | `{}` |



Expand Down
6 changes: 3 additions & 3 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ kind: Deployment
metadata:
name: {{ include "helm-service.fullname" . }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
spec:
replicas: 1
selector:
matchLabels: {{- include "keptn.common.labels.selectorLabels" . | nindent 6 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels: {{- include "keptn.common.labels.standard" . | nindent 8 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
4 changes: 2 additions & 2 deletions chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ kind: Service
metadata:
name: {{ include "helm-service.fullname" . }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
spec:
type: ClusterIP
ports:
- port: 8080
protocol: TCP
selector: {{- include "keptn.common.labels.selectorLabels" . | nindent 4 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
{{- end }}
4 changes: 2 additions & 2 deletions chart/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ServiceAccount
metadata:
name: {{ include "helm-service.serviceAccountName" . }}
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand All @@ -15,7 +15,7 @@ kind: ClusterRoleBinding
metadata:
name: keptn-{{ .Release.Namespace }}-helm-service-cluster-admin
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion chart/templates/tests/test-api-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Pod
metadata:
name: "{{ include "helm-service.fullname" . }}-test-api-connection"
labels: {{- include "keptn.common.labels.standard" . | nindent 4 }}
app.kubernetes.io/name: helm-service
app.kubernetes.io/name: {{ include "helm-service.name" . }}
annotations:
"helm.sh/hook": test
spec:
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nameOverride:

helmservice:
image:
repository: docker.io/keptn/helm-service # Container Image Name
Expand Down

0 comments on commit 6df14ca

Please sign in to comment.