Skip to content

Regression in k8s.io v0.34 around setting Kind #7183

@arkodg

Description

@arkodg
Should be empty, but was   &v1.ConfigMap{
        	            	  	TypeMeta: v1.TypeMeta{
        	            	- 		Kind: "ConfigMap",
        	            	+ 		Kind: "",
        	            	  		... // 1 ignored field
        	            	  	},
        	            	  	ObjectMeta: {Name: "envoy-test-9f86d081", Namespace: "test", Labels: {"app.kubernetes.io/component": "proxy", "app.kubernetes.io/managed-by": "envoy-gateway", "app.kubernetes.io/name": "envoy", "gateway.envoyproxy.io/owning-gateway-name": "test", ...}, OwnerReferences: {{APIVersion: "gateway.networking.k8s.io/v1", Kind: "GatewayClass", Name: "envoy-gateway-class", UID: "foo.bar", ...}}, ...},
        	            	  	Immutable:  nil,
        	            	  	... // 2 identical fields
        	            	  }

looks like there's a change in clinet-go/controller-runtime, it returns empty TypeMeta.

Originally posted by @zirain in #7128 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions