Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgres-operator not found as a helm dependency #1017

Open
chess-knight opened this issue Feb 15, 2023 · 2 comments
Open

postgres-operator not found as a helm dependency #1017

chess-knight opened this issue Feb 15, 2023 · 2 comments

Comments

@chess-knight
Copy link

Expected behavior and actual behavior:
I followed this tutorial to generate harbor-operator helm chart. So I ran the following commands:

git clone https://github.com/goharbor/harbor-operator.git && \
cd harbor-operator && \
git checkout release-1.3.0 && \
make helm-generate RELEASE_VERSION=v1.3.0

I expected the chart generated in the charts/harbor-operator-v1.3.0.tgz directory. Instead of that, I got an Error for the helm dependency update command:

Error: can't get a valid version for repositories postgres-operator. Try changing the version constraint in Chart.yaml
make: *** [Makefile:269: charts/harbor-operator-v1.3.0.tgz] Error 1

Steps to reproduce the problem:
Follow the steps above.

Versions:

  • harbor operator version: v1.3.0

Additional context:
It seems that postrgres-operator helm dependency with a version 1.6.3 doesn't exist. See also postgres-operator repository:

$ helm repo add postgres-operator-charts https://opensource.zalando.com/postgres-operator/charts/postgres-operator
"postgres-operator-charts" has been added to your repositories
$ helm search repo postgres-operator-charts -l
NAME                                            CHART VERSION   APP VERSION     DESCRIPTION                                       
postgres-operator-charts/postgres-operator      1.9.0           1.9.0           Postgres Operator creates and manages PostgreSQ...
postgres-operator-charts/postgres-operator      1.8.2           1.8.2           Postgres Operator creates and manages PostgreSQ...
postgres-operator-charts/postgres-operator      1.8.1           1.8.1           Postgres Operator creates and manages PostgreSQ...
postgres-operator-charts/postgres-operator      1.8.0           1.8.0           Postgres Operator creates and manages PostgreSQ...
postgres-operator-charts/postgres-operator      1.7.1           1.7.1           Postgres Operator creates and manages PostgreSQ...
postgres-operator-charts/postgres-operator      1.7.0           1.7.0           Postgres Operator creates and manages PostgreSQ...

So I tried to change a version of postgres-operator to 1.7.1 and make helm-generate RELEASE_VERSION=v1.3.0 command now works as expected:

Successfully packaged chart and saved it to: charts/harbor-operator-v1.3.0.tgz
@ghost
Copy link

ghost commented Feb 20, 2023

I spotted this on the day postgres-operator v1.9 came out, on the 30th of Jan 2023. But thought it was short term issue, due to updating.

I had a saved *v1.3.0.tgz I used instead.

good to know updating Chart.yaml to 1.71 works. Thx

@ghost
Copy link

ghost commented Feb 22, 2023

Also FYI..

postgres 18.2 or lower is not completable with Kubernetes 1.25+

just tested postgres update form 1.6.2 to 1.9.0 in to /harbor-operator/charts/harbor-operator/Chart.yaml . with Kubernetes 1.25. But harborcluster-sample-harbor-harbor-core wont start.

Error =
#kubectl describe postgresqls.acid.zalan.do -n cluster-sample-ns
postgres-operator could not create cluster: could not create pod disruption budget: the server could not find the requested resource
Issues - zalando/postgres-operator#2098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant