Skip to content

Commit

Permalink
Chart: Fix usage of name & namespace. (#249)
Browse files Browse the repository at this point in the history
* Chart: Fix usage of `name` & `namespace`.

* Chart: Reorder `Chart.yaml`.
  • Loading branch information
Gacko authored Nov 20, 2023
1 parent 0f5c318 commit 63b624a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
- Build App with ABS.
- Add basic tests with ATS.
- ATS: Rework tests. ([#248](https://github.com/giantswarm/coredns-app/pull/248))
- Chart: Fix usage of `name` & `namespace`. ([#249](https://github.com/giantswarm/coredns-app/pull/249))

## [1.19.0] - 2023-09-28

Expand Down
2 changes: 1 addition & 1 deletion helm/coredns-app/.kube-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
checks:
exclude:
- "unset-cpu-requirements"
- unset-cpu-requirements
6 changes: 3 additions & 3 deletions helm/coredns-app/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
annotations:
application.giantswarm.io/team: cabbage
apiVersion: v2
appVersion: 1.9.3
description: A Helm chart for CoreDNS
icon: https://s.giantswarm.io/app-icons/coredns/1/dark.svg
home: https://github.com/giantswarm/coredns-app
icon: https://s.giantswarm.io/app-icons/coredns/1/dark.svg
name: coredns-app
version: 1.19.0
annotations:
application.giantswarm.io/team: cabbage
3 changes: 2 additions & 1 deletion helm/coredns-app/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
kind: HorizontalPodAutoscaler
metadata:
name: coredns
name: {{ .Values.name }}
namespace: {{ .Values.namespace }}
labels:
{{- include "labels.common" . | nindent 4 }}
spec:
Expand Down
4 changes: 2 additions & 2 deletions helm/coredns-app/templates/np.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
namespace: {{ .Values.namespace }}
name: {{ .Values.name }}
namespace: {{ .Values.namespace }}
labels:
{{- include "labels.common" . | nindent 4 }}
spec:
Expand Down
1 change: 0 additions & 1 deletion helm/coredns-app/templates/psp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: {{ .Values.name }}
namespace: {{ .Values.namespace }}
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'runtime/default'
labels:
Expand Down

0 comments on commit 63b624a

Please sign in to comment.