Closed YiannisGkoufas closed 3 years ago
IMO the Golang Based Operator Tutorial
should not speak about webhooks since I think it is not used/required for the example which is provided in the guide. We could have another tutorial which gives an example with webhook.
Note that we have a Milestone for to improve the docs too. See: https://github.com/operator-framework/operator-sdk/milestone/12.
However, for you know how you can use webhooks. I'd like to suggest you check the upstream doc https://book.kubebuilder.io/cronjob-tutorial/webhook-implementation.html. The commands and concept are the same you just need to replace kubebuiler per operator-sdk
.
c/c @joelanford @asmacdo
Thanks @camilamacedo86 , will follow the guide for kubebuilder.
By the way I had no idea that operator-sdk
and kubebuilder
clis can be used interchangeably.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
@openshift-bot: Closing this issue.
Type of question
Open question
Question
I was following the Guide about creating an Admission Webhook. I think there is a bit of inconsistency in this part generate-webhook-manifests-and-enable-webhook-deployment.
What did you do?
The first minor problem is that the guide mentions the
config/default/kustomize.yaml
file while I think it refers toconfig/default/kustomization.yaml
Also I tried to find the pieces of
[WEBHOOK] and [CERTMANAGER] comments
which I need to comment out in that file. It's not mentioned that I also have to edit these parts inconfig/crd/kustomization.yaml
file.What did you expect to see?
I expected $(SERVICE_NAME) and $(SERVICE_NAMESPACE) will be substituted by kustomize in the file
config/certmanager/certificate.yaml
, but it didn't happen.What did you see instead? Under which circumstances?
I suspect the problem occured on this part of the instructions: deploy-the-operator
Because what happened when I run this command, is that it modified
config/crd/kustomization.yaml
file from:to:
(notice how the vars section got deleted)
Environment
Operator type:
/language go
Kubernetes cluster type:
vanilla minikube
operator-sdk version: "v1.0.0", commit: "d7d5e0cd6cf5468bb66e0849f08fda5bf557f4fa", kubernetes version: "v1.18.2", go version: "go1.13.11 linux/amd64", GOOS: "linux", GOARCH: "amd64"
go version go1.13.12 linux/amd64
Additional context