-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pelorus Operator v0.0.3 is broken on the RBAC permissions. #849
Comments
Current version of pelorus-operator 0.0.3 is broken, we need to create new release 0.0.4 to fix the issue as in the dora-metrics#849.
Current version of pelorus-operator 0.0.3 is broken, we need to create new release 0.0.4 to fix the issue as in the dora-metrics#849. Signed-off-by: Michal Pryc <mpryc@redhat.com>
Needs to be updated in OCP catalog to close it |
The problem is also with the imagestream tags which are pointing to stable: We need to test the fix, however currently there are some problems installing operators from the marketplace. diff --git a/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_deploymentconfig.yaml b/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_deploymentconfig.yaml
index 092c20e..9567d36 100644
--- a/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_deploymentconfig.yaml
+++ b/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_deploymentconfig.yaml
@@ -60,7 +60,7 @@ spec:
{{- if and (not .source_ref) (not .source_url) }}
- name: PELORUS_IMAGE_TAG
- value: {{ .app_name }}:{{ .image_tag | default "stable" }}
+ value: {{ .app_name }}:{{ .image_tag | default "v2.0.7" }}
{{- end }}
{{- if .extraEnv }}
@@ -90,7 +90,7 @@ spec:
{{- if or .source_ref .source_url }}
name: {{ .app_name }}:latest
{{- else }}
- name: {{ .app_name }}:{{ .image_tag | default "stable" }}
+ name: {{ .app_name }}:{{ .image_tag | default "v2.0.7" }}
{{- end }}
type: ImageChange
{{- end }}
diff --git a/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_imagestream.yaml b/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_imagestream.yaml
index aafabfb..5c12332 100644
--- a/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_imagestream.yaml
+++ b/pelorus-operator/helm-charts/pelorus/subcharts/exporters/templates/_imagestream.yaml
@@ -6,5 +6,5 @@ metadata:
labels:
app.kubernetes.io/name: {{ .app_name }}
app: {{ .app_name }}
- name: {{ .app_name }}
+ name: {{ .app_name }}:{{ .image_tag | default "v2.0.7" }}
{{- end }} |
Pelorus Operator 0.0.4 was merged that contains fix, here are some notes what we missed in 0.0.3.
|
Pelorus Operator |
Closing. The operator 0.0.4 fixes the issue found in 0.0.3. PR #851 contains screenshot of the running pods from the deployment to confirm it's fixed. |
Pelorus Operator version 0.0.3 available in the OpenShift community marketplace is broken. It do installs fine, but while trying to create pelorus instance it gives error:
This is due to the wrong RBAC that are within CSV for Pelorus project. They were created using operator-sdk, but looks like very different RBAC are when creating with operator-sdk that has access to the OCP cluster (via export KUBECONFIG or oc login) or without.
The difference between rules:
Without being logged, we have additional fields (ignoring all the rest fields, as the file is pretty long and does not have same order of rbac privs):
With being logged, we have additional fields (ignoring all the rest fields, as the file is pretty long and does not have same order of rbac privs):
The text was updated successfully, but these errors were encountered: