mkdir test-operatorResults in:
cd test-operator
go mod init example.com/m/v2
operator-sdk init --project-version=2 --domain example.com
operator-sdk create webhook --group cache --version v1alpha1 --kind Memcached --defaulting --programmatic-validation
make manifests
make run
go vet ./...The "Memcached" structure is created automatically in the Operator Scope example.
# example.com/m/v2/api/v1alpha1
api/v1alpha1/memcached_webhook.go:29:10: undefined: Memcached
api/v1alpha1/memcached_webhook.go:39:28: undefined: Memcached
api/v1alpha1/memcached_webhook.go:42:10: undefined: Memcached
api/v1alpha1/memcached_webhook.go:51:28: undefined: Memcached
api/v1alpha1/memcached_webhook.go:54:10: undefined: Memcached
api/v1alpha1/memcached_webhook.go:62:10: undefined: Memcached
api/v1alpha1/memcached_webhook.go:70:10: undefined: Memcached
make: *** [Makefile:51: vet] Error 2
--
You received this message because you are subscribed to the Google Groups "Operator Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to operator-framew...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/a572eccb-b2b3-e79d-470f-ceab3085f696%40redhat.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/CAD_SvZQVtq9mtZ3u%2Bv_Efz6abXY6xNDYqh%2Bid%2BJZ96wvuZSpbA%40mail.gmail.com.
api/v1alpha1/memcached_webhook.go:29:10: undefined: Memcached
Create a simple Memcached API:whereas the Admission Webhooks section states:
operator-sdk create api --group cache --version v1 --kind Memcached --resource=true --controller=true
To add a webhook to your Operator SDK project, first you must scaffold out the webhooks with the following command.This resulted in Go languages files being created in different directories (api/v1, api/v1alpha1).
$ operator-sdk create webhook --group cache --version v1alpha1 --kind Memcached --defaulting --programmatic-validation
$ operator-sdk create webhook --group cache --version v1 --kind Memcached --defaulting --programmatic-validationThe application built as expected.
--
You received this message because you are subscribed to the Google Groups "Operator Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to operator-framew...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/fbfd64bd-90f7-4bc9-f7e7-b6047d9b54a3%40redhat.com.
--
You received this message because you are subscribed to the Google Groups "Operator Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to operator-framew...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/85ca203f-cfc5-34fa-098c-1a680ac145ca%40redhat.com.
To unsubscribe from this group and stop receiving emails from it, send an email to operator-framew...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/e53dd77e-5b6a-3f8c-d398-85e86a7b221c%40redhat.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/operator-framework/CAOuJmZbux21AF%2BnAax9zJ878fNVny-RXdos9241hqS6PWgSeVA%40mail.gmail.com.
Alexander W. Greene |
Does it mean that it will only work on future OpenShift versions? I'm
using the latest release via CRC, which certainly doesn't include this
fix. Are there known workarounds to get this working on currently
supported OpenShift versions?
I just tried your master branch, and it does fail for me. Here are the
versions I'm using: