-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[installer]: set proxy server configuration in installer
- Loading branch information
Simon Emms
committed
Aug 4, 2022
1 parent
a0e9e09
commit b109938
Showing
7 changed files
with
122 additions
and
22 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
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
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,18 @@ | ||
# Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
# Licensed under the MIT License. See License-MIT.txt in the project root for license information. | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: proxy-server # Name set in /install/installer/pkg/common/constants.go | ||
labels: | ||
app: gitpod | ||
component: gitpod-installer | ||
# annotations: | ||
# kots.io/when: '{{repl ConfigOptionEquals "proxy_server_enabled" "1" }}' | ||
data: | ||
httpProxy: '{{repl (ConfigOption "proxy_server_http_proxy" | default (HTTPProxy)) }}' | ||
# @todo(sje): There is currently no HTTPSProxy function in KOTS | ||
# @link https://github.com/replicated-collab/replicated-gitpod/issues/39 | ||
httpsProxy: '{{repl ConfigOption "proxy_server_https_proxy" }}' | ||
noProxy: 'kotsadm,.svc.cluster.local,{{repl NoProxy }},{{repl ConfigOption "proxy_server_no_proxy" }}' # Merge the KOTS NO_PROXY so we don't lose the ability to talk to it |
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 |
---|---|---|
|
@@ -369,6 +369,39 @@ spec: | |
Add the domain only (eg, `gitpod.io`). Separate multiple domains with spaces. | ||
- name: proxy_server | ||
title: Proxy server | ||
description: Route your access through a proxy server | ||
items: | ||
- name: proxy_server_enabled | ||
title: Route through a proxy server | ||
type: bool | ||
default: "0" | ||
help_text: Configure proxy access to the Internet | ||
|
||
- name: proxy_server_http_proxy | ||
title: HTTP proxy | ||
type: text | ||
default: '{{repl HTTPProxy }}' | ||
when: '{{repl ConfigOptionEquals "proxy_server_enabled" "1" }}' | ||
help_text: Configure HTTP proxy server to route all traffic through. This should be in the format "user:[email protected]:1234" | ||
|
||
- name: proxy_server_https_proxy | ||
title: HTTPS proxy | ||
type: text | ||
# @todo(sje): There is currently no HTTPSProxy function in KOTS | ||
# @link https://github.com/replicated-collab/replicated-gitpod/issues/39 | ||
default: '' | ||
when: '{{repl ConfigOptionEquals "proxy_server_enabled" "1" }}' | ||
help_text: Configure HTTPS proxy server to route all traffic through. This should be in the format "user:[email protected]:1234" | ||
|
||
- name: proxy_server_no_proxy | ||
title: No proxy | ||
type: text | ||
default: '{{repl NoProxy }}' | ||
when: '{{repl ConfigOptionEquals "proxy_server_enabled" "1" }}' | ||
help_text: Configure URLs that bypass the proxy. This should be a CSV in the format "domain1.com,domain2.com". | ||
|
||
- name: advanced | ||
title: Advanced Options | ||
description: Here are advanced options that you should only make use of in coordination with us or when you know what you are doing. | ||
|