-
Bug
-
Resolution: Done
-
Major
-
None
-
5
-
False
-
False
-
Undefined
-
The source of this Jira is: https://bugzilla.redhat.com/show_bug.cgi?id=1861212.
This BZ is marked "medium" priority.
The following example of
https://docs.openshift.com/container-platform/4.5/service_mesh/service_mesh_user_guide/ossm-security.html#ossm-security-mtls-sidecars-incoming-services_ossm-security
is incorrect
~~~~
apiVersion: "authentication.maistra.io/v1"
kind: "Policy"
metadata:
name: "default"
namespace: <NAMESPACE>
spec:
peers:
- mtls: {}
~~~~
Because, Policy resource isn't under 'authentication.maistra.io'.
$ cat | oc create -f -
apiVersion: "authentication.maistra.io/v1alpha1"
kind: "Policy"
metadata:
name: "default"
namespace: bookinfo
spec:
peers:
- mtls: {}
error: unable to recognize "STDIN": no matches for kind "Policy" in version "authentication.maistra.io/v1alpha1"
What is under 'authentication.maistra.io' is 'servicemeshpolicies'.
'policies' is under 'authentication.istio.io'.
$ oc api-resources | grep -e ^policies -e ^servicemeshpolicies
policies authentication.istio.io true Policy
servicemeshpolicies authentication.maistra.io true ServiceMeshPolicy
Please correct the manual, and then test the yaml in the actual env before releasing the manual.