forked from kubeflow/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pipeline environment to code search web app (kubeflow#372)
* add pipeline * Update app.yaml
- Loading branch information
1 parent
3799bac
commit b807843
Showing
4 changed files
with
30 additions
and
0 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
2 changes: 2 additions & 0 deletions
2
code_search/ks-web-app/environments/pipeline/globals.libsonnet
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,2 @@ | ||
{ | ||
} |
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,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
13
code_search/ks-web-app/environments/pipeline/params.libsonnet
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,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) | ||
}, | ||
} |