forked from GoogleCloudPlatform/kubeflow-distribution
-
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.
Management blueprint; add kptfile and use workload identity mode for …
…CNRM * management/instance needs a Kptfile to work with the latest versions of kpt * Per GoogleCloudPlatform#13 we don't want to run CNRM in namespace mode because this burdensome instead we use workload identity mode; i.e. the same GCP sa to administer multiple projects. Related to GoogleCloudPlatform#13 - Use workload identity mode Related to GoogleCloudPlatform#102 Fix blueprint * Remove cluster and nodepool patches from instance; we aren't actually patching anything.
- Loading branch information
Jeremy Lewi
committed
Aug 12, 2020
1 parent
e2aabb7
commit dc8c0f2
Showing
15 changed files
with
152 additions
and
264 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
apiVersion: kpt.dev/v1alpha1 | ||
kind: Kptfile | ||
metadata: | ||
name: . | ||
packageMetadata: | ||
shortDescription: Blueprint instance. | ||
openAPI: | ||
definitions: | ||
io.k8s.cli.setters.gcloud.core.project: | ||
x-k8s-cli: | ||
setter: | ||
name: gcloud.core.project | ||
value: YOUR-PROJECT | ||
isSet: true | ||
io.k8s.cli.setters.name: | ||
x-k8s-cli: | ||
setter: | ||
name: name | ||
value: YOUR-NAME | ||
isSet: true | ||
io.k8s.cli.setters.location: | ||
x-k8s-cli: | ||
setter: | ||
name: location | ||
value: us-central1 | ||
io.k8s.cli.substitutions.cluster-name: | ||
x-k8s-cli: | ||
substitution: | ||
name: cluster-name | ||
pattern: ${gcloud.core.project}/${location}/${name} | ||
values: | ||
- marker: ${gcloud.core.project} | ||
ref: '#/definitions/io.k8s.cli.setters.gcloud.core.project' | ||
- marker: ${location} | ||
ref: '#/definitions/io.k8s.cli.setters.location' | ||
- marker: ${name} | ||
ref: '#/definitions/io.k8s.cli.setters.name' | ||
io.k8s.cli.substitutions.node-pool-name: | ||
x-k8s-cli: | ||
substitution: | ||
name: node-pool-name | ||
pattern: ${name}-pool | ||
values: | ||
- marker: ${name} | ||
ref: '#/definitions/io.k8s.cli.setters.name' | ||
io.k8s.cli.substitutions.managed-project-owner-member: | ||
x-k8s-cli: | ||
substitution: | ||
name: managed-project-owner-member | ||
pattern: serviceAccount:${name}-cnrm-system@${gcloud.core.project}.iam.gserviceaccount.com | ||
values: | ||
- marker: ${name} | ||
ref: '#/definitions/io.k8s.cli.setters.name' | ||
- marker: ${gcloud.core.project} | ||
ref: '#/definitions/io.k8s.cli.setters.gcloud.core.project' | ||
io.k8s.cli.setters.managed-project: | ||
x-k8s-cli: | ||
setter: | ||
name: managed-project | ||
value: MANAGED_PROJECT | ||
io.k8s.cli.substitutions.managed-project-ref: | ||
x-k8s-cli: | ||
substitution: | ||
name: managed-project-ref | ||
pattern: projects/${managed-project} | ||
values: | ||
- marker: ${managed-project} | ||
ref: '#/definitions/io.k8s.cli.setters.managed-project' |
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,17 @@ | ||
. | ||
================================================== | ||
|
||
# NAME | ||
|
||
. | ||
|
||
# SYNOPSIS | ||
|
||
kubectl apply --recursive -f . | ||
|
||
# Description | ||
|
||
Blueprint instance. | ||
|
||
# SEE ALSO | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: HOST_PROJECT # {"type":"string","x-kustomize":{"setter":{"name":"gcloud.core.project","value":"HOST_PROJECT"}}} | ||
namespace: HOST_PROJECT # {"$kpt-set":"gcloud.core.project"} | ||
resources: | ||
- ../../upstream/management/cluster | ||
patchesStrategicMerge: | ||
- cluster.yaml | ||
- nodepool.yaml |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: HOST_PROJECT # {"$kpt-set":"gcloud.core.project"} | ||
resources: | ||
- ../../upstream/management/cnrm-install/iam |
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
management/instance/cnrm-install-per-namespace/namespace.yaml
This file was deleted.
Oops, something went wrong.
173 changes: 0 additions & 173 deletions
173
management/instance/cnrm-install-per-namespace/per-namespace-components.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.