Skip to content

Instantly share code, notes, and snippets.

@RamLavi
RamLavi / linter_steps.sh
Created May 26, 2025 08:37
Script to add linter gradually.
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Linter Toggle Script for golangci-lint (.golangci.yml)
#
# This script automates the process of verifying each individual linter
# listed under the `linters -> enable` section in a golangci-lint YAML config.
#
# It performs the following steps:
# 1. Parses all linters listed (even commented ones) in the `enable:` section.
@RamLavi
RamLavi / check_known_flakes.sh
Last active January 23, 2025 08:29
OVNK flake finder
#!/usr/bin/env bash
set -Eeuo pipefail
################################################################################
# Usage: ./check_flakes.sh <INPUT_FILE> [<GITHUB_TOKEN>]
#
# Description:
# Reads each line from <INPUT_FILE>. If a line includes "[CHECK]" then:
# 1. Extracts the text after "[CHECK]" (the test name).
# 2. Queries GitHub for an existing kind/ci-flake issue containing that test
@RamLavi
RamLavi / configure-primary-udn-dev-preview.txt
Last active July 10, 2025 10:10
primary UDN interface on VMs example (Passt binding pluging)
# Overview
The following depict example manifests of two scenarios of communication between VMs connected via primay-UDN:
1. VMs under the same namespace
2. VMs under different namespaces
## Prerequisits
- CNV 4.17 cluster.
- oc tool
# Configuring priamry-UDN on a CNV cluster