Skip to content

Commit

Permalink
service namespace var in getambassador.io/config annotations (kubeflo…
Browse files Browse the repository at this point in the history
…w#30)

* service namespace var in getambassador.io/config annotations

* update jupyter namespace var
  • Loading branch information
hougangliu authored and k8s-ci-robot committed Apr 24, 2019
1 parent 1e933b8 commit 15f3349
Show file tree
Hide file tree
Showing 25 changed files with 93 additions and 22 deletions.
8 changes: 8 additions & 0 deletions argo/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.artifactRepositorySecretKeySecretKey
vars:
- name: namespace
objref:
kind: Service
name: argo-ui
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- params.yaml
2 changes: 2 additions & 0 deletions argo/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ varReference:
kind: ConfigMap
- path: data/config
kind: Deployment
- path: metadata/annotations/getambassador.io\/config
kind: Service
2 changes: 1 addition & 1 deletion argo/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
kind: Mapping
name: argo-ui-mapping
prefix: /argo/
service: argo-ui.kubeflow
service: argo-ui.$(namespace)
labels:
app: argo-ui
name: argo-ui
Expand Down
9 changes: 3 additions & 6 deletions common/centraldashboard/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ images:
- name: gcr.io/kubeflow-images-public/centraldashboard
newName: gcr.io/kubeflow-images-public/centraldashboard
newTag: latest
configMapGenerator:
- name: centraldashboard-parameters
env: params.env
generatorOptions:
disableNameSuffixHash: true
vars:
- name: namespace
objref:
kind: ConfigMap
name: centraldashboard-parameters
kind: Service
name: centraldashboard
apiVersion: v1
fieldref:
fieldpath: data.namespace
fieldpath: metadata.namespace
configurations:
- params.yaml

1 change: 0 additions & 1 deletion common/centraldashboard/base/params.env

This file was deleted.

6 changes: 3 additions & 3 deletions jupyter/jupyter-web-app/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ vars:
fieldpath: data.prefix
- name: namespace
objref:
kind: ConfigMap
name: parameters
kind: Service
name: service
apiVersion: v1
fieldref:
fieldpath: data.namespace
fieldpath: metadata.namespace
configurations:
- params.yaml
1 change: 0 additions & 1 deletion jupyter/jupyter-web-app/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ UI=default
ROK_SECRET_NAME=secret-rok-{username}
policy=Always
prefix=jupyter
namespace=kubeflow
2 changes: 1 addition & 1 deletion jupyter/jupyter-web-app/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
kind: Mapping
name: webapp_mapping
prefix: /$(prefix)/
service: jupyter-web-app.$(namespace)
service: jupyter-web-app-service.$(namespace)
add_request_headers:
x-forwarded-prefix: /jupyter
labels:
Expand Down
6 changes: 3 additions & 3 deletions jupyter/jupyter/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ vars:
fieldpath: data.serviceType
- name: namespace
objref:
kind: ConfigMap
name: parameters
kind: Service
name: jupyter-lb
apiVersion: v1
fieldref:
fieldpath: data.namespace
fieldpath: metadata.namespace
configurations:
- params.yaml
1 change: 0 additions & 1 deletion jupyter/jupyter/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ STORAGE_CLASS=null
KF_AUTHENTICATOR=null
DEFAULT_JUPYTERLAB=false
serviceType=ClusterIP
namespace=kubeflow
10 changes: 10 additions & 0 deletions kubebench/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ images:
- name: gcr.io/kubeflow-images-public/kubebench/kubebench-example-tf-cnn-post-processor
newName: gcr.io/kubeflow-images-public/kubebench/kubebench-example-tf-cnn-post-processor
newTag: v0.4.0-13-g262c593
vars:
- name: namespace
objref:
kind: Service
name: kubebench-dashboard
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- params.yaml
3 changes: 3 additions & 0 deletions kubebench/base/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
2 changes: 1 addition & 1 deletion kubebench/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: kubebench-dashboard-ui-mapping
prefix: /dashboard/
rewrite: /dashboard/
service: kubebench-dashboard.kubeflow
service: kubebench-dashboard.$(namespace)
name: kubebench-dashboard
spec:
ports:
Expand Down
12 changes: 12 additions & 0 deletions pipeline/pipelines-ui/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,15 @@ resources:
images:
- name: gcr.io/ml-pipeline/frontend
newTag: '0.1.14'

vars:
- name: namespace
objref:
kind: Service
name: ml-pipeline-ui
apiVersion: v1
fieldref:
fieldpath: metadata.namespace

configurations:
- params.yaml
3 changes: 3 additions & 0 deletions pipeline/pipelines-ui/base/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
2 changes: 1 addition & 1 deletion pipeline/pipelines-ui/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
prefix: /pipeline
rewrite: /pipeline
timeout_ms: 300000
service: ml-pipeline-ui.kubeflow
service: ml-pipeline-ui.$(namespace)
use_websocket: true
labels:
app: ml-pipeline-ui
Expand Down
10 changes: 10 additions & 0 deletions pipeline/pipelines-viewer/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ resources:
images:
- name: gcr.io/ml-pipeline/viewer-crd-controller
newTag: '0.1.14'
vars:
- name: namespace
objref:
kind: Service
name: ml-pipeline-tensorboard-ui
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- params.yaml
3 changes: 3 additions & 0 deletions pipeline/pipelines-viewer/base/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
2 changes: 1 addition & 1 deletion pipeline/pipelines-viewer/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
prefix: /data
rewrite: /data
timeout_ms: 300000
service: ml-pipeline-ui.kubeflow
service: ml-pipeline-tensorboard-ui.$(namespace)
use_websocket: true
labels:
app: ml-pipeline-tensorboard-ui
Expand Down
10 changes: 10 additions & 0 deletions tensorboard/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ resources:
- service.yaml
commonLabels:
kustomize.component: tensorboard
vars:
- name: namespace
objref:
kind: Service
name: tensorboard
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- params.yaml
3 changes: 3 additions & 0 deletions tensorboard/base/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
2 changes: 1 addition & 1 deletion tensorboard/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
prefix: /tensorboard/ tensorboard/
rewrite: /
method: GET
service: tensorboard.kubeflow:9000
service: tensorboard.$(namespace):9000
labels:
app: tensorboard
name: tensorboard
Expand Down
10 changes: 10 additions & 0 deletions tf-training/tf-job-operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ resources:
- service.yaml
commonLabels:
kustomize.component: tf-job-operator
vars:
- name: namespace
objref:
kind: Service
name: tf-job-dashboard
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- params.yaml
3 changes: 3 additions & 0 deletions tf-training/tf-job-operator/base/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
varReference:
- path: metadata/annotations/getambassador.io\/config
kind: Service
2 changes: 1 addition & 1 deletion tf-training/tf-job-operator/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: tfjobs-ui-mapping
prefix: /tfjobs/
rewrite: /tfjobs/
service: tf-job-dashboard.kubeflow
service: tf-job-dashboard.$(namespace)
name: tf-job-dashboard
spec:
ports:
Expand Down

0 comments on commit 15f3349

Please sign in to comment.