Skip to content

Instantly share code, notes, and snippets.

View anik120's full-sized avatar

Anik Bhattacharjee anik120

  • Red Hat
  • Boston, Massachusetts.
View GitHub Profile
"Sixteen-inch softball, also sometimes referred to as \"mush ball\" or \"super-slow pitch\" \n(although the ball is not soft at all), is a direct descendant of Hancock's original game.\nDefensive players are not allowed to wear fielding gloves. Sixteen-inch\nsoftball is played extensively in Chicago, where devotees such as\nnewspaper columnist Mike Royko consider it the \"real\" game, and New Orleans. \nIn New Orleans, sixteen-inch softball is called \"Cabbage Ball\" or \"batter ball\" \nand is a popular team sport in area elementary and high schools.\n\nThe first cork-centered softball was created in Hamilton,\nOntario, Canada, by Emil \"Pops\" Kenesky.\n\nBy the 1940s, fast pitch began to dominate the game. Although slow pitch\nwas present at the 1933 World's Fair, the main course of action taken was to \nlengthen the pitching distance. Slow pitch achieved formal recognition in 1953 \nwhen it was added to the program of the Amateur Softball Association, and within a\ndecade had surpassed fast pi
@anik120
anik120 / slack_samples.md
Last active February 16, 2024 03:51
OLM questions for LLM

Question

Hi, is there any guidance available for installing an operator as a dependency in a different namespace? It'll be awesome to know of any feature that deploys an operator conditionally.

Answer

Unfortunately, OLM only knows how to resolve dependencies for operators in the same namespace (and thus the same watch context), generally best practice is to have as few permissions on your operator as possible.

Question

@anik120
anik120 / pods.sh
Created February 8, 2024 01:42
OCPBUGS-19493
./omc get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
dynatrace dynatrace-operator-59d4c64795-5ckr9 0/1 ImagePullBackOff 0 2d
dynatrace dynatrace-webhook-56579f8697-7mp4x 0/1 ImagePullBackOff 0 2d
dynatrace ifams-production-openshift-activegate-0 1/1 Running 0 2d
dynatrace ifams-production-openshift-oneagent-97sln 1/1 Running 2 54d
dynatrace ifams-production-openshift-oneagent-f2rnx 1/1 Running 2 54d
dynatrace ifa
@anik120
anik120 / logs.txt
Last active January 29, 2024 21:03
catalog-operator logs for olm v0.25.0
$ k logs catalog-operator-67d9c6fd6f-jx4mj -n olm -f
time="2024-01-29T20:39:52Z" level=info msg="log level debug"
W0129 20:39:52.329182 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T20:39:52Z" level=info msg="Using in-cluster kube client config"
time="2024-01-29T20:39:52Z" level=info msg="Using in-cluster kube client config"
W0129 20:39:52.329704 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T20:39:52Z" level=debug msg="starting source manager"
W0129 20:39:52.343131 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T20:39:52Z" level=info msg="connection established. cluster-version: v1.26.3"
time="2024-01-29T20:39:52Z" level=info msg="operator ready"
@anik120
anik120 / logs.txt
Created January 29, 2024 20:04
catalog-operator logs for olm v0.24.0
k logs catalog-operator-67d9c6fd6f-kfx76 -n olm -f
time="2024-01-29T19:47:12Z" level=info msg="log level debug"
W0129 19:47:12.900078 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T19:47:12Z" level=info msg="Using in-cluster kube client config"
time="2024-01-29T19:47:12Z" level=info msg="Using in-cluster kube client config"
W0129 19:47:12.900603 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T19:47:12Z" level=debug msg="starting source manager"
W0129 19:47:12.914198 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T19:47:12Z" level=info msg="connection established. cluster-version: v1.26.3"
time="2024-01-29T19:47:12Z" level=info msg="operator ready"
@anik120
anik120 / logs.txt
Created January 29, 2024 19:35
catalog-operator logs for olm v0.23.1
k logs catalog-operator-67d9c6fd6f-ccb45 -n olm -f
time="2024-01-29T19:27:53Z" level=info msg="log level debug"
W0129 19:27:53.357777 1 client_config.go:617] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T19:27:53Z" level=info msg="Using in-cluster kube client config"
time="2024-01-29T19:27:53Z" level=info msg="Using in-cluster kube client config"
W0129 19:27:53.358251 1 client_config.go:617] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T19:27:53Z" level=debug msg="starting source manager"
W0129 19:27:53.369898 1 client_config.go:617] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time="2024-01-29T19:27:53Z" level=info msg="connection established. cluster-version: v1.26.3"
time="2024-01-29T19:27:53Z" level=info msg="operator ready"
@anik120
anik120 / logs.txt
Created April 11, 2023 20:07
eg of brew installation of package with dependencies
$ brew install markdownlint-cli
Running `brew update --auto-update`...
==> Fetching dependencies for markdownlint-cli: c-ares, icu4c, libnghttp2, libuv, openssl@1.1 and node
==> Fetching c-ares
==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/manifests/1.19.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/blobs/sha256:509c92f0a1814475b0f9635923d2a895d2b2e00d0360d7dbf5e94f9625d09b15
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:509c92f0a1814475b0f9635923d2a895d2b2e00d0360d7dbf5e94f9625d09b15?se=2023-04-11T19%3A40%3A00Z&sig=9dRmH
######################################################################## 100.0%
==> Fetching icu4c
@anik120
anik120 / camel-k_after.yaml
Created February 22, 2023 23:30
PackageManifests before and after
apiVersion: packages.operators.coreos.com/v1
kind: PackageManifest
metadata:
creationTimestamp: "2023-02-22T23:05:28Z"
labels:
catalog: operatorhubio-catalog
catalog-namespace: olm
operatorframework.io/arch.amd64: supported
operatorframework.io/os.linux: supported
provider: The Apache Software Foundation
@anik120
anik120 / etcd.yaml
Created November 5, 2022 00:16
packagemanifest example
apiVersion: packages.operators.coreos.com/v1
kind: PackageManifest
metadata:
creationTimestamp: "2022-11-05T00:05:06Z"
labels:
catalog: operatorhubio-catalog
catalog-namespace: olm
operatorframework.io/arch.amd64: supported
operatorframework.io/os.linux: supported
provider: CNCF
Name: af89f8de25f1a8926d97bfd08126f357ecaec5c57661d7f7476fa1b9d3f7c45
Namespace: toolchain-member2-31134648
Selector: controller-uid=2f4dbaa1-1e19-493c-9fbc-7ab19fcb439e
Labels: controller-uid=2f4dbaa1-1e19-493c-9fbc-7ab19fcb439e
job-name=af89f8de25f1a8926d97bfd08126f357ecaec5c57661d7f7476fa1b9d3f7c45
Annotations: batch.kubernetes.io/job-tracking:
Parallelism: 1
Completions: 1
Start Time: Thu, 31 Mar 2022 07:48:16 -0400
Active Deadline Seconds: 600s