Sample app to demo a Red Hat operator-sdk
bug on OpenShift.
Bug Report on Upstream: operator-framework/operator-sdk#6575
Openshift Version: OpenShift v4.12.25
Kubectl Version: Client Version: v1.28.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.25.11+1485cc9
WARNING: version difference between client (1.28) and server (1.25) exceeds the supported minor version skew of +/-1
Operator SDK Version: operator-sdk version: "v1.31.0", commit: "e67da35ef4fff3e471a208904b2a142b27ae32b1", kubernetes version: "1.26.0", go version: "go1.19.11", GOOS: "linux", GOARCH: "amd64"
This is a Sample hello-world
helm chart with a deployment. It also has a child helm chart prometheus
, which again contains
4 sub-charts i.e alertmanager
, kube-state-metrics
, prometheus-node-exporter
and prometheus-pushgateway
. which are disabled
from prometheus
's values.yaml.
After installing operator and operand on the cluster, we could see the sub-charts alertmanager
, kube-state-metrics
,
prometheus-node-exporter
and prometheus-pushgateway
have also been installed despite being disabled from prometheus
's values.yaml.
$ operator-sdk init \
--project-name=hello-world-operator --plugins=helm --domain=dev \
--helm-chart=./helm/hello-world --verbose
$ make docker-build docker-push
$ operator-sdk olm install
$ make bundle bundle-build bundle-push
$ operator-sdk run bundle docker.io/r4rajat/hello-world-operator-bundle:v1.0.1 --timeout 15m
$ kubectl apply -f ./config/samples/charts_v1alpha1_helloworld.yaml
$ oc get pods
NAME READY STATUS RESTARTS AGE
570b6af36fc4e01e3a860f8f0bef662c8c5f3eea2b342c1913d16c8d2bdw4dq 0/1 Completed 0 42m
docker-io-r4rajat-hello-world-operator-bundle-v1-0-1 1/1 Running 0 42m
hello-world-operator-controller-manager-7f4d65b9dd-gjmlq 1/2 CrashLoopBackOff 11 (3m55s ago) 41m
helloworld-sample-alertmanager-0 1/1 Running 0 39m
helloworld-sample-hello-world-67976bff97-fk8n5 0/1 CrashLoopBackOff 12 (2m47s ago) 39m
helloworld-sample-kube-state-metrics-6488696777-vz6tw 1/1 Running 0 39m
helloworld-sample-prometheus-node-exporter-4l59t 0/1 Pending 0 39m
helloworld-sample-prometheus-node-exporter-672cb 0/1 Pending 0 39m
helloworld-sample-prometheus-node-exporter-cq8cr 0/1 Pending 0 39m
helloworld-sample-prometheus-node-exporter-fjpkp 0/1 Pending 0 39m
helloworld-sample-prometheus-node-exporter-mhhs6 0/1 Pending 0 39m
helloworld-sample-prometheus-node-exporter-pwk8l 0/1 Pending 0 39m
helloworld-sample-prometheus-pushgateway-59c4d48896-rqqwp 1/1 Running 0 39m
helloworld-sample-prometheus-server-54bc6978dd-mrsr5 2/2 Running 0 39m
mysql-0 1/1 Running 0 3h7m