Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding pytorch-operator to nightly builds #972

Merged
merged 2 commits into from
Jun 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions releasing/prow_config_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ workflows:
registry: "gcr.io/kubeflow-images-public"
testing_image: "gcr.io/kubeflow-releasing/worker:latest"
zone: "us-central1-a"
- app_dir: kubeflow/kubeflow/releasing/pytorch-operator
component: release
name: pytorch-operator-release
4 changes: 4 additions & 0 deletions releasing/pytorch-operator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/lib
/.ksonnet/registries
/app.override.yaml
/.ks_environment
31 changes: 31 additions & 0 deletions releasing/pytorch-operator/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: 0.1.0
environments:
default:
destination:
namespace: default
server: https://35.200.179.178
k8sVersion: v1.10.2
path: default
kind: ksonnet.io/app
libraries:
automation:
gitVersion:
commitSha: f6377404e032d036a8d78a91a25501dc9933499a
refSpec: master
name: automation
registry: kubeflow
name: pytorch-operator
registries:
incubator:
gitVersion:
commitSha: 40285d8a14f1ac5787e405e1023cf0c07f6aa28c
refSpec: master
protocol: github
uri: github.com/ksonnet/parts/tree/master/incubator
kubeflow:
gitVersion:
commitSha: f6377404e032d036a8d78a91a25501dc9933499a
refSpec: master
protocol: github
uri: github.com/kubeflow/kubeflow/tree/master/kubeflow
version: 0.0.1
29 changes: 29 additions & 0 deletions releasing/pytorch-operator/components/params.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
global: {
// User-defined global parameters; accessible to all component and environments, Ex:
// replicas: 4,
},
components: {
// Component-level parameters, defined initially from 'ks prototype use ...'
// Each object below should correspond to a component in the components/ directory
"pytorch-operator": {
bucket: "kubeflow-releasing-artifacts",
cluster: "kubeflow-releasing",
dockerfile: "Dockerfile",
dockerfileDir: "kubeflow/pytorch-operator",
extra_args: "/mnt",
extra_repos: "kubeflow/testing@HEAD;kubeflow/pytorch-operator@HEAD",
gcpCredentialsSecretName: "gcp-credentials",
image: "pytorch-operator",
name: "pytorch-operator",
namespace: "kubeflow-releasing",
nfsVolumeClaim: "nfs-external",
project: "kubeflow-releasing",
prow_env: "REPO_OWNER=kubeflow,REPO_NAME=kubeflow,PULL_BASE_SHA=master",
registry: "gcr.io/kubeflow-images-public",
testing_image: "gcr.io/kubeflow-releasing/worker:latest",
versionTag: "latest",
zone: "us-central1-a",
},
},
}
10 changes: 10 additions & 0 deletions releasing/pytorch-operator/components/pytorch-operator.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
local env = std.extVar("__ksonnet/environments");
local params = std.extVar("__ksonnet/params").components["pytorch-operator"];

local k = import "k.libsonnet";
local release = import "kubeflow/automation/release.libsonnet";
local updatedParams = params {
extra_args: if params.extra_args == "null" then "" else " " + params.extra_args,
};

std.prune(k.core.v1.list.new(release.parts(updatedParams.namespace, updatedParams.name, overrides=updatedParams).release))
4 changes: 4 additions & 0 deletions releasing/pytorch-operator/environments/base.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local components = std.extVar("__ksonnet/components");
components {
// Insert user-specified overrides here.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
8 changes: 8 additions & 0 deletions releasing/pytorch-operator/environments/default/main.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local base = import "base.libsonnet";
// uncomment if you reference ksonnet-lib
// local k = import "k.libsonnet";

base {
// Insert user-specified overrides here. For example if a component is named \"nginx-deployment\", you might have something like:\n")
// "nginx-deployment"+: k.deployment.mixin.metadata.labels({foo: "bar"})
}
18 changes: 18 additions & 0 deletions releasing/pytorch-operator/environments/default/params.libsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
local params = std.extVar("__ksonnet/params");
local globals = import "globals.libsonnet";
local envParams = params {
components+: {
// Insert component parameter overrides here. Ex:
// guestbook +: {
// name: "guestbook-dev",
// replicas: params.global.replicas,
// },
},
};

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