Skip to content

Instantly share code, notes, and snippets.

View vrabbi's full-sized avatar

Scott Rosenberg vrabbi

View GitHub Profile
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@vrabbi
vrabbi / dashboard.json
Created June 4, 2025 09:05
Crossplane Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@vrabbi
vrabbi / function-auto-ready.yaml
Created April 29, 2025 12:21
Crossplane Configurations
apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: function-auto-ready
spec:
package: xpkg.upbound.io/crossplane-contrib/function-auto-ready:v0.4.2
apiVersion: playtika.com/v1alpha1
kind: StudioInfra
metadata:
name: demo
spec:
networkDomain: example.com
datacenter: site
environment: stage
ldapGroup: demo
kubernetes:
@vrabbi
vrabbi / README.md
Last active June 12, 2025 17:54
Crossplane and Backstage POC

This works with backstage 1.33

Plugin overviews

There are 2 plugins in this POC:

  1. Kubernetes Ingestor - this plugin is a catalog entity provider which creates catalog entities directly from kubernetes resources. it has the ability to ingest by default all standard k8s workload types, allows supplying custom GVKs, and has the ability to auto-ingest all crossplane claims automatically as components. There are numerous annotations which can be put on the kubernetes workloads to influence the creation of the component in backstage. It also supports creating backstage templates and registers them in the catalog for every XRD in your cluster for the Claim resource type. currently this supports adding via a PR to a GitHub repo or providing a download link to the generated yaml without pushing to git.
  2. Crossplane Resource Frontend - this is a frontend plugin which provides visibility into the crossplane claim, composite resource and managed resources associated with a component. This relies heavily on system
@vrabbi
vrabbi / README.md
Last active October 14, 2024 15:35

Pack Builder CLI

This is a bash script to assist with creating and publishing SpectroCloud Packs to an OCI Registry

Installation

Download the pack-bulder file and make it executable and save it in your PATH.

Usage - Interactive Mode

Initialize the repo structure

pack-builder create registry-layout
cat <<EOF > kpack-config.yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: slsa-l3-demo
---
apiVersion: kpack.io/v1alpha2
kind: ClusterStore
metadata:
files:
- name: devpod
linux:
urls:
amd64:
url: https://github.com/loft-sh/devpod/releases/download/v0.5.7/devpod-linux-amd64
target: devpod
arm64:
url: https://github.com/loft-sh/devpod/releases/download/v0.5.7/devpod-linux-arm64
target: devpod
- name: Wait for VIP Network in NSX ALB
ansible.builtin.pause:
seconds: 30
when: (nsx_alb_cloud_type == 'CLOUD_NSXT') and (segment.type == 'vips')
- name: Set Fact - Intialize subnet configuration array
ansible.builtin.set_fact:
configured_subnets: []
- name: Set Fact - Subnet configuration for VIP network
@vrabbi
vrabbi / interworking.yaml
Last active April 14, 2024 17:55
tkg multi md - cc manipulation - static ips and ext ip pool generation
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
app: antrea-interworking
name: antreaccpadapterinfos.clusterinformation.antrea-interworking.tanzu.vmware.com
spec:
group: clusterinformation.antrea-interworking.tanzu.vmware.com
names: