- Download deploy repo
git clone https://github.com/stolostron/deploy.git
- Create the nuke.sh script
cd deploy
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 |
quay.io/ocpmetal/s3server:latest | |
quay.io/ocpmetal/assisted-service:latest | |
quay.io/ocpmetal/assisted-installer:latest | |
quay.io/ocpmetal/assisted-installer-agent:latest | |
quay.io/ocpmetal/ocp-metal-ui:latest | |
quay.io/ocpmetal/bm-inventory:latest | |
quay.io/ocpmetal/assisted-installer-controller:latest | |
quay.io/ocpmetal/assisted-iso-create:latest | |
quay.io/ocpmetal/ocp-metal-ui-tests:latest | |
quay.io/ocpmetal/postgresql-12-centos7:latest |