@@ -40,6 +40,11 @@ var K8sVersionsSupportedByValidator = []string{"1.22.0", "1.25.0", "1.26.0"}
40
40
// - 1.25 : https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-25
41
41
//
42
42
// - 1.26 : https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-26
43
+ //
44
+ // IMPORTANT: Note that in the case scenarios of 1.25 and 1.26 it is very unlikely the OperatorAuthors
45
+ // add manifests on the bundle using these APIs. On top of that some Kinds such as the CronJob
46
+ // are not currently a valid/supported by OLM and never would to be added to bundle.
47
+ // See: https://github.com/operator-framework/operator-registry/blob/v1.19.5/pkg/lib/bundle/supported_resources.go#L3-L23
43
48
var AlphaDeprecatedAPIsValidator interfaces.Validator = interfaces .ValidatorFunc (validateDeprecatedAPIsValidator )
44
49
45
50
func validateDeprecatedAPIsValidator (objs ... interface {}) (results []errors.ManifestResult ) {
@@ -277,6 +282,11 @@ func getRemovedAPIsOn1_22From(bundle *manifests.Bundle) map[string][]string {
277
282
278
283
// getRemovedAPIsOn1_25From return the list of resources which were deprecated
279
284
// and are no longer be supported in 1.25. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-25
285
+ //
286
+ // IMPORTANT: Note that in the case scenarios of 1.25 and 1.26 it is very unlikely the OperatorAuthors
287
+ // add manifests on the bundle using these APIs. On top of that some Kinds such as the CronJob
288
+ // are not currently a valid/supported by OLM and never would to be added to bundle.
289
+ // See: https://github.com/operator-framework/operator-registry/blob/v1.19.5/pkg/lib/bundle/supported_resources.go#L3-L23
280
290
func getRemovedAPIsOn1_25From (bundle * manifests.Bundle ) map [string ][]string {
281
291
deprecatedAPIs := make (map [string ][]string )
282
292
for _ , obj := range bundle .Objects {
@@ -315,6 +325,11 @@ func getRemovedAPIsOn1_25From(bundle *manifests.Bundle) map[string][]string {
315
325
316
326
// getRemovedAPIsOn1_26From return the list of resources which were deprecated
317
327
// and are no longer be supported in 1.26. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-26
328
+ //
329
+ // IMPORTANT: Note that in the case scenarios of 1.25 and 1.26 it is very unlikely the OperatorAuthors
330
+ // add manifests on the bundle using these APIs. On top of that some Kinds such as the CronJob
331
+ // are not currently a valid/supported by OLM and never would to be added to bundle.
332
+ // See: https://github.com/operator-framework/operator-registry/blob/v1.19.5/pkg/lib/bundle/supported_resources.go#L3-L23
318
333
func getRemovedAPIsOn1_26From (bundle * manifests.Bundle ) map [string ][]string {
319
334
deprecatedAPIs := make (map [string ][]string )
320
335
for _ , obj := range bundle .Objects {
0 commit comments