Repository navigation
feat(k8s): apply store buckets and rules from git - #6724
Conversation
Person steps
Owner review points
|
|
Pull request #6724 has merge conflicts with |
01ddb59 to
69fda27
Compare
Person steps (these replace comment 7073025449)The steps of the earlier comment do not apply now. This branch adds no ClusterSecret row and no Secret reference, so no
Owner review points
|
|
RBAC proof, head Command, from the root of the branch (0.1.48 is the helm template seaweedfs-operator seaweedfs-operator \
--repo https://seaweedfs.github.io/seaweedfs-operator --version 0.1.48 \
--namespace object-store -f k8s/object-store/operator-values.yaml > render.yaml
grep -A6 -E '^kind: (Role|RoleBinding|ClusterRole|ClusterRoleBinding)$' render.yaml | grep -E '^kind:|^ name:|^ namespace:'
grep -E '^ namespace:' render.yaml | sort | uniq -c
grep -c -E 'devops|argo-workflows' render.yamlResult:
Contrast: the values of the previous head Other evidence (read-only):
|
Plan the OpenSpec change 4756-store-buckets-from-git: the four platform buckets with quotas, anonymous read and lifecycle rules, the writer identities, policies and keys, and the watch scope of the operator.
Rows devops/object-store-devops and argo-workflows/object-store-argo hold the S3 key pair of the writers devops and argo of the object store. The push makes each pair under keyring-only keys.
The rules of object_store_buckets.py check the platform buckets and quotas, the anonymous read, the lifecycle rules, the writer policies, the writer keys and grants, the watch scope and the kinds of the render. The Secret rule of object_store.py reads the namespace of a secretRef.
Add the four platform buckets with their quotas, anonymous read and lifecycle rules, and the identity, policy, binding, credentials and grant of the writers devops and argo. The operator watches the two writer namespaces.
Add the section Buckets and keys to the Object Store section of the k8s README, and update the identities, clients, rollout and folder tree.
Sync the object-store spec with the buckets, the writer keys, the watch scope and the kinds of the store render.
A unit test holds the table to no row whose name starts with object-store-: the tenant chart makes each writer key with an ESO Password generator.
The Buckets and their lifecycle policies of reports, reports-private and cache move to devops, and argo-artifacts to argo-workflows. Each Bucket names the store in clusterRef, and one ResourceReferenceGrant in object-store admits the Buckets of the two namespaces. The writer identities, credentials and grants go: the tenant chart makes them.
The bucket rule, the watch rule and the kind rule now refuse a bucket or a policy outside object-store, a watched writer namespace and a ResourceReferenceGrant. The operator gets its manager Role, which can write Secrets, in each watched namespace (#4756).
The four buckets and their lifecycle policies live beside the Seaweed CR, with no ResourceReferenceGrant, and the operator watches only object-store again. Thus it has no Role in devops or argo-workflows. The comments on the S3 identities file name identity anonymous, which the operator keeps in the filer for the anonymous read (#4756).
The specs, the archived change and k8s/README.md put the buckets in object-store and keep the operator on that namespace. The design records the rejected plan of the writer namespaces and its reason (#4756).
bucket_problems kept one CR for each S3 name, so a second CR of a bucket with reclaimPolicy Delete passed. The rule now reads each CR and reports two CRs with the same bucket name.
Operator 1.0.45 puts back a quota, a lifecycle rule or a grant that it applied. It revokes only the grants of its annotation, so a grant that a person adds stays, and versioning Off and an unset owner change nothing (internal/controller/bucket_controller.go). The spec gets the requirement that one CR makes each bucket.
9d094af to
621eb12
Compare
🤖 I have created a release *beep* *boop* --- ## [0.193.0](v0.192.2...v0.193.0) (2026-11-22) ### Features * **k8s:** apply store buckets and rules from git ([#6724](#6724)) ([0036c70](0036c70)) ### Bug Fixes * **ci:** match the real release image job names in job-time ([#6740](#6740)) ([d2dd628](d2dd628)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The buckets, quotas, anonymous read and lifecycle rules of the object store are in git, as CRs of the SeaweedFS operator. No reconcile Job runs.
buckets.yaml:reportsandreports-private(20Gi, anonymous GET) andcacheandargo-artifacts(10Gi), each withreclaimPolicy: Retainand one lifecycle policy. All CRs are inobject-storebeside theSeaweedCR, so noResourceReferenceGrantis needed.object-store, so it gets no chart Role that can write the Secrets ofdevopsorargo-workflows.dan-petty/infra.k8srow checks each bucket CR, one CR for each bucket, the anonymous read, the lifecycle rules, the watch scope and the kinds and namespace of the render. A unit test checks thatCLUSTER_SECRETShas noobject-store-row.Closes #4756
Change:
openspec/changes/archive/2026-11-22-4756-store-buckets-from-git/