Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3189 from snehachhabria/relv0.8.3
Browse files Browse the repository at this point in the history
chore(release) : Creating release v0.8.3-rc.1
  • Loading branch information
snehachhabria committed Apr 16, 2021
2 parents 776a875 + 1264b26 commit 4da887b
Show file tree
Hide file tree
Showing 37 changed files with 121 additions and 15 deletions.
4 changes: 2 additions & 2 deletions charts/osm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.8.2
version: 0.8.3-rc.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: v0.8.2
appVersion: v0.8.3-rc.1
7 changes: 4 additions & 3 deletions charts/osm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ The following table lists the configurable parameters of the osm chart and their
| OpenServiceMesh.grafana.port | int | `3000` | Grafana port |
| OpenServiceMesh.image.pullPolicy | string | `"IfNotPresent"` | `osm-controller` pod PullPolicy |
| OpenServiceMesh.image.registry | string | `"openservicemesh"` | `osm-controller` image registry |
| OpenServiceMesh.image.tag | string | `"v0.8.2"` | `osm-controller` image tag |
| OpenServiceMesh.image.tag | string | `"v0.8.3-rc.1"` | `osm-controller` image tag |
| OpenServiceMesh.imagePullSecrets | list | `[]` | `osm-controller` image pull secret |
| OpenServiceMesh.injector | object | `{"replicaCount":1,"resource":{"limits":{"cpu":"0.5","memory":"64M"},"requests":{"cpu":"0.3","memory":"64M"}}}` | Sidecar injector configuration |
| OpenServiceMesh.injector | object | `{"podLabels":{},"replicaCount":1,"resource":{"limits":{"cpu":"0.5","memory":"64M"},"requests":{"cpu":"0.3","memory":"64M"}}}` | Sidecar injector configuration |
| OpenServiceMesh.meshName | string | `"osm"` | Name for the new control plane instance |
| OpenServiceMesh.osmNamespace | string | `""` | Optional parameter. If not specified, the release namespace is used to deploy the osm components. |
| OpenServiceMesh.osmcontroller.podLabels | object | `{}` | |
| OpenServiceMesh.osmcontroller.resource.limits.cpu | string | `"1.5"` | |
| OpenServiceMesh.osmcontroller.resource.limits.memory | string | `"512M"` | |
| OpenServiceMesh.osmcontroller.resource.requests.cpu | string | `"0.5"` | |
Expand All @@ -105,7 +106,7 @@ The following table lists the configurable parameters of the osm chart and their
| OpenServiceMesh.prometheus.retention.time | string | `"15d"` | Prometheus retention time |
| OpenServiceMesh.replicaCount | int | `1` | `osm-controller` replicas |
| OpenServiceMesh.serviceCertValidityDuration | string | `"24h"` | Sets the service certificatevalidity duration |
| OpenServiceMesh.sidecarImage | string | `"envoyproxy/envoy-alpine:v1.17.1"` | Envoy sidecar image |
| OpenServiceMesh.sidecarImage | string | `"envoyproxy/envoy-alpine:v1.17.2"` | Envoy sidecar image |
| OpenServiceMesh.tracing.address | string | `""` | Tracing destination cluster (must contain the namespace). When left empty, this is computed in helper template to "jaeger.<osm-namespace>.svc.cluster.local". Please override for BYO-tracing as documented in tracing.md |
| OpenServiceMesh.tracing.enable | bool | `false` | Toggles Envoy's tracing functionality on/off for all sidecar proxies in the cluster |
| OpenServiceMesh.tracing.endpoint | string | `"/api/v2/spans"` | Destination's API or collector endpoint where the spans will be sent to |
Expand Down
7 changes: 7 additions & 0 deletions charts/osm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@
{{- $address := printf "jaeger.%s.svc.cluster.local" (include "osm.namespace" .) -}}
{{ default $address .Values.OpenServiceMesh.tracing.address}}
{{- end -}}

