Skip to content

Commit

Permalink
add pipeline environment to code search web app (kubeflow#372)
Browse files Browse the repository at this point in the history
* add pipeline

* Update app.yaml
  • Loading branch information
IronPan authored and k8s-ci-robot committed Nov 30, 2018
1 parent 3799bac commit b807843
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code_search/ks-web-app/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ environments:
server: https://35.185.115.154
k8sVersion: v1.10.9
path: cs_demo
pipeline:
destination:
namespace: cs-web-app
server: https://kubernetes.default
k8sVersion: v1.10.9
path: pipeline
kind: ksonnet.io/app
libraries:
tf-serving:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
9 changes: 9 additions & 0 deletions code_search/ks-web-app/environments/pipeline/main.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local base = import "base.libsonnet";
// uncomment if you reference ksonnet-lib
// local k = import "k.libsonnet";
// local deployment = k.apps.v1beta2.deployment;

base + {
// Insert user-specified overrides here. For example if a component is named \"nginx-deployment\", you might have something like:\n")
// "nginx-deployment"+: deployment.mixin.metadata.withLabels({foo: "bar"})
}
13 changes: 13 additions & 0 deletions code_search/ks-web-app/environments/pipeline/params.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local params = std.extVar('__ksonnet/params');
local globals = import 'globals.libsonnet';
local envParams = params + {
components+: {
},
};

{
components: {
[x]: envParams.components[x] + globals
for x in std.objectFields(envParams.components)
},
}

0 comments on commit b807843

Please sign in to comment.