Skip to content

Commit

Permalink
chore(fluent-bit): propagate fullname override
Browse files Browse the repository at this point in the history
  • Loading branch information
levivannoort committed Apr 5, 2024
1 parent 4d09abe commit 279eae5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.3
version: 0.1.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion fluent-bit/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: fluent-bit-role
name: {{ include "fluent-bit.fullname" . }}-role
rules:
- nonResourceURLs:
- /metrics
Expand Down
4 changes: 2 additions & 2 deletions fluent-bit/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: fluent-bit-role-binding
name: {{ include "fluent-bit.fullname" . }}-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: fluent-bit-role
name: {{ include "fluent-bit.fullname" . }}-role
subjects:
- kind: ServiceAccount
name: fluent-bit
Expand Down
2 changes: 1 addition & 1 deletion fluent-bit/templates/configmap-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-bit-config
name: {{ include "generated-service.fullname" . }}-config
namespace: observability
data:
fluent-bit.conf: |
Expand Down
2 changes: 1 addition & 1 deletion fluent-bit/templates/configmap-info.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
namespace: observability
data:
cluster.name: "{{ .Values.configmap.info.clusterName }}"
Expand Down
20 changes: 10 additions & 10 deletions fluent-bit/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,39 @@ spec:
{{- include "fluent-bit.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: fluent-bit
- name: {{ include "fluent-bit.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: AWS_REGION
valueFrom:
configMapKeyRef:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
key: logs.region
- name: CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
key: cluster.name
- name: HTTP_SERVER
valueFrom:
configMapKeyRef:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
key: http.server
- name: HTTP_PORT
valueFrom:
configMapKeyRef:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
key: http.port
- name: READ_FROM_HEAD
valueFrom:
configMapKeyRef:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
key: read.head
- name: READ_FROM_TAIL
valueFrom:
configMapKeyRef:
name: fluent-bit-cluster-info
name: {{ include "fluent-bit.fullname" . }}-cluster-info
key: read.tail
- name: HOST_NAME
valueFrom:
Expand Down Expand Up @@ -81,7 +81,7 @@ spec:
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: fluent-bit-config
- name: {{ include "fluent-bit.fullname" . }}-config
mountPath: /fluent-bit/etc/
- name: runlogjournal
mountPath: /run/log/journal
Expand All @@ -102,9 +102,9 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: fluent-bit-config
- name: {{ include "fluent-bit.fullname" . }}-config
configMap:
name: fluent-bit-config
name: {{ include "fluent-bit.fullname" . }}-config
- name: runlogjournal
hostPath:
path: /run/log/journal
Expand Down

0 comments on commit 279eae5

Please sign in to comment.