Skip to content

Commit

Permalink
:fix: Add labels and selectors for postgresql
Browse files Browse the repository at this point in the history
Signed-off-by: etheleon <[email protected]>
  • Loading branch information
etheleon committed Oct 12, 2024
1 parent 391de8c commit 1b5e378
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ metadata:
name: cache-deployer-deployment
labels:
app: cache-deployer
application-crd-id: kubeflow-pipelines
spec:
replicas: 1
selector:
matchLabels:
application-crd-id: kubeflow-pipelines
app: cache-deployer
strategy:
type: Recreate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Role
metadata:
labels:
app: kubeflow-pipelines-cache-deployer-role
application-crd-id: kubeflow-pipelines
name: kubeflow-pipelines-cache-deployer-role
rules:
- apiGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubeflow-pipelines-cache-deployer-rolebinding
labels:
application-crd-id: kubeflow-pipelines
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: pipeline-install-config
labels:
application-crd-id: kubeflow-pipelines
data:
warning: |
1. Do not use kubectl to edit this configmap, because some values are used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ kind: Secret
apiVersion: v1
metadata:
name: postgres-secret-extended
labels:
application-crd-id: kubeflow-pipelines
stringData:
username: user
password: "password"
password: "password"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: cache-server
label:
application-crd-id: kubeflow-pipelines
spec:
selector:
matchLabels:
application-crd-id: kubeflow-pipelines
template:
spec:
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: ml-pipeline
label:
application-crd-id: kubeflow-pipelines
spec:
selector:
matchLabels:
application-crd-id: kubeflow-pipelines
template:
metadata:
label:
application-crd-id: kubeflow-pipelines
spec:
containers:
- name: ml-pipeline-api-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ resources:
- ../../third-party/minio/base
- ../../third-party/postgresql/base

# Identifier for application manager to apply ownerReference.
# The ownerReference ensures the resources get garbage collected
# when application is deleted.
commonLabels:
application-crd-id: kubeflow-pipelines

# !!! If you want to customize the namespace,
# please also update base/cache-deployer/cluster-scoped/cache-deployer-clusterrolebinding.yaml
namespace: kubeflow

0 comments on commit 1b5e378

Please sign in to comment.