Skip to content

Instantly share code, notes, and snippets.

View 100mik's full-sized avatar

Soumik Majumder 100mik

View GitHub Profile
#@ load("@ytt:data", "data")
#@ if/end data.values.configFileContents.defaultHttpVersions:
default-http-versions: #@ data.values.configFileContents.defaultHttpVersions
@100mik
100mik / package-build.yml
Last active April 12, 2023 22:04
Multiple exports kctrl
# scroll down to the export section
---
apiVersion: kctrl.carvel.dev/v1alpha1
kind: PackageBuild
metadata:
name: first.package.tanzu.vmware.com
spec:
release:
- resource: {}
template:
@100mik
100mik / test_version.go
Created September 16, 2022 22:11
Checks version constraints using k8s-sigs/version
package main
import (
"fmt"
"sigs.k8s.io/kind/pkg/foo/version"
)
func main() {
rawVersion := "v1.25.0"
TIME:01:30:55
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
creationTimestamp: "2022-04-12T19:58:56Z"
finalizers:
- finalizers.kapp-ctrl.k14s.io/delete
generation: 2
name: cert-man
namespace: default
./kctrl package install -i cert-man -p cert-manager.community.tanzu.vmware.com --version 1.6.1 ─╯
Target cluster 'https://127.0.0.1:50478' (nodes: minikube)
1:06:13AM: Updating package install for 'cert-man'
1:06:13AM: Waiting for PackageInstall reconciliation for 'cert-man'
1:06:13AM: Waiting for generation 2 to be observed
1:06:29AM: Fetching
| apiVersion: vendir.k14s.io/v1alpha1
| directories:
| - contents:
@100mik
100mik / package-install-output.txt
Created March 29, 2022 20:15
Package install output alt
kctrl package install -i cert-man -p cert-manager.community.tanzu.vmware.com --version 1.6.1 ─╯
Target cluster 'https://127.0.0.1:55157' (nodes: minikube)
Creating service account 'cert-man-default-sa'
Creating cluster admin role 'cert-man-default-cluster-role'
Creating cluster role binding 'cert-man-default-cluster-rolebinding'
Creating package install resource
apiVersion: apps/v1
kind: Deployment
metadata:
name: busybox-deployment
labels:
app: demo
spec:
replicas: 5
strategy:
type: RollingUpdate
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: testing
name: config
annotations:
kapp.k14s.io/versioned: ""
data:
foo1: bar
---
apiVersion: v1
kind: ConfigMap
metadata:
name: config-1
annotations:
kapp.k14s.io/versioned: ""
data:
foo1: bar
---