Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/06-crossplane-3xx/07-provider-arubacloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

<ValidateCheck check="provider-arubacloud-installed" />
Expand Down Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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
```

<ValidateCheck check="provider-arubacloud-installed" />
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion gitops/per-vcluster-bundle/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 21 additions & 12 deletions gitops/per-vcluster-bundle/templates/01-provider-arubacloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gitops/per-vcluster-bundle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions validator/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
Loading