• Bridget McErlean's avatar
    Skip restore of APIServices managed by Kubernetes · 984176f1
    Bridget McErlean authored
    
    
    It was discovered during Velero 1.6.3 upgrade testing that Velero was
    restoring `APIService` objects for APIs that are no longer being served
    by Kubernetes 1.22. If these items were restored, it would break the
    behaviour of discovery within the cluster.
    
    This change introduces a new RestoreItemAction plugin that skips the
    restore of any `APIService` object which is managed by Kubernetes such
    as those for built-in APIs or CRDs. The `APIService`s for these will be
    created when the Kubernetes API server starts or when new CRDs are
    registered. These objects are identified by looking for the
    `kube-aggregator.kubernetes.io/automanaged` label.
    Signed-off-by: default avatarBridget McErlean <bmcerlean@vmware.com>
    984176f1