Skip to content

Commit 6dc1e06

Browse files
committed
hack/update-codegen.sh
1 parent e936914 commit 6dc1e06

File tree

6 files changed

+428
-28
lines changed

6 files changed

+428
-28
lines changed

config/v1/zz_generated.deepcopy.go

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

config/v1/zz_generated.featuregated-crd-manifests/clusterversions.config.openshift.io/AAA_ungated.yaml

Lines changed: 111 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ spec:
156156
the previous version will cause a rollback to be attempted. Not all
157157
rollbacks will succeed.
158158
properties:
159+
accept:
160+
description: |-
161+
accept allows an administrator to specify the names of ConditionalUpdateRisk
162+
those are considered acceptable. A conditional update is accepted by Cluster-Version
163+
operator only if all of its risks are acceptable.
164+
items:
165+
type: string
166+
type: array
159167
architecture:
160168
description: |-
161169
architecture is an optional field that indicates the desired
@@ -362,6 +370,93 @@ spec:
362370
type: array
363371
x-kubernetes-list-type: atomic
364372
type: object
373+
conditionalUpdateRisks:
374+
description: |-
375+
conditionalUpdateRisks represent issues for ConditionalUpdates.
376+
The cluster-version operator will evaluate all risks associated to a conditional
377+
update when it is the desired update and only accept it if all its associated
378+
risks are in "spec.desiredUpdate.accept".
379+
items:
380+
description: |-
381+
ConditionalUpdateRisk represents a reason and cluster-state
382+
for not recommending a conditional update.
383+
properties:
384+
matchingRules:
385+
description: |-
386+
matchingRules is a slice of conditions for deciding which
387+
clusters match the risk and which do not. The slice is
388+
ordered by decreasing precedence. The cluster-version
389+
operator will walk the slice in order, and stop after the
390+
first it can successfully evaluate. If no condition can be
391+
successfully evaluated, the update will not be recommended.
392+
items:
393+
description: |-
394+
ClusterCondition is a union of typed cluster conditions. The 'type'
395+
property determines which of the type-specific properties are relevant.
396+
When evaluated on a cluster, the condition may match, not match, or
397+
fail to evaluate.
398+
properties:
399+
promql:
400+
description: promql represents a cluster condition based
401+
on PromQL.
402+
properties:
403+
promql:
404+
description: |-
405+
promql is a PromQL query classifying clusters. This query
406+
query should return a 1 in the match case and a 0 in the
407+
does-not-match case. Queries which return no time
408+
series, or which return values besides 0 or 1, are
409+
evaluation failures.
410+
type: string
411+
required:
412+
- promql
413+
type: object
414+
type:
415+
description: |-
416+
type represents the cluster-condition type. This defines
417+
the members and semantics of any additional properties.
418+
enum:
419+
- Always
420+
- PromQL
421+
type: string
422+
required:
423+
- type
424+
type: object
425+
minItems: 1
426+
type: array
427+
x-kubernetes-list-type: atomic
428+
message:
429+
description: |-
430+
message provides additional information about the risk of
431+
updating, in the event that matchingRules match the cluster
432+
state. This is only to be consumed by humans. It may
433+
contain Line Feed characters (U+000A), which should be
434+
rendered as new lines.
435+
minLength: 1
436+
type: string
437+
name:
438+
description: |-
439+
name is the CamelCase reason for not recommending a
440+
conditional update, in the event that matchingRules match the
441+
cluster state.
442+
minLength: 1
443+
type: string
444+
url:
445+
description: url contains information about this risk.
446+
format: uri
447+
minLength: 1
448+
type: string
449+
required:
450+
- matchingRules
451+
- message
452+
- name
453+
- url
454+
type: object
455+
maxItems: 1000
456+
type: array
457+
x-kubernetes-list-map-keys:
458+
- name
459+
x-kubernetes-list-type: map
365460
conditionalUpdates:
366461
description: |-
367462
conditionalUpdates contains the list of updates that may be
@@ -475,13 +570,23 @@ spec:
475570
- image
476571
- version
477572
type: object
573+
riskNames:
574+
description: |-
575+
riskNames are names of status.conditionalUpdateRisks
576+
that are associated with the release in a ConditionalUpdate
577+
items:
578+
type: string
579+
minItems: 1
580+
type: array
581+
x-kubernetes-list-type: set
478582
risks:
479583
description: |-
480-
risks represents the range of issues associated with
584+
risks represent the range of issues associated with
481585
updating to the target release. The cluster-version
482586
operator will evaluate all entries, and only recommend the
483587
update if there is at least one entry and all entries
484588
recommend the update.
589+
DEPRECATED: the risks has been deprecated by riskNames and will be removed in a future release.
485590
items:
486591
description: |-
487592
ConditionalUpdateRisk represents a reason and cluster-state
@@ -565,6 +670,7 @@ spec:
565670
x-kubernetes-list-type: map
566671
required:
567672
- release
673+
- riskNames
568674
- risks
569675
type: object
570676
type: array
@@ -665,10 +771,11 @@ spec:
665771
acceptedRisks:
666772
description: |-
667773
acceptedRisks records risks which were accepted to initiate the update.
668-
For example, it may menition an Upgradeable=False or missing signature
669-
that was overriden via desiredUpdate.force, or an update that was
774+
For example, it may mention an Upgradeable=False or missing signature
775+
that was overridden via desiredUpdate.force, or an update that was
670776
initiated despite not being in the availableUpdates set of recommended
671-
update targets.
777+
update targets, or in the conditionUpdates set and all associated risks
778+
are specified in "spec.desiredUpdate.accept".
672779
type: string
673780
completionTime:
674781
description: |-

