You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checks.errs=append(checks.errs, fmt.Errorf("csv.Annotations not specified %s for an "+
110
109
"OCP version < %s. This annotation is required to prevent the user from upgrading their OCP cluster "+
111
-
"before they have installed a version of their operator which is compatible with %s. This bundle is %s which are no "+
110
+
"before they have installed a version of their operator which is compatible with %s. This bundle is using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 which are no "+
112
111
"longer supported on %s. Migrate the API(s) for %s or use the annotation",
checks.errs=append(checks.errs, fmt.Errorf("csv.Annotations.%s with the "+
143
141
"key `%s` and a value with an OCP version which is < %s is required for any operator "+
144
-
"bundle that is %s. Migrate the API(s) for %s or use the annotation",
142
+
"bundle that is using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22. Migrate the API(s) for %s or use the annotation",
checks.errs=append(checks.errs, fmt.Errorf("csv.Annotations.%s with the "+
163
-
"key and value for %s has the OCP version value %s which is >= of %s. This bundle is %s. "+
160
+
"key and value for %s has the OCP version value %s which is >= of %s. This bundle is using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22. "+
164
161
"Migrate the API(s) for %s "+
165
162
"or inform in this property an OCP version which is < %s",
checks.warns=append(checks.errs, fmt.Errorf("please, inform the path of "+
184
180
"its index image file via the the optional key values and the key %s to allow this validator check the labels "+
185
181
"configuration or migrate the API(s) for %s. "+
186
-
"(e.g. %s=./mypath/bundle.Dockerfile). This bundle is %s ",
182
+
"(e.g. %s=./mypath/bundle.Dockerfile). This bundle is using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22 ",
// We only raise an error when the version >= 1.22 was informed via
214
214
// the k8s key/value option or is specifically defined in the CSV
215
+
msg:=fmt.Errorf("this bundle is using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22. Migrate the API(s) for %s", deprecatedAPIsMessage)
215
216
ifisUnsupported {
216
-
errs=append(errs, fmt.Errorf("this bundle is %s. Migrate the API(s) for %s", k8sApiDeprecatedInfo, deprecatedAPIsMessage))
217
+
errs=append(errs, msg)
217
218
} else {
218
-
warns=append(warns, fmt.Errorf("this bundle is %s. Migrate the API(s) for %s", k8sApiDeprecatedInfo, deprecatedAPIsMessage))
warnStrings: []string{"this bundle is "+k8sApiDeprecatedInfo+". Migrate the API(s) for CRD: ([\"etcdbackups.etcd.database.coreos.com\"\"etcdclusters.etcd.database.coreos.com\"\"etcdrestores.etcd.database.coreos.com\"])"},
378
+
warnStrings: []string{"this bundle is using APIs which were deprecated and removed in v1.22. "+
errStrings: []string{"this bundle is "+k8sApiDeprecatedInfo+". Migrate the API(s) for CRD: ([\"etcdbackups.etcd.database.coreos.com\"\"etcdclusters.etcd.database.coreos.com\"\"etcdrestores.etcd.database.coreos.com\"])"},
401
+
errStrings: []string{"this bundle is using APIs which were deprecated and removed in v1.22. "+
errStrings: []string{"unable to use csv.Spec.MinKubeVersion to verify the CRD/Webhook apis because it has an invalid value: invalid"},
421
-
warnStrings: []string{"this bundle is "+k8sApiDeprecatedInfo+". Migrate the API(s) for CRD: ([\"etcdbackups.etcd.database.coreos.com\"\"etcdclusters.etcd.database.coreos.com\"\"etcdrestores.etcd.database.coreos.com\"])"},
426
+
errStrings: []string{"unable to use csv.Spec.MinKubeVersion to verify the CRD/Webhook apis because it "+
427
+
"has an invalid value: invalid"},
428
+
warnStrings: []string{"this bundle is using APIs which were deprecated and removed in v1.22. "+
// k8sApiDeprecatedInfo define the message which will appears by default when is possible to identify that the project has deprecated API(s)
11
-
constk8sApiDeprecatedInfo="using APIs which were deprecated and removed in v1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22"
12
-
13
10
// OCP version where the apis v1beta1 is no longer supported
0 commit comments