Skip to content

New Variables values are not passing to controller after upgrading V1alpha1 to V4 #6904

Open
@psaini79

Description

@psaini79

Bug Report

What did you do?

We have controller which we upgraded from v1alpha1 to v4 and everything works fine. We changed storageversion in _types.go and now it is in V4.

Everything is working fine but when we are adding new field in _types.go present in v4 and after compilation when we are passing values through yaml to these new field, the value sin controller are coming as empty or null.

What did you expect to see?

Values of the newly added variable must pass to controller.

What did you see instead? Under which circumstances?

Values are not getting passed to controller.

Environment

Operator type:

/language go

Kubernetes cluster type:

$ operator-sdk version

operator-sdk version operator-sdk version: "v1.37.0", commit: "819984d4c1a51c8ff2ef6c23944554148ace0752", kubernetes version: "1.29.0", go version: "go1.21.13", GOOS: "linux", GOARCH: "amd64"

$ go version (if language is Go)

go version go1.23.2 linux/amd64

$ kubectl version

Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.0", GitCommit:"cb303e613a121a29364f75cc67d3d580833a7479", GitTreeState:"clean", BuildDate:"2021-04-08T16:31:21Z", GoVersion:"go1.16.1", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"29", GitVersion:"v1.29.3+2.el8", GitCommit:"5052cd42d1115a389d3fbbc1105dd36c7e4d1cb7", GitTreeState:"clean", BuildDate:"2024-05-15T16:08:37Z", GoVersion:"go1.21.8", Compiler:"gc", Platform:"linux/amd64"} WARNING: version difference between client (1.21) and server (1.29) exceeds the supported minor version skew of +/-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    language/goIssue is related to a Go operator project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions