Skip to content
Snippets Groups Projects
Commit 20960d96 authored by Mariano Cano's avatar Mariano Cano
Browse files

Replace certmanager.k8s.io/v1alpha1 to cert-manager.io/v1alpha2

parent c4691619
No related branches found
No related tags found
No related merge requests found
# The following manifests contain a self-signed issuer CR and a certificate CR. # The following manifests contain a self-signed issuer CR and a certificate CR.
# More document can be found at https://docs.cert-manager.io # More document can be found at https://docs.cert-manager.io
apiVersion: certmanager.k8s.io/v1alpha1 apiVersion: cert-manager.io/v1alpha2
kind: Issuer kind: Issuer
metadata: metadata:
name: selfsigned-issuer name: selfsigned-issuer
...@@ -8,7 +8,7 @@ metadata: ...@@ -8,7 +8,7 @@ metadata:
spec: spec:
selfSigned: {} selfSigned: {}
--- ---
apiVersion: certmanager.k8s.io/v1alpha1 apiVersion: cert-manager.io/v1alpha2
kind: Certificate kind: Certificate
metadata: metadata:
name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml name: serving-cert # this name should match the one appeared in kustomizeconfig.yaml
......
# This configuration is for teaching kustomize how to update name ref and var substitution # This configuration is for teaching kustomize how to update name ref and var substitution
nameReference: nameReference:
- kind: Issuer - kind: Issuer
group: certmanager.k8s.io group: cert-manager.io
fieldSpecs: fieldSpecs:
- kind: Certificate - kind: Certificate
group: certmanager.k8s.io group: cert-manager.io
path: spec/issuerRef/name path: spec/issuerRef/name
varReference: varReference:
- kind: Certificate - kind: Certificate
group: certmanager.k8s.io group: cert-manager.io
path: spec/commonName path: spec/commonName
- kind: Certificate - kind: Certificate
group: certmanager.k8s.io group: cert-manager.io
path: spec/dnsNames path: spec/dnsNames
...@@ -3,14 +3,20 @@ ...@@ -3,14 +3,20 @@
apiVersion: apiextensions.k8s.io/v1beta1 apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
creationTimestamp: null creationTimestamp: null
name: stepissuers.certmanager.step.sm name: stepissuers.certmanager.step.sm
spec: spec:
group: certmanager.step.sm group: certmanager.step.sm
names: names:
kind: StepIssuer kind: StepIssuer
listKind: StepIssuerList
plural: stepissuers plural: stepissuers
scope: "" singular: stepissuer
scope: Namespaced
subresources:
status: {}
validation: validation:
openAPIV3Schema: openAPIV3Schema:
description: StepIssuer is the Schema for the stepissuers API description: StepIssuer is the Schema for the stepissuers API
...@@ -18,12 +24,12 @@ spec: ...@@ -18,12 +24,12 @@ spec:
apiVersion: apiVersion:
description: 'APIVersion defines the versioned schema of this representation description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources' internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string type: string
kind: kind:
description: 'Kind is a string value representing the REST resource this description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds' submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string type: string
metadata: metadata:
type: object type: object
...@@ -95,12 +101,17 @@ spec: ...@@ -95,12 +101,17 @@ spec:
the condition's last transition. the condition's last transition.
type: string type: string
status: status:
allOf:
- enum:
- "True"
- "False"
- Unknown
- enum:
- "True"
- "False"
- Unknown
description: Status of the condition, one of ('True', 'False', description: Status of the condition, one of ('True', 'False',
'Unknown'). 'Unknown').
enum:
- "True"
- "False"
- Unknown
type: string type: string
type: type:
description: Type of the condition, currently ('Ready'). description: Type of the condition, currently ('Ready').
...@@ -114,6 +125,7 @@ spec: ...@@ -114,6 +125,7 @@ spec:
type: array type: array
type: object type: object
type: object type: object
version: v1beta1
versions: versions:
- name: v1beta1 - name: v1beta1
served: true served: true
......
...@@ -4,5 +4,5 @@ apiVersion: apiextensions.k8s.io/v1beta1 ...@@ -4,5 +4,5 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition kind: CustomResourceDefinition
metadata: metadata:
annotations: annotations:
certmanager.k8s.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
name: stepissuers.certmanager.step.sm name: stepissuers.certmanager.step.sm
...@@ -51,16 +51,16 @@ vars: ...@@ -51,16 +51,16 @@ vars:
#- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR #- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR
# objref: # objref:
# kind: Certificate # kind: Certificate
# group: certmanager.k8s.io # group: cert-manager.io
# version: v1alpha1 # version: v1alpha2
# name: serving-cert # this name should match the one in certificate.yaml # name: serving-cert # this name should match the one in certificate.yaml
# fieldref: # fieldref:
# fieldpath: metadata.namespace # fieldpath: metadata.namespace
#- name: CERTIFICATE_NAME #- name: CERTIFICATE_NAME
# objref: # objref:
# kind: Certificate # kind: Certificate
# group: certmanager.k8s.io # group: cert-manager.io
# version: v1alpha1 # version: v1alpha2
# name: serving-cert # this name should match the one in certificate.yaml # name: serving-cert # this name should match the one in certificate.yaml
#- name: SERVICE_NAMESPACE # namespace of the service #- name: SERVICE_NAMESPACE # namespace of the service
# objref: # objref:
......
...@@ -8,5 +8,5 @@ spec: ...@@ -8,5 +8,5 @@ spec:
spec: spec:
containers: containers:
# Change the value of image field below to your controller image URL # Change the value of image field below to your controller image URL
- image: smallstep/step-issuer:0.1.0 - image: step-issuer:latest
name: manager name: manager
...@@ -5,11 +5,11 @@ kind: MutatingWebhookConfiguration ...@@ -5,11 +5,11 @@ kind: MutatingWebhookConfiguration
metadata: metadata:
name: mutating-webhook-configuration name: mutating-webhook-configuration
annotations: annotations:
certmanager.k8s.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
--- ---
apiVersion: admissionregistration.k8s.io/v1beta1 apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration kind: ValidatingWebhookConfiguration
metadata: metadata:
name: validating-webhook-configuration name: validating-webhook-configuration
annotations: annotations:
certmanager.k8s.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
...@@ -15,7 +15,7 @@ rules: ...@@ -15,7 +15,7 @@ rules:
- list - list
- watch - watch
- apiGroups: - apiGroups:
- certmanager.k8s.io - cert-manager.io
resources: resources:
- certificaterequests - certificaterequests
verbs: verbs:
...@@ -24,7 +24,7 @@ rules: ...@@ -24,7 +24,7 @@ rules:
- update - update
- watch - watch
- apiGroups: - apiGroups:
- certmanager.k8s.io - cert-manager.io
resources: resources:
- certificaterequests/status - certificaterequests/status
verbs: verbs:
......
apiVersion: certmanager.k8s.io/v1alpha1 apiVersion: cert-manager.io/v1alpha2
kind: Certificate kind: Certificate
metadata: metadata:
name: backend-smallstep-com name: backend-smallstep-com
......
apiVersion: certmanager.k8s.io/v1alpha1 apiVersion: cert-manager.io/v1alpha2
kind: CertificateRequest kind: CertificateRequest
metadata: metadata:
name: internal-smallstep-com name: internal-smallstep-com
......
...@@ -178,7 +178,7 @@ rules: ...@@ -178,7 +178,7 @@ rules:
- list - list
- watch - watch
- apiGroups: - apiGroups:
- certmanager.k8s.io - cert-manager.io
resources: resources:
- certificaterequests - certificaterequests
verbs: verbs:
...@@ -187,7 +187,7 @@ rules: ...@@ -187,7 +187,7 @@ rules:
- update - update
- watch - watch
- apiGroups: - apiGroups:
- certmanager.k8s.io - cert-manager.io
resources: resources:
- certificaterequests/status - certificaterequests/status
verbs: verbs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment