IBM-Blockchain / ansible-collection

Ansible collection for building Hyperledger Fabric networks
Apache License 2.0
43 stars 38 forks source link

Ansible scripts do not work on Kubernetes 1.25+ #636

Closed arner closed 1 year ago

arner commented 1 year ago

Installation or upgrade of the Console fails on clusters that run Kubernetes 1.25.

TASK [ibm.blockchain_platform.fabric_operator_crds : Create Role Based Access Control] ***
ok: [localhost] => (item=hlf-operator-clusterrole.yaml)
changed: [localhost] => (item=hlf-operator-clusterrolebinding.yaml.j2)
changed: [localhost] => (item=hlf-operator-serviceaccount.yaml)
failed: [localhost] (item=hlf-psp.yaml) => {"ansible_loop_var": "item", "changed": false, "item": "hlf-psp.yaml", "msg": "Failed to find exact match for policy/v1beta1.PodSecurityPolicy by [kind, name, singularName, shortNames]"}

This is consistent with https://kubernetes.io/docs/reference/using-api/deprecation-guide/#psp-v125, where PodSecurityPolicy is deprecated. There may be more issues, this is just the first one I ran into.

mbwhite commented 1 year ago

These should now be supported in the v2.0.0-beta