config/v1/zz_generated.featuregated-crd-manifests/clusterversions.config.openshift.io/ImageStreamImportMode.yaml

Lines changed: 111 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ spec:
156156
the previous version will cause a rollback to be attempted. Not all
157157
rollbacks will succeed.
158158
properties:
159+
accept:
160+
description: |-
161+
accept allows an administrator to specify the names of ConditionalUpdateRisk
162+
those are considered acceptable. A conditional update is accepted by Cluster-Version
163+
operator only if all of its risks are acceptable.
164+
items:
165+
type: string
166+
type: array
159167
architecture:
160168
description: |-
161169
architecture is an optional field that indicates the desired
@@ -373,6 +381,93 @@ spec:
373381
type: array
374382
x-kubernetes-list-type: atomic
375383
type: object
384+
conditionalUpdateRisks:
385+
description: |-
386+
conditionalUpdateRisks represent issues for ConditionalUpdates.
387+
The cluster-version operator will evaluate all risks associated to a conditional
388+
update when it is the desired update and only accept it if all its associated
389+
risks are in "spec.desiredUpdate.accept".
390+
items:
391+
description: |-
392+
ConditionalUpdateRisk represents a reason and cluster-state
393+
for not recommending a conditional update.
394+
properties:
395+
matchingRules:
396+
description: |-
397+
matchingRules is a slice of conditions for deciding which
398+
clusters match the risk and which do not. The slice is
399+
ordered by decreasing precedence. The cluster-version
400+
operator will walk the slice in order, and stop after the
401+
first it can successfully evaluate. If no condition can be
402+
successfully evaluated, the update will not be recommended.
403+
items:
404+
description: |-
405+
ClusterCondition is a union of typed cluster conditions. The 'type'
406+
property determines which of the type-specific properties are relevant.
407+
When evaluated on a cluster, the condition may match, not match, or
408+
fail to evaluate.
409+
properties:
410+
promql:
411+
description: promql represents a cluster condition based
412+
on PromQL.
413+
properties:
414+
promql:
415+
description: |-
416+
promql is a PromQL query classifying clusters. This query
417+
query should return a 1 in the match case and a 0 in the
418+
does-not-match case. Queries which return no time
419+
series, or which return values besides 0 or 1, are
420+
evaluation failures.
421+
type: string
422+
required:
423+
- promql
424+
type: object
425+
type:
426+
description: |-
427+
type represents the cluster-condition type. This defines
428+
the members and semantics of any additional properties.
429+
enum:
430+
- Always
431+
- PromQL
432+
type: string
433+
required:
434+
- type
435+
type: object
436+
minItems: 1
437+
type: array
438+
x-kubernetes-list-type: atomic
439+
message:
440+
description: |-
441+
message provides additional information about the risk of
442+
updating, in the event that matchingRules match the cluster
443+
state. This is only to be consumed by humans. It may
444+
contain Line Feed characters (U+000A), which should be
445+
rendered as new lines.
446+
minLength: 1
447+
type: string
448+
name:
449+
description: |-
450+
name is the CamelCase reason for not recommending a
451+
conditional update, in the event that matchingRules match the
452+
cluster state.
453+
minLength: 1
454+
type: string
455+
url:
456+
description: url contains information about this risk.
457+
format: uri
458+
minLength: 1
459+
type: string
460+
required:
461+
- matchingRules
462+
- message
463+
- name
464+
- url
465+
type: object
466+
maxItems: 1000
467+
type: array
468+
x-kubernetes-list-map-keys:
469+
- name
470+
x-kubernetes-list-type: map
376471
conditionalUpdates:
377472
description: |-
378473
conditionalUpdates contains the list of updates that may be
@@ -497,13 +592,23 @@ spec:
497592
- image
498593
- version
499594
type: object
595+
riskNames:
596+
description: |-
597+
riskNames are names of status.conditionalUpdateRisks
598+
that are associated with the release in a ConditionalUpdate
599+
items:
600+
type: string
601+
minItems: 1
602+
type: array
603+
x-kubernetes-list-type: set
500604
risks:
501605
description: |-
502-
risks represents the range of issues associated with
606+
risks represent the range of issues associated with
503607
updating to the target release. The cluster-version
504608
operator will evaluate all entries, and only recommend the
505609
update if there is at least one entry and all entries
506610
recommend the update.
611+
DEPRECATED: the risks has been deprecated by riskNames and will be removed in a future release.
507612
items:
508613
description: |-
509614
ConditionalUpdateRisk represents a reason and cluster-state
@@ -587,6 +692,7 @@ spec:
587692
x-kubernetes-list-type: map
588693
required:
589694
- release
695+
- riskNames
590696
- risks
591697
type: object
592698
type: array
@@ -698,10 +804,11 @@ spec:
698804
acceptedRisks:
699805
description: |-
700806
acceptedRisks records risks which were accepted to initiate the update.
701-
For example, it may menition an Upgradeable=False or missing signature
702-
that was overriden via desiredUpdate.force, or an update that was
807+
For example, it may mention an Upgradeable=False or missing signature
808+
that was overridden via desiredUpdate.force, or an update that was
703809
initiated despite not being in the availableUpdates set of recommended
704-
update targets.
810+
update targets, or in the conditionUpdates set and all associated risks
811+
are specified in "spec.desiredUpdate.accept".
705812
type: string
706813
completionTime:
707814
description: |-

0 commit comments

Comments
 (0)