Skip to content

Instantly share code, notes, and snippets.

View frobware's full-sized avatar

Andrew McDermott frobware

  • Red Hat
  • UK
  • 08:44 (UTC +01:00)
View GitHub Profile
@frobware
frobware / rebrand.patch
Created October 2, 2025 11:01
rebranding
diff --git a/bundle/manifests/bpfman-operator.clusterserviceversion.yaml b/bundle/manifests/bpfman-operator.clusterserviceversion.yaml
index 7120fc07..287d2b44 100644
--- a/bundle/manifests/bpfman-operator.clusterserviceversion.yaml
+++ b/bundle/manifests/bpfman-operator.clusterserviceversion.yaml
@@ -993,19 +993,21 @@ metadata:
]
capabilities: Basic Install
categories: OpenShift Optional
- containerImage: quay.io/bpfman/bpfman-operator:latest
- createdAt: "2025-06-03T12:16:50Z"
@frobware
frobware / rebrand.patch
Last active October 2, 2025 11:19
rebranding
diff --git a/bundle/manifests/bpfman-operator.clusterserviceversion.yaml b/bundle/manifests/bpfman-operator.clusterserviceversion.yaml
index 7120fc07..f8e753ad 100644
--- a/bundle/manifests/bpfman-operator.clusterserviceversion.yaml
+++ b/bundle/manifests/bpfman-operator.clusterserviceversion.yaml
@@ -993,19 +993,21 @@ metadata:
]
capabilities: Basic Install
categories: OpenShift Optional
- containerImage: quay.io/bpfman/bpfman-operator:latest
- createdAt: "2025-06-03T12:16:50Z"
@frobware
frobware / README.md
Last active September 16, 2025 11:36

Konflux Image Nudge Files

This directory contains placeholder files that Konflux populates with image references during the build process. These files are used as "nudge files" to trigger rebuilds of dependent components when base images are updated.

Understanding the Nudge System

The Konflux nudge system coordinates component rebuilds when dependencies change. The terminology can be confusing, so here's the actual flow:

@frobware
frobware / 2025.sh
Created September 16, 2025 09:10
Not desperation - pragmatism.
#!/bin/bash
# Generate Containerfile.bundle.openshift with current VERSION
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_root="$(cd "$script_dir/../.." && pwd)"
version_file="${repo_root}/VERSION"
output_file="${repo_root}/Containerfile.bundle.openshift"
if [ ! -f "$version_file" ]; then
@frobware
frobware / bpfman-dev-container.sh
Created August 20, 2025 13:09
Create container for running bpfman in dev
#!/usr/bin/env bash
# bpfman-dev-container.sh
#
# Minimal, distrobox-free dev container with Nix mounts and sane TTY.
# /run and /tmp are tmpfs. Nix mounts only if /nix/store exists. Works
# with docker (and maybe with podman).
set -euo pipefail
Catalog: Red Hat Operators (redhat-operators)
Packages: 1
└── Package: netobserv-operator
Publisher: Red Hat
Default Channel: stable
├── Channel: stable (Current: network-observability-operator.v1.9.0)
│ ├── [OK] Bundle: network-observability-operator.v1.9.0 (v1.9.0)
│ │ >>> CREATED: 2025-06-27T08:03:00
│ │ >>> RELATED IMAGES:
#! /usr/bin/env bash
set -eu
# https://ostechnix.com/import-qcow2-into-proxmox/
storage=local-zfs
vmid=9115
image=Fedora-Cloud-Base-Generic-41-1.4.x86_64.qcow2
name=fedora-41-template
@frobware
frobware / s390.log
Created February 14, 2025 17:17
s390 cross-build
#0 building with "default" instance using docker driver
#1 [internal] load build definition from Containerfile.cross-build
#1 transferring dockerfile: 1.83kB done
#1 DONE 0.0s
#2 [internal] load metadata for docker.io/library/rust:latest
#2 ...
#3 [internal] load metadata for docker.io/library/debian:bullseye-slim
@frobware
frobware / wait.go
Created January 9, 2025 14:18
waitForDeploymentCompleteAndNoOldPods
//go:build e2e
// +build e2e
package e2e
import (
"context"
"fmt"
"testing"
"time"
@frobware
frobware / cmd-key-happy.swift
Created January 3, 2025 09:44
cmd-key-happy in Swift
import Cocoa
import CoreGraphics
import Foundation
class CmdKeyHappy {
func cleanup() {
print("Cleaning up CmdKeyHappy...")
for (pid, tap) in tapMap {
print("Removing tap for PID: \(pid)")
CFMachPortInvalidate(tap)