Skip to content

Commit

Permalink
bugfix: malformed owner
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuarezd committed Aug 26, 2023
1 parent 1710578 commit e4153f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ func (c *Controller) checkOpenshiftSignerCACertInOperatorNamespace(ctx context.C
}

ownerReference := metav1.OwnerReference{
APIVersion: operatorDeployment.APIVersion,
Kind: operatorDeployment.Kind,
APIVersion: appsv1.SchemeGroupVersion.Version,
Kind: "Deployment",
Name: operatorDeployment.Name,
UID: operatorDeployment.UID,
}
Expand Down
4 changes: 2 additions & 2 deletions testing/openshift-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function create_marketplace_catalog() {
--timeout=300s

echo "Create 'Test Minio Operators' marketplace catalog source"
oc create -f ${SCRIPT_DIR}/openshift/test-operator-catalogsource.yaml
oc apply -f ${SCRIPT_DIR}/openshift/test-operator-catalogsource.yaml
sleep 5
echo "Catalog Source:"
oc get catalogsource -n $marketplaceNamespace minio-test-operators
Expand Down Expand Up @@ -213,7 +213,7 @@ function install_operator() {

echo -e "\e[34mInstalling Operator from catalog '$catalog'\e[0m"

try oc create -f ${SCRIPT_DIR}/openshift/${snamespace}-subscription.yaml
try oc apply -f ${SCRIPT_DIR}/openshift/${snamespace}-subscription.yaml

echo "Subscription:"
try oc get sub -n $snamespace test-subscription
Expand Down

0 comments on commit e4153f0

Please sign in to comment.