goharbor / harbor-operator

Kubernetes operator for Harbor service components
Apache License 2.0
358 stars 111 forks source link

Tutorial is Broken #1080

Open OpenGLShaders opened 11 months ago

OpenGLShaders commented 11 months ago

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior: Following the tutorial I run: kubectl apply -f https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml and get the following:

[resource mapping not found for name: "serving-cert" namespace: "harbor-operator-ns" from "https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml": no matches for kind "Certificate" in version "cert-manager.io/v1"
ensure CRDs are installed first, resource mapping not found for name: "selfsigned-issuer" namespace: "harbor-operator-ns" from "https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml": no matches for kind "Issuer" in version "cert-manager.io/v1"
ensure CRDs are installed first]
Error from server (Invalid): error when creating "https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml": CustomResourceDefinition.apiextensions.k8s.io "jobservices.goharbor.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Error from server (Invalid): error when creating "https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml": CustomResourceDefinition.apiextensions.k8s.io "redisfailovers.databases.spotahome.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Steps to reproduce the problem: kubectl apply -f https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml

Versions: Please specify the versions of following systems.

Additional context:

I'm using minikube for local development and testing.

Workaround

kubectl create -f https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/cluster/deployment.yaml seems to work.

ta2lor commented 10 months ago

I also have a same error problem, Do you have any progress for that? or using other one?

mattmattox commented 9 months ago

This is still broken but I was able to workaround this by adding the server-side flag to the apply command.

kubectl apply --server-side=true --force-conflicts -f https://raw.githubusercontent.com/goharbor/harbor-operator/main/manifests/harbor/deployment.yaml

Doc