|
77 | 77 | managedBootImages allows configuration for the management of boot images for machine
|
78 | 78 | resources within the cluster. This configuration allows users to select resources that should
|
79 | 79 | be updated to the latest boot images during cluster upgrades, ensuring that new machines
|
80 |
| - always boot with the current cluster version's boot image. When omitted, no boot images |
81 |
| - will be updated. |
| 80 | + always boot with the current cluster version's boot image. When omitted, this means no opinion |
| 81 | + and the platform is left to choose a reasonable default, which is subject to change over time. |
| 82 | + The default for each machine manager mode is All for GCP and AWS platforms, and None for all |
| 83 | + other platforms. |
82 | 84 | properties:
|
83 | 85 | machineManagers:
|
84 | 86 | description: |-
|
@@ -116,9 +118,11 @@ spec:
|
116 | 118 | Valid values are All and Partial.
|
117 | 119 | All means that every resource matched by the machine manager will be updated.
|
118 | 120 | Partial requires specified selector(s) and allows customisation of which resources matched by the machine manager will be updated.
|
| 121 | + None means that every resource matched by the machine manager will not be updated. |
119 | 122 | enum:
|
120 | 123 | - All
|
121 | 124 | - Partial
|
| 125 | + - None |
122 | 126 | type: string
|
123 | 127 | partial:
|
124 | 128 | description: |-
|
@@ -190,6 +194,7 @@ spec:
|
190 | 194 | - resource
|
191 | 195 | - selection
|
192 | 196 | type: object
|
| 197 | + maxItems: 5 |
193 | 198 | type: array
|
194 | 199 | x-kubernetes-list-map-keys:
|
195 | 200 | - resource
|
@@ -703,6 +708,130 @@ spec:
|
703 | 708 | x-kubernetes-list-map-keys:
|
704 | 709 | - type
|
705 | 710 | x-kubernetes-list-type: map
|
| 711 | + managedBootImagesStatus: |
| 712 | + description: |- |
| 713 | + managedBootImagesStatus reflects what the latest cluster-validated boot image configuration is |
| 714 | + and will be used by Machine Config Controller while performing boot image updates. |
| 715 | + properties: |
| 716 | + machineManagers: |
| 717 | + description: |- |
| 718 | + machineManagers can be used to register machine management resources for boot image updates. The Machine Config Operator |
| 719 | + will watch for changes to this list. Only one entry is permitted per type of machine management resource. |
| 720 | + items: |
| 721 | + description: |- |
| 722 | + MachineManager describes a target machine resource that is registered for boot image updates. It stores identifying information |
| 723 | + such as the resource type and the API Group of the resource. It also provides granular control via the selection field. |
| 724 | + properties: |
| 725 | + apiGroup: |
| 726 | + description: |- |
| 727 | + apiGroup is name of the APIGroup that the machine management resource belongs to. |
| 728 | + The only current valid value is machine.openshift.io. |
| 729 | + machine.openshift.io means that the machine manager will only register resources that belong to OpenShift machine API group. |
| 730 | + enum: |
| 731 | + - machine.openshift.io |
| 732 | + type: string |
| 733 | + resource: |
| 734 | + description: |- |
| 735 | + resource is the machine management resource's type. |
| 736 | + The only current valid value is machinesets. |
| 737 | + machinesets means that the machine manager will only register resources of the kind MachineSet. |
| 738 | + enum: |
| 739 | + - machinesets |
| 740 | + type: string |
| 741 | + selection: |
| 742 | + description: selection allows granular control of the machine |
| 743 | + management resources that will be registered for boot |
| 744 | + image updates. |
| 745 | + properties: |
| 746 | + mode: |
| 747 | + description: |- |
| 748 | + mode determines how machine managers will be selected for updates. |
| 749 | + Valid values are All and Partial. |
| 750 | + All means that every resource matched by the machine manager will be updated. |
| 751 | + Partial requires specified selector(s) and allows customisation of which resources matched by the machine manager will be updated. |
| 752 | + None means that every resource matched by the machine manager will not be updated. |
| 753 | + enum: |
| 754 | + - All |
| 755 | + - Partial |
| 756 | + - None |
| 757 | + type: string |
| 758 | + partial: |
| 759 | + description: |- |
| 760 | + partial provides label selector(s) that can be used to match machine management resources. |
| 761 | + Only permitted when mode is set to "Partial". |
| 762 | + properties: |
| 763 | + machineResourceSelector: |
| 764 | + description: machineResourceSelector is a label |
| 765 | + selector that can be used to select machine resources |
| 766 | + like MachineSets. |
| 767 | + properties: |
| 768 | + matchExpressions: |
| 769 | + description: matchExpressions is a list of label |
| 770 | + selector requirements. The requirements are |
| 771 | + ANDed. |
| 772 | + items: |
| 773 | + description: |- |
| 774 | + A label selector requirement is a selector that contains values, a key, and an operator that |
| 775 | + relates the key and values. |
| 776 | + properties: |
| 777 | + key: |
| 778 | + description: key is the label key that |
| 779 | + the selector applies to. |
| 780 | + type: string |
| 781 | + operator: |
| 782 | + description: |- |
| 783 | + operator represents a key's relationship to a set of values. |
| 784 | + Valid operators are In, NotIn, Exists and DoesNotExist. |
| 785 | + type: string |
| 786 | + values: |
| 787 | + description: |- |
| 788 | + values is an array of string values. If the operator is In or NotIn, |
| 789 | + the values array must be non-empty. If the operator is Exists or DoesNotExist, |
| 790 | + the values array must be empty. This array is replaced during a strategic |
| 791 | + merge patch. |
| 792 | + items: |
| 793 | + type: string |
| 794 | + type: array |
| 795 | + x-kubernetes-list-type: atomic |
| 796 | + required: |
| 797 | + - key |
| 798 | + - operator |
| 799 | + type: object |
| 800 | + type: array |
| 801 | + x-kubernetes-list-type: atomic |
| 802 | + matchLabels: |
| 803 | + additionalProperties: |
| 804 | + type: string |
| 805 | + description: |- |
| 806 | + matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels |
| 807 | + map is equivalent to an element of matchExpressions, whose key field is "key", the |
| 808 | + operator is "In", and the values array contains only "value". The requirements are ANDed. |
| 809 | + type: object |
| 810 | + type: object |
| 811 | + x-kubernetes-map-type: atomic |
| 812 | + required: |
| 813 | + - machineResourceSelector |
| 814 | + type: object |
| 815 | + required: |
| 816 | + - mode |
| 817 | + type: object |
| 818 | + x-kubernetes-validations: |
| 819 | + - message: Partial is required when type is partial, and |
| 820 | + forbidden otherwise |
| 821 | + rule: 'has(self.mode) && self.mode == ''Partial'' ? has(self.partial) |
| 822 | + : !has(self.partial)' |
| 823 | + required: |
| 824 | + - apiGroup |
| 825 | + - resource |
| 826 | + - selection |
| 827 | + type: object |
| 828 | + maxItems: 5 |
| 829 | + type: array |
| 830 | + x-kubernetes-list-map-keys: |
| 831 | + - resource |
| 832 | + - apiGroup |
| 833 | + x-kubernetes-list-type: map |
| 834 | + type: object |
706 | 835 | nodeDisruptionPolicyStatus:
|
707 | 836 | description: |-
|
708 | 837 | nodeDisruptionPolicyStatus status reflects what the latest cluster-validated policies are,
|
|
0 commit comments