Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Upgrade issue: Only one reference can have Controller set to true. #54

@houshengbo

Description

@houshengbo

This is an issue, when you try to upgrade from version 0.10.0 to 0.12.x.

The old version of the CRD is called Eventing, and the new version of the CRD is called KnativeEventing. When I tested if it is able to do the upgrade, by installing the new CR, with the old CR still existing, this was the error message I have got:

message: 'ServiceAccount "eventing-controller" is invalid: metadata.ownerReferences:
      Invalid value: []v1.OwnerReference{v1.OwnerReference{APIVersion:"operator.knative.dev/v1alpha1",
      Kind:"KnativeEventing", Name:"knative-eventing", UID:"957e1232-2033-11ea-9797-025000000001",
      Controller:(*bool)(0xc007f54920), BlockOwnerDeletion:(*bool)(0xc007f54921)},
      v1.OwnerReference{APIVersion:"operator.knative.dev/v1alpha1", Kind:"Eventing",
      Name:"knative-eventing", UID:"29b21071-202d-11ea-9797-025000000001", Controller:(*bool)(0xc007f54922),
      BlockOwnerDeletion:(*bool)(0xc007f54923)}}: Only one reference can have Controller
      set to true. Found "true" in references for knative-eventing and knative-eventing'

The Eventing used to be the owner. If we change the CRD to KnativeEventing, how can I make the ownership switch to the KnativeEventing during the upgrade. This is the issue I am encountering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions