Skip to content

Instantly share code, notes, and snippets.

View dflemstr's full-sized avatar

David Flemström dflemstr

View GitHub Profile
@dflemstr
dflemstr / kubeval.ts
Created March 30, 2020 16:13
A kpt function that wraps kubeval and emits validation errors as kpt errors
import {Configs, KubernetesObject, KubernetesObjectError, MultiConfigError} from 'kpt-functions';
import {ChildProcess, spawn} from 'child_process';
import {Writable} from "stream";
const SCHEMA_LOCATION = 'schema_location';
const ADDITIONAL_SCHEMA_LOCATIONS = 'additional_schema_locations';
const IGNORE_MISSING_SCHEMAS = 'ignore_missing_schemas';
const SKIP_KINDS = 'skip_kinds';
const STRICT = 'strict';
#include <RGBmatrixPanel.h>
#include <SPI.h>
#include <WiFi101.h>
#include <WiFi101OTA.h>
#define CLK 13
#define OE 1 // TX
#define LAT 0 // RX
#define A A5
#define B A4
--- iampolicy-1.13.1.yaml 2020-08-14 14:19:42.352668574 +0200
+++ iampolicy-1.17.0.yaml 2020-08-14 14:41:04.743959061 +0200
@@ -1,147 +1,183 @@
-apiVersion: apiextensions.k8s.io/v1beta1
+apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
- cnrm.cloud.google.com/version: 1.17.0
- creationTimestamp: null