mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-22 01:02:52 +00:00
feat(v1beta1): remove unused structs and functions from v1beta1. Rename v1alpha1 structs to follow new naming. Move v1alpha1 structs to separate files
26 lines
857 B
Go
26 lines
857 B
Go
// Copyright 2020-2021 Clastix Labs
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package v1beta1
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
const (
|
|
AvailableIngressClassesAnnotation = "capsule.clastix.io/ingress-classes"
|
|
AvailableIngressClassesRegexpAnnotation = "capsule.clastix.io/ingress-classes-regexp"
|
|
AvailableStorageClassesAnnotation = "capsule.clastix.io/storage-classes"
|
|
AvailableStorageClassesRegexpAnnotation = "capsule.clastix.io/storage-classes-regexp"
|
|
AllowedRegistriesAnnotation = "capsule.clastix.io/allowed-registries"
|
|
AllowedRegistriesRegexpAnnotation = "capsule.clastix.io/allowed-registries-regexp"
|
|
)
|
|
|
|
func UsedQuotaFor(resource fmt.Stringer) string {
|
|
return "quota.capsule.clastix.io/used-" + resource.String()
|
|
}
|
|
|
|
func HardQuotaFor(resource fmt.Stringer) string {
|
|
return "quota.capsule.clastix.io/hard-" + resource.String()
|
|
}
|