curl -s https://gist.githubusercontent.com/fl64/a72b15b5e8ff169f34162d58794bfdd9/raw/dvp-migrate-cloudinit-secret.sh | bash -s -- env-1b4119-testcases env-1b4119-cloud-init-with-mounted-vi-pvc
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
from flask import Flask, request, jsonify | |
from flask_cors import CORS | |
import psycopg2 | |
import os | |
app = Flask(__name__) | |
CORS(app, resources={r"/api/*": {"origins": "https://demo.pt.dvp.flant.dev"}}) | |
# Настройки подключения к PostgreSQL | |
DB_HOST = os.getenv('DB_HOST', 'db.demo-db.svc.cluster.local') |
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 | |
# Function to display usage instructions | |
usage() { | |
echo "Usage: nsenter.sh -n|--namespace <namespace> -p|--pod <pod-name> [-c|--container <container-name>] [-t|--nsenter-namespaces <namespaces>] [-u|--ssh-user <user>] [-h|--ssh-host <host>] [-x|--node-name-prefix <prefix>] -- <command> [args...]" | |
echo "Options:" | |
echo " -n, --namespace Namespace of the pod" | |
echo " -p, --pod Name of the pod" | |
echo " -c, --container Name of the container (optional; default is the first container)" | |
echo " -t, --nsenter-namespaces Namespaces for nsenter (optional; overrides defaults, e.g., 'mnt,uts') net namespace is used by deafult" |
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 | |
NAMESPACE="env-1b4119-testcases" | |
SCRIPT_TEMPLATE=' | |
for VM in %%VMS%%; do | |
VM_NAME=$(echo ${VM} | cut -d% -f 1); | |
VM_NS=$(echo ${VM} | cut -d% -f 2); | |
VM_IP=$(echo ${VM} | cut -d% -f 3); | |
VM_NODE=$(echo ${VM} | cut -d% -f4); |
how to run
Usage example:
curl -s https://gist.githubusercontent.com/fl64/75a5904f9bbadcb3d5a12c3dec3c7708/raw/vm-debug-bundle.sh | bash -s -- -n env-1b4119-testcases -v env-1b4119-vm-hotplug-iso-vi-cr-2 --bundle-path . --keep --no-tar
Params:
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 | |
NAMESPACE="testcases" | |
SCRIPT_TEMPLATE=' | |
for VM in %%VMS%%; do | |
VM_NAME=$(echo ${VM} | cut -d% -f 1); | |
VM_IP=$(echo ${VM} | cut -d% -f 2); | |
VM_NODE=$(echo ${VM} | cut -d% -f 3); |
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 | |
data=$(date $T) | |
echo "content-type: text/plain" | |
echo "content-length: $(echo ${data} | wc -c)" | |
echo | |
echo ${data} |
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
let s:gb.dark0_hard = ['#1d2021', 234] " 29-32-33 | |
let s:gb.dark0 = ['#282828', 235] " 40-40-40 | |
let s:gb.dark0_soft = ['#32302f', 236] " 50-48-47 | |
let s:gb.dark1 = ['#3c3836', 237] " 60-56-54 | |
let s:gb.dark2 = ['#504945', 239] " 80-73-69 | |
let s:gb.dark3 = ['#665c54', 241] " 102-92-84 | |
let s:gb.dark4 = ['#7c6f64', 243] " 124-111-100 | |
let s:gb.dark4_256 = ['#7c6f64', 243] " 124-111-100 | |
let s:gb.gray_245 = ['#928374', 245] " 146-131-116 |
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
status: | |
stats: | |
# Нужно для отслеживания перехода из фазы в фазу | |
phasesTransitions: | |
- phase: Pending | |
timestamp: "2024-06-19T09:39:56Z" | |
- phase: Starting | |
timestamp: "2024-06-19T09:39:56Z" | |
launchTimeDuration: | |
# |-----> |
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
sizingPolicies: | |
- cores: | |
min: 1 | |
max: 4 | |
memory: | |
min: 1G | |
max: 4G | |
dedicatedCores: [false] | |
coreFractions: [5, 10, 20, 50, 100] | |
- cores: |
NewerOlder