-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1822127 - Create secret with proxy config if setting present (#294)
* Create secret with proxy config if setting present * Add label to proxy secret and gen name * Quote label true value * Revert to using static name * generateName is a headache with the k8s module since its trying to patch a resource
- Loading branch information
1 parent
c5343c3
commit c8dbd42
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ proxy_secret_name }} | ||
namespace: {{ mig_namespace }} | ||
labels: | ||
migration-proxy-config: "true" | ||
type: Opaque | ||
data: | ||
{% if http_proxy|length >0 %} | ||
http_proxy: {{ http_proxy|b64encode }} | ||
{% endif %} | ||
{% if https_proxy|length >0 %} | ||
https_proxy: {{ https_proxy|b64encode }} | ||
{% endif %} | ||
{% if no_proxy|length >0 %} | ||
no_proxy: {{ no_proxy|b64encode }} | ||
{% endif %} |