Skip to content

Commit

Permalink
Align app, component labels in helm chart and openshift templates (ec…
Browse files Browse the repository at this point in the history
  • Loading branch information
sleshchenko authored Dec 18, 2020
1 parent 08868bf commit 0c70efa
Show file tree
Hide file tree
Showing 33 changed files with 84 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: devfile-registry
labels:
app: che
component: devfile-registry
annotations:
kubernetes.io/ingress.class: {{ .Values.global.ingress.class | quote }}
{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: che-gateway
labels:
app: che
component: che-gateway
rules:
- verbs:
- watch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: che-gateway
labels:
app: che
component: che-gateway
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ kind: Deployment
metadata:
name: jaeger
labels:
app: jaeger
jaeger-infra: jaeger-deployment
app: jaeger
jaeger-infra: jaeger-deployment
spec:
replicas: 1
selector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: jaeger-query
labels:
app: jaeger
jaeger-infra: jaeger-deployment
annotations:
kubernetes.io/ingress.class: {{ .Values.global.ingress.class | quote }}
{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: {{ .Release.Namespace }}
name: che-endpoints-monitor
labels:
app: che
component: keycloak
rules:
- apiGroups: [""]
resources: ["services", "endpoints", "pods"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: {{ .Release.Namespace -}} -keycloak-role-binding
labels:
app: che
component: keycloak
roleRef:
kind: Role
name: che-endpoints-monitor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: keycloak-ingress
labels:
app: che
component: keycloak
annotations:
kubernetes.io/ingress.class: {{ .Values.global.ingress.class | quote }}
{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: che
component: keycloak
io.kompose.service: keycloak-data
name: keycloak-data
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: che
component: keycloak
io.kompose.service: keycloak-log
name: keycloak-log
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
apiVersion: v1
kind: Service
metadata:
name: "keycloak"
name: keycloak
labels:
app: che
component: keycloak
spec:
ports:
- name: "5050"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: plugin-registry
labels:
app: che
component: plugin-registry
annotations:
kubernetes.io/ingress.class: {{ .Values.global.ingress.class | quote }}
{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: che
component: postgres
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: postgres-data
app: che
component: postgres
name: postgres-data
spec:
{{- if .Values.global.chePostgresPVCStorageClassName }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
io.kompose.service: postgres
app: che
component: postgres
name: postgres
spec:
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: {{ .Release.Namespace -}} -che-clusterrole-binding
labels:
app: che
component: che
roleRef:
kind: ClusterRole
name: cluster-admin
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/helm/che/templates/dashboard-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: che-dashboard-ingress
labels:
app: che
component: che-dashboard
annotations:
kubernetes.io/ingress.class: {{ .Values.global.ingress.class | quote }}
{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600"
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/helm/che/templates/exec-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: exec
namespace: {{ .Values.global.cheWorkspacesNamespace }}
labels:
app: che
component: che
rules:
- apiGroups:
- ""
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/helm/che/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: che-ingress
labels:
app: che
component: che
annotations:
kubernetes.io/ingress.class: {{ .Values.global.ingress.class | quote }}
{{ .Values.global.ingressAnnotationsPrefix }}ingress.kubernetes.io/proxy-read-timeout: "3600"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ apiVersion: v1
kind: Secret
metadata:
name: registry-pull-secret
labels:
app: che
component: che
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ template "imagePullSecret" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: che-workspace-exec
namespace: {{ .Values.global.cheWorkspacesNamespace }}
labels:
app: che
component: che
roleRef:
kind: Role
name: exec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ apiVersion: v1
metadata:
name: {{ .Values.global.cheWorkspaceServiceAccount }}
namespace: {{ .Values.global.cheWorkspacesNamespace }}
labels:
app: che
component: che
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: che-workspace-view
namespace: {{ .Values.global.cheWorkspacesNamespace }}
labels:
app: che
component: che
roleRef:
kind: Role
name: workspace-view
Expand Down
3 changes: 3 additions & 0 deletions deploy/kubernetes/helm/che/templates/workspace-view-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: workspace-view
namespace: {{ .Values.global.cheWorkspacesNamespace }}
labels:
app: che
component: che
rules:
- apiGroups:
- ""
Expand Down
3 changes: 3 additions & 0 deletions deploy/openshift/templates/che-devfile-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@ parameters:
value: Always
displayName: Eclipse Che devfile registry image pull policy
description: Always pull by default. Can be IfNotPresent
labels:
app: che
component: devfile-registry
3 changes: 3 additions & 0 deletions deploy/openshift/templates/che-plugin-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@ parameters:
value: Always
displayName: Eclipse Che plugin registry image pull policy
description: Always pull by default. Can be IfNotPresent
labels:
app: che
component: plugin-registry
1 change: 1 addition & 0 deletions deploy/openshift/templates/che-server-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -421,4 +421,5 @@ parameters:
value: ''
labels:
app: che
component: che
template: che
4 changes: 4 additions & 0 deletions deploy/openshift/templates/che-workspace-service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ parameters:
displayName: Service account namespace
description: Namespace where service account should be created
required: true
labels:
app: che
component: che
template: che-workspace-service-account
1 change: 1 addition & 0 deletions deploy/openshift/templates/https/che-route-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ kind: Route
metadata:
labels:
app: che
component: che
name: che
spec:
tls:
Expand Down
3 changes: 2 additions & 1 deletion deploy/openshift/templates/https/keycloak-route-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ apiVersion: v1
kind: Route
metadata:
labels:
app: keycloak
app: che
component: keycloak
name: keycloak
spec:
tls:
Expand Down
3 changes: 2 additions & 1 deletion deploy/openshift/templates/multi/keycloak-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,6 @@ parameters:
description: Always pull by default. Can be IfNotPresent
value: 'Always'
labels:
app: keycloak
app: che
component: keycloak
template: keycloak
3 changes: 2 additions & 1 deletion deploy/openshift/templates/multi/postgres-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,6 @@ parameters:
description: Enable Postgres DB debug log mode
value: "false"
labels:
app: postgres
app: che
component: postgres
template: postgres
1 change: 1 addition & 0 deletions deploy/openshift/templates/pvc/che-server-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ kind: PersistentVolumeClaim
metadata:
labels:
app: che
component: che
name: che-data-volume
spec:
accessModes:
Expand Down

0 comments on commit 0c70efa

Please sign in to comment.