This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Concepts

Concepts

This section provides some internal implementation details and architectural concepts abouot cf-service-operator.

1 - Cloud Foundry API usage

Owner and version management through Cloud Foundry metadata

Cloud Foundry API version 3 allows storing custom labels and annotations as metadata on all Cloud Foundry objects. Both labels and annotations are key-value string pairs. The difference is that labels can be used in list filters.

cf-service-operator persists the following metadata.labels on Cloud Foundry service instances and bindings:

  • service-operator.cf.cs.sap.com/owner: the Kubernetes ObjectMeta.uid of the owning ServiceInstance or ServiceBinding

cf-service-operator persists the following metadata.annotations on Cloud Foundry service instances and bindings:

  • service-operator.cf.cs.sap.com/generation: the last applied Kubernetes ObjectMeta.generation
  • service-operator.cf.cs.sap.com/parameter-hash: a hash of the last applied instance or binding parameters (after merging).