-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from reportportal/develop
Release 24.2.0
- Loading branch information
Showing
10 changed files
with
116 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# HELM pre upgrade hook | ||
|
||
Starting from version 24.1.3 we added the helm pre-upgrade hook to the chart. | ||
This hook is used to delete the old jobs to resolve a kubernetes issue with the job name. | ||
This hook doesn't work with the additional roles and role bindings. | ||
|
||
Before performing the helm upgrade you need to create the roles and role bindings manually: | ||
|
||
```yaml | ||
# role.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: HELM_RELEASE_NAME-service-manager | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
meta.helm.sh/release-name: HELM_RELEASE_NAME | ||
meta.helm.sh/release-namespace: default | ||
rules: | ||
- apiGroups: ["", "batch"] | ||
resources: ["pods", "services", "jobs"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["batch"] | ||
resources: ["jobs"] | ||
verbs: ["delete"] | ||
``` | ||
After that, you can apply the roles: | ||
```shell | ||
kubectl apply -f role.yaml && \ | ||
``` | ||
|
||
```yaml | ||
# role-binding.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: HELM_RELEASE_NAME-user-binding | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/managed-by: Helm | ||
annotations: | ||
meta.helm.sh/release-name: HELM_RELEASE_NAME | ||
meta.helm.sh/release-namespace: default | ||
subjects: | ||
- kind: ServiceAccount | ||
name: HELM_RELEASE_NAME | ||
namespace: default | ||
roleRef: | ||
kind: Role | ||
name: HELM_RELEASE_NAME-service-manager | ||
apiGroup: rbac.authorization.k8s.io | ||
``` | ||
Delete the old bindings and apply the new ones: | ||
```shell | ||
kubectl delete rolebinding HELM_RELEASE_NAME-user-binding -n default | ||
kubectl apply -f role-binding.yaml | ||
``` | ||
|
||
Then you can upgrade the helm release: | ||
|
||
```shell | ||
helm upgrade ${HELM_RELEASE_NAME} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
apiVersion: v2 | ||
appVersion: "24.1.0" | ||
appVersion: "24.2.0" | ||
description: | | ||
ReportPortal.io is a TestOps service, that provides increased capabilities | ||
to speed up results analysis and reporting through the use of built-in analytic features. | ||
name: reportportal | ||
version: 24.1.7 | ||
version: 24.2.0 | ||
sources: | ||
- https://github.com/reportportal/kubernetes/tree/master/reportportal | ||
keywords: | ||
|
@@ -26,6 +26,8 @@ annotations: | |
maintainers: | ||
- name: reportportal | ||
email: [email protected] | ||
|
||
# If you update dependencies version, please update also *.image.tag in values.yaml | ||
dependencies: | ||
# If you update version, please update also postgresql.image.tag in values.yaml | ||
- name: postgresql | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters