File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,12 +73,18 @@ func CRDRefresh(log utils.Logger, osArgs utils.OSArgs) error {
7373 crd .ObjectMeta .ResourceVersion = existingVersion .ObjectMeta .ResourceVersion
7474 if versions [0 ].Name == "v3" {
7575 cnInK8s , ok := existingVersion .ObjectMeta .Annotations ["haproxy.org/client-native" ]
76+ if ! ok {
77+ cnInK8s , ok = existingVersion .ObjectMeta .Annotations ["haproxy.org/custom-annotations" ]
78+ }
7679
7780 needUpgrade := false
7881 if ! ok {
7982 needUpgrade = true
8083 }
81- cnNew := crd .ObjectMeta .Annotations ["haproxy.org/client-native" ]
84+ cnNew , ok := crd .ObjectMeta .Annotations ["haproxy.org/client-native" ]
85+ if ! ok {
86+ cnNew = crd .ObjectMeta .Annotations ["haproxy.org/custom-annotations" ]
87+ }
8288 vK8s , err := semver .NewVersion (cnInK8s )
8389 if err != nil {
8490 needUpgrade = true
You can’t perform that action at this time.
0 commit comments