-
Notifications
You must be signed in to change notification settings - Fork 392
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
OCPBUGS-31710: Unify machineconfig file format for kubeletconfig to u… #4350
base: master
Are you sure you want to change the base?
Conversation
@QiWang19: This pull request references Jira Issue OCPBUGS-31710, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@QiWang19: This pull request references Jira Issue OCPBUGS-31710, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
453d8c2
to
50923c9
Compare
@QiWang19: This pull request references Jira Issue OCPBUGS-31710, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/retest-required |
…se YAML encoding instead of JSON encoding Signed-off-by: Qi Wang <qiwan@redhat.com>
@QiWang19: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@yuqi-zhang could you review? |
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.
Generally seems fine. We should probably reach out to the IBM team to see if this change affects them at all before we merge though.
One question inline
@@ -28,7 +28,7 @@ func TestRunKubeletBootstrap(t *testing.T) { | |||
helpers.NewMachineConfigPool("custom", nil, customSelector, "v0"), | |||
} | |||
|
|||
kcRaw, err := EncodeKubeletConfig(&kubeletconfigv1beta1.KubeletConfiguration{MaxPods: 100}, kubeletconfigv1beta1.SchemeGroupVersion) | |||
kcRaw, err := EncodeKubeletConfig(&kubeletconfigv1beta1.KubeletConfiguration{MaxPods: 100}, kubeletconfigv1beta1.SchemeGroupVersion, runtime.ContentTypeJSON) |
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.
Just curious, why are some of the tests explicitly using JSON still?
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 uses json format to set RawExtension
filed in the test kubeletconfig object, otherwise the test failed with the controller returning a JSON unmarshal error.
I thought it because this doc about RawExtension
https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/controller-revision-v1/#ControllerRevision, this field holds the unpacked data in JSON format. So keep using json encoding for kubeletconfig only for unit/e2e testing.
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.
ack, makes sense, thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: QiWang19, yuqi-zhang 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 |
@QiWang19: This pull request references Jira Issue OCPBUGS-31710, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/label qe-approved 1)apply the following yaml:
|
…se YAML encoding instead of JSON encoding
From doc: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/controller-revision-v1/#ControllerRevision about
RawExtension
, this field holds the unpacked data in json format. So keep using json encoding for kubeletconfig for unit/e2e testing.- What I did
close: https://issues.redhat.com/browse/OCPBUGS-31710
- How to verify it
apply a kubelet config sets maxPods
- Description for the changelog