Commit 996ca15
committed
fix(api): add missing has() guards to servingCerts CEL validation rule
The CEL rule validating that APIServer loadBalancer hostname is not in
servingCerts namedCertificates fails with "no such key" when
servingCerts or namedCertificates are not set. This adds has() guards
for servingCerts, namedCertificates, and cert.names fields to prevent
the error.
Fixes: OCPBUGS-77827
Signed-off-by: rutvik23 <rkshirsa@redhat.com>1 parent 60802b1 commit 996ca15
19 files changed
Lines changed: 109 additions & 34 deletions
File tree
- api/hypershift/v1beta1
- zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io
- cmd/install/assets/crds/hypershift-operator
- tests/hostedclusters.hypershift.openshift.io
- zz_generated.crd-manifests
- vendor/github.com/openshift/hypershift/api/hypershift/v1beta1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6348 | 6348 | | |
6349 | 6349 | | |
6350 | 6350 | | |
6351 | | - | |
6352 | | - | |
| 6351 | + | |
| 6352 | + | |
| 6353 | + | |
| 6354 | + | |
6353 | 6355 | | |
6354 | 6356 | | |
6355 | 6357 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6467 | 6467 | | |
6468 | 6468 | | |
6469 | 6469 | | |
6470 | | - | |
6471 | | - | |
| 6470 | + | |
| 6471 | + | |
| 6472 | + | |
| 6473 | + | |
6472 | 6474 | | |
6473 | 6475 | | |
6474 | 6476 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6331 | 6331 | | |
6332 | 6332 | | |
6333 | 6333 | | |
6334 | | - | |
6335 | | - | |
| 6334 | + | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
6336 | 6338 | | |
6337 | 6339 | | |
6338 | 6340 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6351 | 6351 | | |
6352 | 6352 | | |
6353 | 6353 | | |
6354 | | - | |
6355 | | - | |
| 6354 | + | |
| 6355 | + | |
| 6356 | + | |
| 6357 | + | |
6356 | 6358 | | |
6357 | 6359 | | |
6358 | 6360 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6664 | 6664 | | |
6665 | 6665 | | |
6666 | 6666 | | |
6667 | | - | |
6668 | | - | |
| 6667 | + | |
| 6668 | + | |
| 6669 | + | |
| 6670 | + | |
6669 | 6671 | | |
6670 | 6672 | | |
6671 | 6673 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6804 | 6804 | | |
6805 | 6805 | | |
6806 | 6806 | | |
6807 | | - | |
6808 | | - | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
6809 | 6811 | | |
6810 | 6812 | | |
6811 | 6813 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6785 | 6785 | | |
6786 | 6786 | | |
6787 | 6787 | | |
6788 | | - | |
6789 | | - | |
| 6788 | + | |
| 6789 | + | |
| 6790 | + | |
| 6791 | + | |
6790 | 6792 | | |
6791 | 6793 | | |
6792 | 6794 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6777 | 6777 | | |
6778 | 6778 | | |
6779 | 6779 | | |
6780 | | - | |
6781 | | - | |
| 6780 | + | |
| 6781 | + | |
| 6782 | + | |
| 6783 | + | |
6782 | 6784 | | |
6783 | 6785 | | |
6784 | 6786 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6396 | 6396 | | |
6397 | 6397 | | |
6398 | 6398 | | |
6399 | | - | |
6400 | | - | |
| 6399 | + | |
| 6400 | + | |
| 6401 | + | |
| 6402 | + | |
6401 | 6403 | | |
6402 | 6404 | | |
6403 | 6405 | | |
| |||
0 commit comments