-
Notifications
You must be signed in to change notification settings - Fork 25
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
Bump golang, k8s #37
Bump golang, k8s #37
Conversation
{ | ||
Name: "reconcile deletetion", | ||
GVK: gvk, | ||
ReconcilePeriod: 5 * time.Second, | ||
Runner: &fake.Runner{ | ||
JobEvents: []eventapi.JobEvent{ | ||
eventapi.JobEvent{ | ||
Event: eventapi.EventPlaybookOnStats, | ||
Created: eventapi.EventTime{Time: eventTime}, | ||
}, | ||
}, | ||
Finalizer: "testing.io/finalizer", | ||
}, | ||
Client: fakeclient.NewClientBuilder().WithObjects(&unstructured.Unstructured{ | ||
Object: map[string]interface{}{ | ||
"metadata": map[string]interface{}{ | ||
"name": "reconcile", | ||
"namespace": "default", | ||
"annotations": map[string]interface{}{ | ||
controller.ReconcilePeriodAnnotation: "3s", | ||
}, | ||
"deletionTimestamp": eventTime.Format(time.RFC3339), | ||
}, | ||
"apiVersion": "operator-sdk/v1beta1", | ||
"kind": "Testing", | ||
"spec": map[string]interface{}{}, | ||
}, | ||
}).Build(), | ||
Result: reconcile.Result{}, | ||
Request: reconcile.Request{ | ||
NamespacedName: types.NamespacedName{ | ||
Name: "reconcile", | ||
Namespace: "default", | ||
}, | ||
}, | ||
}, |
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.
Why is this test now unnecessary?
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.
I bet this is because of the behaviour of the fake client which has changed in controller-runtime and now requires a sub resource to be present explicitly, which makes this unnecessary as the next test does the same. Should have commented while making this change :/
Let me run it locally and see if my brain remembers!
cd8f4e8
to
9d47b30
Compare
@oceanc80 Also realized that we need to bump this: ansible-operator-plugins/Makefile Line 12 in cbc2d46
|
2987e77
to
635d52a
Compare
|
51bf8c6
to
495781e
Compare
acbb5fd
to
de27b35
Compare
290bc4a
to
7af40e3
Compare
Signed-off-by: Catherine Chan-Tse <[email protected]>
Signed-off-by: everettraven <[email protected]>
Signed-off-by: everettraven <[email protected]>
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
Description of the change:
Transfer ansible-operator-plugins changes from operator-framework/operator-sdk#6514 to this repository.
Motivation for the change:
Bump k8s, golang and golang.org/x/net version