// Rollback deletes created system Kubernetes resources.
Rollback deletes created system Kubernetes resources.
// Rollback deletes created system Kubernetes resources .
func (r *systemResources) Rollback(ctx context.Context) error {
	err := rigging.ConvertError(r.Client.CoreV1().ConfigMaps(constants.KubeSystemNamespace).
		Delete(ctx, constants.ClusterInfoMap, metav1.DeleteOptions{}))
	if err != nil && !trace.IsNotFound(err) {
		return trace.Wrap(err)
	}
	return nil
}
func ( r * systemResources ) Rollback ( ctx context . Context ) error { err := rigging . ConvertError ( r . Client . CoreV1 ( ) . ConfigMaps ( constants . KubeSystemNamespace ) . Delete ( ctx , constants . ClusterInfoMap , metav1 . DeleteOptions { } ) ) if err != nil && ! trace . IsNotFound ( err ) { return trace . Wrap ( err ) } return nil }
Rollback deletes created system Kubernetes resources.
Rollback deletes created system Kubernetes resources .