@@ -493,9 +493,17 @@ const Event = ({ event }: EventProps) => {
))
) : (
-
+
- Empty shift (event without associated user or user with Viewer access)
+ Empty shift
+ {event.missing_users[0] && (
+
+ (check if {event.missing_users[0].includes(',') ? 'some of these users -' : 'user -'}{' '}
+ "{event.missing_users[0]}"{' '}
+ {event.missing_users[0].includes(',') ? 'are' : 'is'} existing in OnCall or{' '}
+ {event.missing_users[0].includes(',') ? 'have' : 'has'} Viewer role)
+
+ )}
)}
{event.source && — source: {event.source}}
@@ -507,11 +515,11 @@ const Event = ({ event }: EventProps) => {
) : (
- Gap! Nobody
- On-Call...
+
+ Gap! Nobody On-Call...
)}
-
+ >
);
};
diff --git a/grafana-plugin/src/state/rootBaseStore.ts b/grafana-plugin/src/state/rootBaseStore.ts
index 331f6ca1..3746d9eb 100644
--- a/grafana-plugin/src/state/rootBaseStore.ts
+++ b/grafana-plugin/src/state/rootBaseStore.ts
@@ -38,6 +38,12 @@ export class RootBaseStore {
@observable
appLoading = true;
+ @observable
+ backendVersion = '';
+
+ @observable
+ backendLicense = '';
+
@observable
pluginIsInitialized = true;
@@ -134,6 +140,8 @@ export class RootBaseStore {
this.initializationError = 'OnCall was not able to connect back to this Grafana';
return;
}
+ this.backendVersion = get_sync_response.version;
+ this.backendLicense = get_sync_response.license;
this.appLoading = false;
}
diff --git a/helm/oncall/README.md b/helm/oncall/README.md
index 589bdca1..7dc7dcd3 100644
--- a/helm/oncall/README.md
+++ b/helm/oncall/README.md
@@ -13,6 +13,7 @@ Architecture diagram can be found [here](https://raw.githubusercontent.com/grafa
### Cluster requirements
* ensure you can run x86-64/amd64 workloads. arm64 architecture is currently not supported
+* kubernetes version 1.25+ is not supported, if cert-manager is enabled
## Install
### Prepare the repo
@@ -143,6 +144,24 @@ externalRabbitmq:
password:
```
+## Update
+```shell
+# Add & upgrade the repository
+helm repo add grafana https://grafana.github.io/helm-charts
+helm repo update
+
+# Re-deploy
+helm upgrade \
+ --install \
+ --wait \
+ --set base_url=example.com \
+ --set grafana."grafana\.ini".server.domain=example.com \
+ release-oncall \
+ grafana/oncall
+```
+
+After re-deploying, please also update the Grafana OnCall plugin on the plugin version page. See [Grafana docs](https://grafana.com/docs/grafana/latest/administration/plugin-management/#update-a-plugin) for more info on updating Grafana plugins.
+
## Uninstall
### Uninstalling the helm chart
```bash
diff --git a/helm/oncall/templates/_env.tpl b/helm/oncall/templates/_env.tpl
index 546554fa..b1769b83 100644
--- a/helm/oncall/templates/_env.tpl
+++ b/helm/oncall/templates/_env.tpl
@@ -106,6 +106,8 @@
value: {{ include "snippet.rabbitmq.port" . }}
- name: RABBITMQ_PROTOCOL
value: {{ include "snippet.rabbitmq.protocol" . }}
+- name: RABBITMQ_VHOST
+ value: {{ include "snippet.rabbitmq.vhost" . }}
{{- end }}
{{- define "snippet.rabbitmq.user" -}}
@@ -140,6 +142,14 @@
{{- end -}}
{{- end -}}
+{{- define "snippet.rabbitmq.vhost" -}}
+{{- if and (not .Values.rabbitmq.enabled) .Values.externalRabbitmq.vhost -}}
+{{ .Values.externalRabbitmq.vhost | quote }}
+{{- else -}}
+""
+{{- end -}}
+{{- end -}}
+
{{- define "snippet.rabbitmq.password.secret.name" -}}
{{- if and (not .Values.rabbitmq.enabled) .Values.externalRabbitmq.password -}}
{{ include "oncall.fullname" . }}-rabbitmq-external
diff --git a/helm/oncall/templates/engine/service-external.yaml b/helm/oncall/templates/engine/service-external.yaml
index 9c204a24..0de9d892 100644
--- a/helm/oncall/templates/engine/service-external.yaml
+++ b/helm/oncall/templates/engine/service-external.yaml
@@ -5,6 +5,10 @@ metadata:
name: {{ include "oncall.engine.fullname" . }}-external
labels:
{{- include "oncall.engine.labels" . | nindent 4 }}
+ {{- with .Values.service.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
spec:
type: {{ .Values.service.type }}
ports:
diff --git a/helm/oncall/values.yaml b/helm/oncall/values.yaml
index cf0b41f9..3895f9f7 100644
--- a/helm/oncall/values.yaml
+++ b/helm/oncall/values.yaml
@@ -16,6 +16,7 @@ service:
enabled: false
type: LoadBalancer
port: 8080
+ annotations: {}
# Engine pods configuration
engine:
@@ -117,6 +118,7 @@ externalRabbitmq:
user:
password:
protocol:
+ vhost:
# Redis is included into this release for the convenience.
# It is recommended to host it separately from this release