Skip to content

Instantly share code, notes, and snippets.

@partcyborg
partcyborg / .gitlab-ci.yml
Last active June 5, 2024 01:39
Integration Test config and output for TestTerragruntAssumeRoleWebIdentityEnv and TestTerragruntAssumeRoleWebIdentityFile
web_identity_integration_test:
image:
name: golang:1.21.7
id_tokens:
GITLAB_OIDC_TOKEN:
aud: https://gitlab.com
variables:
# integration test variables
AWS_TEST_S3_ASSUME_ROLE: arn:aws:iam::503396375767:role/OrganizationAccountAccessRole
AWS_TEST_S3_IDENTITY_TOKEN_FILE_PATH: /tmp/web-identity-token
@partcyborg
partcyborg / gist:0c9fc57a4d07c66ea01631b9d2fe43e1
Created June 5, 2024 01:22
Integration Test output for TestTerragruntAssumeRoleWebIdentityEnv and TestTerragruntAssumeRoleWebIdentityFile
Running with gitlab-runner 16.1.0~beta.1.ge3b19e73 (e3b19e73)
on shared-gitlab-runner-blue Ay7g_-T4s, system ID: r_WT5X1g1E6GC3
Resolving secrets
00:00
Preparing the "kubernetes" executor
00:00
"CPURequest" overwritten with "4"
"CPULimit" overwritten with "4"
Using Kubernetes namespace: shared-gitlab-runner
Using Kubernetes executor with image golang:1.21.7 ...
@partcyborg
partcyborg / kubernetes_node_taint.log
Created April 12, 2024 20:18
kubernetes_node_taint node not found debug output
mwilder@mwilder-1 ~/tmp/taint-test> TF_LOG=debug terraform plan
2024-04-12T13:18:05.782-0700 [INFO] Terraform version: 1.5.5
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.26.0
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2024-04-12T13:18:05.782-0700 [DEBUG] using github.com/zclconf/go-cty v1.12.2
2024-04-12T13:18:05.782-0700 [INFO] Go runtime version: go1.20.7
2024-04-12T13:18:05.782-0700 [INFO] CLI args: []string{"terraform", "plan"}
2024-04-12T13:18:05.782-0700 [DEBUG] Attempting to open CLI config file: /home/mwilder/.terraformrc
2024-04-12T13:18:05.782-0700 [INFO] Loading CLI configuration from /home/mwilder/.terraformrc
@partcyborg
partcyborg / kubectl_diff_wrapper
Created February 12, 2021 19:56
Render `kubectl diff` in (n|)vim
#!/bin/bash
# To enable this:
# 1) Place this script in your path
# 2) chmod 755 it
# 3) Add `export KUBECTL_EXTERNAL_DIFF=kubectl_diff_wrapper`
# to your shell's rc file
# Set this to "vim" if not using neovim
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@partcyborg
partcyborg / init.vim
Created February 12, 2021 01:26
init.vim (or vimrc)
set encoding=utf-8
" Conditional as this is loaded by oldschool vim too
if exists("&shada")
set shada='10000,f1,<500,:10000,@1000,h,%100
endif
set nocompatible
filetype plugin indent on
" .aidl files are java
au BufRead,BufNewFile *.aidl set filetype=java
@partcyborg
partcyborg / minpac.vim
Created February 12, 2021 01:21
minpac.vim
packadd minpac
call minpac#init({'progress_open': 'none', 'verbose': 2})
call minpac#add('k-takata/minpac', {'type': 'opt'})
call minpac#add('tpope/vim-fugitive')
call minpac#add('vim-airline/vim-airline')
call minpac#add('vim-airline/vim-airline-themes')
call minpac#add('junegunn/vim-easy-align')
call minpac#add('bling/vim-bufferline')
call minpac#add('ekalinin/Dockerfile.vim')
call minpac#add('kana/vim-textobj-user')