• Kubernetes Submit Queue's avatar
    Merge pull request #54445 from crimsonfaith91/rem · ed00d9c0
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 53190, 54790, 54445, 52607, 54801). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    remove created-by annotation
    
    **What this PR does / why we need it**:
    This PR removes `CreatedByAnnotation`.
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50720
    
    **Release note**:
    
    ```release-note
    The `kubernetes.io/created-by` annotation is no longer added to controller-created objects. Use the  `metadata.ownerReferences` item that has `controller` set to `true` to determine which controller, if any, owns an object.
    ```
    ed00d9c0
controller_utils.go 38.9 KB