[v4.1.z] Don't try creating methods for /processedtemplates pseudo-entity #378
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another small followup for #366, only relevant for openshift.
This changes nothing but achieves the desired result deliberates instead of accidentally :-) 😅
Openshift discovery lists both
templates
andprocessedtemplates
paths for same kind "Template": openshift/origin#21668templates
is a regular stored api object. We wantcreate_template
,watch_templates
etc. methods to access this endpoint.processedtemplates
endpoint isn't a stored object, its POST is a special input (template + params) -> output function. That functionality is already covered in kubeclient byprocess_template
method. It doesn't need regularcreate_
,get_
etc methods.Before 4.1.0,
processedtemplates
was discarded inparse_definition
as it didn't match the singular kind.AFAICT it's still not a problem because first we collect
@entities
hash keyed by singular name, and all openshift discovery data,templates
comes afterprocessedtemplates
and replaces it in@entities["template"]
. So noprocessedtemplates
methods were defined 😆Anyway, this patch avoids the collision by explicitly skipping
processedtemplates
.@masayag @grosser please review