-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix (kubernetes-model-generator) : Update Kubernetes Model to v1.25.0 (#4347) #4377
fix (kubernetes-model-generator) : Update Kubernetes Model to v1.25.0 (#4347) #4377
Conversation
f39133d
to
e64c331
Compare
Please add support for apiVersion autoscaling/v2 since now is using Fabric8 Kubernetes Client 5.11.2 which doesn't seem to have it. |
e64c331
to
f977a14
Compare
…ert integer array to string Kubernetes Model Generator script currently converted all byte, integer lists to string (since there is no byte reflect.type in GoLang , it's alias to `uint8`). This seems to be incorrectly generating PodFailurePolicyOnExitCodesRequirement.values field as String. Add a switch case in `javaType()` to treat `reflect.Uint8` to byte. Limit `javaTypeArrayList()` to only convert byte array/ `reflect.Uint8` array to string. Signed-off-by: Rohan Kumar <[email protected]>
+ Update Kubernetes Model to v1.25.0 + Add autoscaling/v2 HorizontalPodAutoscaler model and DSL + Force `containerd/containerd`, `docker/distribution` and `opencontainers/image-spec` to not use vulnerable versions (fabric8io#4327) Signed-off-by: Rohan Kumar <[email protected]>
Run integration tests on Kubernetes 1.25.0 as well Signed-off-by: Rohan Kumar <[email protected]>
f977a14
to
9f1cc2d
Compare
SonarCloud Quality Gate failed. |
@@ -29,6 +30,7 @@ | |||
import static org.junit.jupiter.api.Assertions.assertTrue; | |||
|
|||
@LoadKubernetesManifests("/cronjob-it.yml") | |||
@RequireK8sSupport(CronJob.class) |
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.
Follow-up update this test to use CronJob v1 instead
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.
Issue created: #4434
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
@LoadKubernetesManifests("/pod-evict-it.yml") | ||
@RequireK8sSupport(PodDisruptionBudget.class) |
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.
Is there any reason why this new test is based on v1beta1 of PodDisruptionBudget?
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.
This isn't a new test. This was earlier part of PodIT . This test was breaking on Kubernetes 1.25 hence I moved it to separate class with a RequireK8sSupport
condition
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.
Follow-up: update this test to use PodDisruptionBudget v1 instead
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.
Issue created: #4436
Description
Fix #4327 #4347
clusterName
removed from ObjectMetak8s.io/api/flowcontrol/v1beta2
API (they were present earlier too, just realized it a bit late)autoscaling/v2
HorizontalPodAutoscaler model and DSLcontainerd/containerd
,docker/distribution
andopencontainers/image-spec
to not use vulnerable versions (Fix Dependabot reported alerts in go modules #4327)uint8
). This seems to be incorrectly generating PodFailurePolicyOnExitCodesRequirement.values field as String. Add a switch case injavaType()
to treatreflect.Uint8
to byte. LimitjavaTypeArrayList()
to only convert byte array/reflect.Uint8
array to string.Signed-off-by: Rohan Kumar [email protected]
Type of change
test, version modification, documentation, etc.)
Checklist