{{/* Labels to be added to all resources */}}
{{- define "osm.labels" -}}
app.kubernetes.io/name: openservicemesh.io
app.kubernetes.io/instance: {{ .Values.OpenServiceMesh.meshName }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
{{- end -}}
2 changes: 2 additions & 0 deletions charts/osm/templates/fluentbit-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: ConfigMap
metadata:
name: fluentbit-configmap
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
data:
fluent-bit.conf: |-
[SERVICE]
Expand Down
5 changes: 5 additions & 0 deletions charts/osm/templates/grafana-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: osm-grafana-config
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
data:
grafana.ini: |
Expand All @@ -28,6 +29,7 @@ metadata:
name: osm-grafana-datasources
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
data:
prometheus.yaml: |
Expand Down Expand Up @@ -64,6 +66,7 @@ metadata:
name: osm-grafana-dashboard-definition-dataplane
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
data:
osm-pod.json: |
Expand All @@ -81,6 +84,7 @@ metadata:
name: osm-grafana-dashboard-definition-controlplane
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
data:
osm-control-plane.json: |
Expand All @@ -96,6 +100,7 @@ metadata:
name: osm-grafana-dashboards
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
data:
dashboards.yaml: |
Expand Down
2 changes: 2 additions & 0 deletions charts/osm/templates/grafana-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: osm-grafana
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
spec:
replicas: 1
Expand All @@ -16,6 +17,7 @@ spec:
template:
metadata:
labels:
{{- include "osm.labels" . | nindent 8 }}
app: osm-grafana
spec:
serviceAccountName: osm-grafana
Expand Down
3 changes: 3 additions & 0 deletions charts/osm/templates/grafana-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
name: osm-grafana
namespace: {{ include "osm.namespace" . }}
Expand All @@ -13,6 +14,7 @@ kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
name: {{.Release.Name}}-grafana
rules: []
Expand All @@ -24,6 +26,7 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{.Release.Name}}-grafana
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
subjects:
- kind: ServiceAccount
Expand Down
1 change: 1 addition & 0 deletions charts/osm/templates/grafana-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: osm-grafana
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-grafana
spec:
ports:
Expand Down
2 changes: 2 additions & 0 deletions charts/osm/templates/jaeger-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: jaeger
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: jaeger
spec:
replicas: 1
Expand All @@ -14,6 +15,7 @@ spec:
template:
metadata:
labels:
{{- include "osm.labels" . | nindent 8 }}
app: jaeger
spec:
containers:
Expand Down
1 change: 1 addition & 0 deletions charts/osm/templates/jaeger-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: jaeger
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: jaeger
spec:
selector:
Expand Down
3 changes: 2 additions & 1 deletion charts/osm/templates/mutatingwebhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ apiVersion: admissionregistration.k8s.io/v1beta1
kind: MutatingWebhookConfiguration
metadata:
labels:
app: osm-controller
{{- include "osm.labels" . | nindent 4 }}
app: osm-injector
name: {{.Values.OpenServiceMesh.webhookConfigNamePrefix}}-{{.Values.OpenServiceMesh.meshName}}
webhooks:
- name: osm-inject.k8s.io
Expand Down
2 changes: 2 additions & 0 deletions charts/osm/templates/osm-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: ConfigMap
metadata:
name: osm-config
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
data:
permissive_traffic_policy_mode: {{ .Values.OpenServiceMesh.enablePermissiveTrafficPolicy | default "false" | quote }}
egress: {{ .Values.OpenServiceMesh.enableEgress | quote }}
Expand Down
8 changes: 8 additions & 0 deletions charts/osm/templates/osm-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: osm-controller
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-controller
meshName: {{ .Values.OpenServiceMesh.meshName }}
{{ if .Values.OpenServiceMesh.enforceSingleMesh }}enforceSingleMesh: "true"{{ end }}
Expand All @@ -15,12 +16,19 @@ spec:
template:
metadata:
labels:
{{- include "osm.labels" . | nindent 8 }}
app: osm-controller
{{- if .Values.OpenServiceMesh.osmcontroller.podLabels }}
{{- toYaml .Values.OpenServiceMesh.osmcontroller.podLabels | nindent 8 }}
{{- end }}
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9091'
spec:
serviceAccountName: {{ .Release.Name }}
nodeSelector:
kubernetes.io/arch: amd64
kubernetes.io/os: linux
containers:
- name: osm-controller
image: "{{ .Values.OpenServiceMesh.image.registry }}/osm-controller:{{ .Values.OpenServiceMesh.image.tag }}"
Expand Down
8 changes: 8 additions & 0 deletions charts/osm/templates/osm-injector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: osm-injector
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-injector
meshName: {{ .Values.OpenServiceMesh.meshName }}
spec:
Expand All @@ -14,12 +15,19 @@ spec:
template:
metadata:
labels:
{{- include "osm.labels" . | nindent 8 }}
app: osm-injector
{{- if .Values.OpenServiceMesh.injector.podLabels }}
{{- toYaml .Values.OpenServiceMesh.injector.podLabels | nindent 8 }}
{{- end }}
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9091'
spec:
serviceAccountName: {{ .Release.Name }}
nodeSelector:
kubernetes.io/arch: amd64
kubernetes.io/os: linux
containers:
- name: osm-injector
image: "{{ .Values.OpenServiceMesh.image.registry }}/osm-injector:{{ .Values.OpenServiceMesh.image.tag }}"
Expand Down
1 change: 1 addition & 0 deletions charts/osm/templates/osm-injector-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: osm-injector
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-injector
spec:
ports:
Expand Down
6 changes: 6 additions & 0 deletions charts/osm/templates/osm-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Release.Name }}
labels:
{{- include "osm.labels" . | nindent 4 }}
rules:
- apiGroups: ["apps"]
resources: ["daemonsets", "deployments", "replicasets", "statefulsets"]
Expand Down Expand Up @@ -53,11 +55,15 @@ kind: ServiceAccount
metadata:
name: {{ .Release.Name }}
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Release.Name }}
labels:
{{- include "osm.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ .Release.Name }}
Expand Down
2 changes: 2 additions & 0 deletions charts/osm/templates/osm-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: osm-controller
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-controller
spec:
ports:
Expand All @@ -22,6 +23,7 @@ metadata:
name: osm-config-validator
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-controller
spec:
ports:
Expand Down
1 change: 1 addition & 0 deletions charts/osm/templates/prometheus-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
name: osm-prometheus-server-conf
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
name: osm-prometheus-server-conf
data:
prometheus.yml: |
Expand Down
3 changes: 3 additions & 0 deletions charts/osm/templates/prometheus-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Deployment
metadata:
name: osm-prometheus
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
spec:
replicas: 1
strategy:
Expand All @@ -14,6 +16,7 @@ spec:
template:
metadata:
labels:
{{- include "osm.labels" . | nindent 8 }}
app: osm-prometheus
spec:
containers:
Expand Down
6 changes: 6 additions & 0 deletions charts/osm/templates/prometheus-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{.Release.Name}}-prometheus
labels:
{{- include "osm.labels" . | nindent 4 }}
rules:
- apiGroups: [""]
resources: ["nodes", "nodes/proxy", "nodes/metrics", "services", "endpoints", "pods", "ingresses", "configmaps"]
Expand All @@ -17,6 +19,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{.Release.Name}}-prometheus
labels:
{{- include "osm.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: osm-prometheus
Expand All @@ -31,4 +35,6 @@ kind: ServiceAccount
metadata:
name: osm-prometheus
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/osm/templates/prometheus-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Service
metadata:
name: osm-prometheus
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
annotations:
prometheus.io/port: "{{.Values.OpenServiceMesh.prometheus.port}}"
prometheus.io/scrape: "true"
Expand Down
2 changes: 2 additions & 0 deletions charts/osm/templates/proxy-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: Secret
metadata:
name: proxy-config
namespace: {{ include "osm.namespace" . }}
labels:
{{- include "osm.labels" . | nindent 4 }}
stringData:
HTTP_PROXY: {{ .Values.OpenServiceMesh.fluentBit.httpProxy | quote }}
HTTPS_PROXY: {{ .Values.OpenServiceMesh.fluentBit.httpsProxy | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/osm/templates/validatingwebhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
labels:
{{- include "osm.labels" . | nindent 4 }}
app: osm-controller
name: {{.Values.OpenServiceMesh.webhookConfigNamePrefix}}-{{.Values.OpenServiceMesh.meshName}}
webhooks:
Expand Down
11 changes: 10 additions & 1 deletion charts/osm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@
"description": "The resources requests memory for the osmcontroller."
}
}
},
"podLabels": {
"$id": "#/properties/OpenServiceMesh/properties/osmcontroller/properties/podLabels",
"type": "array",
"title": "The podLabels schema",
"description": "Labels for the osmcontroller pod.",
"items": {
"type": "string"
}
}
}
}
Expand Down Expand Up @@ -173,7 +182,7 @@
"title": "The sidecarImage schema",
"description": "The proxy side car image to run.",
"examples": [
"envoyproxy/envoy-alpine:v1.17.1"
"envoyproxy/envoy-alpine:v1.17.2"
]
},
"certificateManager": {
Expand Down
Loading

0 comments on commit 4da887b

Please sign in to comment.