Skip to content

Commit 15d40eb

Browse files
authored
Merge pull request #36 from wallrj/build-tools-upgrade
Update to latest version of controller-gen
2 parents 41b1a6d + fa84e4e commit 15d40eb

File tree

4 files changed

+54
-41
lines changed

4 files changed

+54
-41
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ DOCKER_REGISTRY ?= ghcr.io
1313
DOCKER_IMAGE_NAME ?= cert-manager/sample-external-issuer/controller
1414
# Image URL to use all building/pushing image targets
1515
IMG ?= ${DOCKER_REGISTRY}/${DOCKER_IMAGE_NAME}:${VERSION}
16-
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
17-
CRD_OPTIONS ?= "crd:trivialVersions=true"
1816

1917
# BIN is the directory where tools will be installed
2018
export BIN ?= ${CURDIR}/bin
@@ -31,7 +29,7 @@ K8S_CLUSTER_NAME := sample-external-issuer-e2e
3129
CERT_MANAGER_VERSION ?= 1.11.1
3230

3331
# Controller tools
34-
CONTROLLER_GEN_VERSION := 0.5.0
32+
CONTROLLER_GEN_VERSION := 0.11.3
3533
CONTROLLER_GEN := ${BIN}/controller-gen
3634

3735
INSTALL_YAML ?= build/install.yaml
@@ -86,7 +84,7 @@ deploy: ${INSTALL_YAML}
8684
# Generate manifests e.g. CRD, RBAC etc.
8785
.PHONY: manifests
8886
manifests: ${CONTROLLER_GEN}
89-
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
87+
$(CONTROLLER_GEN) rbac:roleName=manager-role webhook crd paths="./..." output:crd:artifacts:config=config/crd/bases
9088

9189
# Run go fmt against code
9290
.PHONY: fmt

