operator-framework / operator-sdk

SDK for building Kubernetes applications. Provides high level APIs, useful abstractions, and project scaffolding.
https://sdk.operatorframework.io
Apache License 2.0
7.21k stars 1.74k forks source link

Failed to initialize project: unable to scaffold with "base.ansible.sdk.operatorframework.io/v1" #6739

Closed saadahmed9 closed 4 months ago

saadahmed9 commented 5 months ago

Bug Report

I installed all the prerequisites before initializing the project, downloaded the operator-sdk binary from Github and tried creating my first operator via below command mentioned in the operator-sdk docs:

operator-sdk init --domain example.com --plugins ansible

Environment:

  operator-sdk version: "v1.34.1", commit: "edaed1e5057db0349568e0b02df3743051b54e68", kubernetes version: "1.28.0", go 
  version: "go1.21.7", GOOS: "darwin", GOARCH: "amd64"

What did you expect to see? I expected a successful first initialization.

What did you see instead? Under which circumstances? I saw the below error:

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 

However, project init was succesfull, when I tried go and helm plugins.

acornett21 commented 5 months ago
acornett21 commented 4 months ago

closing as duplicate