groupversion_info.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright 2026 LocoStack.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Package v1alpha1 contains API Schema definitions for the v1alpha1 API group.
  14. // +kubebuilder:object:generate=true
  15. // +groupName=locostack.com
  16. package v1alpha1
  17. import (
  18. "k8s.io/apimachinery/pkg/runtime/schema"
  19. "sigs.k8s.io/controller-runtime/pkg/scheme"
  20. )
  21. var (
  22. // SchemeGroupVersion is group version used to register these objects.
  23. // This name is used by applyconfiguration generators (e.g. controller-gen).
  24. SchemeGroupVersion = schema.GroupVersion{Group: "locostack.com", Version: "v1alpha1"}
  25. // GroupVersion is an alias for SchemeGroupVersion, for backward compatibility.
  26. GroupVersion = SchemeGroupVersion
  27. // SchemeBuilder is used to add go types to the GroupVersionKind scheme.
  28. SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
  29. // AddToScheme adds the types in this group-version to the given scheme.
  30. AddToScheme = SchemeBuilder.AddToScheme
  31. )