config/crd/bases/sample-issuer.example.com_clusterissuers.yaml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.5.0
6+
controller-gen.kubebuilder.io/version: v0.11.3
87
creationTimestamp: null
98
name: clusterissuers.sample-issuer.example.com
109
spec:
@@ -22,21 +21,30 @@ spec:
2221
description: ClusterIssuer is the Schema for the clusterissuers API
2322
properties:
2423
apiVersion:
25-
description: 'APIVersion defines the versioned schema of this representation 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/sig-architecture/api-conventions.md#resources'
24+
description: 'APIVersion defines the versioned schema of this representation
25+
of an object. Servers should convert recognized schemas to the latest
26+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
2627
type: string
2728
kind:
28-
description: 'Kind is a string value representing the REST resource this 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/sig-architecture/api-conventions.md#types-kinds'
29+
description: 'Kind is a string value representing the REST resource this
30+
object represents. Servers may infer this from the endpoint the client
31+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2932
type: string
3033
metadata:
3134
type: object
3235
spec:
3336
description: IssuerSpec defines the desired state of Issuer
3437
properties:
3538
authSecretName:
36-
description: A reference to a Secret in the same namespace as the referent. If the referent is a ClusterIssuer, the reference instead refers to the resource with the given name in the configured 'cluster resource namespace', which is set as a flag on the controller component (and defaults to the namespace that the controller runs in).
39+
description: A reference to a Secret in the same namespace as the
40+
referent. If the referent is a ClusterIssuer, the reference instead
41+
refers to the resource with the given name in the configured 'cluster
42+
resource namespace', which is set as a flag on the controller component
43+
(and defaults to the namespace that the controller runs in).
3744
type: string
3845
url:
39-
description: 'URL is the base URL for the endpoint of the signing service, for example: "https://sample-signer.example.com/api".'
46+
description: 'URL is the base URL for the endpoint of the signing
47+
service, for example: "https://sample-signer.example.com/api".'
4048
type: string
4149
required:
4250
- authSecretName
@@ -46,22 +54,28 @@ spec:
4654
description: IssuerStatus defines the observed state of Issuer
4755
properties:
4856
conditions:
49-
description: List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`.
57+
description: List of status conditions to indicate the status of a
58+
CertificateRequest. Known condition types are `Ready`.
5059
items:
51-
description: IssuerCondition contains condition information for an Issuer.
60+
description: IssuerCondition contains condition information for
61+
an Issuer.
5262
properties:
5363
lastTransitionTime:
54-
description: LastTransitionTime is the timestamp corresponding to the last status change of this condition.
64+
description: LastTransitionTime is the timestamp corresponding
65+
to the last status change of this condition.
5566
format: date-time
5667
type: string
5768
message:
58-
description: Message is a human readable description of the details of the last transition, complementing reason.
69+
description: Message is a human readable description of the
70+
details of the last transition, complementing reason.
5971
type: string
6072
reason:
61-
description: Reason is a brief machine readable explanation for the condition's last transition.
73+
description: Reason is a brief machine readable explanation
74+
for the condition's last transition.
6275
type: string
6376
status:
64-
description: Status of the condition, one of ('True', 'False', 'Unknown').
77+
description: Status of the condition, one of ('True', 'False',
78+
'Unknown').
6579
enum:
6680
- "True"
6781
- "False"
@@ -81,9 +95,3 @@ spec:
8195
storage: true
8296
subresources:
8397
status: {}
84-
status:
85-
acceptedNames:
86-
kind: ""
87-
plural: ""
88-
conditions: []
89-
storedVersions: []

config/crd/bases/sample-issuer.example.com_issuers.yaml

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
---
32
apiVersion: apiextensions.k8s.io/v1
43
kind: CustomResourceDefinition
54
metadata:
65
annotations:
7-
controller-gen.kubebuilder.io/version: v0.5.0
6+
controller-gen.kubebuilder.io/version: v0.11.3
87
creationTimestamp: null
98
name: issuers.sample-issuer.example.com
109
spec:
@@ -22,21 +21,30 @@ spec:
2221
description: Issuer is the Schema for the issuers API
2322
properties:
2423
apiVersion:
25-
description: 'APIVersion defines the versioned schema of this representation 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/sig-architecture/api-conventions.md#resources'
24+
description: 'APIVersion defines the versioned schema of this representation
25+
of an object. Servers should convert recognized schemas to the latest
26+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
2627
type: string
2728
kind:
28-
description: 'Kind is a string value representing the REST resource this 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/sig-architecture/api-conventions.md#types-kinds'
29+
description: 'Kind is a string value representing the REST resource this
30+
object represents. Servers may infer this from the endpoint the client
31+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2932
type: string
3033
metadata:
3134
type: object
3235
spec:
3336
description: IssuerSpec defines the desired state of Issuer
3437
properties:
3538
authSecretName:
36-
description: A reference to a Secret in the same namespace as the referent. If the referent is a ClusterIssuer, the reference instead refers to the resource with the given name in the configured 'cluster resource namespace', which is set as a flag on the controller component (and defaults to the namespace that the controller runs in).
39+
description: A reference to a Secret in the same namespace as the
40+
referent. If the referent is a ClusterIssuer, the reference instead
41+
refers to the resource with the given name in the configured 'cluster
42+
resource namespace', which is set as a flag on the controller component
43+
(and defaults to the namespace that the controller runs in).
3744
type: string
3845
url:
39-
description: 'URL is the base URL for the endpoint of the signing service, for example: "https://sample-signer.example.com/api".'
46+
description: 'URL is the base URL for the endpoint of the signing
47+
service, for example: "https://sample-signer.example.com/api".'
4048
type: string
4149
required:
4250
- authSecretName
@@ -46,22 +54,28 @@ spec:
4654
description: IssuerStatus defines the observed state of Issuer
4755
properties:
4856
conditions:
49-
description: List of status conditions to indicate the status of a CertificateRequest. Known condition types are `Ready`.
57+
description: List of status conditions to indicate the status of a
58+
CertificateRequest. Known condition types are `Ready`.
5059
items:
51-
description: IssuerCondition contains condition information for an Issuer.
60+
description: IssuerCondition contains condition information for
61+
an Issuer.
5262
properties:
5363
lastTransitionTime:
54-
description: LastTransitionTime is the timestamp corresponding to the last status change of this condition.
64+
description: LastTransitionTime is the timestamp corresponding
65+
to the last status change of this condition.
5566
format: date-time
5667
type: string
5768
message:
58-
description: Message is a human readable description of the details of the last transition, complementing reason.
69+
description: Message is a human readable description of the
70+
details of the last transition, complementing reason.
5971
type: string
6072
reason:
61-
description: Reason is a brief machine readable explanation for the condition's last transition.
73+
description: Reason is a brief machine readable explanation
74+
for the condition's last transition.
6275
type: string
6376
status:
64-
description: Status of the condition, one of ('True', 'False', 'Unknown').
77+
description: Status of the condition, one of ('True', 'False',
78+
'Unknown').
6579
enum:
6680
- "True"
6781
- "False"
@@ -81,9 +95,3 @@ spec:
8195
storage: true
8296
subresources:
8397
status: {}
84-
status:
85-
acceptedNames:
86-
kind: ""
87-
plural: ""
88-
conditions: []
89-
storedVersions: []

config/rbac/role.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
apiVersion: rbac.authorization.k8s.io/v1
43
kind: ClusterRole

0 commit comments

Comments
 (0)