Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Sync dspo repo manifests. (#761)
Browse files Browse the repository at this point in the history
Signed-off-by: Humair Khan <humair88@hotmail.com>
  • Loading branch information
HumairAK authored Mar 27, 2023
1 parent de47d5f commit b43b253
Show file tree
Hide file tree
Showing 10 changed files with 268 additions and 37 deletions.
11 changes: 7 additions & 4 deletions data-science-pipelines-operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.IMAGES_MARIADB
- name: IMAGES_DSPO
objref:
kind: ConfigMap
name: dspo-parameters
apiVersion: v1
fieldref:
fieldpath: data.IMAGES_DSPO
configurations:
- params.yaml
images:
- name: controller
newName: quay.io/opendatahub/data-science-pipelines-operator
newTag: v0.1.0
1 change: 1 addition & 0 deletions data-science-pipelines-operator/base/params.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ IMAGES_VIEWERCRD=quay.io/opendatahub/ds-pipelines-viewercontroller:main-766729f
IMAGES_CACHE=registry.access.redhat.com/ubi8/ubi-minimal
IMAGES_MOVERESULTSIMAGE=registry.access.redhat.com/ubi8/ubi-micro
IMAGES_MARIADB=registry.redhat.io/rhel8/mariadb-103:1-188
IMAGES_DSPO=quay.io/opendatahub/data-science-pipelines-operator:v0.1.0
4 changes: 3 additions & 1 deletion data-science-pipelines-operator/base/params.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
varReference:
- path: data
kind: ConfigMap
- path: spec/template/spec/containers[]/env/value
- path: spec/template/spec/containers/env/value
kind: Deployment
- path: spec/template/spec/containers/image
kind: Deployment

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: servicemonitors.monitoring.coreos.com
spec:
group: monitoring.coreos.com
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
required:
- endpoints
- selector
properties:
endpoints:
type: array
items:
type: object
required:
- path
- port
properties:
path:
type: string
port:
type: string
minItems: 1
selector:
type: object
properties:
matchLabels:
type: object
status:
type: object
properties:
observedGeneration:
type: integer
format: int64
scope: Namespaced
names:
plural: servicemonitors
singular: servicemonitor
kind: ServiceMonitor
2 changes: 1 addition & 1 deletion data-science-pipelines-operator/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
- --leader-elect
- --config
- /home/config
image: controller:latest
image: $(IMAGES_DSPO)
name: manager
env:
# Env vars are prioritized over --config
Expand Down
20 changes: 20 additions & 0 deletions data-science-pipelines-operator/rbac/aggregate_dspa_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
name: aggregate-dspa-admin-edit
rules:
- apiGroups:
- datasciencepipelinesapplications.opendatahub.io
resources:
- datasciencepipelinesapplications
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
1 change: 1 addition & 0 deletions data-science-pipelines-operator/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ resources:
- role_binding.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- aggregate_dspa_role.yaml
12 changes: 12 additions & 0 deletions data-science-pipelines-operator/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,18 @@ rules:
- seldondeployments
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- networking.k8s.io
resources:
Expand Down
1 change: 0 additions & 1 deletion data-science-pipelines-operator/samples/dspa_simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: datasciencepipelinesapplications.opendatahub.io/v1alpha1
kind: DataSciencePipelinesApplication
metadata:
name: sample
namespace: data-science-project
spec:
# One of minio or externalStorage must be specified for objectStorage
# This example illustrates minimal deployment with minio
Expand Down

0 comments on commit b43b253

Please sign in to comment.