Add simple-bucket example: generic Bucket API -> S3 via kro + api-syncagent#7
Open
iakmc wants to merge 1 commit into
Open
Add simple-bucket example: generic Bucket API -> S3 via kro + api-syncagent#7iakmc wants to merge 1 commit into
iakmc wants to merge 1 commit into
Conversation
iakmc
force-pushed
the
simple-bucket-s3-poc
branch
from
July 21, 2026 13:17
b972ed8 to
8f0d724
Compare
Verified end-to-end proof of concept for API extraction / vendor-neutral IaaS: a consumer orders object storage through a single generic storage.opendefense.cloud/v1alpha1 Bucket API in one kcp workspace, kro translates it into a vendor resource, and a small S3 operator fulfills it against the floci-aws emulator - status, endpoint and a credentials Secret flow back to the consumer, who never sees a vendor API. Also wires in the REAL provider-gcp controller (sibling checkout) as an alternative provider against floci-gcp, and a Crossplane-based GCP path. See the PR description for architecture, verified results and full reproduction steps. Signed-off-by: Iskren <iskren@kubermatic.com>
iakmc
force-pushed
the
simple-bucket-s3-poc
branch
from
July 21, 2026 13:19
8f0d724 to
6357b50
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a working example of the API extraction idea for object storage: a consumer orders a
Bucketthrough the genericstorage.opendefense.cloud/v1alpha1API in a single kcp workspace, kro translates it into a vendor resource, and it gets fulfilled on a local S3 emulator (floci). Status and a credentials secret flow back to the consumer, who never touches a vendor API.Everything runs on one kind cluster and one kcp workspace - no cloud account needed.
There's also a second path that swaps kro's translation for the actual
provider-gcpcontroller (built from a sibling checkout) against a GCS emulator, which turned up two real schema mismatches between our own generic API and the real one:storageClassis lowercase in the real SDK but capitalized in ours, andstatus.bucketSecretis a plain string in the real SDK instead of the{name: ...}object shape we assumed. Both are fixed here.Layout
api/opendefense/v1alpha1- the generic Bucket APIapi/s3/v1alpha1,cmd/,internal/- a small operator that provisions on any S3-compatible backendproviders/floci-aws,providers/provider-gcp,providers/gcp-crossplane,providers/aws-crossplane- one dir per provider, swappable viatask rgd:gcp/task rgd:s3examples/simple-bucket- the runnable examplehack/run.bash- every workflow, wrapped byTaskfile.yml/MakefileRunning it
Manual checks after either:
task cleanupremoves the example bucket,task destroytears down the cluster.The Crossplane-based GCP path (
task crossplane,task rgd:gcp) is scaffolded but I haven't run it.Ran
task allandtask provider-gcpfrom a torn-down cluster a few times while working on this, both come up clean. Both go modules build, YAML validates.