Conversation
|
@charlieegan3: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions 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/test-infra repository. |
|
Skipping CI for Draft Pull Request. |
580eb0b to
53cb2d4
Compare
This creates a datagatherer based on version checker There is still work to load the config correctly from files Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
68d8c80 to
80032b7
Compare
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
3ff051e to
7bd53e5
Compare
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
JoshVanL
left a comment
There was a problem hiding this comment.
Made a couple comments, hope they make sense 😄
/assign @charlieegan3
| expectedResultsJSON := fmt.Sprintf(`[ | ||
| { | ||
| "pod": { | ||
| "kind": "Pod", | ||
| "apiVersion": "v1", | ||
| "metadata": { | ||
| "name": "example-6d94489854-zpzhr", | ||
| "namespace": "example", | ||
| "selfLink": "/api/v1/namespaces/example/pods/example-6d94489854-zpzhr", | ||
| "uid": "efff9dae-28ca-42c3-be70-970731c44f67", | ||
| "resourceVersion": "32023849", | ||
| "creationTimestamp": null, | ||
| "labels": { | ||
| "app": "example" | ||
| }, | ||
| "ownerReferences": [ | ||
| { | ||
| "apiVersion": "apps/v1", | ||
| "kind": "ReplicaSet", | ||
| "name": "example-6d94489854", | ||
| "uid": "bb6c0f31-0e28-4c28-a81d-91b8d7bfed33", | ||
| "controller": true, | ||
| "blockOwnerDeletion": true | ||
| } | ||
| ] | ||
| }, | ||
| "spec": { | ||
| "containers": [ | ||
| { | ||
| "name": "example", | ||
| "image": "%s/jetstack/example:v1.0.0", | ||
| "command": [ | ||
| "sh", | ||
| "-c" | ||
| ], | ||
| "resources": {} | ||
| } | ||
| ] | ||
| }, | ||
| "status": { | ||
| "containerStatuses": [ | ||
| { | ||
| "name": "example", | ||
| "state": {}, | ||
| "lastState": {}, | ||
| "ready": false, | ||
| "restartCount": 0, | ||
| "image": "", | ||
| "imageID": "is set" | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "result": { | ||
| "CurrentVersion": "v1.0.0", | ||
| "LatestVersion": "v1.0.1", | ||
| "IsLatest": false, | ||
| "ImageURL": "%s/jetstack/example" | ||
| } | ||
| } | ||
| ]`, parsedURL.Host, parsedURL.Host) |
There was a problem hiding this comment.
Maybe push the json to a const at the bottom of the file so it doesn't interrupt the flow of the code?
There was a problem hiding this comment.
Call me mad, but I like this 😂
I'm going to leave this comment open in case others agree with you.
As per comments Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
As per feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
As per feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
This is needed to make the config loading from a global config file work Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
As per style feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
In case files are leftover after a failed test run Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
As per feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
As per feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
Also shows if container is init or not. This makes the volume of data less to send to the backend Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
To match https://github.com/jetstack/cert-manager/blob/8127f0ad4228c58f37f0c0e4f5a2ef90c04f5082/pkg/controller/certificaterequests/ca/ca.go#L19, as per feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
This is in order to improve vc log output Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
7c6551b to
42cd668
Compare
As per feedback Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
|
lgtm to me 👍 |
Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: charlieegan3, j-fuentes The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This creates a datagatherer based on version checker. The new datagatherer wraps the dynamic client and version-checker. It returns a list of pods and the results of their image check from version checker.
Fixes https://github.com/jetstack/preflight-platform/issues/608