Closed
Description
I'm getting entity for package "project-quay" not found in solution
when trying to upgrade to the next version.
project-quay
uses replaces
to speficy upgrade edges and support for this was added #275. I see that PR has an e2e test confirming an upgrade so it might be that I'm missing something.
Steps to reproduce
- Run the operators from master:
make run
- Create a catalog:
kubectl apply -f config/samples/catalogd_operatorcatalog.yaml
- Create an operator
kubectl apply -f - <<EOF
apiVersion: operators.operatorframework.io/v1alpha1
kind: Operator
metadata:
labels:
app.kubernetes.io/name: operator
app.kubernetes.io/instance: operator-sample
app.kubernetes.io/part-of: operator-controller
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/created-by: operator-controller
name: operator-sample
spec:
packageName: project-quay
channel: stable-3.8
version: 3.8.1
EOF
- Wait for the operator to be installed:
kubectl wait operators operator-sample --for condition=Installed
- Edit operator to have a next valid version (in this specific example - 3.8.2 replaces 3.8.1):
kubectl patch operator operator-sample --type json -p '[{"op": "replace", "path": "/spec/version", "value": "3.8.2"}]'
- Observe conditions:
kubectl get operator operator-sample -o json | jq ".status"
Output:
{
"conditions": [
{
"lastTransitionTime": "2023-08-04T14:24:02Z",
"message": "installation has not been attempted as resolution failed",
"observedGeneration": 13,
"reason": "InstallationStatusUnknown",
"status": "Unknown",
"type": "Installed"
},
{
"lastTransitionTime": "2023-08-04T14:24:02Z",
"message": "entity for package \"project-quay\" not found in solution",
"observedGeneration": 13,
"reason": "ResolutionFailed",
"status": "False",
"type": "Resolved"
}
]
}
Expected results
Operator is correctly resolved and installed