Skip to content

Instantly share code, notes, and snippets.

View eriknelson's full-sized avatar
🤘

Erik Nelson eriknelson

🤘
View GitHub Profile
@eriknelson
eriknelson / cloudSettings
Last active November 19, 2022 19:08
VSCode Settings Sync
{"lastUpload":"2021-03-03T10:34:35.134Z","extensionVersion":"v3.4.3"}
[MODIFIED] [jgabani@redhat.com] MTC UI does not display logs properly [OADP-BL] (https://bugzilla.redhat.com/show_bug.cgi?id=2062266)
[ASSIGNED] [jgabani@redhat.com] Velero pod log missing from downloaded logs folder [OADP-BL] (https://bugzilla.redhat.com/show_bug.cgi?id=2076599)
[ASSIGNED] [dymurray@redhat.com] Velero and Restic are using incorrect SCCs [OADP-BL] (https://bugzilla.redhat.com/show_bug.cgi?id=2082216)
[MODIFIED] [rjohnson@redhat.com] non-numeric user when launching stage pods [OADP-BL] (https://bugzilla.redhat.com/show_bug.cgi?id=2082225)
============================================================
Shall Fix
============================================================
[Controller] [ASSIGNED] [Pranav Gaikwad] [MTC] PvCapacityAdjustmentRequired warning is displayed when application is deployed using shared storage (https://bugzilla.redhat.com/show_bug.cgi?id=2080956)
[UI] [ASSIGNED] [Jaydip Gabani] [MTC UI] A warning is displayed on persistentVolumes page after editing storage class conversion plan. (https://bugzilla.redhat.com/show_bug.cgi?id=2079549)
[UI] [ASSIGNED] [Ian] [MTC UI] UI shows the wrong migration type info after changing the target namespace (https://bugzilla.redhat.com/show_bug.cgi?id=2056962)
[UI] [ASSIGNED] [Pranav Gaikwad] Exposed route host to image registry” connecting successfully to invalid registry “xyz.com” (https://bugzilla.redhat.com/show_bug.cgi?id=2048537)
[UI] [ASSIGNED] [Ian] [MTC UI] “Add Cluster” wizard stucks when the cluster name length is more than 63 characters (https://bugzilla.redhat.com/show_bug.cgi?id=204
crane.db: |
; crane.dev test file
crane.dev. IN SOA a.crane.dev. b.crane.dev. 2 604800 86400 2419200 604800
crane.dev. IN NS a.crane.dev.
crane.dev. IN NS b.crane.dev.
a.crane.dev. IN A 127.0.0.1
b.crane.dev. IN A 127.0.0.1
*.crane.dev. IN A 192.168.58.2
Loading database URL: postgres:///fumar-development
I, [2021-11-04T21:42:46.757208 #71628] INFO -- : Project dir: /git/fumar
+--------------+---------------+-------------------------------------------------------------------------------+--------+-------+-----+
| Arrival Date | Maturity Date | Lot | Length | Gauge | Inv |
+--------------+---------------+-------------------------------------------------------------------------------+--------+-------+-----+
| 2021-08-04 | 2021-08-18 | Diesel Crucible Ecuadorian Habano Toro | 6.0 | 52 | 1 |
| 2021-08-04 | 2021-08-18 | American Viking Box Pressed Rebellion Dark Nicaraguan Habano Toro | 6.0 | 52 | 1 |
| 2021-08-04 | 2021-08-18 | American Viking Rico Barato Connecticut Ecuadorian Connecticut Torpedo | 6.0 | 52 | 1 |
| 2021-08-04 | 2021-08-18 | American Viking Filthy Viking Habano Lancero
@eriknelson
eriknelson / fix.diff
Created October 29, 2021 19:37
No proxy fix, cidr aware
diff --git a/deploy/main.js b/deploy/main.js
index 1473652..5867dcb 100644
--- a/deploy/main.js
+++ b/deploy/main.js
@@ -6,6 +6,10 @@ const HttpsProxyAgent = require('https-proxy-agent');
const { AuthorizationCode } = require('simple-oauth2');
const { createProxyMiddleware } = require('http-proxy-middleware');
const axios = require('axios');
+const { URL } = require('url');
+const ipRangeCheck = require('ip-range-check');
@eriknelson
eriknelson / crane2pipeline.md
Last active August 9, 2021 17:52
Crane 2 pipeline notes

Crane 2 Pipeline Notes

https://github.com/openshift/pipelines-tutorial

Tekton pipeline concpets: The custom resources needed to define a pipeline are listed below:

  • Task: a reusable, loosely coupled number of steps that perform a specific task (e.g. building a container image)
  • Pipeline: the definition of the pipeline and the Tasks that it should perform
  • TaskRun: the execution and result of running an instance of task
  • PipelineRun: the execution and result of running an instance of pipeline, which includes a number of TaskRuns
diff --git a/plugins/service/service.go b/plugins/service/service.go
index 1673e23..66d62db 100644
--- a/plugins/service/service.go
+++ b/plugins/service/service.go
@@ -29,6 +29,14 @@ func Run(u *unstructured.Unstructured, extras map[string]string) (transform.Plug
if !IsServiceClusterIPNone(*u) {
patchJSON := fmt.Sprintf(`[
{ "op": "remove", "path": "/spec/clusterIP"}
+]`)
+ intPatch, err = jsonpatch.DecodePatch([]byte(patchJSON))
E0503 19:54:22.277547 1 runtime.go:69] Observed a panic: "invalid memory address or nil pointer dereference" (run
time error: invalid memory address or nil pointer dereference)
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:76 /remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/remote-source/app/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/opt/rh/go-toolset-1.15/root/usr/lib/go-toolset-1.15-golang/src/runtime/panic.go:969 /opt/rh/go-toolset-1.15/root/usr/lib/go-toolset-1.15-golang/src/runtime/panic.go:212
/opt/rh/go-toolset-1.15/root/usr/lib/go-toolset-1.15-golang/src/runtime/signal_unix.go:742
/remote-source/app/pkg/apis/migration/v1alpha1/migcluster_types.go

Hello OLM