From eb41a9c521a60df912244ec4eebf9980c790cdfc Mon Sep 17 00:00:00 2001 From: travisn Date: Fri, 7 Dec 2018 17:38:11 -0700 Subject: [PATCH] openshift: update the scc kind name Signed-off-by: travisn --- Documentation/openshift.md | 4 +++- cluster/examples/kubernetes/ceph/scc.yaml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/openshift.md b/Documentation/openshift.md index b226ee95d..8535ce4fc 100644 --- a/Documentation/openshift.md +++ b/Documentation/openshift.md @@ -20,9 +20,11 @@ To orchestrate the storage platform, Rook requires the following access in the c Before starting the Rook operator or cluster, create the security context constraints needed by the Rook pods. The following yaml is found in `scc.yaml` under `/cluster/examples/kubernetes/ceph`. +**NOTE** Older versions of OpenShift may require `apiVersion: v1`. + ```yaml kind: SecurityContextConstraints -apiVersion: v1 +apiVersion: security.openshift.io/v1 metadata: name: rook-ceph allowPrivilegedContainer: true diff --git a/cluster/examples/kubernetes/ceph/scc.yaml b/cluster/examples/kubernetes/ceph/scc.yaml index 10d6bf281..5ea72e090 100644 --- a/cluster/examples/kubernetes/ceph/scc.yaml +++ b/cluster/examples/kubernetes/ceph/scc.yaml @@ -1,5 +1,6 @@ kind: SecurityContextConstraints -apiVersion: v1 +# older versions of openshift have "apiVersion: v1" +apiVersion: security.openshift.io/v1 metadata: name: rook-ceph allowPrivilegedContainer: true