## What this PR does This patch narrows the scope of the Velero backup strategy controller to simply template Velero Backups according to the application being backed up and the template in the strategy. Creating storage locations is now out of scope. ### Release note ```release-note [backups] Implement templating for Velero backups and remove creation of backup storage locations and volume snapshot locations. ``` Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
42 lines
1.2 KiB
Go
42 lines
1.2 KiB
Go
/*
|
|
Copyright 2025.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Package v1alpha1 contains API Schema definitions for the v1alpha1 API group.
|
|
// +kubebuilder:object:generate=true
|
|
// +groupName=backups.cozystack.io
|
|
package v1alpha1
|
|
|
|
import (
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
|
)
|
|
|
|
const (
|
|
thisGroup = "backups.cozystack.io"
|
|
thisVersion = "v1alpha1"
|
|
)
|
|
|
|
var (
|
|
GroupVersion = schema.GroupVersion{Group: thisGroup, Version: thisVersion}
|
|
SchemeBuilder = runtime.NewSchemeBuilder(addGroupVersion)
|
|
AddToScheme = SchemeBuilder.AddToScheme
|
|
)
|
|
|
|
func addGroupVersion(scheme *runtime.Scheme) error {
|
|
metav1.AddToGroupVersion(scheme, GroupVersion)
|
|
return nil
|
|
}
|