Managing License Service Reporter metadata
You can add labels and annotations to the ibm-license-service-reporter-operator
resources automatically with the spec.labels
and spec.annotations
parameters.
Labels and annotations
To add labels or annotations to the ibm-license-service-reporter-operator
resources, such as pods, add the spec.labels
or spec.annotations
parameters with the key and value pairs in the custom resource YAML
file.
Parameter | Type | Description |
---|---|---|
spec.labels | object | The spec.labels parameter is used to add labels to the ibm-license-service-reporter-operator resources automatically. |
spec.annotations | object | The spec.annotations parameter is used to add annotations to the ibm-license-service-reporter-operator resources automatically. |
The following is an excerpt of an example custom resource with spec.labels
and spec.annotations
parameters provided:
spec:
labels:
appName: LicenseServiceReporter
annotations:
companyName: IBM
Note: You can only add or update labels and annotations via the spec.labels
and spec.annotations
parameters. The existing values are not automatically removed from the operator-managed resources when you
remove them from the parameters.