- Download deploy repo
 
git clone https://github.com/stolostron/deploy.git
- Create the nuke.sh script
 
cd deploy
| # Makefile for OIDC Tools | |
| .PHONY: help build clean test install run-example | |
| # Variables | |
| BINARY_NAME=oidc-tools | |
| VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev") | |
| help: ## Show this help | |
| @echo "OIDC Tools - Tools for managing OIDC documents in Hypershift HostedClusters" | 
| apiVersion: mirror.openshift.io/v1alpha2 | |
| kind: ImageSetConfiguration | |
| storageConfig: | |
| registry: | |
| imageURL: registry.hypershiftbm.lab:5000/openshift/release/metadata:latestv2 | |
| mirror: | |
| platform: | |
| channels: | |
| - name: candidate-4.17 | |
| minVersion: 4.17.0-ec.1 | 
| #!/bin/bash | |
| function identifyImages() { | |
| export KUBECONFIG=/root/.kcli/clusters/hub-ipv6/auth/kubeconfig | |
| > imagesToMirror.txt | |
| IFS=$'\n' | |
| for image in $(oc get pod -A -o yaml | grep "Back-off pulling image"); do | |
| extractedImage=$(echo "$image" | grep -o '"[^"]*"') | |
| finalImage=$(echo "$extractedImage" | cut -d '"' -f 2) | |
| echo $finalImage >> $filename | 
git clone https://github.com/stolostron/deploy.git
cd deploy
| package main | |
| import ( | |
| "fmt" | |
| corev1 "k8s.io/api/core/v1" | |
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| ) | |
| type labelChecker struct { | 
| apiVersion: hypershift.openshift.io/v1beta1 | |
| kind: HostedCluster | |
| metadata: | |
| creationTimestamp: null | |
| name: sample-hosted | |
| namespace: clusters | |
| spec: | |
| autoscaling: {} | |
| controllerAvailabilityPolicy: SingleReplica | |
| dns: | 
| #!/usr/bin/env python3 | |
| import RPi.GPIO as GPIO | |
| import time | |
| from flask import Flask | |
| from flask_restful import Resource, Api | |
| class LuxaOS(Resource): | |
| def put(self, state): | |
| activateLuxaOS(state) | 
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfig | |
| metadata: | |
| labels: | |
| machineconfiguration.openshift.io/role: master | |
| name: egress-limit-ssh | |
| spec: | |
| config: | |
| ignition: | |
| version: 3.2.0 | 
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfig | |
| metadata: | |
| labels: | |
| machineconfiguration.openshift.io/role: worker | |
| name: network-manager-extra-conf-worker | |
| spec: | |
| config: | |
| ignition: | |
| version: 3.1.0 |