OperatorHub is a key resource in Kubernetes for managing operators. What is its main role?
Think about where you find and add new operators to your cluster.
OperatorHub acts as a central place to find and install community and certified Kubernetes Operators, simplifying operator management.
What is the expected output of the following command?
kubectl get packagemanifests -n olm
Consider what 'packagemanifests' represent in Operator Lifecycle Manager (OLM).
The 'packagemanifests' resource lists all operators available in OperatorHub, showing their metadata.
You want to enable a community operator source in OperatorHub by editing the OperatorHub custom resource. Which snippet correctly enables the community operators source?
apiVersion: operators.coreos.com/v1
kind: OperatorHub
metadata:
name: cluster
spec:
sources:
- name: community-operators
disabled: falseCheck the correct field name to enable a source in OperatorHub spec.
The OperatorHub spec uses 'disabled: false' to enable a source. Other fields like 'enabled' or 'active' are invalid.
You installed a community operator source but it does not appear in the OperatorHub UI. What is the most likely cause?
Check the OperatorHub source settings first.
If the community operator source is disabled, its operators won't show in the UI. Permissions or image issues cause different errors.
Arrange the correct order of steps to add a new community operator to the OperatorHub catalog.
Think about building, publishing, cataloging, then submitting.
The correct workflow is to create the bundle, publish it, add it to the catalog repo, then submit a PR to OperatorHub.