-
Notifications
You must be signed in to change notification settings - Fork 77
update k8s 1.25 validation logic #270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update k8s 1.25 validation logic #270
Conversation
to look for deprecated k8s APIs in various CSV fields Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
for i, desc := range crdDescriptions { | ||
for j, res := range desc.Resources { | ||
resFromKind := fmt.Sprintf("%ss", strings.ToLower(res.Kind)) | ||
fmt.Println("XXX resFromKind:", resFromKind) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Println("XXX resFromKind:", resFromKind) |
// Check the Required Resources | ||
crdCheck("Required", csv.Spec.CustomResourceDefinitions.Required) | ||
|
||
fmt.Println("XXX resInCsvCrds:", resInCsvCrds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Println("XXX resInCsvCrds:", resInCsvCrds) |
for j, rule := range perm.Rules { | ||
for _, res := range rule.Resources { | ||
if _, ok := resInCsvCrds[res]; ok { | ||
fmt.Println("XXX resource: ", res, "is in resInCsvCrds map!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Println("XXX resource: ", res, "is in resInCsvCrds map!") |
@everettraven should probably remove the |
|
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
/lgtm |
/approved |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: everettraven, jmrodri The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description of the change:
ClusterServiceVersion.Spec.InstallStrategy.StrategySpec.ClusterPermissions[].Rules[]
ClusterServiceVersion.Spec.CustomResourceDefinitions
a warning is not raisedClusterServiceVersion.Spec.InstallStrategy.StrategySpec.Permissions[].Rules[]
ClusterServiceVersion.Spec.CustomResourceDefinitions
a warning is not raisedClusterServiceVersion.Spec.CustomResourceDefinitions.Owned[].Resources[]
ClusterServiceVersion.Spec.CustomResourceDefinitions.Owned[].Resources[]
Motivation for the change: