Skip to content
Open
8 changes: 8 additions & 0 deletions charts/tekton-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ spec:
value: tekton-operator
{{- end }}
{{- end }}
{{- if .Values.openshift.enabled }}
- name: PLATFORM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PLATFORM does not switch the compiled operator binary. The OpenShift branch in _helpers.tpl still selects the Kubernetes operator image. The correct OpenShift binary also rejects the default tektondashboard controller. Please make the image and controller defaults flavor-aware, or narrow the PR title, description, and release note.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 59d667f: the openshift branches of the image helpers now select the openshift operator/webhook/proxy images (digest-pinned from the v0.81.0 openshift release), and the -controllers flag gets a flavor-aware default matching config/openshift/base/operator.yaml (tektonaddon and syncerservice instead of tektondashboard, plus tektonscheduler and tektonmulticlusterproxyaae). IMAGE_ADDONS_* is deliberately not set — defaults come from the operator's built-in manifests and TEKTON_REGISTRY_OVERRIDE covers registry rewrites; noted in values.yaml and the PR description.

value: openshift
{{- end }}
- name: IMAGE_PIPELINES_PROXY
value: {{ include "tekton-operator.webhook-proxy-image" . }}
- name: IMAGE_JOB_PRUNER_TKN
Expand Down Expand Up @@ -209,6 +213,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- if .Values.openshift.enabled }}
- name: PLATFORM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OpenShift branches in _helpers.tpl also select the Kubernetes webhook and proxy images. Please use the OpenShift image repositories, or narrow the PR scope and release note.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 59d667f: the openshift webhook and proxy-webhook image helpers now select the openshift image repositories, digest-pinned from the v0.81.0 openshift release.

value: openshift
{{- end }}
- name: CONFIG_LOGGING_NAME
value: {{ include "tekton-operator.fullname" . }}-config-logging
- name: WEBHOOK_POD_NAME
Expand Down
4 changes: 2 additions & 2 deletions charts/tekton-operator/templates/openshift-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: openshift-pipelines-operator
name: {{ include "tekton-operator.serviceAccountName" . }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down Expand Up @@ -467,6 +467,6 @@ roleRef:
name: tekton-operator
subjects:
- kind: ServiceAccount
name: openshift-pipelines-operator
name: {{ include "tekton-operator.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end -}}
Loading