Remove EnqueueRequestForAnnotation handler from SDK#3506
Conversation
| description: 'Kind is a string value representing the REST resource this | ||
| object represents. Servers may infer this from the endpoint the client | ||
| submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
| description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
There was a problem hiding this comment.
The newlines present in-between strings were not passing the tests. So removed them.
There was a problem hiding this comment.
What was the error? Can you share?
There was a problem hiding this comment.
There were errors due to the presence of newline in the expected string output with backticks (back quotes). This was after bumping versions of some of the dependencies along with controller-runtime (though I didn't look into what was the exact one causing this). This does not happen in master. For ex in case of one of the test TestCRDGo:
Diff:
--- Expected
+++ Actual
@@ -19,10 +19,6 @@
apiVersion:
- description: 'APIVersion defines the versioned schema of this representation
- of an object. Servers should convert recognized schemas to the latest
- internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
+ description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
- description: 'Kind is a string value representing the REST resource this
- object represents. Servers may infer this from the endpoint the client
- submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
+ description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
There was a problem hiding this comment.
@varshaprasad96 I saw the same error in my new PR #3523. I think the new version of ginkgo or gomega caused it.
There was a problem hiding this comment.
Oh..The failing tests here are written in the old golang testing framework though. Not sure which, but some other dependency maybe causing it.
|
Add a CHANGELOG fragment for this? |
5e39f27 to
726ec66
Compare
joelanford
left a comment
There was a problem hiding this comment.
Totally minor nit just to align with other variable names in the function.
/lgtm
726ec66 to
0f6d9f8
Compare
This commit removes pkg/handler/enqueue_annotation.go from SDK, and modifies helm/ansible to use EnqueueRequestForAnnotation handler implemented in Operator-lib.
0f6d9f8 to
6e10a23
Compare
Description of the change:
This commit removes pkg/handler/enqueue_annotation.go from SDK,
and modifies helm/ansible to use EnqueueRequestForAnnotation handler
implemented in Operator-lib.
Motivation for the change:
Efforts to move towards SDK 1.0 involves moving SDK helper functions to operator-lib.
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments(seechangelog/fragments/00-template.yaml)website/content/en/docs