This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: rook-systemic-prs | |
| description: Drive a systemic/sweeping change across the rook (github.com/rook/*) repo as a series of small, well-contained, independently reviewable PRs. Use when the user wants to run a campaign of incremental changes across the rook codebase — dead-code elimination, lint/staticcheck cleanups, API migrations, renames, import or dependency hygiene — by fanning out subagents to scan and prepare changes, excluding work already covered by open PRs, and basing everything on upstream master. Triggers include: "sweep the rook repo for X", "break this into small PRs", "dead code elimination campaign", "iteratively clean up rook", "find another N PRs worth of <change>". | |
| --- | |
| # Rook systemic change → small PRs | |
| A repeatable loop for applying a *systemic* change (one rule applied in many | |
| places) to a `github.com/rook/*` repo, delivered as many **small, isolated, | |
| independently mergeable PRs** instead of one mega-PR. Optimized for **aggressive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MON (5 total): | |
| READY: | |
| VERSION COUNT PCT | |
| v1.13.10 5 100.0% | |
| MGR (2 total): | |
| READY: | |
| VERSION COUNT PCT | |
| v1.13.10 2 100.0% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _GNU_SOURCE | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <signal.h> | |
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/mman.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _GNU_SOURCE | |
| #include <errno.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/mman.h> | |
| #include <sys/stat.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~ $ grype quay.io/ceph/ceph:v18.2.4 | |
| ⠙ Loading image ━━━━━━━━━━━━━━━━━━━━ [requesting image from docker] quay.io/ ⠹ Loading image ━━━━━━━━━━━━━━━━━━━━ [requesting image from docker] quay.io/ ⠸ Loading image ━━━━━━━━━━━━━━━━━━━━ [requesting image from docker] quay.io/ ⠼ Loading image ━━━━━━━━━━━━━━━━━━━━ [requesting image from docker] quay.io/ ⠴ Loading image ━━━━━━━━━━━━━━━━━━━━ [requesting image from docker] quay.io/ ⠦ Loading image ━━━━━━━━━━━━━━━━━━━━ [requesting image from docker] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| version: "2" | |
| linters: | |
| default: none | |
| enable: | |
| - errcheck | |
| - govet | |
| - gosec | |
| - ineffassign | |
| - staticcheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export CRI_CONFIG_FILE=/var/lib/rancher/rke2/agent/etc/crictl.yaml | |
| ... | |
| [root@yagan03 rancher]# /var/lib/rancher/rke2/bin/crictl exec 49cb8ba0d8373 etcdctl --cert /var/lib/rancher/rke2/server/tls/etcd/server-client.crt --key /var/lib/rancher/rke2/server/tls/etcd/server-client.key --cacert /var/lib/rancher/rke2/server/tls/etcd/server-ca.crt member list | |
| 23fe8fb09d160c69, started, yagan01-60882631, https://139.229.180.1:2380, https://139.229.180.1:2379, false | |
| 56d45c007a1663e9, started, yagan04-8f0b5969, https://139.229.180.4:2380, https://139.229.180.4:2379, false | |
| 73498b2b56b52d54, started, yagan02-4a05f740, https://139.229.180.2:2380, https://139.229.180.2:2379, false | |
| 7c4b2fb7e89203b5, started, yagan03-01987620, https://139.229.180.80:2380, https://139.229.180.3:2379, false | |
| c35e2bc4a7d42c48, started, yagan05-39f67a83, https://139.229.180.5:2380, https://139.229.180.5:2379, false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # WARNING: This operation is destructive and will overwrite data on the device. | |
| # Ensure you really want to overwrite these drives. | |
| for dev in $(lsblk -dn -o NAME | grep '^nvme'); do | |
| # Capture parted output (quiet mode) and return code | |
| parted_output=$(parted -s "/dev/$dev" print 2>&1) | |
| parted_status=$? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Find the boot entry number that matches the given string | |
| BOOT_ENTRY=$(efibootmgr | grep "UEFI PXE: IPv4 Intel(R) Ethernet Controller X550" | head -n 1 | awk '{print $1}' | sed 's/Boot//;s/\*//') | |
| # Check if a matching boot entry was found | |
| if [[ -z "$BOOT_ENTRY" ]]; then | |
| echo "No matching UEFI PXE boot entry found!" | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pvs | grep ceph | awk '{print $1}' | xargs -L1 /sbin/sgdisk --zap-all |
NewerOlder