dev4devs-com / postgresql-operator

Operator in Go developed using the Operator Framework to package, install, configure and manage a PostgreSQL database.
Apache License 2.0
30 stars 15 forks source link

Is the tag 0.1.1 branch still works? #92

Open xkwangcn opened 3 years ago

xkwangcn commented 3 years ago

Question

Is the tag 0.1.1 branch still works for building iamge? and is the code works fun for postgresql function?

What did you do?

Build image with code in tag 0.1.1

  1. git clone https://github.com/dev4devs-com/postgresql-operator.git
  2. cd postgresql-operator
  3. git checkout 0.1.1
  4. make image-build-master failed
    [root@kvm4ocp5 postgresql-operator]# make image-build-master
    make: *** No rule to make target 'image-build-master'.  Stop.
  5. try to use operator-sdk still failed:
    
    [root@kvm4ocp5 postgresql-operator]# operator-sdk build postgresql-operator:0.1.1
    [Deprecation Notice] Operator SDK has a new CLI and project layout that is aligned with Kubebuilder.
    See `operator-sdk init -h` and the following doc on how to scaffold a new project:
    https://v0-19-x.sdk.operatorframework.io/docs/golang/quickstart/
    To migrate existing projects to the new layout see:
    https://sdk.operatorframework.io/docs/building-operators/golang/project_migration_guide/

go: github.com/operator-framework/operator-sdk@v0.10.1-0.20190906161029-1cb0481ca946 requires github.com/operator-framework/operator-lifecycle-manager@v0.0.0-20190128024246-5eb7ae5bdb7a requires github.com/operator-framework/operator-registry@v1.0.4 requires github.com/operator-framework/operator-lifecycle-manager@v0.0.0-20190105193533-81104ffdc4fb requires bitbucket.org/ww/goautoneg@v0.0.0-20120707110453-75cd24fc2f2c: reading https://api.bitbucket.org/2.0/repositories/ww/goautoneg?fields=scm: 404 Not Found FATA[0002] Failed to build operator binary: failed to exec []string{"go", "build", "-o", "/root/wxk/postgresql-operator/build/_output/bin/postgresql-operator", "-gcflags", "all=-trimpath=/root/wxk", "-asmflags", "all=-trimpath=/root/wxk", "github.com/dev4devs-com/postgresql-operator/cmd/manager"}: exit status 1



### What did you expect to see?
<!--- A clear and concise description of what you expected to happen. -->
can successfully build the image postgresql-operator for 0.1.1

### Environment
* postgresql-operator version: 0.1.1

<!--- Insert postgresql-operator release or Git SHA here. -->

* Kubernetes version information: OpenShit4.8

<!--- Insert the output of `kubectl version` here -->

* Kubernetes cluster kind: 

### Additional context
<!--- Add any other context about the question here. -->
xkwangcn commented 3 years ago

@camilamacedo86 @pratikjagrut could you give me some reply about:

  1. Is the 0.1.1 still work?
  2. How to build image for 0.1.1?

I want to use the code in branch 0.1.1 to build one image for our arch. Thank you very much.