ManageIQ / manageiq-documentation

Documentation for the ManageIQ Management Platform
https://www.manageiq.org/docs/
Other
38 stars 113 forks source link

Update openshift provider ClusterRole API instructions #1776

Closed agrare closed 7 months ago

agrare commented 7 months ago

The ClusterRole object is in the authorization.openshift.io/v1 api group not the "core" v1 api group.

https://docs.openshift.com/container-platform/4.14/rest_api/role_apis/clusterrole-authorization-openshift-io-v1.html#clusterrole-authorization-openshift-io-v1

Otherwise this fails with:

$ echo '{"apiVersion": "v1", "kind": "ClusterRole", "metadata": {"name": "management-manageiq-admin"}, "rules": [{"resources": ["pods/proxy"], "verbs": ["*"]}]}' | oc create -f -
error: resource mapping not found for name: "management-manageiq-admin" namespace: "" from "STDIN": no matches for kind "ClusterRole" in version "v1" ensure CRDs are installed first
agrare commented 7 months ago

Unsure when this changed, I see it in this api-group as far back as 4.3 https://docs.openshift.com/container-platform/4.3/rest_api/index.html#clusterrolebinding-v1-authorization-openshift-io

Older than that and I'm having a hard time finding the rest api reference in the docs.

miq-bot commented 7 months ago

Checked commit https://github.com/agrare/manageiq-documentation/commit/db668db86a052dad6a2cc95a8fda04001993328e with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint 0 files checked, 0 offenses detected Everything looks fine. :trophy: