oadp-non-admin

module
v0.0.0-...-9fdcb88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: Apache-2.0

README

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.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the oadp v1alpha1 API group +kubebuilder:object:generate=true +groupName=oadp.openshift.io
Package v1alpha1 contains API Schema definitions for the oadp v1alpha1 API group +kubebuilder:object:generate=true +groupName=oadp.openshift.io
Entrypoint of the project
Entrypoint of the project
internal
common/constant
Package constant contains all common constants used in the project
Package constant contains all common constants used in the project
common/function
Package function contains all common functions used in the project
Package function contains all common functions used in the project
controller
Package controller contains all controllers of the project
Package controller contains all controllers of the project
handler
Package handler contains all event handlers of the project
Package handler contains all event handlers of the project
predicate
Package predicate contains all event filters of the project
Package predicate contains all event filters of the project
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL