Skip to content
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

[dev-v2.7] Add k8s 1.27 support to rancher-alerting chart #2840

Closed

Conversation

doflamingo721
Copy link
Contributor

Issue:

rancher/rancher#41785

Testing

Testing instructions mentioned in the linked issue to be followed

Engineering Testing

Manual Testing

Installation of the chart on k8s 1.26 cluster since 1.27 is not available in rancher yet.

@doflamingo721 doflamingo721 changed the base branch from dev-v2.7 to dev-v2.8 September 4, 2023 09:59
@doflamingo721 doflamingo721 changed the base branch from dev-v2.8 to dev-v2.7 September 4, 2023 09:59
@@ -0,0 +1,61 @@
{{- if .Values.global.cattle.psp.enabled }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Never mind. This chart already handles that when installed on K8S cluster that do not have that any longer.

#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
#{{- if .Values.global.cattle.psp.enabled }}
#{{- if not (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
#{{- fail "The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding." -}}
#{{- end }}
#{{- end }}
#{{- end }}

(ref. charts/rancher-alerting-drivers/102.1.1/templates/validate-psp-install.yaml)

@nicholasSUSE
Copy link
Collaborator

Hello @doflamingo721
Is this Pull Request still relevant?
Can I close it?

@nicholasSUSE
Copy link
Collaborator

Unresponsive, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants