Skip to content

Commit 514b381

Browse files
Merge pull request #416 from arun717/tls_impl_without_istio-csr
CM-966: Implement centralized TLS profile fetching and application without istio-csr changes
2 parents db88f80 + 78e872e commit 514b381

2,513 files changed

Lines changed: 124610 additions & 106466 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.golangci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ linters:
130130
linters:
131131
- godot
132132
# Exclude false positive hardcoded credential warnings (these are paths, not credentials)
133-
- path: pkg/controller/deployment/credentials_request.go
133+
- path: pkg/controller/certmanager/credentials_request.go
134134
text: "gcpCredentialsDir|cloudCredentialsVolumeName"
135135
linters:
136136
- gosec
137-
- path: pkg/controller/deployment/deployment_overrides.go
137+
- path: pkg/controller/certmanager/deployment_overrides.go
138138
text: "boundSATokenDir"
139139
linters:
140140
- gosec
@@ -150,7 +150,7 @@ linters:
150150
# Exclude unparam for functions that may be part of interfaces
151151
- linters:
152152
- unparam
153-
path: pkg/controller/deployment/
153+
path: pkg/controller/certmanager/
154154
settings:
155155
wrapcheck:
156156
# Ignore errors returned from these packages - they are either internal or

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This repository contains Cert Manager Operator designed for OpenShift. The opera
55
## The operator architecture and design assumptions
66

77
The Operator uses the [upstream deployment manifests](https://github.com/cert-manager/cert-manager/releases). It divides them into separate files and deploys using 3 controllers:
8-
- [cert_manager_cainjector_deployment.go](pkg/controller/deployment/cert_manager_cainjector_deployment.go)
9-
- [cert_manager_controller_deployment.go](pkg/controller/deployment/cert_manager_controller_deployment.go)
10-
- [cert_manager_webhook_deployment.go](pkg/controller/deployment/cert_manager_webhook_deployment.go)
8+
- [cert_manager_cainjector_deployment.go](pkg/controller/certmanager/cert_manager_cainjector_deployment.go)
9+
- [cert_manager_controller_deployment.go](pkg/controller/certmanager/cert_manager_controller_deployment.go)
10+
- [cert_manager_webhook_deployment.go](pkg/controller/certmanager/cert_manager_webhook_deployment.go)
1111

1212
The Operator automatically deploys a cluster-scoped `CertManager` object named `cluster` if it's missing (with default values).
1313

bundle/manifests/cert-manager-operator.clusterserviceversion.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,14 @@ spec:
562562
- sign
563563
- update
564564
- watch
565+
- apiGroups:
566+
- config.openshift.io
567+
resources:
568+
- apiservers
569+
verbs:
570+
- get
571+
- list
572+
- watch
565573
- apiGroups:
566574
- config.openshift.io
567575
resources:

bundle/manifests/operator.openshift.io_certmanagers.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@ spec:
289289
operator:
290290
description: |-
291291
Operator represents a key's relationship to the value.
292-
Valid operators are Exists and Equal. Defaults to Equal.
292+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
293293
Exists is equivalent to wildcard for value, so that a pod can
294294
tolerate all taints of a particular category.
295+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
295296
type: string
296297
tolerationSeconds:
297298
description: |-
@@ -570,9 +571,10 @@ spec:
570571
operator:
571572
description: |-
572573
Operator represents a key's relationship to the value.
573-
Valid operators are Exists and Equal. Defaults to Equal.
574+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
574575
Exists is equivalent to wildcard for value, so that a pod can
575576
tolerate all taints of a particular category.
577+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
576578
type: string
577579
tolerationSeconds:
578580
description: |-
@@ -1165,9 +1167,10 @@ spec:
11651167
operator:
11661168
description: |-
11671169
Operator represents a key's relationship to the value.
1168-
Valid operators are Exists and Equal. Defaults to Equal.
1170+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
11691171
Exists is equivalent to wildcard for value, so that a pod can
11701172
tolerate all taints of a particular category.
1173+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
11711174
type: string
11721175
tolerationSeconds:
11731176
description: |-

bundle/manifests/operator.openshift.io_istiocsrs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,10 @@ spec:
13351335
operator:
13361336
description: |-
13371337
Operator represents a key's relationship to the value.
1338-
Valid operators are Exists and Equal. Defaults to Equal.
1338+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
13391339
Exists is equivalent to wildcard for value, so that a pod can
13401340
tolerate all taints of a particular category.
1341+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
13411342
type: string
13421343
tolerationSeconds:
13431344
description: |-

bundle/manifests/operator.openshift.io_trustmanagers.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,9 +1185,10 @@ spec:
11851185
operator:
11861186
description: |-
11871187
Operator represents a key's relationship to the value.
1188-
Valid operators are Exists and Equal. Defaults to Equal.
1188+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
11891189
Exists is equivalent to wildcard for value, so that a pod can
11901190
tolerate all taints of a particular category.
1191+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
11911192
type: string
11921193
tolerationSeconds:
11931194
description: |-

config/crd/bases/operator.openshift.io_certmanagers.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@ spec:
289289
operator:
290290
description: |-
291291
Operator represents a key's relationship to the value.
292-
Valid operators are Exists and Equal. Defaults to Equal.
292+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
293293
Exists is equivalent to wildcard for value, so that a pod can
294294
tolerate all taints of a particular category.
295+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
295296
type: string
296297
tolerationSeconds:
297298
description: |-
@@ -570,9 +571,10 @@ spec:
570571
operator:
571572
description: |-
572573
Operator represents a key's relationship to the value.
573-
Valid operators are Exists and Equal. Defaults to Equal.
574+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
574575
Exists is equivalent to wildcard for value, so that a pod can
575576
tolerate all taints of a particular category.
577+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
576578
type: string
577579
tolerationSeconds:
578580
description: |-
@@ -1165,9 +1167,10 @@ spec:
11651167
operator:
11661168
description: |-
11671169
Operator represents a key's relationship to the value.
1168-
Valid operators are Exists and Equal. Defaults to Equal.
1170+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
11691171
Exists is equivalent to wildcard for value, so that a pod can
11701172
tolerate all taints of a particular category.
1173+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
11711174
type: string
11721175
tolerationSeconds:
11731176
description: |-

config/crd/bases/operator.openshift.io_istiocsrs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,10 @@ spec:
13351335
operator:
13361336
description: |-
13371337
Operator represents a key's relationship to the value.
1338-
Valid operators are Exists and Equal. Defaults to Equal.
1338+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
13391339
Exists is equivalent to wildcard for value, so that a pod can
13401340
tolerate all taints of a particular category.
1341+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
13411342
type: string
13421343
tolerationSeconds:
13431344
description: |-

config/crd/bases/operator.openshift.io_trustmanagers.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,9 +1185,10 @@ spec:
11851185
operator:
11861186
description: |-
11871187
Operator represents a key's relationship to the value.
1188-
Valid operators are Exists and Equal. Defaults to Equal.
1188+
Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
11891189
Exists is equivalent to wildcard for value, so that a pod can
11901190
tolerate all taints of a particular category.
1191+
Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
11911192
type: string
11921193
tolerationSeconds:
11931194
description: |-

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ rules:
153153
- sign
154154
- update
155155
- watch
156+
- apiGroups:
157+
- config.openshift.io
158+
resources:
159+
- apiservers
160+
verbs:
161+
- get
162+
- list
163+
- watch
156164
- apiGroups:
157165
- config.openshift.io
158166
resources:

0 commit comments

Comments
 (0)