Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
@jayunit100
jayunit100 / gist:8aaf0271dc64f3f023637bd417f331b7
Created January 17, 2022 17:05
some comments on the diff function, which will be increasingly the backbone for kpng
func (sl *ServicesListener) diff(prevSvc, currSvc *localnetv1.Service) {
// 0) make PortsListener calls by leveraging the SlicesLen iterator
// name, protoc, port, nodeport, targetport, targetportname
var prevPorts, currPorts []*localnetv1.PortMapping
if prevSvc != nil {
prevPorts = prevSvc.Ports
}
@jayunit100
jayunit100 / image-builder.yaml
Created November 23, 2021 19:26
image-builder.yaml
apiVersion: v1
kind: Namespace
metadata:
name: imagebuilder
---
apiVersion: v1
kind: Service
metadata:
name: imagebuilder-wrs
namespace: imagebuilder
CLUSTER_NAME: jay
TKR_DISCOVER_FREQUENCY: 600
ENABLE_AUDIT_LOGGING: false
INFRASTRUCTURE_PROVIDER: vsphere
tkr-bom:
a: 1
TKG_VERSION: 1.4
CNI: antrea
boms:
- bom_name: tkg.yaml
bom_data:
apiVersion: run.tanzu.vmware.com/v1alpha2
default:
k8sVersion: v+1.21.2
release:
# version: v1.21.2+vmware.1-tkg.1-rc.2/kub
# version: v1.21.2
version: v+1.21.2
resource "azuread_application" "main" {
display_name = var.service_principal_name
identifier_uris = ["http://${var.service_principal_name}"]
available_to_other_tenants = false
oauth2_allow_implicit_flow = false
}
resource "azuread_service_principal" "main" {
application_id = azuread_application.main.application_id
}
From 086b92c5f1b49fa69c576d5302beb111f68af7a1 Mon Sep 17 00:00:00 2001
From: hxie <[email protected]>
Date: Fri, 9 Jul 2021 14:49:59 -0700
Subject: [PATCH 1/7] Update windows ytt for antrea
---
.../v0.7.6/ytt/overlay.yaml | 102 +++++++++---------
1 file changed, 50 insertions(+), 52 deletions(-)
diff --git a/pkg/v1/providers/infrastructure-windows-vsphere/v0.7.6/ytt/overlay.yaml b/pkg/v1/providers/infrastructure-windows-vsphere/v0.7.6/ytt/overlay.yaml
diff --git a/Vagrantfile b/Vagrantfile
index 4586d12..5f5480e 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -1,11 +1,16 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
+
+# Modify these in the variables.yaml file... they are described there in gory detail...
diff --git a/.gitignore b/.gitignore
index 1434883..a064268 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
sync/config
sync/bin
+sync/kubejoin.ps1
.vagrant/
diff --git a/Vagrantfile b/Vagrantfile
diff --git a/.gitignore b/.gitignore
index 1434883..a064268 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
sync/config
sync/bin
+sync/kubejoin.ps1
.vagrant/
diff --git a/Vagrantfile b/Vagrantfile
@jayunit100
jayunit100 / scrape-expose.html
Created December 31, 2020 03:23
A GCS bucket scraper that makes all your files downlodaable
The part of the instructions you need to do yourself is
making the bucket wide open.
- you can do that by following...
https://stackoverflow.com/questions/14371376/how-do-you-make-many-files-public-in-google-cloud-storage
- Next, you need to follow the instructions from the original https://github.com/ishvad/gcs-bucket-listing which this was stolen from. @ishvad thanks !
In this gist youll see i got rid of the fancy parameter stuff as it wasnt working for me :) , but otherwise i kept your code mostly the same.