Getting Started
Installation
Section titled “Installation”Installation via the Operator Hub interface
Section titled “Installation via the Operator Hub interface”By adding a catalog source to the cluster, you are able to install and manage the operator through the regular Operator Hub interface.
NOTE: The catalog is currently a preview feature and is being finalized. (See #35)
apiVersion: operators.coreos.com/v1alpha1kind: CatalogSourcemetadata: name: object-lease-operator-catalog namespace: openshift-marketplacespec: displayName: Object Lease Operator Catalog image: 'ghcr.io/ullbergm/object-lease-operator-catalog:latest' publisher: Magnus Ullberg sourceType: grpc updateStrategy: registryPoll: interval: 5mConfiguration
Section titled “Configuration”Once the operator has been installed then you can configure the objects that it should be monitoring, for example:
LeaseController
Section titled “LeaseController”---apiVersion: object-lease-controller.ullberg.io/v1kind: LeaseControllermetadata: name: application-controllerspec: group: "startpunkt.ullberg.io" version: "v1alpha2" kind: singular: "Application" plural: "Applications"---apiVersion: object-lease-controller.ullberg.io/v1kind: LeaseControllermetadata: name: deployment-controllerspec: group: "" kind: singular: "Deployment" plural: "Deployments" version: "v1"With the operator configured to monitor a object type, you can add the annotation to the object that specifies how long it should be, before it is deleted.
Object annotation
Section titled “Object annotation”apiVersion: startpunkt.ullberg.us/v1alpha2kind: Applicationmetadata: name: google annotations: object-lease-controller.ullberg.io/ttl: "30m"spec: name: Google url: https://google.com