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 | |
| # Copyright The Helm Authors. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.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
| ❯ pwd | |
| /Users/dsrinivas/go/src/k8s.io/k8s.io/apps/k8s-io | |
| ❯ ./validate-nginx.sh | |
| Extracting nginx.conf from ConfigMap... | |
| Extracted nginx.conf to: /var/folders/2x/b5xl9skd2fl0l6tj54fjxh540000gp/T/tmp.tAdbqYOEXU/nginx.conf | |
| Config file size: 380 lines | |
| Validating nginx configuration using Docker... | |
| /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration | |
| /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ |
Tools for analyzing Kubernetes API coverage from E2E test audit logs.
Copy the two python scripts from https://github.com/kubernetes/test-infra/tree/master/experiment/audit to your local directory
The example below uses kubernetes/kubernetes#133132 which is a PR to add a new DRA test to conformance.
- To create the vm:
limactl start containerd-ubuntu.yaml --yes
- To get into the vm:
limactl shell --workdir /home/lima/containerd containerd-ubuntu
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
| package main | |
| import ( | |
| "fmt" | |
| "go/parser" | |
| "go/token" | |
| "os" | |
| "path/filepath" | |
| "sort" | |
| "strings" |
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 | |
| cat > ubuntu-pod.json <<EOF | |
| { | |
| "metadata": { | |
| "name": "ubuntu-sandbox", | |
| "namespace": "default", | |
| "attempt": 1, | |
| "uid": "ubuntu-pod-uid" | |
| }, |
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
| # Create a fresh new Ubuntu 24.04 VM and run the commands below: | |
| # Install a bunch of stuff we need | |
| apt update && apt -y install gperf sudo htop psutils build-essential pkg-config git wget unzip | |
| # Clone what we need | |
| git clone https://github.com/kubernetes/kubernetes $HOME/go/src/k8s.io/kubernetes | |
| git clone https://github.com/containerd/containerd $HOME/go/src/github.com/containerd/containerd | |
| # Latest golang |
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 | |
| # Default repository and job name | |
| REPO="google/cadvisor" | |
| JOB_NAME="pull-cadvisor-e2e" | |
| # Function to display usage | |
| usage() { | |
| echo "Usage: $0 -p <PR_NUMBER> [-j <JOB_NAME>] [-s <SHA>] [-r <REPOSITORY>]" | |
| echo "Example: $0 -p 3615" |
NewerOlder