-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for setting up infrastructure for releasing. (#40)
Our release infra is pretty much a mirror of our test infra except more restricted (e.g. we don't expose the Argo UI.) We also need to grant the service account permissions on projects used as GCR registries. Update the instructions for setting up our test infra. Provide gcloud commands for some steps. Related to kubeflow/training-operator#400
- Loading branch information
Showing
10 changed files
with
75,674 additions
and
23 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
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
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
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 |
---|---|---|
|
@@ -4,5 +4,8 @@ params + { | |
"nfs-external" +: { | ||
nfsServer: "10.128.0.3", | ||
}, | ||
argo +: { | ||
exposeUi: true, | ||
}, | ||
}, | ||
} |
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,80 @@ | ||
local k8s = import "k8s.libsonnet"; | ||
|
||
local apps = k8s.apps; | ||
local core = k8s.core; | ||
local extensions = k8s.extensions; | ||
|
||
local hidden = { | ||
mapContainers(f):: { | ||
local podContainers = super.spec.template.spec.containers, | ||
spec+: { | ||
template+: { | ||
spec+: { | ||
// IMPORTANT: This overwrites the 'containers' field | ||
// for this deployment. | ||
containers: std.map(f, podContainers), | ||
}, | ||
}, | ||
}, | ||
}, | ||
|
||
mapContainersWithName(names, f) :: | ||
local nameSet = | ||
if std.type(names) == "array" | ||
then std.set(names) | ||
else std.set([names]); | ||
local inNameSet(name) = std.length(std.setInter(nameSet, std.set([name]))) > 0; | ||
self.mapContainers( | ||
function(c) | ||
if std.objectHas(c, "name") && inNameSet(c.name) | ||
then f(c) | ||
else c | ||
), | ||
}; | ||
|
||
k8s + { | ||
apps:: apps + { | ||
v1beta1:: apps.v1beta1 + { | ||
local v1beta1 = apps.v1beta1, | ||
|
||
daemonSet:: v1beta1.daemonSet + { | ||
mapContainers(f):: hidden.mapContainers(f), | ||
mapContainersWithName(names, f):: hidden.mapContainersWithName(names, f), | ||
}, | ||
|
||
deployment:: v1beta1.deployment + { | ||
mapContainers(f):: hidden.mapContainers(f), | ||
mapContainersWithName(names, f):: hidden.mapContainersWithName(names, f), | ||
}, | ||
}, | ||
}, | ||
|
||
core:: core + { | ||
v1:: core.v1 + { | ||
list:: { | ||
new(items):: | ||
{apiVersion: "v1"} + | ||
{kind: "List"} + | ||
self.items(items), | ||
|
||
items(items):: if std.type(items) == "array" then {items+: items} else {items+: [items]}, | ||
}, | ||
}, | ||
}, | ||
|
||
extensions:: extensions + { | ||
v1beta1:: extensions.v1beta1 + { | ||
local v1beta1 = extensions.v1beta1, | ||
|
||
daemonSet:: v1beta1.daemonSet + { | ||
mapContainers(f):: hidden.mapContainers(f), | ||
mapContainersWithName(names, f):: hidden.mapContainersWithName(names, f), | ||
}, | ||
|
||
deployment:: v1beta1.deployment + { | ||
mapContainers(f):: hidden.mapContainers(f), | ||
mapContainersWithName(names, f):: hidden.mapContainersWithName(names, f), | ||
}, | ||
}, | ||
}, | ||
} |
Oops, something went wrong.