Skip to content

Commit 795126d

Browse files
committed
DNM: vendor SynchronizedAPI
1 parent 33dd26d commit 795126d

82 files changed

Lines changed: 12981 additions & 3831 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ replace (
1111
k8s.io/kubernetes => github.com/openshift/kubernetes v1.30.1-0.20251027205255-4e0347881cbd
1212
)
1313

14+
replace (
15+
github.com/openshift/api => ../api
16+
github.com/openshift/clinet-go => ../client-go
17+
)
18+
1419
require (
1520
github.com/blang/semver v3.5.1+incompatible
1621
github.com/go-logr/logr v1.4.3

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,6 @@ github.com/opencontainers/selinux v1.11.1 h1:nHFvthhM0qY8/m+vfhJylliSshm8G1jJ2jD
449449
github.com/opencontainers/selinux v1.11.1/go.mod h1:E5dMC3VPuVvVHDYmi78qvhJp8+M586T4DlDRYpFkyec=
450450
github.com/openshift-eng/openshift-tests-extension v0.0.0-20251105193959-75a0be5d9bd7 h1:Z1swlS6b3Adm6RPhjqefs3DWnNFLDxRX+WC8GMXhja4=
451451
github.com/openshift-eng/openshift-tests-extension v0.0.0-20251105193959-75a0be5d9bd7/go.mod h1:6gkP5f2HL0meusT0Aim8icAspcD1cG055xxBZ9yC68M=
452-
github.com/openshift/api v0.0.0-20251205114208-5eb46a7b4ce8 h1:kF1HhMhHSpipdHjHm92WngUCxhNC4Iy7wbF6RL739w0=
453-
github.com/openshift/api v0.0.0-20251205114208-5eb46a7b4ce8/go.mod h1:d5uzF0YN2nQQFA0jIEWzzOZ+edmo6wzlGLvx5Fhz4uY=
454452
github.com/openshift/client-go v0.0.0-20251202151200-fb4471581cf8 h1:97rgISdT4IOmXlmEUV5Wr6d8BzzjPclzAjCARLbSlT0=
455453
github.com/openshift/client-go v0.0.0-20251202151200-fb4471581cf8/go.mod h1:WVJnsrbSO1J8x8KceOmv1d5CpoN34Uzsaz1O4MIOKJI=
456454
github.com/openshift/cluster-api-actuator-pkg/testutils v0.0.0-20250910145856-21d03d30056d h1:+sqUThLi/lmgT5/scmmjnS6+RZFtbdxRAscNfCPyLPI=

install/0000_30_machine-api-operator_02_machine.CustomNoUpgrade.crd.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ spec:
394394
from MachineAPI to ClusterAPI or vice versa. It must transition
395395
through Migrating.
396396
rule: self == 'Migrating' || self == oldSelf || oldSelf == 'Migrating'
397+
- message: The authoritativeAPI field must not be set empty once it
398+
has a value.
399+
rule: oldSelf == ''|| self != ''
397400
conditions:
398401
description: conditions defines the current state of the Machine
399402
items:
@@ -567,6 +570,21 @@ spec:
567570
serialized/deserialized from this field.
568571
type: object
569572
x-kubernetes-preserve-unknown-fields: true
573+
synchronizedAPI:
574+
description: |-
575+
synchronizedAPI represents the API that is currently in sync with the state of the resource.
576+
Valid values are "MachineAPI" and "ClusterAPI".
577+
When omitted (empty value), the resource has not yet been reconciled by the migration controller.
578+
The migration controller sets `status.synchronizedAPI` to the value of the `status.authoritativeAPI` before it transitions to "Migrating".
579+
It is used to determine the source API of the migration.
580+
enum:
581+
- MachineAPI
582+
- ClusterAPI
583+
type: string
584+
x-kubernetes-validations:
585+
- message: The synchronizedAPI field must not be set empty once it
586+
has a value.
587+
rule: oldSelf == ''|| self != ''
570588
synchronizedGeneration:
571589
description: |-
572590
synchronizedGeneration is the generation of the authoritative resource that the non-authoritative resource is synchronised with.

install/0000_30_machine-api-operator_02_machine.DevPreviewNoUpgrade.crd.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ spec:
394394
from MachineAPI to ClusterAPI or vice versa. It must transition
395395
through Migrating.
396396
rule: self == 'Migrating' || self == oldSelf || oldSelf == 'Migrating'
397+
- message: The authoritativeAPI field must not be set empty once it
398+
has a value.
399+
rule: oldSelf == ''|| self != ''
397400
conditions:
398401
description: conditions defines the current state of the Machine
399402
items:
@@ -567,6 +570,21 @@ spec:
567570
serialized/deserialized from this field.
568571
type: object
569572
x-kubernetes-preserve-unknown-fields: true
573+
synchronizedAPI:
574+
description: |-
575+
synchronizedAPI represents the API that is currently in sync with the state of the resource.
576+
Valid values are "MachineAPI" and "ClusterAPI".
577+
When omitted (empty value), the resource has not yet been reconciled by the migration controller.
578+
The migration controller sets `status.synchronizedAPI` to the value of the `status.authoritativeAPI` before it transitions to "Migrating".
579+
It is used to determine the source API of the migration.
580+
enum:
581+
- MachineAPI
582+
- ClusterAPI
583+
type: string
584+
x-kubernetes-validations:
585+
- message: The synchronizedAPI field must not be set empty once it
586+
has a value.
587+
rule: oldSelf == ''|| self != ''
570588
synchronizedGeneration:
571589
description: |-
572590
synchronizedGeneration is the generation of the authoritative resource that the non-authoritative resource is synchronised with.

install/0000_30_machine-api-operator_02_machine.TechPreviewNoUpgrade.crd.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ spec:
394394
from MachineAPI to ClusterAPI or vice versa. It must transition
395395
through Migrating.
396396
rule: self == 'Migrating' || self == oldSelf || oldSelf == 'Migrating'
397+
- message: The authoritativeAPI field must not be set empty once it
398+
has a value.
399+
rule: oldSelf == ''|| self != ''
397400
conditions:
398401
description: conditions defines the current state of the Machine
399402
items:
@@ -567,6 +570,21 @@ spec:
567570
serialized/deserialized from this field.
568571
type: object
569572
x-kubernetes-preserve-unknown-fields: true
573+
synchronizedAPI:
574+
description: |-
575+
synchronizedAPI represents the API that is currently in sync with the state of the resource.
576+
Valid values are "MachineAPI" and "ClusterAPI".
577+
When omitted (empty value), the resource has not yet been reconciled by the migration controller.
578+
The migration controller sets `status.synchronizedAPI` to the value of the `status.authoritativeAPI` before it transitions to "Migrating".
579+
It is used to determine the source API of the migration.
580+
enum:
581+
- MachineAPI
582+
- ClusterAPI
583+
type: string
584+
x-kubernetes-validations:
585+
- message: The synchronizedAPI field must not be set empty once it
586+
has a value.
587+
rule: oldSelf == ''|| self != ''
570588
synchronizedGeneration:
571589
description: |-
572590
synchronizedGeneration is the generation of the authoritative resource that the non-authoritative resource is synchronised with.

install/0000_30_machine-api-operator_03_machineset.CustomNoUpgrade.crd.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,17 @@ spec:
674674
description: replicas is the most recently observed number of replicas.
675675
format: int32
676676
type: integer
677+
synchronizedAPI:
678+
description: |-
679+
synchronizedAPI represents the API that is currently in sync with the state of the resource.
680+
Valid values are "MachineAPI" and "ClusterAPI".
681+
When omitted (empty value), the resource has not yet been reconciled by the migration controller.
682+
The migration controller sets `status.synchronizedAPI` to the value of the `status.authoritativeAPI` before it transitions to "Migrating".
683+
It is used to determine the source API of the migration.
684+
enum:
685+
- MachineAPI
686+
- ClusterAPI
687+
type: string
677688
synchronizedGeneration:
678689
description: |-
679690
synchronizedGeneration is the generation of the authoritative resource that the non-authoritative resource is synchronised with.

install/0000_30_machine-api-operator_03_machineset.DevPreviewNoUpgrade.crd.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,17 @@ spec:
674674
description: replicas is the most recently observed number of replicas.
675675
format: int32
676676
type: integer
677+
synchronizedAPI:
678+
description: |-
679+
synchronizedAPI represents the API that is currently in sync with the state of the resource.
680+
Valid values are "MachineAPI" and "ClusterAPI".
681+
When omitted (empty value), the resource has not yet been reconciled by the migration controller.
682+
The migration controller sets `status.synchronizedAPI` to the value of the `status.authoritativeAPI` before it transitions to "Migrating".
683+
It is used to determine the source API of the migration.
684+
enum:
685+
- MachineAPI
686+
- ClusterAPI
687+
type: string
677688
synchronizedGeneration:
678689
description: |-
679690
synchronizedGeneration is the generation of the authoritative resource that the non-authoritative resource is synchronised with.

install/0000_30_machine-api-operator_03_machineset.TechPreviewNoUpgrade.crd.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,17 @@ spec:
674674
description: replicas is the most recently observed number of replicas.
675675
format: int32
676676
type: integer
677+
synchronizedAPI:
678+
description: |-
679+
synchronizedAPI represents the API that is currently in sync with the state of the resource.
680+
Valid values are "MachineAPI" and "ClusterAPI".
681+
When omitted (empty value), the resource has not yet been reconciled by the migration controller.
682+
The migration controller sets `status.synchronizedAPI` to the value of the `status.authoritativeAPI` before it transitions to "Migrating".
683+
It is used to determine the source API of the migration.
684+
enum:
685+
- MachineAPI
686+
- ClusterAPI
687+
type: string
677688
synchronizedGeneration:
678689
description: |-
679690
synchronizedGeneration is the generation of the authoritative resource that the non-authoritative resource is synchronised with.

vendor/github.com/openshift/api/.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/.coderabbit.yaml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)