Adding an OCP group to Operate First Cloud#
Instructions on how to add an OCP group to Operate First Cloud.
Set your GitHub username, your choice of OCP group, and your workingdir:
OCP_GROUP=<enter-your-group-here>
GITHUB_USER=<your-github-user-handle>
WORKING_DIR=<path-to-your-working-dir>
Fork/Clone apps repo operate-first/apps.git:
# After forking
$ git clone https://github.com/$GITHUB_USER/apps.git $WORKING_DIR
Navigate to the
base
OCPgroups
directory:
$ cd $WORKING_DIR/apps/cluster-scope/base/user.openshift.io/groups/
Create your
$OCP_GROUP
folder:
$ mkdir $OCP_GROUP
$ cd $OCP_GROUP
Create
group.yaml
in $OCP_GROUP
$ cat <<EOF > group.yaml
apiVersion: user.openshift.io/v1
kind: Group
metadata:
name: $OCP_GROUP
users: []
EOF
Add users to the users
field accordingly.
Create the
kustomization.yaml
$ cat <<EOF > kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- group.yaml
EOF
Add the following line to
cluster-scope/overlays/prod/common/kustomization.yaml
alphabetically:
- ../../../base/user.openshift.io/groups/$OCP_GROUP
Commit and push your changes. Submit a PR to the upstream repository.