Managing License Service Reporter metadata
You can add labels to the ibm-license-service-reporter-operator resources automatically with the spec.labels parameter.
spec.labels
To add labels to the ibm-license-service-reporter-operator resources such as pods, add the spec.labels parameter with the key and value pairs in the YAML file.
| Parameter | Type | Description |
|---|---|---|
| spec | object | The spec parameter defines the desired state of the IBMLicenseServiceReporter. |
| spec.labels | object | The spec.labels parameter is used to add labels to the ibm-license-service-reporter-operator resources automatically. |
The following is the sample YAML file with the spec.labels parameter:
apiVersion: operator.ibm.com/v1alpha1
kind: IBMLicenseServiceReporter
metadata:
name: ibm-lsr-instance
namespace: ${LSR_NAMESPACE}
spec:
labels:
appName: LicenseServiceReporter
Note: You can add or update labels in the spec.labels parameter. The existing labels cannot be removed automatically from the ibm-license-service-reporter-operator resource when you remove labels from
the spec.labels parameter.