Skip to content

16.0.0

Compare
Choose a tag to compare
@infolinksbot infolinksbot released this 22 Nov 14:26

Resources refactor (#5)

Deployster Resources implementation refactor.

Simplified significantly the resources directory structure as well as its Docker image hierarchy. Resource Docker images are now laid out flat under the "resources" directory, and all their Python source code
reside under a single root at "resources/src".

This enables sharing code much more easily and especially enabled moving the resources source code into an object-oriented structure, where each resource is actually a Python class.

Resource classes extend a common "DResource" class that provides the struts of the resource workflow. It's important to note that all of this is non-binding! One can still write a resource image completely separate from this foundation, and manually implement the resource workflow via Ruby or Bash or any other means, since the protocol between Deployster and the resource images was and remains the Docker entrypoint & arguments.

This refactor also introduces new resources:

  • RBAC cluster role & binding
  • RBAC namespaced role & binding

Those kind-of existed before but were not fully implemented. They still aren't, but are more nearer to that goal.