Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""Watch a Kubernetes Secret for changes and trigger runner reconfiguration.
Designed to run as a non-root systemd user service inside a KubeVirt VM.
Uses the official Kubernetes Python client.
Configuration is via environment variables (see defaults below).
"""
import base64
['jsoncpp-epel', 'llhttp9.1', 'rust-annotate-snippets0.10', 'rust-annotate-snippets0.6', 'rust-ansi_term0.11', 'rust-bytes0.4', 'rust-futures0.1', 'rust-krata-tokio-tar', 'rust-password-hash0.4', 'rust-pbkdf2_0.11', 'rust-quick-xml0.34', 'rust-rand0.4', 'rust-tokio-io', 'rust-yansi0.5', 'selinux-policy-epel', 'wolfssl', 'amavisd-new', 'bashtop', 'convert2rhel', 'flatpak-epel', 'flintqs', 'fts-rest', 'fwupd-epel', 'git-subrepo', 'golang-github-prometheus-node-exporter', 'golang-github-prometheus-node_exporter', 'gradio', 'infoblox-client', 'ktoblzcheck', 'libpinyin-epel', 'librem', 'libselinux-epel', 'mate-optimus', 'memleax', 'mobile-broadband-provider-info-epel', 'pcllib', 'pidgin-groupchat-typing-notifications', 'pidgin-toobars', 'purple-discord', 'purple-libsteam', 'purple-matrix', 'purple-skypeweb', 'pycairo-epel', 'python39-zstd-epel', 'python3-pyxattr', 'python-asynctest', 'python-FireflyAlgorithm', 'python-pytelegrambotapi', 'python-sphinx-epel', 'rubygem-qpid_proton', 'rust-eza', 'singularity', 'syste
import koji
import requests
profile = koji.get_profile_module("koji")
koji_session = profile.ClientSession(profile.config.server)
koji_session.opts["authtype"] = profile.config.authtype
koji_session.gssapi_login()
def get_retired_packages(branch):
intersection: ['rawhide']
branch: rawhide, package: ant-antlr3, tag: f45
Identified as fully blocked: package: ant-antlr3
Getting list of branches for project antic
intersection: ['rawhide']
branch: rawhide, package: antic, tag: f45
Identified as fully blocked: package: antic
Getting list of branches for project antimicro
intersection: ['rawhide']
branch: rawhide, package: antimicro, tag: f45