Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


This article applies Kubernetes API 1.25 migration https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-25 to the hivemq-operator helm Helm chart.

According to the Kubernetes API 1.25 migration , The relevant point from the https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-25 is that PodSecurityPolicy in the policy/v1beta1 API version will no longer be served in v1.25 onwards, and the PodSecurityPolicy admission controller will be removed. Kubernetes recommends to Migrate migrating to Pod Security Admission or a 3rd party admission webhook.

This article also helps you to resolve the error “error: resource mapping not found for name: "hivemq-operator" namespace: "hivemq" from "manifests\operator\hivemq-psp.yaml": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"


The workaround is to disable the PodSecurityPolicy. How to do it is explained in the instructions below.

\uD83D\uDCD8 Instructions

  1. Get the values from the Helm chart:

    Code Block
    languagebash
    helm show values hivemq/hivemq-operator > my-values.yaml
  2. Disable the

...

  1. PodSecurityPolicy:

    Code Block
    languageyaml
    global:
      rbac:
        pspEnabled: false
  2. Deploy the chart using values.yaml:

    Code Block
    languagebash
    helm upgrade my-hivemq \
      --install hivemq/hivemq-operator \
      --values my-values.yaml \
      --namespace my-namespace

    Or, deploy the chart without using values.yaml and disable pspEnabled with --set option:

    Code Block
    languagebash
    helm upgrade my-hivemq \
      --install hivemq/hivemq-operator \
      --set global.rbac.pspEnabled=false \
      --namespace my-namespace

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@117ee
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "HMS"
labelskb-how-to-article