-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from canonical/cherrypick-fix-configure-proxy…
…-env-vars-storage-init-0.11 (cherry-pick to track/0.11) fix: configure proxy env vars storage init container (#257)
- Loading branch information
Showing
4 changed files
with
142 additions
and
45 deletions.
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
38 changes: 38 additions & 0 deletions
38
charms/kserve-controller/src/templates/cluster_storage_containers.yaml.j2
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,38 @@ | ||
apiVersion: serving.kserve.io/v1alpha1 | ||
kind: ClusterStorageContainer | ||
metadata: | ||
name: default | ||
spec: | ||
container: | ||
image: {{ configmap__storageInitializer }} | ||
name: storage-initializer | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
{% if http_proxy or https_proxy or no_proxy %} | ||
env: | ||
{% if http_proxy %} | ||
- name: HTTP_PROXY | ||
value: {{ http_proxy }} | ||
{% endif %} | ||
{% if https_proxy %} | ||
- name: HTTPS_PROXY | ||
value: {{ https_proxy }} | ||
{% endif %} | ||
{% if no_proxy %} | ||
- name: NO_PROXY | ||
value: {{ no_proxy }} | ||
{% endif %} | ||
{% endif %} | ||
supportedUriFormats: | ||
- prefix: gs:// | ||
- prefix: s3:// | ||
- prefix: hdfs:// | ||
- prefix: webhdfs:// | ||
- regex: https://(.+?).blob.core.windows.net/(.+) | ||
- regex: https://(.+?).file.core.windows.net/(.+) | ||
- regex: https?://(.+)/(.+) |
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