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 ( | |
"bytes" | |
"fmt" | |
"go/ast" | |
"go/format" | |
"go/parser" | |
"go/token" | |
"log" |
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
# ------------------------------------------------------------------------------ | |
# Cargo Build Stage | |
# ------------------------------------------------------------------------------ | |
FROM rust:latest as cargo-build | |
ARG APP=blah | |
ENV APP=$APP | |
ENV USER=root |
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" | |
"os" | |
"github.com/go-logr/logr" | |
"github.com/go-logr/zapr" | |
"github.com/sanity-io/litter" | |
"github.com/spf13/pflag" |
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
apiVersion: stressed.jpang.dev/v1alpha1 | |
kind: Test | |
metadata: | |
name: test-sample | |
namespace: default | |
spec: | |
replicas: 1 | |
image: jpangms/stress-ng:latest | |
nodeSelector: | |
kubernetes.io/os: linux |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: &name debug | |
labels: | |
app: *name | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: apply | |
name: apply | |
namespace: default | |
spec: | |
replicas: 1 |
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
// // Build and apply kustomized objects | |
// if obj.Spec.Kustomizations != nil { | |
// // Initialize for kustomization | |
// // ace: can't use memfs until git cloner is fixed upstream | |
// // ace: real fs + git exec used here https://github.com/kubernetes-sigs/kustomize/blob/186df6f7c8aa28774be8f54fa000bf99e95642d6/api/filesys/confirmeddir.go#L20-L31 | |
// fs := filesys.MakeFsOnDisk() | |
// koptions := krusty.MakeDefaultOptions() | |
// kustomizer := krusty.MakeKustomizer(fs, koptions) | |
// // Potentially we may have many kustomizations to apply. |
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
/* | |
Copyright 2020 Alexander Eldeib. | |
*/ | |
package main | |
import ( | |
"flag" | |
"os" |
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
[global] | |
name=fio-rand-RW | |
ioengine=libaio | |
rw=randrw | |
rwmixread=100 | |
bs=4K | |
direct=1 | |
time_based=1 | |
runtime=60 | |
iodepth=64 |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: &name debug2 | |
labels: | |
app: *name | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |