Skip to content

Instantly share code, notes, and snippets.

@coulof
coulof / storage_csm_powerflex_v2101.yaml
Created July 15, 2024 14:22
CR for PowerFlex with registry.
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: vxflexos
namespace: vxflexos
spec:
driver:
csiDriverType: "powerflex"
configVersion: v2.10.1
common:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: csi-isilon
repo: https://dell.github.io/helm-charts
releaseName: csi-isilon
namespace: powerscale
version: 2.10.0
valuesFile: values.yaml
@coulof
coulof / get_supported_version_csi-sidecar.py
Last active May 3, 2023 12:26
Get supported version of CSI Sidecar use it with : python ~/go/src/github.com/kubernetes-csi/csi-release-tools/get_supported_version_csi-sidecar.py -R kubernetes-csi/external-attacher --doc
import argparse
import datetime
import re
from collections import defaultdict
import subprocess
import shutil
from dateutil.relativedelta import relativedelta
# Check that the `gh` command is in the path
def check_gh_command():
@coulof
coulof / gh_explore.rb
Created October 14, 2022 08:18
Get non Dell (?) interested github users
require 'json'
require 'pry' if ENV['INTERACTIVE']
gh = 'gh api -H "Accept: application/vnd.github+json"'
#repos = %w(dell/csm dell/csi-powermax dell/csi-unity dell/csi-powerflex dell/csi-powerstore dell/csi-powerscale)
repos = JSON.parse(%x[#{gh} /users/dell/repos]).select {|r| r['full_name'] =~ /csm|csi-|karavi|ansible/}
subscribers = []
contributors = []
stargazers = []
@coulof
coulof / 10-frontend.network
Last active January 12, 2021 10:42
Tanzu + VyOS
[Match]
MACAddress=00:50:56:82:ba:db
[Network]
[Address]
Address=10.247.247.247/24
[Route]
Gateway=10.247.247.1
@coulof
coulof / ciq_webhook.js
Last active October 14, 2021 09:16
CloudIQ to ServiceNow
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var requestBody = request.body;
var requestData = requestBody.data; // variable holds JSON data
var eventType = request.getHeader('x-ciq-event');
// Answer 200 to CloudIQ Webhook test button
if (eventType === 'ping') {
response.setStatus(200);
} else if (eventType === 'health-score-change') {
var processedData = false;
@coulof
coulof / vxflexos-cni.if
Last active July 20, 2020 09:24
SElinux policy csi-vxflexos
## <summary></summary>
@coulof
coulof / configmap.yaml
Last active June 9, 2020 13:34
configmap and secrets
apiVersion: v1
kind: ConfigMap
metadata:
name: event-exporter-cfg
namespace: {{ .Release.Namespace }}
data:
config.yaml.erb: |
route:
match:
- receiver: "dump"
{{ if eq .Values.tag "latest"}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: todosdb{{ .Values.tag }}
namespace: {{ .Values.ns }}
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
@coulof
coulof / isilon-ds.yaml
Created June 8, 2020 13:56
csi-isilon custom X_NODE_IP
spec:
template:
spec:
initContainers:
- name: config
image: "ruby:2.7"
command: ['sh', '-c', 'erb /tmpl/entrypoint.sh.erb > /custom/entrypoint.sh && chmod +x /custom/entrypoint.sh']
volumeMounts:
- name: cfgtmpl
mountPath: /tmpl