documented quickstart fails: CRD is invalid: metadata.annotations: Too long
Summary
Quickstart guide instructs
kubectl apply -f https://stackgres.io/downloads/stackgres-k8s/stackgres/1.5.0/stackgres-operator-demo.yml
Resource currently provided does not seem to be valid. Apply fails:
Error from server (Invalid): error when creating "stackgres-operator-demo.yml": CustomResourceDefinition.apiextensions.k8s.io "sgclusters.stackgres.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Error from server (Invalid): error when creating "stackgres-operator-demo.yml": CustomResourceDefinition.apiextensions.k8s.io "sgshardedclusters.stackgres.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Expected Behaviour
Documented instructions do not produce failure
Environment
Versions:
$ kubectl version --short
Client Version: v1.27.4
Server Version: v1.25.3
Download details:
$ curl -sv -O https://stackgres.io/downloads/stackgres-k8s/stackgres/1.5.0/stackgres-operator-demo.yml 2>&1 | grep "^[<>]"
> GET /downloads/stackgres-k8s/stackgres/1.5.0/stackgres-operator-demo.yml HTTP/2
> Host: stackgres.io
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/2 200
< content-type: binary/octet-stream
< content-length: 994181
< date: Fri, 01 Sep 2023 18:52:15 GMT
< last-modified: Mon, 03 Jul 2023 22:34:24 GMT
< etag: "7aff0453d3c09ea435426369d22c1edf"
< server: AmazonS3
< x-cache: Hit from cloudfront
< via: 1.1 063f496e2a2a07219bf3fbec39d54de4.cloudfront.net (CloudFront)
< x-amz-cf-pop: IAD66-C1
< alt-svc: h3=":443"; ma=86400
< x-amz-cf-id: I11OkqOBRCQv9I64ia44Rz_YXQ3Bi9buIOl4YyzUhbJYAuw6TSsuTQ==
< age: 3130
< vary: Origin
<
File content:
$ sha256sum stackgres-operator-demo.yml
00c0d28eb7d0a4af0d214c803d9fe18010b4120cf71390a88f5cae7ef38a4037 stackgres-operator-demo.yml
Extracting offending bits:
$ yq '. | select(.metadata.name == "sgclusters.stackgres.io")' stackgres-operator-demo.yml > sgclusters.yaml
$ kubectl apply -f sgclusters.yaml
The CustomResourceDefinition "sgclusters.stackgres.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Edited by jason-matthew