Skip to content

Instantly share code, notes, and snippets.

View PrasadG193's full-sized avatar
๐Ÿš€

Prasad Ghangal PrasadG193

๐Ÿš€
View GitHub Profile

This docs contain e2e testing steps for kubernetes-csi/csi-driver-host-path#569

Prerequisites

Build and deployment

  1. Build the project and push CSI hostpath plugin image to private repo
$ make push-multiarch PULL_BASE_REF=master REGISTRY_NAME=prasadg193 BUILD_PLATFORMS="linux amd64 amd64"
@PrasadG193
PrasadG193 / k8s-multi-yaml-parser.go
Last active February 25, 2024 12:14
Parse K8s multi resource YAML manifest into client-go objects
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"strings"
appsv1 "k8s.io/api/apps/v1"
@PrasadG193
PrasadG193 / retrywatcher_example.go
Last active April 12, 2024 08:55
An example of using RetryWatcher to watch resource events
package main
import (
"context"
"fmt"
"os"
"path/filepath"
"time"
corev1 "k8s.io/api/core/v1"
@PrasadG193
PrasadG193 / botkube-latest.log
Created September 7, 2020 13:49
BotKube crash logs
INFO[2020-09-07T13:47:48Z] Registering kubernetes events informer for types: normal
INFO[2020-09-07T13:47:48Z] Registering watcher on configfile /config/resource_config.yaml
W0907 13:47:48.077452 1 reflector.go:340] pkg/mod/k8s.io/client-go@v0.17.0/tools/cache/reflector.go:108: watch of *unstructured.Unstructured ended with: an error on the server ("unable to decode an event from the watch stream: unable to decode to metav1.Event") has prevented the request from succeeding
E0907 1
@PrasadG193
PrasadG193 / k8s-deploy-jsonpath.go
Last active February 1, 2022 12:04
Kubernetes jsonpath golang example
// Auto-generated by kyaml2go - https://github.com/PrasadG193/kyaml2go
package main
import (
"fmt"
"os"
"path/filepath"
"strings"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"