Skip to content

mpryc/oadp-non-admin

 
 

Repository files navigation

OADP NAC

Non Admin Controller

Continuous Integration

Documentation in this repository are considered unofficial and for development purposes only.

Description

This open source controller adds the non admin feature to OADP operator. With it, cluster admins can configure which namespaces non admin users can backup/restore.

Getting Started

Prerequisites

  • oc
  • Access to a OpenShift cluster
  • OADP operator version 1.5+ installed in the cluster

NOTE: Before OADP operator version 1.5.0 is released, you need to install OADP operator from source to use NAC.

Using NAC

To use NAC functionality:

  • as admin user:
    • create non admin user and its namespace, and apply required permissions to it (to create a non admin user to test NAC, you can check non admin user documentation)
    • create/update DPA and configure non admin feature as needed, setting it to enabled
  • as non admin user:
    • create sample application

      For example, use one of the sample applications available in hack/samples/apps/ folder, by running

      oc process -f ./hack/samples/apps/<name> \
          -p NAMESPACE=<non-admin-user-namespace> \
          | oc create -f -

      Check the application was successful deployed by accessing its route.

    • create NonAdminBackup

      For example, use one of the sample NonAdminBackup available in hack/samples/backups/ folder, by running

      oc process -f ./hack/samples/backups/<type> \
          -p NAMESPACE=<non-admin-user-namespace> \
          | oc create -f -
    • TODO NonAdminRestore

Contributing

Please check our contributing documentation to propose changes to the repository.

Architecture

For a better understanding of the project, check our architecture documentation and designs documentation.

License

This repository is licensed under the terms of Apache License Version 2.0.

About

Non Admin Controller for the OADP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.0%
  • Makefile 9.1%
  • Dockerfile 0.9%