Skip to content

Commit

Permalink
chore(module): helm templates cleanup (#454)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
  • Loading branch information
diafour authored Oct 17, 2024
1 parent 3aee8c9 commit c7ab8d3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
17 changes: 1 addition & 16 deletions templates/kubevirt/service-monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ metadata:
name: {{ .Chart.Name }}-virt-handler
namespace: d8-monitoring
{{- include "helm_lib_module_labels" (list $ (dict "prometheus" "main")) | nindent 2 }}
spec:
endpoints:
- bearerTokenSecret:
key: token
name: prometheus-token
path: /metrics
port: metrics
spec:
endpoints:
- bearerTokenSecret:
Expand Down Expand Up @@ -226,13 +219,5 @@ spec:
selector:
matchLabels:
prometheus.kubevirt.internal.virtualization.deckhouse.io: "true"
scheme: https
tlsConfig:
insecureSkipVerify: true
namespaceSelector:
matchNames:
- d8-{{ .Chart.Name }}
selector:
matchLabels:
prometheus.kubevirt.internal.virtualization.deckhouse.io: "true"

{{- end }}
1 change: 0 additions & 1 deletion templates/pre-delete-hook/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ spec:
template:
metadata:
name: virtualization-pre-delete-hook
labels:
{{- include "helm_lib_module_labels" (list . (dict "app" "virtualization-pre-delete-hook")) | nindent 6 }}
spec:
restartPolicy: Never
Expand Down
4 changes: 1 addition & 3 deletions templates/virtualization-controller/service-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ metadata:
{{- include "helm_lib_module_labels" (list . (dict "app" "virtualization-controller")) | nindent 2 }}
spec:
ports:
- type: ClusterIP
clusterIP: None
name: metrics
- name: metrics
port: 8080
protocol: TCP
targetPort: metrics
Expand Down

0 comments on commit c7ab8d3

Please sign in to comment.