Skip to content

Instantly share code, notes, and snippets.

View shettyjm's full-sized avatar

Jag Shetty shettyjm

View GitHub Profile
apiVersion: config.openshift.io/v1
kind: OAuth
metadata:
name: cluster
spec:
identityProviders:
- name: okta
mappingMethod: claim
type: OpenID
openID:
apiVersion: redhatcop.redhat.io/v1alpha1
kind: GroupSync
metadata:
name: freeipa-groupsync
namespace: group-sync-operator
spec:
schedule: "*/30 * * * *"
providers:
- name: freeipa-ldap
ldap:
@shettyjm
shettyjm / gist:6712bd443e7540b053f08b40c2571c7c
Created May 5, 2025 18:33
VM from uploaded qcow2 image dv
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: fedora-custom-basevm-dv
labels:
template.kubevirt.io/type: vm
os.template.kubevirt.io/fedora: 'true'
workload.template.kubevirt.io/server: 'true'
annotations:
name.os.template.kubevirt.io/fedora: Fedora
@shettyjm
shettyjm / gist:d89c4ad20627874476259daeb1471a5d
Created May 5, 2025 18:31
01ocp-vms-demo LAMP custom vm OCP template
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: myphp-fedora-template
labels:
template.kubevirt.io/type: vm
os.template.kubevirt.io/fedora: 'true'
workload.template.kubevirt.io/server: 'true'
annotations:
name.os.template.kubevirt.io/fedora: Fedora
@shettyjm
shettyjm / prismapostgressapp.yaml
Last active December 30, 2022 01:20
prismapostgressapp.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: clcdb-connection-error
namespace: default
labels:
app: prismapostgress-app
spec:
selector:
FROM node:18-alpine
WORKDIR /app
# COPY package.json and package-lock.json files
COPY package*.json ./
# generated prisma files
COPY prisma ./prisma/
# COPY ENV variable
zingchart.widgets.dashboard_lc = {
parse : function(d) {
var json = {
graphs : [
{
id : d.id,
height : d.height,
width : d.width,
x : d.x,
y : d.y,
{"type":null,"backgroundColor":"#eee","borderTop":"4px solid #134E60","height":"50%","width":"20%","x":"80%","y":"70.2%","plotarea":{"margin":"10 0 0 0"},"labels":[{"text":"Sample text","fontColor":"#000","fontSize":11,"x":20,"y":40},{"text":"This is a sample text.<br>Insert your desire text<br>here.","fontColor":"#000","fontSize":9,"align":"left","x":20,"y":60},{"text":"● Insert your desired text here.<br>● Insert your desired text here.<br>● Insert your desired text here.<br>● Insert your desired text here.","fontColor":"#000","fontSize":9,"align":"left","x":20,"y":110}]}
{"type":"ring","backgroundColor":"#eee","borderTop":"4px solid #134E60","height":"40%","width":"20%","x":"60%","y":"70.2%","plotarea":{"margin":"0 15 100 15"},"source":{"text":"This is a sample text.<br>Insert your desired text<br>here.","fontColor":"#000","fontSize":10,"fontWeight":"normal","textAlign":"center","marginTop":150},"tooltip":{"text":"%node-percent-value%","font-color":"white","font-family":"Georgia","font-size":20,"font-weight":"bold","font-style":"normal"},"scale":{"sizeFactor":0.75},"scaleR":{"refAngle":270},"plot":{"borderWidth":0,"slice":"50%","valueBox":{"visible":false}},"series":[{"values":[70],"backgroundColor":"#9BA64A"},{"values":[30],"backgroundColor":"#BFBFBF"}]}
{"type":"ring","backgroundColor":"#eee","borderTop":"4px solid #134E60","height":"40%","width":"20%","x":"40%","y":"70.2%","plotarea":{"margin":"0 15 100 15"},"source":{"text":"This is a sample text.<br>Insert your desired text<br>here.","fontColor":"#000","fontSize":10,"fontWeight":"normal","textAlign":"center","marginTop":150},"tooltip":{"text":"%node-percent-value%"},"scale":{"sizeFactor":0.75},"scaleR":{"refAngle":270},"plot":{"borderWidth":0,"slice":"50%","valueBox":{"visible":false}},"series":[{"values":[25],"backgroundColor":"#2D3E50"},{"values":[15],"backgroundColor":"#AFBFBF"},{"values":[38],"backgroundColor":"#5D3A80"},{"values":[22],"backgroundColor":"#CFBFBF"}]}