controller
Writing kustomize manifests for you to edit...
Writing scaffold for you to edit...
api/v1alpha1/memcached_types.go
controllers/memcached_controller.go
Update dependencies:
$ go mod tidy
Running make:
$ make generate
Makefile:170: warning: overriding recipe for target '/mnt/e/Go'
Makefile:155: warning: ignoring old recipe for target '/mnt/e/Go'
Makefile:175: warning: overriding recipe for target '/mnt/e/Go'
Makefile:170: warning: ignoring old recipe for target '/mnt/e/Go'
Makefile:180: warning: overriding recipe for target '/mnt/e/Go'
Makefile:175: warning: ignoring old recipe for target '/mnt/e/Go'
make: Circular /mnt/e/Go <- /mnt/e/Go dependency dropped.
mkdir -p /mnt/e/Go lang/new-operator/memcached-operator/bin
make: Circular /mnt/e/Go <- /mnt/e/Go dependency dropped.
make: Circular /mnt/e/Go <- /mnt/e/Go dependency dropped.
GOBIN=/mnt/e/Go lang/new-operator/memcached-operator/bin go install
sigs.k8s.io/controller-runtime/tools/setup-envtest@latestbash: lang/new-operator/memcached-operator/bin: Is a directory
make: *** [Makefile:180: /mnt/e/Go] Error 126
Error: failed to create API: unable to run post-scaffold tasks of "
base.go.kubebuilder.io/v3": exit status 2
Usage:
operator-sdk create api [flags]
Examples:
# Create a frigates API with Group: ship, Version: v1beta1 and Kind: Frigate
operator-sdk create api --group ship --version v1beta1 --kind Frigate
# Edit the API Scheme
nano api/v1beta1/frigate_types.go
# Edit the Controller
nano controllers/frigate/frigate_controller.go
# Edit the Controller Test
nano controllers/frigate/frigate_controller_test.go
# Generate the manifests
make manifests
# Install CRDs into the Kubernetes cluster using kubectl apply
make install
# Regenerate code and run against the Kubernetes cluster configured by ~/.kube/config
make run
Flags:
--controller if set, generate the controller without prompting the user (default true)
--force attempt to create resource even if it already exists
--group string resource Group
-h, --help help for api
--kind string resource Kind
--make make generate if true, run make generate after generating files (default true)
--namespaced resource is namespaced (default true)
--plural string resource irregular plural form
--resource if set, generate the resource without prompting the user (default true)
--version string resource Version
Global Flags:
--plugins strings plugin keys to be used for this subcommand execution
--verbose Enable verbose logging
FATA[0002] failed to create API: unable to run post-scaffold tasks of "base.go.kubebuilder.io/v3": exit status 2