Repository navigation
Upgrade k8gb pack to 1.0.0 - #327
CarlosRamirezSWO wants to merge 1 commit into
Conversation
Pack review — k8gb-1.0.0 (repo: spectrocloud/pack-central)Packs Validation: ✅ passed (run) Compared against
|
| Rendered image | Declared? |
|---|---|
registry.k8gb.io/k8gb-io/k8gb:v1.0.0 |
✅ |
registry.k8gb.io/k8gb-io/k8s_crd:v0.6.0 (CoreDNS + k8gb plugin) |
✅ |
registry.k8s.io/external-dns/external-dns:v0.21.0 (extdns.enabled=true) |
✅ |
otel/opentelemetry-collector:0.159.0 (tracing.enabled=true) |
✅ |
jaegertracing/all-in-one:1.76.0 (tracing.deployJaeger=true) |
✅ |
✅ No bundled-dependency image is missing from the airgap list on the default path or with tracing/extdns enabled. Two caveats under Minor below.
Blockers
-
extdns.enabled: truefails to render with the pack's own shipped defaults. The overlay ships the literal placeholdersextdns.txtPrefix: "k8gb-<GEOTAG>-"andextdns.txtOwnerId: "k8gb-<GEOTAG>", buttemplates/_validators.tplhard-fails unless both containk8gb.clusterGeoTag("eu"):Error: execution error at (k8gb/templates/deployment.yaml:1:3): Validation failed: extdns.txtPrefix (k8gb-<GEOTAG>-) does not contain the expected geo tag (eu)Reproduced with nothing but this pack's
values.yamlplus--set extdns.enabled=true. Substitutingk8gb-eu-/k8gb-eurenders cleanly, which confirms the placeholders are the only cause. This matters more than it looks: in 1.0.0 the embedded ExternalDNS is now the only way to drive Route53 / Cloudflare / NS1 / RFC2136 (see Major chore: added annotation that contains source and contributor #2), so the single switch a non-Infoblox user must flip is also the one that breaks the install. Please default these to the real geo tag (k8gb-eu-/k8gb-eu, matchingclusterGeoTag) or template them offclusterGeoTag.
Inherited from Upgrade k8gb pack to 0.20.0 #293, which ships the same two placeholder strings — not introduced here, but it ships in this PR.
Major
-
Gslb CRD API group migrated
k8gb.absa.oss→k8gb.io, with no conversion webhook. The chart now installsgslbs.k8gb.io(v1beta1, served+storage) alongside the legacygslbs.k8gb.absa.oss; neither CRD declares aspec.conversionstanza, so existing CRs are not converted.installLegacyCrds: trueis the default and the ClusterRole grants both groups, so existingk8gb.absa.oss/v1beta1Gslb objects keep working after upgrade — but users must migrate them by hand and must not setinstallLegacyCrds: falseuntil they have, because the CRDs are Helm-templated (not incrds/), so flipping it tofalsedeletes the legacy CRD and cascade-deletes every Gslb CR with it. This needs an explicit README warning. -
Four DNS-provider value sections were removed upstream and silently become no-ops on upgrade. Confirmed by key-diffing the overlay against the vendored chart: chart 1.0.0 has exactly nine top-level keys (
global,k8gb,coredns,infoblox,extdns,openshift,tracing,istio,gatewayapi) — noroute53,cloudflare,ns1orrfc2136anywhere in the templates or values. A 0.12.2 user carryingroute53.enabled: true(hostedZoneID, IRSA role, secret) orcloudflare.enabled: true(zoneID) will have Helm silently ignore all of it; the DNS provider just stops being configured. Same for the renamed keys:k8gb.dnsZone+k8gb.edgeDNSZone+k8gb.dnsZoneNegTTL→k8gb.dnsZones[](array of{parentZone, loadBalancedZone, dnsZoneNegTTL})externaldns.*→extdns.*(now the external-dns subchart, not a k8gb template)k8gb.coredns.extra_plugins→ per-zonek8gb.dnsZones[].extraPluginsk8gb.splitBrainCheck→ removed outright
None of this is a pack defect — it is upstream's breaking change — but the pack is the thing users upgrade, and nothing in this PR warns them.
-
CoreDNS Service default flips
LoadBalancer→ClusterIP, and the AWS NLB annotation is gone. 0.12.2 shippedcoredns.serviceType: LoadBalancerpluscoredns.service.annotations: {service.beta.kubernetes.io/aws-load-balancer-type: nlb}. 1.0.0 shipsClusterIPwith noserviceblock at all, and thecoredns-loadbalancerpreset only setsserviceType: LoadBalancer— I rendered it and the Service comes out with no annotations:ports: - {"name":"udp-5353","port":53,"protocol":"UDP","targetPort":5353} - {"name":"tcp-5353","port":53,"protocol":"TCP","targetPort":5353} type: LoadBalancer
On AWS that provisions a classic ELB, which cannot serve UDP, so CoreDNS gets no working DNS listener — the exact failure the NLB annotation existed to prevent. Two separate asks: (a) restore the
aws-load-balancer-type: nlbannotation in the LoadBalancer preset (or document it loudly), and (b) note in the README that an in-place upgrade from 0.12.2 silently demotes CoreDNS to ClusterIP, which breaks GSLB until an Ingress labelledk8gb.io/ip-source=trueexists or the LoadBalancer preset is selected. -
extdns.provideris never surfaced in the pack overlay. The external-dns subchart defaults toprovider.name: aws. The overlay'sextdnsblock (copied verbatim from upstream's partial block) exposesenabled,interval,labelFilter,logLevel,managedRecordTypes,policy,rbac,sources,domainFilters,txtPrefix,txtOwnerId— but noprovider, noenv, noextraArgs. Since the pack'svalues.yamlis the user-facing config surface in Palette, anyone who is not on Route53 has to know to hand-add keys that aren't shown. Replacing what 0.12.2 exposed per-provider (IRSA role, assume-role ARN, static-credential secret, Cloudflare zone ID, TSIG/GSS-TSIG creds) with nothing is a real regression in usability. -
DNSEndpoint CRD ownership flips when
extdnsis enabled, and Helm will delete it.crds-template.yamlonly renderscrd/dns-endpoint-crd-manifest.yaml{{- if not .Values.extdns.enabled }}. The external-dns subchart ships its own copy incharts/external-dns/crds/, but Helm appliescrds/on install only, never on upgrade. So a user who upgrades withextdns.enabled: truehas the templated CRD removed from the release manifest — Helm deletes it, cascade-deleting every DNSEndpoint object — and the subchart copy is not re-applied. Worth either documenting or pinning. -
pack.jsondeclares no upgrade constraint. The only constraint is anoptionalkubernetes ≥ 1.29 dependency. Given items 1–5, nothing stops Palette from offering a one-click in-place 0.12.2 → 1.0.0 upgrade that lands users in a broken state. Please add anupgradeconstraint (or aminVersiongate) so this is treated as the migration it is, and say in the README whether in-place upgrade is supported at all or whether a fresh install is required.
Minor
coredns/coredns:1.13.1is declared but never pulled. The overlay pinscoredns.image.repository: registry.k8gb.io/k8gb-io/k8s_crd/tag: v0.6.0, so the stock CoreDNS image is rendered nowhere in any configuration I exercised. Harmless (one extra airgap pull) but misleading — drop it or add a comment saying it is a deliberate fallback.registry.k8s.io/cpa/cluster-proportional-autoscaler:v1.9.0is not declared. CoreDNS 1.46.1 shipsautoscaler.enabled: falseso it does not render today, but any user who enables the autoscaler on an airgapped cluster will fail to pull. Consider declaring it.- external-dns switched from the k8gb fork to upstream. 0.12.2 pinned
ghcr.io/k8gb-io/external-dns:v0.13.4-azure-nswith an explicit comment that the fork was required "to get the full functionality"; 1.0.0 uses upstreamregistry.k8s.io/external-dns/external-dns:v0.21.0. This is upstream's own move, but please confirm theazure-nscapability that fork carried is genuinely upstreamed, since any Azure-DNS user depends on it. - Default edge resolver changed
169.254.169.253→1.1.1.1.k8gb.edgeDNSServersnow defaults to Cloudflare public DNS instead of the AWS VPC resolver. Fine as a generic default, but it is unreachable in airgapped/egress-restricted environments — worth a README line. istio.enabledandgatewayapi.enabledboth default totrue(new in 1.0.0). Rendering confirms these only add ClusterRole rules fornetworking.istio.ioandgateway.networking.k8s.io, which is safe on clusters without those CRDs — but it does grant cluster-wide RBAC nobody asked for. Consider defaulting tofalse.
Nits / observations
- README is a large improvement but has no upgrade/migration section — given Major 1–3 that is the single most valuable thing to add.
Chart.yamlcarriesversion: v1.0.0(leadingv), which is upstream's own quirk;pack.jsoncorrectly uses1.0.0and the validator's no-leading-vcheck passed.- No Docker Hardened Images /
DHIreferences in the README. (Hardened-image and FIPS rules do not apply in pack-central — noshi//dhi/containers exist here.) k8gb-zone-delegationConfigMap wiring verified end-to-end: the overlay'scoredns.extraVolumesreference, the chart'stemplates/coredns/cm.yaml, and the Role intemplates/role.yamlall use the same hardcoded name, so the ZoneDelegation mount is not a silent no-op.- Stale overlay keys: none. I flattened every leaf path in
.charts.k8gband in the vendored chart'svalues.yaml— 94 paths each, identical in both directions. The overlay was rebuilt from upstream 1.0.0's values rather than patched forward from 0.12.2, which is exactly the right call for a jump this size and is why there are no near-miss renamed keys.
Supersession — #273 and #293 are made redundant by this PR
Three k8gb upgrade PRs are stacked open, all by the same author, with main still on 0.12.2:
| PR | Version | Opened | Adds |
|---|---|---|---|
| #273 | 0.19.0 | Jul 22 | packs/k8gb-0.19.0/ |
| #293 | 0.20.0 | Aug 7 | packs/k8gb-0.20.0/ |
| #327 (this) | 1.0.0 | Sep 15 | packs/k8gb-1.0.0/ |
Each PR adds a directory rather than editing one, so they never conflict and all three would merge cleanly — which is why the queue grew unnoticed. Merging #327 makes #273 and #293 redundant; recommend closing both rather than merging a four-deep ladder of pack versions nobody will select.
I checked whether #327 dropped anything its unmerged predecessors got right (this repo has had that happen twice, #360 and #362):
- ✅
presets.yamlis byte-identical across all three — nothing lost. - ✅ The
<GEOTAG>placeholder Blocker is inherited from Upgrade k8gb pack to 0.20.0 #293, not a regression introduced here. Upgrade k8gb pack to 0.19.0 #273/Upgrade k8gb pack to 0.20.0 #293 do not fix it either. ⚠️ One thing was lost: Upgrade k8gb pack to 0.20.0 #293 setdisplayName: "Kubernetes Global Balancer"; Upgrade k8gb pack to 1.0.0 #327 reverts todisplayName: "k8gb". Consistent with what is onmaintoday, so not a regression againstmain— but Upgrade k8gb pack to 0.20.0 #293's version is the better label and is worth carrying over.⚠️ Upgrade k8gb pack to 0.20.0 #293 keptcoredns.serviceType: "LoadBalancer"as the values default; Upgrade k8gb pack to 1.0.0 #327 changes it toClusterIPand leans on the presets. That looks deliberate and is documented in the README, but it is the change behind Major PR validator script for packs, add missing multus version #3 — please confirm it was intentional.
Verdict
Request changes. The pack is well built — chart tarball and vendored tree are byte-identical, the overlay was correctly rebuilt from upstream 1.0.0 so there are zero stale keys, and every image that renders is declared. Three things should land before merge:
- Fix the
extdns.txtPrefix/txtOwnerId<GEOTAG>placeholders (Blocker — the ExternalDNS path cannot install as shipped). - Add a README upgrade/migration section covering the CRD group move, the removed provider keys, and the CoreDNS ClusterIP default (Major 1–3).
- Decide on the AWS NLB annotation in the LoadBalancer preset, and on an
upgradeconstraint inpack.json(Major 3, 6).
Then close #273 and #293 as superseded.
Review generated by the pack-reviewer Claude Code subagent.
Upgrade k8gb pack to 1.0.0