@@ -391,7 +391,7 @@ def upsert_pods(controller, url):
391391 # turn RC / RS (which a Deployment creates) url into pods one
392392 url = url .replace (cache_key (controller ['metadata' ]['name' ]), '' )
393393 if '_replicasets_' in url :
394- # We need to try to replace both just in case, one or the other exists (api backwards compatibility)
394+ # Try replacing both just in case one or the other exists (api backwards compatibility)
395395 url = url .replace ('_replicasets_' , '_pods' ).replace ('apis_apps_v1' , 'api_v1' ) # noqa
396396 url = url .replace ('_replicasets_' , '_pods' ).replace ('apis_extensions_v1beta1' , 'api_v1' ) # noqa
397397 else :
@@ -515,7 +515,7 @@ def manage_replicasets(deployment, url):
515515def update_deployment_status (namespaced_url , url , deployment , rs ):
516516 # Fill out deployment.status for success as pods transition to running state
517517 pod_url = namespaced_url .replace ('_replicasets' , '_pods' ).replace ('apis_apps_v1' , 'api_v1' ) # noqa
518- # We need to try to replace both just in case, one or the other exists (api backwards compatibility)
518+ # Try replacing both just in case one or the other exists (api backwards compatibility)
519519 pod_url = pod_url .replace ('_replicasets' , '_pods' ).replace ('apis_extensions_v1beta1' , 'api_v1' ) # noqa
520520 while True :
521521 # The below needs to be done to emulate Deployment handling things
0 commit comments