Skip to content

Instantly share code, notes, and snippets.

@nnewc
Created April 17, 2026 18:45
Show Gist options
  • Select an option

  • Save nnewc/d7577afa9b5d32fd6f51ebc06be91b02 to your computer and use it in GitHub Desktop.

Select an option

Save nnewc/d7577afa9b5d32fd6f51ebc06be91b02 to your computer and use it in GitHub Desktop.
Airgap update of SUSE observability
#!/bin/bash
OBSERVABILITY_CHART_NAME="suse-observability"
OBSERVABILITY_AGENT_CHART_NAME="suse-observability-agent"
OBSERVABILITY_VALUES_CHART_NAME="suse-observability-values"
helm repo update > /dev/null
OBSERVABILITY_VERSION=$(helm search repo $OBSERVABILITY_CHART_NAME | awk 'NR==2 {print $2}')
AGENT_VERSION=$(helm search repo $OBSERVABILITY_AGENT_CHART_NAME | awk 'NR==2 {print $2}')
VALUES_VERSION=$(helm search repo $OBSERVABILITY_VALUES_CHART_NAME | awk 'NR==2 {print $2}')
cat << EOF >> observability-manifest2.yaml
---
apiVersion: content.hauler.cattle.io/v1
kind: Charts
metadata:
name: observability-charts
spec:
charts:
- name: suse-observability
repoURL: https://charts.rancher.com/server-charts/prime/suse-observability
version: $OBSERVABILITY_VERSION
- name: suse-observability-agent
repoURL: https://charts.rancher.com/server-charts/prime/suse-observability
version: $AGENT_VERSION
- name: suse-observability-values
repoURL: https://charts.rancher.com/server-charts/prime/suse-observability
version: $VALUES_VERSION
---
apiVersion: content.hauler.cattle.io/v1
kind: Images
metadata:
name: observability-images
spec:
images:
$(./o11y-get-images.sh -f $OBSERVABILITY_CHART_NAME-$OBSERVABILITY_VERSION.tgz | sed '/rgcr/d' | sed 's/^/ - name: /')
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment