Skip to content

fix(istio): Register NetworkAttachmentDefinition type in operator scheme#4408

Merged
electricjesus merged 2 commits intomasterfrom
seth/fix-objectmetaaccessor-unstructured
Feb 6, 2026
Merged

fix(istio): Register NetworkAttachmentDefinition type in operator scheme#4408
electricjesus merged 2 commits intomasterfrom
seth/fix-objectmetaaccessor-unstructured

Conversation

@electricjesus
Copy link
Copy Markdown
Member

@electricjesus electricjesus commented Feb 6, 2026

Register the NetworkAttachmentDefinition type (k8s.cni.cncf.io/v1) in the operator scheme so the Istio Helm chart manifests on OpenShift are decoded as typed objects instead of falling back to unstructured.

Picks: #4405 (release-v1.40), #4406 (release-v1.41)

Register NetworkAttachmentDefinition type in operator scheme for Istio OpenShift support.

@caseydavenport
Copy link
Copy Markdown
Member

The OpenShift Istio profile includes a NetworkAttachmentDefinition (from k8s.cni.cncf.io/v1) which gets decoded as unstructured.Unstructured since the CRD type is not registered in the operator's scheme.

These feels like the main problem? We should just be registering the type and not using unstructured types.

Copy link
Copy Markdown
Member

@caseydavenport caseydavenport left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just register the NAD with our scheme instead of relying on unstructured, and avoid the changes here.

Register the k8s.cni.cncf.io/v1 NetworkAttachmentDefinition type in the
operator's scheme so the Istio Helm chart deserializer can decode it as
a typed object. This replaces the unstructured.Unstructured fallback
from #4402, avoiding ObjectMetaAccessor compatibility issues downstream.
@electricjesus electricjesus force-pushed the seth/fix-objectmetaaccessor-unstructured branch from e260cdc to 492c80d Compare February 6, 2026 22:34
@electricjesus electricjesus changed the title fix(istio): Use metav1.Object instead of ObjectMetaAccessor for unstructured compatibility fix(istio): Register NetworkAttachmentDefinition type in operator scheme Feb 6, 2026
@electricjesus electricjesus merged commit 4def5a3 into master Feb 6, 2026
8 checks passed
@rene-dekker rene-dekker deleted the seth/fix-objectmetaaccessor-unstructured branch February 9, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants