Managing License Service metadata
You can add labels to the ibm-licensing-operator
resources automatically with the spec.labels
parameter.
spec.labels
To add labels to the ibm-licensing-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 IBMLicensing . |
spec.labels | object | The spec.labels parameter is used to add labels to the ibm-licensing-operator resources automatically. |
The following is the sample YAML file with the spec.labels
parameter:
apiVersion: operator.ibm.com/v1alpha1
kind: IBMLicensing
metadata:
name: instance
spec:
labels:
appName: LicenseService
Note: You can add or update labels in the spec.labels
parameter. The existing labels cannot be removed automatically from the ibm-licensing-operator
resource when you remove labels from the spec.labels
parameter.