Closed acornett21 closed 3 months ago
@acornett21: The label(s) language/ansible
cannot be applied, because the repository doesn't have them.
Same problem here, on macOS (arm64):
% operator-sdk version
operator-sdk version: "v1.34.1", commit: "edaed1e5057db0349568e0b02df3743051b54e68", kubernetes version: "v1.28.0", go version: "go1.21.7", GOOS: "darwin", GOARCH: "arm64"
% kustomize version
v5.3.0
same problem here, works with the 1.33
I just ran into this. I was able to create the scaffold about a 1-2 months ago. Unfortunately, the brew installation does not support multiple version installs.
Updating the ansible version and releasing operator-sdk did not fix this issue, since the root cause analysis seems to be incorrect. The issue is that operator-sdk
pulls in a newer dependency of kubebuilder
then the ansible
plugin is expecting, see dep here.
If one updates this to the version that operator-sdk
is running v3.13.1-0.20240119130530-7fba82c768f8
, all of the tests fail with the same reason as operator-sdk
does.
Same issue here:
FATA[0000] failed to initialize project: unable to scaffold with "base.ansible.sdk.operatorframework.io/v1": error updating init manifests: error updating kustomization.yaml files: remove config/default/kustomization.yaml patch and vars blocks: unable to find the content to be replaced
$ operator-sdk version
operator-sdk version: "v1.34.2", commit: "81dd3cb24b8744de03d312c1ba23bfc617044005", kubernetes version: "1.28.0", go version: "go1.21.10", GOOS: "linux", GOARCH: "amd64"
I was able to install an earlier release locally and continue. Hope this gets resolved soon though.
The root cause is fixed in 1.34.3
of the ansible-plugin
https://github.com/operator-framework/ansible-operator-plugins/releases/tag/v1.34.3
I confirm it works now on macOS with operator-sdk 1.35 and kustomize 5.4.2. Thank you very much!
Bug Report
What did you do?
Run The below
What did you expect to see?
A fully scaffold project
What did you see instead? Under which circumstances?
The SDK errors
Environment
Operator type:
/language ansible
Kubernetes cluster type:
$ operator-sdk version
operator-sdk version: "v1.34.1", commit: "edaed1e5057db0349568e0b02df3743051b54e68", kubernetes version: "1.28.0", go version: "go1.21.7", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go) Any$ kubectl version
NAPossible Solution
Additional context