Skip to content

Instantly share code, notes, and snippets.

View jvanz's full-sized avatar
🐞
Releasing next bug

José Guilherme Vanz jvanz

🐞
Releasing next bug
View GitHub Profile
@jvanz
jvanz / review.md
Last active September 20, 2023 19:02
TOC 2023 annual review

Kubewarden 2023 Annual Review

Kubewarden is a Kubernetes Dynamic Admission Controller that validates incoming requests against WebAssembly policies. The policies can be developed in any programming language that generates WebAssembly binaries.

DevStats

The Kubewarden devstats page and dashboard are found here

Kubewarden

Kubewarden SDKs feature parity

  • Description: Kubewarden currently allow policy writers to use 4 different programming languages. Therefore, there are 4 SDKs to be maintained. However, they lack feature parity. In other words, some SDK have feature that have features not available in other SDKs. It's necessary to map what are the feature missing in each one of the SDKs and implement some of them.
  • Expected Outcome: Map all the feature missing in all SKDs and implement some of the missing features
  • Recommended Skills: Rust, Go, DotNet, Kubernetes (is a plus), Swift( is a plus)
  • Mentor(s): José Guilherme Vanz (@jvanz), Victor Cuadrado Juan (@viccuad)
  • Upstream Issue: kubewarden/kubewarden-controller#392
@jvanz
jvanz / psp-migration.sh
Last active July 5, 2022 12:14
Kubewarden PSP migration script
#!/usr/bin/env sh
set -e
PSP_MIGRATION_TOOL_VERSION=v1.33.351
LOCAL_PSP_MIGRATION_TOOL_PATH=psp-migration
DRY_RUN="false"
HELP="false"
OUTPUT_FILE="policies.yaml"
FORCE="false"
@jvanz
jvanz / gist:f262764ac1dc7e2d4b7f5d06bd8f9169
Created December 27, 2021 18:47
Kubecontroller issue 110
v1.19.16-k3s1 v1.20.12-k3s1 v1.20.13-k3s1 v1.20.14-k3s1 v1.21.6-k3s1 v1.21.7-k3s1 v1.21.8-k3s1 v1.22.3-k3s1 v1.22.4-k3s1 v1.22.5-k3s1
###################################################
##### Testing v1.19.16-k3s1 ####
###################################################
k3d cluster delete testing-cert-manager-helm-chart
INFO[0000] Deleting cluster 'testing-cert-manager-helm-chart'
INFO[0000] Deleted k3d-testing-cert-manager-helm-chart-serverlb
INFO[0001] Deleted k3d-testing-cert-manager-helm-chart-agent-0
INFO[0002] Deleted k3d-testing-cert-manager-helm-chart-server-0
INFO[0002] Deleting image volume 'k3d-testing-cert-manager-helm-chart-images'
@jvanz
jvanz / main.cc
Last active July 9, 2018 19:49
C array sample
#include <iostream>
using namespace std;
void method(int vec[], int size)
{
for (auto i = 0; i < size; ++i) {
vec[i] = i;
}
}
@jvanz
jvanz / weather.py
Last active January 12, 2017 00:49
#!/usr/bin/env python3
import vim
from requests import get
OPEN_WEATHER_API_KEY = "your Open Weather API key"
def get_weather():
"""
Get weather from each line in the buffer
$git commit -a -m "Rename foo() function to xpto()"
[master c12c40a] Rename foo() function to xpto()
1 file changed, 3 insertions(+), 3 deletions(-)
$git log
commit c12c40a83fe5295bc84ca0928182881426d9d752
Author: José Guilherme Vanz &lt;guilherme.sft@gmail.com&gt;
Date: Tue Jan 26 22:48:50 2016 -0200
Rename foo() function to xpto()
$git log
commit 8f1b1bc364a8e5ea83ab43ed95c0de026263561d
Author: José Guilherme Vanz &lt;guilherme.sft@gmail.com&gt;
Date: Tue Jan 26 22:43:05 2016 -0200
Changes in bar() function
commit aba1cbab0b427a9e6713f2fe563e2b14db6e51cd
Author: José Guilherme Vanz &lt;guilherme.sft@gmail.com&gt;
Date: Tue Jan 26 20:45:42 2016 -0200
Stage this hunk [y,n,q,a,d,/,K,j,J,g,e,?]? n
@@ -13,7 +13,8 @@
{
printf("Hello, it's foo function here\n");
}
void bar(int x)
{
+ printf("--------------------------------------------------");
printf("Hello, it's bar function here. Wow! You send me a %d... it's such a number! ;)\n", x);
Stage this hunk [y,n,q,a,d,/,K,j,J,g,e,?]? n
@@ -9,10 +9,10 @@
bar(100);
}
-void foo()
+void xpto()
{
printf("Hello, it's foo function here\n");
}