Skip to content

Commit

Permalink
Add github action to update dependencies (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall authored Sep 11, 2023
1 parent dead603 commit 10db9d8
Show file tree
Hide file tree
Showing 7 changed files with 473 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/configs/updatecli.d/grafana-agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Bump dependency "grafana-agent" for Helm chart "k8s-monitoring"
sources:
grafana-agent:
name: Get latest "grafana-agent" Helm chart version
kind: helmchart
spec:
name: grafana-agent
url: https://grafana.github.io/helm-charts
versionfilter:
kind: semver
pattern: '*'
conditions:
grafana-agent:
name: Ensure Helm chart dependency "grafana-agent" is specified
kind: yaml
spec:
file: charts/k8s-monitoring/Chart.yaml
key: $.dependencies[0].name
value: grafana-agent
disablesourceinput: true
targets:
grafana-agent:
name: Bump Helm chart dependency "grafana-agent" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[0].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: grafana-agent
grafana-agent-logs:
name: Bump Helm chart dependency "grafana-agent-logs" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[1].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: grafana-agent
31 changes: 31 additions & 0 deletions .github/configs/updatecli.d/kube-state-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump dependency "kube-state-metrics" for Helm chart "k8s-monitoring"
sources:
kube-state-metrics:
name: Get latest "kube-state-metrics" Helm chart version
kind: helmchart
spec:
name: kube-state-metrics
url: https://prometheus-community.github.io/helm-charts
versionfilter:
kind: semver
pattern: '*'
conditions:
kube-state-metrics:
name: Ensure Helm chart dependency "kube-state-metrics" is specified
kind: yaml
spec:
file: charts/k8s-monitoring/Chart.yaml
key: $.dependencies[2].name
value: kube-state-metrics
disablesourceinput: true
targets:
kube-state-metrics:
name: Bump Helm chart dependency "kube-state-metrics" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[2].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: kube-state-metrics

32 changes: 32 additions & 0 deletions .github/configs/updatecli.d/node-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Bump dependency "prometheus-node-exporter" for Helm chart "k8s-monitoring"
sources:
prometheus-node-exporter:
name: Get latest "prometheus-node-exporter" Helm chart version
kind: helmchart
spec:
name: prometheus-node-exporter
url: https://prometheus-community.github.io/helm-charts
versionfilter:
kind: semver
pattern: '*'

conditions:
prometheus-node-exporter:
name: Ensure Helm chart dependency "prometheus-node-exporter" is specified
kind: yaml
spec:
file: charts/k8s-monitoring/Chart.yaml
key: $.dependencies[3].name
value: prometheus-node-exporter
disablesourceinput: true

targets:
prometheus-node-exporter:
name: Bump Helm chart dependency "prometheus-node-exporter" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[3].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: prometheus-node-exporter
30 changes: 30 additions & 0 deletions .github/configs/updatecli.d/opencost.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bump dependency "opencost" for Helm chart "k8s-monitoring"
sources:
opencost:
name: Get latest "opencost" Helm chart version
kind: helmchart
spec:
name: opencost
url: https://opencost.github.io/opencost-helm-chart
versionfilter:
kind: semver
pattern: '*'
conditions:
opencost:
name: Ensure Helm chart dependency "opencost" is specified
kind: yaml
spec:
file: charts/k8s-monitoring/Chart.yaml
key: $.dependencies[6].name
value: opencost
disablesourceinput: true
targets:
opencost:
name: Bump Helm chart dependency "opencost" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[6].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: opencost
30 changes: 30 additions & 0 deletions .github/configs/updatecli.d/prometheus-operator-crds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bump dependency "prometheus-operator-crds" for Helm chart "k8s-monitoring"
sources:
prometheus-operator-crds:
name: Get latest "prometheus-operator-crds" Helm chart version
kind: helmchart
spec:
name: prometheus-operator-crds
url: https://prometheus-community.github.io/helm-charts
versionfilter:
kind: semver
pattern: '*'
conditions:
prometheus-operator-crds:
name: Ensure Helm chart dependency "prometheus-operator-crds" is specified
kind: yaml
spec:
file: charts/k8s-monitoring/Chart.yaml
key: $.dependencies[4].name
value: prometheus-operator-crds
disablesourceinput: true
targets:
prometheus-operator-crds:
name: Bump Helm chart dependency "prometheus-operator-crds" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[4].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: prometheus-operator-crds
30 changes: 30 additions & 0 deletions .github/configs/updatecli.d/windows-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bump dependency "prometheus-windows-exporter" for Helm chart "k8s-monitoring"
sources:
prometheus-windows-exporter:
name: Get latest "prometheus-windows-exporter" Helm chart version
kind: helmchart
spec:
name: prometheus-windows-exporter
url: https://prometheus-community.github.io/helm-charts
versionfilter:
kind: semver
pattern: '*'
conditions:
prometheus-windows-exporter:
name: Ensure Helm chart dependency "prometheus-windows-exporter" is specified
kind: yaml
spec:
file: charts/k8s-monitoring/Chart.yaml
key: $.dependencies[5].name
value: prometheus-windows-exporter
disablesourceinput: true
targets:
prometheus-windows-exporter:
name: Bump Helm chart dependency "prometheus-windows-exporter" for Helm chart "k8s-monitoring"
kind: helmchart
spec:
file: Chart.yaml
key: $.dependencies[5].version
name: charts/k8s-monitoring
versionincrement: none
sourceid: prometheus-windows-exporter
Loading

0 comments on commit 10db9d8

Please sign in to comment.