Skip to content

Commit

Permalink
chore: no crds
Browse files Browse the repository at this point in the history
  • Loading branch information
puffitos committed May 27, 2024
1 parent 0fc6c4a commit 5c02367
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
charts/kube-prometheus-stack
caas-cluster-monitoring-*.tgz
caas-cluster-monitoring-*.tgz
rke*.tgz
hardenedKubelet*.tgz
7 changes: 6 additions & 1 deletion .helmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
.pre-commit-config.yaml
rke*.tgz
.github/*
README.md*

# needed else the whole git directory is packed in the chart
.git
.git

# ignore self if present in directory
caas-cluster-mononitoring*.tgz
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
chart:
helm dependency update
rm charts/hardenedKubelet-*.tgz
rm charts/rke*.tgz
helm package .
./hack/chart.sh

.PHONY: chart
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ available config parameters:
| `kube-prometheus-stack.alertmanager.servicePerReplica.enabled` | bool | `false` | |
| `kube-prometheus-stack.alertmanager.templateFiles."rancher_defaults.tmpl"` | string | `"{{- define \"slack.rancher.text\" -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{ template \"rancher.text_multiple\" . }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- define \"webex.text_multiple\" -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- range .Alerts }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{ template \"webex.text_single\" . }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .ExternalURL }} #magic___^_^___line #magic___^_^___line #magic___^_^___line AlertManager: <{{ .ExternalURL }}> #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- define \"webex.text_single\" -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Labels.alertname }} #magic___^_^___line #magic___^_^___line #magic___^_^___line ## [ALERT - {{ .Labels.alertname }}] #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- else }} #magic___^_^___line #magic___^_^___line #magic___^_^___line ## [ALERT] #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Labels.severity }} #magic___^_^___line #magic___^_^___line #magic___^_^___line ### Severity: `{{ .Labels.severity }}` #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Labels.cluster }} #magic___^_^___line #magic___^_^___line #magic___^_^___line ### Cluster: {{ .Labels.cluster }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.summary }} #magic___^_^___line #magic___^_^___line #magic___^_^___line ### Summary: {{ .Annotations.summary }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.message }} #magic___^_^___line #magic___^_^___line #magic___^_^___line Message: {{ .Annotations.message }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.description }} #magic___^_^___line #magic___^_^___line #magic___^_^___line Description: {{ .Annotations.description }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.runbook_url }} #magic___^_^___line #magic___^_^___line #magic___^_^___line Runbook URL: <{{ .Annotations.runbook_url }}|:spiral_note_pad:> #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Labels }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Remove (stringSlice \"alertname\" \"severity\" \"cluster\") }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if gt (len .) 0 }} #magic___^_^___line #magic___^_^___line #magic___^_^___line Additional Labels: #magic___^_^___line {{- range .SortedPairs }} #magic___^_^___line • {{ .Name }}: `{{ .Value }}` #magic___^_^___line {{- end }} #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Annotations }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Remove (stringSlice \"summary\" \"message\" \"description\" \"runbook_url\") }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if gt (len .) 0 }} #magic___^_^___line #magic___^_^___line #magic___^_^___line ## Additional Annotations:* #magic___^_^___line {{- range .SortedPairs }} #magic___^_^___line • {{ .Name }}: `{{ .Value }}` #magic___^_^___line {{- end }} #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- define \"rancher.text_multiple\" -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line *[GROUP - Details]* #magic___^_^___line #magic___^_^___line #magic___^_^___line One or more alarms in this group have triggered a notification. #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if gt (len .GroupLabels.Values) 0 }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Group Labels:* #magic___^_^___line {{- range .GroupLabels.SortedPairs }} #magic___^_^___line • *{{ .Name }}:* `{{ .Value }}` #magic___^_^___line {{- end }} #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .ExternalURL }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Link to AlertManager:* {{ .ExternalURL }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- range .Alerts }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{ template \"rancher.text_single\" . }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- define \"rancher.text_single\" -}} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Labels.alertname }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *[ALERT - {{ .Labels.alertname }}]* #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- else }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *[ALERT]* #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Labels.severity }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Severity:* `{{ .Labels.severity }}` #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Labels.cluster }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Cluster:* {{ .Labels.cluster }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.summary }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Summary:* {{ .Annotations.summary }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.message }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Message:* {{ .Annotations.message }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.description }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Description:* {{ .Annotations.description }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if .Annotations.runbook_url }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Runbook URL:* <{{ .Annotations.runbook_url }}|:spiral_note_pad:> #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Labels }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Remove (stringSlice \"alertname\" \"severity\" \"cluster\") }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if gt (len .) 0 }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Additional Labels:* #magic___^_^___line {{- range .SortedPairs }} #magic___^_^___line • *{{ .Name }}:* `{{ .Value }}` #magic___^_^___line {{- end }} #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Annotations }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- with .Remove (stringSlice \"summary\" \"message\" \"description\" \"runbook_url\") }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- if gt (len .) 0 }} #magic___^_^___line #magic___^_^___line #magic___^_^___line *Additional Annotations:* #magic___^_^___line {{- range .SortedPairs }} #magic___^_^___line • *{{ .Name }}:* `{{ .Value }}` #magic___^_^___line {{- end }} #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end }} #magic___^_^___line #magic___^_^___line #magic___^_^___line {{- end -}}"` | |
| `kube-prometheus-stack.coreDns.enabled` | bool | `true` | |
| `kube-prometheus-stack.crds.enabled` | bool | `false` | |
| `kube-prometheus-stack.defaultRules.appNamespacesTarget` | string | `".*"` | |
| `kube-prometheus-stack.defaultRules.create` | bool | `true` | |
| `kube-prometheus-stack.defaultRules.rules.alertmanager` | bool | `true` | |
Expand Down Expand Up @@ -432,7 +431,6 @@ available config parameters:
| `kube-prometheus-stack.prometheus.service.type` | string | `"ClusterIP"` | |
| `kube-prometheus-stack.prometheus.serviceAccount.create` | bool | `true` | |
| `kube-prometheus-stack.prometheus.serviceAccount.name` | string | `"rancher-monitoring"` | |
| `kube-prometheus-stack.prometheus.serviceMonitor.bearerTokenFile` | string | `nil` | |
| `kube-prometheus-stack.prometheus.serviceMonitor.interval` | string | `"30s"` | |
| `kube-prometheus-stack.prometheus.serviceMonitor.metricRelabelings` | list | `[]` | |
| `kube-prometheus-stack.prometheus.serviceMonitor.relabelings` | list | `[]` | |
Expand Down Expand Up @@ -560,7 +558,7 @@ available config parameters:
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `hardenedKubelet.clients.useLocalhost` | bool | `true` | |
| `hardenedKubelet.enabled` | bool | `false` | |
| `hardenedKubelet.enabled` | bool | `true` | |
| `hardenedKubelet.metricsPort` | int | `10250` | |

Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
Binary file modified charts/kube-prometheus-stack-58.4.0.tgz
Binary file not shown.
18 changes: 18 additions & 0 deletions hack/chart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# helm dependency update
tarball=$(ls charts/kube-prometheus-stack-*.tgz)
echo "Extracting ${tarball}"
if [ ! -d "charts/kube-prometheus-stack/" ]; then
mkdir -p charts/kube-prometheus-stack/
fi
tar -xzf ${tarball} -C charts/

echo "Deleting CRD from kube-prometheus-stack"
rm -rf charts/kube-prometheus-stack/charts/crd/

echo "Packaging new chart"
helm package charts/kube-prometheus-stack -d charts

echo "Packaging caas-cluster-monitoring"
helm package .
Loading

0 comments on commit 5c02367

Please sign in to comment.