Skip to content

Extract TopologySpreadSkews to named type to fix controller-gen panic#53

Open
moabukar wants to merge 1 commit intomonzo:masterfrom
moabukar:fix/extract-topology-spread-skews-type
Open

Extract TopologySpreadSkews to named type to fix controller-gen panic#53
moabukar wants to merge 1 commit intomonzo:masterfrom
moabukar:fix/extract-topology-spread-skews-type

Conversation

@moabukar
Copy link
Copy Markdown

@moabukar moabukar commented Apr 8, 2026

Summary

make manifests currently panics with a nil pointer dereference in controller-gen due to the TopologySpreadSkews field being declared as an inline anonymous struct inside ExternalServiceSpec.

This extracts it to a named TopologySpreadSkews type, which resolves the panic and allows make manifests to complete successfully.

The CRD manifest has also been regenerated - it was out of date and missing the topologySpreadSkews and serviceTrafficDistribution fields added in #47 and #48.

Fixes #49

The inline anonymous struct for TopologySpreadSkews in
ExternalServiceSpec causes controller-gen to crash with a nil
pointer dereference when running `make manifests`. Extracting it
to a named type resolves the panic.

This also regenerates the CRD manifest, which was out of date and
missing the topologySpreadSkews and serviceTrafficDistribution
fields added in monzo#47 and monzo#48.

Fixes monzo#49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What is needed for "make manifests" to work

1 participant