Commit 0c5c4f1d authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Rename cosmos api env var

parent 39591b39
......@@ -26,7 +26,7 @@ func NewCosmosClient() (*CosmosClient, error) {
}
func (cc *CosmosClient) ApiCall(method string, endPoint string, data []byte) (*http.Response, error) {
url := os.Getenv("COSMOS_API_BASE") + endPoint
url := os.Getenv("GHOST_COSMOS_API_URL") + endPoint
glog.Infof("calling url: %v", url)
// Prepare the body, if present.
......
......@@ -21,8 +21,8 @@ spec:
image: "{{ .Values.provisioner.image.repository }}:{{ .Values.provisioner.image.tag }}"
imagePullPolicy: "{{ .Values.provisioner.image.pullPolicy }}"
env:
- name: COSMOS_API_BASE
value: "{{ .Values.provisioner.cosmos_api_base }}"
- name: GHOST_COSMOS_API_URL
value: "{{ .Values.provisioner.cosmos_api_url }}"
- name: GHOST_CLOUD_REGION
value: "{{ .Values.provisioner.cosmos_location }}"
volumeMounts:
......
provisioner:
image:
repository: "docker.greenhost.net/open/kubernetes-ghost/provisioner"
tag: "latest"
tag: "0.1.0"
imagePullPolicy: "Always"
cosmos_api_base: "https://service.greenhost.net/api/v2"
cosmos_api_url: "https://service.greenhost.net/api/v2"
cosmos_location: "ams1"
driver:
image:
repository: "docker.greenhost.net/open/kubernetes-ghost/driver"
tag: "latest"
tag: "0.1.0"
imagePullPolicy: "Always"
# Make this storage class the default, so persistent volume claims that do not
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment