Skip to content

Commit

Permalink
App instance (kubeflow#342)
Browse files Browse the repository at this point in the history
* added config files for kfctl_gcp_iap, kfctl-gcp-e2e-pipelinerun.yaml

* update location of kfctl_gcp_iap

* updated kfctl revision

* error in kfctl-gcp-e2e-pipelinerun.yaml

* mapping value

* map values

* remove testing_repo, kfctl_repo

* changed jupyter-web-app to use instance

* update manifests to use PR

* instance update

* leave generateName blank in params.env

* update to application instance

* change configmap name

* add additional varReferences

* update unit tests

* added application to admission-webhook, argo, profile, pipeline

* use kfctl_gcp_iap from the PR

* update unit tests

* add generateName parameter

* added generateName to kfct_anthos, kfctl_aws

* update kfctl_aws_cognito.yaml, kfctl_gcp_iap.yaml with generateName

* added generateName to kfctl_existing_arriko.yaml

* added kfctl_gcp_basic_auth.yaml

* added kfctl_k8s_istio

* update params.yaml, unit tests

* StatefulSet -> Deployment

* use different config map name

* fix for seldon-core

* update unit tests

* add katib application

* added katib-suggestion
  • Loading branch information
Kam Kasravi authored and k8s-ci-robot committed Oct 1, 2019
1 parent 3e85b3c commit e97671c
Show file tree
Hide file tree
Showing 209 changed files with 6,396 additions and 440 deletions.
21 changes: 21 additions & 0 deletions admission-webhook/bootstrap/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: $(generateName)
spec:
componentKinds:
- group: apps
kind: StatefulSet
- group: core
kind: ServiceAccount
- group: core
kind: ConfigMap
descriptor:
type: "admission-webhook-bootstrap"
version: "v1alpha1"
description: "admission-webhook bootstrap installs the admission-webhook controller"
keywords:
- "admission-webook"
links:
- description: About
url: "https://github.com/kubeflow/kubeflow/tree/master/components/admission-webhook"
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
resources:
- application.yaml
configMapGenerator:
- name: admission-webhook-bootstrap-parameters
env: params.env
vars:
- name: generateName
objref:
kind: ConfigMap
name: admission-webhook-bootstrap-parameters
apiVersion: v1
fieldref:
fieldpath: data.generateName
configurations:
- params.yaml
commonLabels:
app.kubernetes.io/name: admission-webhook-bootstrap
app.kubernetes.io/instance: $(generateName)
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: admission-webhook
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/version: v0.6
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generateName=
9 changes: 9 additions & 0 deletions admission-webhook/bootstrap/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/app.kubernetes.io\/instance
kind: Service
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
kind: StatefulSet
- path: spec/template/metadata/labels/app.kubernetes.io\/instance
kind: StatefulSet
23 changes: 23 additions & 0 deletions admission-webhook/webhook/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: $(generateName)
spec:
componentKinds:
- group: apps
kind: Deployment
- group: admissionregistration.k8s.io
kind: MutatingWebhookConfiguration
- group: core
kind: ServiceAccount
- group: core
kind: Service
descriptor:
type: "admission-webhook-webhook"
version: "v1alpha1"
description: "admission-webhook webhook injects common data (env vars, volumes) into notebooks"
keywords:
- "admission-webook"
links:
- description: About
url: "https://github.com/kubeflow/kubeflow/tree/master/components/admission-webhook"
26 changes: 26 additions & 0 deletions admission-webhook/webhook/overlays/application/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
resources:
- application.yaml
configMapGenerator:
- name: admission-webhook-webhook-parameters
env: params.env
vars:
- name: generateName
objref:
kind: ConfigMap
name: admission-webhook-webhook-parameters
apiVersion: v1
fieldref:
fieldpath: data.generateName
configurations:
- params.yaml
commonLabels:
app.kubernetes.io/name: admission-webhook-webhook
app.kubernetes.io/instance: $(generateName)
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: admission-webhook
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/version: v0.6
1 change: 1 addition & 0 deletions admission-webhook/webhook/overlays/application/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generateName=
9 changes: 9 additions & 0 deletions admission-webhook/webhook/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/app.kubernetes.io\/instance
kind: Service
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
kind: Deployment
- path: spec/template/metadata/labels/app.kubernetes.io\/instance
kind: Deployment
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: kubeflow
name: $(generateName)
spec:
selector:
matchLabels:
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/version: v0.6
componentKinds:
- group: app.k8s.io
kind: Application
Expand Down
15 changes: 14 additions & 1 deletion application/application/overlays/application/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@ bases:
- ../../base
resources:
- application.yaml
configMapGenerator:
- name: kubeflow-app-parameters
env: params.env
vars:
- name: generateName
objref:
kind: ConfigMap
name: kubeflow-app-parameters
apiVersion: v1
fieldref:
fieldpath: data.generateName
configurations:
- params.yaml
commonLabels:
app.kubernetes.io/name: kubeflow
app.kubernetes.io/instance: kubeflow
app.kubernetes.io/instance: $(generateName)
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: kubeflow
app.kubernetes.io/part-of: kubeflow
Expand Down
1 change: 1 addition & 0 deletions application/application/overlays/application/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generateName=
9 changes: 9 additions & 0 deletions application/application/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/app.kubernetes.io\/instance
kind: Service
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
kind: StatefulSet
- path: spec/template/metadata/labels/app.kubernetes.io\/instance
kind: StatefulSet
1 change: 0 additions & 1 deletion argo/base/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ roleRef:
subjects:
- kind: ServiceAccount
name: argo
namespace: kubeflow
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
Expand Down
1 change: 0 additions & 1 deletion argo/base/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: workflow-controller-configmap
namespace: kubeflow
data:
config: |
{
Expand Down
2 changes: 0 additions & 2 deletions argo/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
labels:
app: argo-ui
name: argo-ui
namespace: kubeflow
spec:
progressDeadlineSeconds: 600
replicas: 1
Expand Down Expand Up @@ -59,7 +58,6 @@ metadata:
labels:
app: workflow-controller
name: workflow-controller
namespace: kubeflow
spec:
progressDeadlineSeconds: 600
replicas: 1
Expand Down
1 change: 1 addition & 0 deletions argo/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
- deployment.yaml
- service-account.yaml
- service.yaml
namespace: kubeflow
commonLabels:
kustomize.component: argo
images:
Expand Down
1 change: 0 additions & 1 deletion argo/base/service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: argo-ui
namespace: kubeflow
1 change: 0 additions & 1 deletion argo/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ metadata:
labels:
app: argo-ui
name: argo-ui
namespace: kubeflow
spec:
ports:
- port: 80
Expand Down
23 changes: 23 additions & 0 deletions argo/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: $(generateName)
spec:
componentKinds:
- group: core
kind: ConfigMap
- group: apps
kind: Deployment
- group: core
kind: ServiceAccount
- group: core
kind: Service
descriptor:
type: "argo"
version: "v1beta1"
description: "installs argo controller to handle argo Workflows"
keywords:
- "argo"
links:
- description: About
url: "https://argoproj.github.io/argo"
26 changes: 26 additions & 0 deletions argo/overlays/application/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
resources:
- application.yaml
configMapGenerator:
- name: argo-app-parameters
env: params.env
vars:
- name: generateName
objref:
kind: ConfigMap
name: argo-app-parameters
apiVersion: v1
fieldref:
fieldpath: data.generateName
configurations:
- params.yaml
commonLabels:
app.kubernetes.io/name: argo
app.kubernetes.io/instance: $(generateName)
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: argo
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/version: v0.6
1 change: 1 addition & 0 deletions argo/overlays/application/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generateName=
9 changes: 9 additions & 0 deletions argo/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/app.kubernetes.io\/instance
kind: Service
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
kind: Deployment
- path: spec/template/metadata/labels/app.kubernetes.io\/instance
kind: Deployment
10 changes: 1 addition & 9 deletions common/centraldashboard/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: centraldashboard
name: $(generateName)
spec:
selector:
matchLabels:
app.kubernetes.io/name:
app.kubernetes.io/instance: centraldashboard
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: centraldashboard
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/version: v0.6
componentKinds:
- group: core
kind: ConfigMap
Expand Down
15 changes: 14 additions & 1 deletion common/centraldashboard/overlays/application/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@ bases:
- ../../base
resources:
- application.yaml
configMapGenerator:
- name: centraldashboard-app-parameters
env: params.env
vars:
- name: generateName
objref:
kind: ConfigMap
name: centraldashboard-app-parameters
apiVersion: v1
fieldref:
fieldpath: data.generateName
configurations:
- params.yaml
commonLabels:
app.kubernetes.io/name: centraldashboard
app.kubernetes.io/instance: centraldashboard
app.kubernetes.io/instance: $(generateName)
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: centraldashboard
app.kubernetes.io/part-of: kubeflow
Expand Down
1 change: 1 addition & 0 deletions common/centraldashboard/overlays/application/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generateName=
9 changes: 9 additions & 0 deletions common/centraldashboard/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/app.kubernetes.io\/instance
kind: Service
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
kind: Deployment
- path: spec/template/metadata/labels/app.kubernetes.io\/instance
kind: Deployment
10 changes: 1 addition & 9 deletions jupyter/jupyter-web-app/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: jupyter-web-app
name: $(generateName)
spec:
selector:
matchLabels:
app.kubernetes.io/name: jupyter-web-app
app.kubernetes.io/instance: jupyter-web-app
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: jupyter
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/version: v0.6
componentKinds:
- group: core
kind: ConfigMap
Expand Down
15 changes: 14 additions & 1 deletion jupyter/jupyter-web-app/overlays/application/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@ bases:
- ../../base
resources:
- application.yaml
configMapGenerator:
- name: jupyter-web-app-parameters
env: params.env
vars:
- name: generateName
objref:
kind: ConfigMap
name: jupyter-web-app-parameters
apiVersion: v1
fieldref:
fieldpath: data.generateName
configurations:
- params.yaml
commonLabels:
app.kubernetes.io/name: jupyter-web-app
app.kubernetes.io/instance: jupyter-web-app
app.kubernetes.io/instance: $(generateName)
app.kubernetes.io/managed-by: kfctl
app.kubernetes.io/component: jupyter
app.kubernetes.io/part-of: kubeflow
Expand Down
1 change: 1 addition & 0 deletions jupyter/jupyter-web-app/overlays/application/params.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
generateName=
9 changes: 9 additions & 0 deletions jupyter/jupyter-web-app/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/app.kubernetes.io\/instance
kind: Service
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
kind: Deployment
- path: spec/template/metadata/labels/app.kubernetes.io\/instance
kind: Deployment
Loading

0 comments on commit e97671c

Please sign in to comment.