diff --git a/docs/docs/06-crossplane-3xx/07-provider-arubacloud.mdx b/docs/docs/06-crossplane-3xx/07-provider-arubacloud.mdx index e1ee13d..6531757 100644 --- a/docs/docs/06-crossplane-3xx/07-provider-arubacloud.mdx +++ b/docs/docs/06-crossplane-3xx/07-provider-arubacloud.mdx @@ -44,7 +44,7 @@ Expected output: ``` NAME INSTALLED HEALTHY PACKAGE -provider-arubacloud True True ghcr.io/riccap/provider-arubacloud:v0.3.0-workshop +provider-arubacloud True True ghcr.io/riccap/provider-arubacloud:v0.4.0-workshop ``` @@ -327,5 +327,5 @@ Same `Provider` → `ProviderConfig` → MR shape as AWS / GCP / Azure, applied ### Go deeper - **Wrap §7.4's four MRs in an `AppDatabase` XR.** Right now a developer who wants a database has to author `DBaaS` + `Database` + `DBaaSUser` + `DatabaseGrant`, paste IDs between them, look up the endpoint by hand. A platform team turns that into a single Composite Resource — `AppDatabase` — whose XRD asks the developer for two fields (app name, size) and whose Composition fans out into the four MRs. Same shape as the [`Application`](../crossplane-101/define-application) XR you wrote in 101 module 4. Once the upstream provider adds `dbaasIdRef` / `databaseRef` / `userIdRef` cross-resource references and publishes the endpoint to the connection Secret, your XR's developer-facing surface collapses to `kind: AppDatabase` + a name, and the rest of §7.4 disappears. -- [`provider-arubacloud`](https://github.com/ricCap/provider-arubacloud) — provider source, full Kind catalogue, version index. The workshop pins `v0.3.0-workshop`. +- [`provider-arubacloud`](https://github.com/ricCap/provider-arubacloud) — provider source, full Kind catalogue, version index. The workshop pins `v0.4.0-workshop`. - [Aruba Cloud API reference](https://api.arubacloud.com/docs/) — the upstream API the provider talks to. diff --git a/docs/i18n/it/docusaurus-plugin-content-docs/current/06-crossplane-3xx/07-provider-arubacloud.mdx b/docs/i18n/it/docusaurus-plugin-content-docs/current/06-crossplane-3xx/07-provider-arubacloud.mdx index 3afb8a3..176a71f 100644 --- a/docs/i18n/it/docusaurus-plugin-content-docs/current/06-crossplane-3xx/07-provider-arubacloud.mdx +++ b/docs/i18n/it/docusaurus-plugin-content-docs/current/06-crossplane-3xx/07-provider-arubacloud.mdx @@ -1,7 +1,7 @@ --- sidebar_position: 7 title: (Guidato) Crea risorse in Aruba -translation_source_commit: a8bf03892b6de5d5992bc9b88d95de805047d54a +translation_source_commit: 15154117bafbdaee66a76c304307166844542093 --- import PairId from '@site/src/components/PairId'; @@ -45,7 +45,7 @@ Output atteso: ``` NAME INSTALLED HEALTHY PACKAGE -provider-arubacloud True True ghcr.io/riccap/provider-arubacloud:v0.3.0-workshop +provider-arubacloud True True ghcr.io/riccap/provider-arubacloud:v0.4.0-workshop ``` @@ -328,5 +328,5 @@ Stessa forma `Provider` → `ProviderConfig` → MR di AWS / GCP / Azure, applic ### Per approfondire - **Avvolgi le quattro MR di §7.4 in un XR `AppDatabase`.** Adesso uno sviluppatore che vuole un database deve scrivere `DBaaS` + `Database` + `DBaaSUser` + `DatabaseGrant`, incollare ID tra loro, recuperare l'endpoint a mano. Un team di piattaforma trasforma questo in una sola Composite Resource — `AppDatabase` — il cui XRD chiede allo sviluppatore due campi (nome app, dimensione) e la cui Composition si srotola nelle quattro MR. Stessa forma dell'XR [`Application`](../crossplane-101/define-application) che hai scritto nel modulo 4 del 101. Una volta che il provider upstream aggiunge i riferimenti cross-resource `dbaasIdRef` / `databaseRef` / `userIdRef` e pubblica l'endpoint nel Secret di connessione, la superficie sviluppatore-facing del tuo XR collassa a `kind: AppDatabase` + un nome, e il resto di §7.4 sparisce. -- [`provider-arubacloud`](https://github.com/ricCap/provider-arubacloud) — sorgente del provider, catalogo completo dei Kind, indice delle versioni. Il workshop pinna `v0.3.0-workshop`. +- [`provider-arubacloud`](https://github.com/ricCap/provider-arubacloud) — sorgente del provider, catalogo completo dei Kind, indice delle versioni. Il workshop pinna `v0.4.0-workshop`. - [Riferimento API Aruba Cloud](https://api.arubacloud.com/docs/) — l'API upstream con cui parla il provider. diff --git a/gitops/per-vcluster-bundle/Chart.yaml b/gitops/per-vcluster-bundle/Chart.yaml index 000f13c..363c7e4 100644 --- a/gitops/per-vcluster-bundle/Chart.yaml +++ b/gitops/per-vcluster-bundle/Chart.yaml @@ -25,7 +25,7 @@ version: 0.1.0 # `appVersion` tracks the provider-arubacloud OCI image tag we ship. # Keep in sync with the `image` value in values.yaml; bump together # when the upstream provider cuts a new release. -appVersion: "v0.3.0-workshop" +appVersion: "v0.4.0-workshop" # Kyverno is installed via dependency. ArgoCD pulls the chart at # sync time, renders it alongside our templates, applies everything diff --git a/gitops/per-vcluster-bundle/templates/01-provider-arubacloud.yaml b/gitops/per-vcluster-bundle/templates/01-provider-arubacloud.yaml index 5d519fd..9132748 100644 --- a/gitops/per-vcluster-bundle/templates/01-provider-arubacloud.yaml +++ b/gitops/per-vcluster-bundle/templates/01-provider-arubacloud.yaml @@ -3,18 +3,27 @@ # already installed in module 3) pulls the OCI image and registers # the Aruba MR CRDs. # -# Image pinned to v0.3.0-workshop, which carries: -# - Native Terraform provider repointed at upstream -# Arubacloud/terraform-provider-arubacloud v0.1.4 (the fork -# workaround for the Read fix is no longer needed — -# closes ricCap/provider-arubacloud#11). -# - controller-runtime logger wired -# (closes ricCap/provider-arubacloud#3). -# - CRD `required` arrays propagated from TF schema -# (closes ricCap/provider-arubacloud#4). -# - Consistent Kind capitalization (Database, ContainerRegistry, -# BlockStorage, DBaaS, SecurityGroup, etc. — -# closes ricCap/provider-arubacloud#5). +# Image pinned to v0.4.0-workshop, which regenerates every MR API +# against upstream Arubacloud/terraform-provider-arubacloud v1.0.1 +# (ricCap/provider-arubacloud#12). Same Kind catalogue as +# v0.3.0-workshop — no group or Kind added or removed — so the +# shape policies and the module 06 walkthrough are unaffected. +# Schema deltas worth knowing: +# - Every MR gains an optional `spec.forProvider.timeout` (Go +# duration) overriding the provider-level Create/Delete timeout. +# - ContainerRegistry `settings` is now **required**, and +# `settings.adminUser` with it (and may not be `admin`, which +# Aruba reserves). The workshop never applies a ContainerRegistry +# — it is allow-listed but unused — so no doc example changes. +# - DBaaS `billingPeriod` is now Computed: omit it and the API's +# value is adopted rather than the field being unset. +# - Immutability is now documented on the fields that already +# forced replacement (DBaaS engineId/location/projectId/zone, +# Database name, BlockStorage type). Behaviour unchanged. +# +# Carried forward from v0.3.0-workshop: controller-runtime logger +# wired (#3), CRD `required` arrays propagated from the TF schema +# (#4), consistent Kind capitalization (#5). # # Sync wave 0: needs the namespace, but doesn't depend on anything # else in this bundle. ProviderConfig (wave 1) waits on this. diff --git a/gitops/per-vcluster-bundle/templates/14-kyverno-aruba-rbac.yaml b/gitops/per-vcluster-bundle/templates/14-kyverno-aruba-rbac.yaml index e8fd7af..689f35c 100644 --- a/gitops/per-vcluster-bundle/templates/14-kyverno-aruba-rbac.yaml +++ b/gitops/per-vcluster-bundle/templates/14-kyverno-aruba-rbac.yaml @@ -26,7 +26,7 @@ # # Both the cluster-scoped (`*.arubacloud.crossplane.io`) and the # namespaced (`*.arubacloud.m.crossplane.io`) groups are listed. -# v0.3.0-workshop ships both; the workshop teaches the +# v0.4.0-workshop ships both; the workshop teaches the # cluster-scoped flavour, but a participant who experiments with # the namespaced variant should still hit the same admission caps. apiVersion: rbac.authorization.k8s.io/v1 diff --git a/gitops/per-vcluster-bundle/values.yaml b/gitops/per-vcluster-bundle/values.yaml index 7dde914..7d06277 100644 --- a/gitops/per-vcluster-bundle/values.yaml +++ b/gitops/per-vcluster-bundle/values.yaml @@ -18,7 +18,7 @@ pairId: "" # story (Track 0.4 / `task release`) bumps this when the upstream # provider ships a new tag. provider: - package: ghcr.io/riccap/provider-arubacloud:v0.3.0-workshop + package: ghcr.io/riccap/provider-arubacloud:v0.4.0-workshop # Shape policies — what participants are allowed to create. Tuned # for the smoke-tested ITBG-Bergamo region; override per-event via @@ -29,7 +29,7 @@ shapePolicies: # `DBaaS` is the headline MR module 06 walks participants through # (`docs/docs/06-crossplane-3xx/07-provider-arubacloud.mdx`); the # other three remain in case future modules use them. - # See ricCap/provider-arubacloud#5 for the full v0.3.0-workshop kind list. + # See ricCap/provider-arubacloud#5 for the full v0.4.0-workshop kind list. allowedKinds: - DBaaS - Database diff --git a/validator/checks.go b/validator/checks.go index b6eb61d..b1109e8 100644 --- a/validator/checks.go +++ b/validator/checks.go @@ -538,13 +538,13 @@ func checkArubaPoliciesPresent(ctx context.Context, client dynamic.Interface) (b len(expectedArubaClusterPolicies)), nil } -// arubaMRGVRs lists the v0.3.0-workshop curated Aruba MR Kinds the +// arubaMRGVRs lists the v0.4.0-workshop curated Aruba MR Kinds the // validator considers when checking for "the participant has applied at // least one Aruba managed resource and it's Ready". The Kinds match the // curated set from #44 / values.yaml's shapePolicies.allowedKinds. // // We list both the cluster-scoped and the namespaced (.m.) flavours of -// each — v0.3.0-workshop ships both, the workshop teaches the +// each — v0.4.0-workshop ships both, the workshop teaches the // cluster-scoped flavour first but a participant who experiments with // the namespaced variant should still see the tile turn green. var arubaMRGVRs = []schema.GroupVersionResource{