Rename API group to cert-manager.io

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-09-23 12:01:05 +01:00
parent b8bd8dc665
commit 4bda511b3d
9 changed files with 33 additions and 31 deletions

View File

@ -14,9 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// +groupName=certmanager.k8s.io
// +groupName=cert-manager.io
// +groupGoName=Certmanager
// Package certmanager is the internal version of the API.
package certmanager
const GroupName = "certmanager.k8s.io"
const GroupName = "cert-manager.io"

View File

@ -20,5 +20,6 @@ limitations under the License.
// +k8s:defaulter-gen=TypeMeta
// Package v1alpha2 is the v1alpha2 version of the API.
// +groupName=certmanager.k8s.io
// +groupName=cert-manager.io
// +groupGoName=Certmanager
package v1alpha2

View File

@ -18,17 +18,17 @@ package v1alpha2
// Annotation names for Secrets
const (
AltNamesAnnotationKey = "certmanager.k8s.io/alt-names"
IPSANAnnotationKey = "certmanager.k8s.io/ip-sans"
CommonNameAnnotationKey = "certmanager.k8s.io/common-name"
IssuerNameAnnotationKey = "certmanager.k8s.io/issuer-name"
IssuerKindAnnotationKey = "certmanager.k8s.io/issuer-kind"
CertificateNameKey = "certmanager.k8s.io/certificate-name"
AltNamesAnnotationKey = "cert-manager.io/alt-names"
IPSANAnnotationKey = "cert-manager.io/ip-sans"
CommonNameAnnotationKey = "cert-manager.io/common-name"
IssuerNameAnnotationKey = "cert-manager.io/issuer-name"
IssuerKindAnnotationKey = "cert-manager.io/issuer-kind"
CertificateNameKey = "cert-manager.io/certificate-name"
)
// Annotation names for CertificateRequests
const (
CRPrivateKeyAnnotationKey = "certmanager.k8s.io/private-key-secret-name"
CRPrivateKeyAnnotationKey = "cert-manager.io/private-key-secret-name"
)
const (
@ -37,7 +37,7 @@ const (
// If it is present, a temporary internally signed certificate will be
// stored in the target Secret resource whilst the real Issuer is processing
// the certificate request.
IssueTemporaryCertificateAnnotation = "certmanager.k8s.io/issue-temporary-certificate"
IssueTemporaryCertificateAnnotation = "cert-manager.io/issue-temporary-certificate"
)
const (
@ -51,25 +51,25 @@ const (
// WantInjectAnnotation is the annotation that specifies that a particular
// object wants injection of CAs. It takes the form of a reference to a certificate
// as namespace/name. The certificate is expected to have the is-serving-for annotations.
WantInjectAnnotation = "certmanager.k8s.io/inject-ca-from"
WantInjectAnnotation = "cert-manager.io/inject-ca-from"
// WantInjectAPIServerCAAnnotation, if set to "true", will make the cainjector
// inject the CA certificate for the Kubernetes apiserver into the resource.
// It discovers the apiserver's CA by inspecting the service account credentials
// mounted into the cainjector pod.
WantInjectAPIServerCAAnnotation = "certmanager.k8s.io/inject-apiserver-ca"
WantInjectAPIServerCAAnnotation = "cert-manager.io/inject-apiserver-ca"
// WantInjectFromSecretAnnotation is the annotation that specifies that a particular
// object wants injection of CAs. It takes the form of a reference to a Secret
// as namespace/name.
WantInjectFromSecretAnnotation = "certmanager.k8s.io/inject-ca-from-secret"
WantInjectFromSecretAnnotation = "cert-manager.io/inject-ca-from-secret"
// AllowsInjectionFromSecretAnnotation is an annotation that must be added
// to Secret resource that want to denote that they can be directly
// injected into injectables that have a `inject-ca-from-secret` annotation.
// If an injectable references a Secret that does NOT have this annotation,
// the cainjector will refuse to inject the secret.
AllowsInjectionFromSecretAnnotation = "certmanager.k8s.io/allow-direct-injection"
AllowsInjectionFromSecretAnnotation = "cert-manager.io/allow-direct-injection"
)
// KeyUsage specifies valid usage contexts for keys.

View File

@ -68,7 +68,7 @@ type CertificateRequestSpec struct {
// used. If the 'kind' field is set to 'ClusterIssuer', a ClusterIssuer with
// the provided name will be used. The 'name' field in this stanza is
// required at all times. The group field refers to the API group of the
// issuer which defaults to 'certmanager.k8s.io' if empty.
// issuer which defaults to 'cert-manager.io' if empty.
IssuerRef cmmeta.ObjectReference `json:"issuerRef"`
// Byte slice containing the PEM encoded CertificateSigningRequest

View File

@ -15,6 +15,6 @@ limitations under the License.
*/
//
// +domain=k8s.io
// +domain=cert-manager.io
package apis

View File

@ -17,5 +17,5 @@ limitations under the License.
// +k8s:deepcopy-gen=package,register
// Package certmanager is the internal version of the API.
// +groupName=certmanager.k8s.io
// +groupName=cert-manager.io
package certmanager

View File

@ -18,17 +18,17 @@ package certmanager
// Annotation names for Secrets
const (
AltNamesAnnotationKey = "certmanager.k8s.io/alt-names"
IPSANAnnotationKey = "certmanager.k8s.io/ip-sans"
CommonNameAnnotationKey = "certmanager.k8s.io/common-name"
IssuerNameAnnotationKey = "certmanager.k8s.io/issuer-name"
IssuerKindAnnotationKey = "certmanager.k8s.io/issuer-kind"
CertificateNameKey = "certmanager.k8s.io/certificate-name"
AltNamesAnnotationKey = "cert-manager.io/alt-names"
IPSANAnnotationKey = "cert-manager.io/ip-sans"
CommonNameAnnotationKey = "cert-manager.io/common-name"
IssuerNameAnnotationKey = "cert-manager.io/issuer-name"
IssuerKindAnnotationKey = "cert-manager.io/issuer-kind"
CertificateNameKey = "cert-manager.io/certificate-name"
)
// Annotation names for CertificateRequests
const (
CRPrivateKeyAnnotationKey = "certmanager.k8s.io/private-key-secret-name"
CRPrivateKeyAnnotationKey = "cert-manager.io/private-key-secret-name"
)
const (
@ -42,25 +42,25 @@ const (
// WantInjectAnnotation is the annotation that specifies that a particular
// object wants injection of CAs. It takes the form of a reference to a certificate
// as namespace/name. The certificate is expected to have the is-serving-for annotations.
WantInjectAnnotation = "certmanager.k8s.io/inject-ca-from"
WantInjectAnnotation = "cert-manager.io/inject-ca-from"
// WantInjectAPIServerCAAnnotation, if set to "true", will make the cainjector
// inject the CA certificate for the Kubernetes apiserver into the resource.
// It discovers the apiserver's CA by inspecting the service account credentials
// mounted into the cainjector pod.
WantInjectAPIServerCAAnnotation = "certmanager.k8s.io/inject-apiserver-ca"
WantInjectAPIServerCAAnnotation = "cert-manager.io/inject-apiserver-ca"
// WantInjectFromSecretAnnotation is the annotation that specifies that a particular
// object wants injection of CAs. It takes the form of a reference to a Secret
// as namespace/name.
WantInjectFromSecretAnnotation = "certmanager.k8s.io/inject-ca-from-secret"
WantInjectFromSecretAnnotation = "cert-manager.io/inject-ca-from-secret"
// AllowsInjectionFromSecretAnnotation is an annotation that must be added
// to Secret resource that want to denote that they can be directly
// injected into injectables that have a `inject-ca-from-secret` annotation.
// If an injectable references a Secret that does NOT have this annotation,
// the cainjector will refuse to inject the secret.
AllowsInjectionFromSecretAnnotation = "certmanager.k8s.io/allow-direct-injection"
AllowsInjectionFromSecretAnnotation = "cert-manager.io/allow-direct-injection"
)
// KeyUsage specifies valid usage contexts for keys.

View File

@ -61,7 +61,7 @@ type CertificateRequestSpec struct {
// used. If the 'kind' field is set to 'ClusterIssuer', a ClusterIssuer with
// the provided name will be used. The 'name' field in this stanza is
// required at all times. The group field refers to the API group of the
// issuer which defaults to 'certmanager.k8s.io' if empty.
// issuer which defaults to 'cert-manager.io' if empty.
IssuerRef cmmeta.ObjectReference `json:"issuerRef"`
// Byte slice containing the PEM encoded CertificateSigningRequest

View File

@ -19,5 +19,5 @@ limitations under the License.
// +k8s:defaulter-gen=TypeMeta
// +k8s:defaulter-gen-input=../../../../apis/certmanager/v1alpha2
// +groupName=certmanager.k8s.io
// +groupName=cert-manager.io
package v1alpha2