Skip to content

Commit

Permalink
add missing namespace to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tarokkk committed Aug 30, 2024
1 parent b33059b commit 9b44039
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/axosyslog/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "axosyslog.serviceAccountName" . }}
namespace: {{ include "axosyslog.namespace" . }}
subjects:
- kind: ServiceAccount
name: {{ include "axosyslog.serviceAccountName" . }}
Expand Down
3 changes: 3 additions & 0 deletions charts/axosyslog/templates/collector-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{{- if .Values.collector.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "axosyslog.labels" . | nindent 4 }}
name: {{ include "axosyslog.fullname" . }}-collector
namespace: {{ include "axosyslog.namespace" . }}
data:
{{- if .Values.collector.config.raw }}
syslog-ng.conf: {{ tpl (toYaml .Values.collector.config.raw) . | indent 4 }}
Expand Down Expand Up @@ -121,3 +123,4 @@ data:
flags(flow-control);
};
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/axosyslog/templates/scc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: {{ template "axosyslog.fullname" . }}
namespace: {{ include "axosyslog.namespace" . }}
{{- if .Values.openShift.securityContextConstraints.annotations }}
annotations:
{{- toYaml .Values.openShift.securityContextConstraints.annotations | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/axosyslog/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "axosyslog.fullname" . }}-syslog
namespace: {{ include "axosyslog.namespace" . }}
spec:
selector:
app: {{ template "axosyslog.fullname" . }}-syslog
Expand Down

0 comments on commit 9b44039

Please sign in to comment.