Fix admission.Validator value in variable declaration error #27
build-watcher-operator.yaml
on: push
call-build-workflow
/
Build watcher-operator image using buildah
1m 18s
call-build-workflow
/
${{ inputs.operator_name }}-operator-bundle
0s
call-build-workflow
/
operator-index
0s
Annotations
1 error
call-build-workflow / Build watcher-operator image using buildah
Error: buildah exited with code 1
Trying to pull registry.access.redhat.com/ubi9/go-toolset:1.21...
Getting image source signatures
Copying blob sha256:54cd8cbfcdb6dd6e42dbdb164b928851776237821dcdc10e9dc3e6b0edb5e866
Copying blob sha256:a20d5f0bec2bce34d8adb0eb98f3536f214c292b20c6cf1a3a46c802662d912b
Copying blob sha256:ed459618bd738b12fc98077ec6dd06264d77f0e28ef21495f387602e20d70620
Copying blob sha256:0add4c4cd54a981ebf1fefd256e3fc49075f4a8352ec20a7f68e4b7eee3650df
Copying blob sha256:ed459618bd738b12fc98077ec6dd06264d77f0e28ef21495f387602e20d70620
Copying blob sha256:a20d5f0bec2bce34d8adb0eb98f3536f214c292b20c6cf1a3a46c802662d912b
Copying blob sha256:0add4c4cd54a981ebf1fefd256e3fc49075f4a8352ec20a7f68e4b7eee3650df
Copying blob sha256:54cd8cbfcdb6dd6e42dbdb164b928851776237821dcdc10e9dc3e6b0edb5e866
Copying config sha256:05467dfce6f7bc7f592bbdd9ea7199961361ae2dc377efaed9c334249efa5b46
Writing manifest to image destination
Storing signatures
# github.com/openstack-k8s-operators/watcher-operator/api/v1beta1
api/v1beta1/watcher_webhook.go:52:27: cannot use &Watcher{} (value of type *Watcher) as admission.Validator value in variable declaration: *Watcher does not implement admission.Validator (wrong type for method ValidateDelete)
have ValidateDelete() error
want ValidateDelete() (admission.Warnings, error)
api/v1beta1/watcher_webhook.go:59:9: not enough return values
have (nil)
want (admission.Warnings, error)
api/v1beta1/watcherapi_webhook.go:52:27: cannot use &WatcherAPI{} (value of type *WatcherAPI) as admission.Validator value in variable declaration: *WatcherAPI does not implement admission.Validator (wrong type for method ValidateDelete)
have ValidateDelete() error
want ValidateDelete() (admission.Warnings, error)
api/v1beta1/watcherapi_webhook.go:59:9: not enough return values
have (nil)
want (admission.Warnings, error)
api/v1beta1/watcherapplier_webhook.go:52:27: cannot use &WatcherApplier{} (value of type *WatcherApplier) as admission.Validator value in variable declaration: *WatcherApplier does not implement admission.Validator (wrong type for method ValidateDelete)
have ValidateDelete() error
want ValidateDelete() (admission.Warnings, error)
api/v1beta1/watcherapplier_webhook.go:59:9: not enough return values
have (nil)
want (admission.Warnings, error)
api/v1beta1/watcherdecisionengine_webhook.go:52:27: cannot use &WatcherDecisionEngine{} (value of type *WatcherDecisionEngine) as admission.Validator value in variable declaration: *WatcherDecisionEngine does not implement admission.Validator (wrong type for method ValidateDelete)
have ValidateDelete() error
want ValidateDelete() (admission.Warnings, error)
api/v1beta1/watcherdecisionengine_webhook.go:59:9: not enough return values
have (nil)
want (admission.Warnings, error)
error building at STEP "RUN if [ -f $CACHITO_ENV_FILE ] ; then source $CACHITO_ENV_FILE ; fi ; env ${GO_BUILD_EXTRA_ENV_ARGS} go build ${GO_BUILD_EXTRA_ARGS} -a -o ${DEST_ROOT}/manager main.go": error while running runtime: exit status 1
time="2024-11-27T06:21:19Z" level=error msg="exit status 1"
|