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

just add application overlays and generateName to current application… #435

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions admission-webhook/bootstrap/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: $(generateName)
spec:
selector:
matchLabels:
app.kubernetes.io/instance: $(generateName)
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=
11 changes: 11 additions & 0 deletions admission-webhook/bootstrap/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
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
26 changes: 26 additions & 0 deletions admission-webhook/webhook/overlays/application/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: $(generateName)
spec:
selector:
matchLabels:
app.kubernetes.io/instance: $(generateName)
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=
11 changes: 11 additions & 0 deletions admission-webhook/webhook/overlays/application/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
varReference:
- path: metadata/name
kind: Application
- path: spec/selector/matchLabels/app.kubernetes.io\/instance
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
239 changes: 239 additions & 0 deletions application/application/application-crds/base/crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: applications.app.k8s.io
spec:
group: app.k8s.io
names:
kind: Application
plural: applications
scope: Namespaced
validation:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
addOwnerRef:
type: boolean
assemblyPhase:
type: string
componentKinds:
items:
type: object
type: array
descriptor:
properties:
description:
type: string
icons:
items:
properties:
size:
type: string
src:
type: string
type:
type: string
required:
- src
type: object
type: array
keywords:
items:
type: string
type: array
links:
items:
properties:
description:
type: string
url:
type: string
type: object
type: array
maintainers:
items:
properties:
email:
type: string
name:
type: string
url:
type: string
type: object
type: array
notes:
type: string
owners:
items:
properties:
email:
type: string
name:
type: string
url:
type: string
type: object
type: array
type:
type: string
version:
type: string
type: object
info:
items:
properties:
name:
type: string
type:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
key:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
resourceVersion:
type: string
uid:
type: string
type: object
ingressRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
host:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
path:
type: string
resourceVersion:
type: string
uid:
type: string
type: object
secretKeyRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
key:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
resourceVersion:
type: string
uid:
type: string
type: object
serviceRef:
properties:
apiVersion:
type: string
fieldPath:
type: string
kind:
type: string
name:
type: string
namespace:
type: string
path:
type: string
port:
format: int32
type: integer
resourceVersion:
type: string
uid:
type: string
type: object
type:
type: string
type: object
type: object
type: array
selector:
type: object
type: object
status:
properties:
components:
items:
properties:
group:
type: string
kind:
type: string
link:
type: string
name:
type: string
status:
type: string
type: object
type: array
conditions:
items:
properties:
lastTransitionTime:
format: date-time
type: string
lastUpdateTime:
format: date-time
type: string
message:
type: string
reason:
type: string
status:
type: string
type:
type: string
required:
- type
- status
type: object
type: array
observedGeneration:
format: int64
type: integer
type: object
version: v1beta1
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- crd.yaml
11 changes: 11 additions & 0 deletions application/application/application/base/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-role
subjects:
- kind: ServiceAccount
name: service-account
Loading