pco-reseller-operator

command module
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

pluscloud open Reseller Operator

The pco-reseller-operator allows Kubernetes Operators / Users to manage projects within our pluscloud open via easy to handle Kubernetes manifests.

CRDs

This operator implements / acts on 4 CRDs:

  • Region (regions.pco.plusserver.com)
  • Project (projects.pco.plusserver.com)
  • User (users.pco.plusserver.com)
  • UserProjectBinding (userprojectbindings.pco.plusserver.com)
Region

A Region is the equivalent of an endpoint configuration. It specifies the URL of the Reseller API and the username and password used to authenticate.

An example can be found here

Project

A Project is exactly what it says: A project within our pluscloud open.

An example can be found here

User

A User represents a set of credentials stored within a secret. Since we don't know which projects (and thus regions) the user will be assigned to when we create it, we can't create the OpenStack user via the Reseller API yet.

An example can be found here (Currently the only field needed for a user is its name)

The generated secret will be named: user-sample-openstack

UserProjectBinding

A UserProjectBinding gives the specified user access to the specified project. This resource also causes the OpenStack user to be created / manifested via the Reseller API.

A user can be bound to multiple projects across regions.

An example can be found here

The problem of uniqueness

We wanted to support running multiple deployments of this operator across multiple clusters but this comes with a challenge: How do we make projects and users within OpenStack unique? Nothing would prevent the creation of the same user in the same namespace on multiple clusters.

This is why every controller can be configured with a controller identifier. The controller identifier is part of the OpenStack username / project name and prevents the collision described above.

The current controller identifier is stored within the secret "pco-reseller-operator-id" in the namespace of the operator.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the pco v1alpha1 API group +kubebuilder:object:generate=true +groupName=pco.plusserver.com
Package v1alpha1 contains API Schema definitions for the pco v1alpha1 API group +kubebuilder:object:generate=true +groupName=pco.plusserver.com
internal

Jump to

Keyboard shortcuts

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