Skip to content

Commit 7a20cfa

Browse files
Pothulapatiroboquat
authored andcommitted
[kots] Add a pre-flight check for cert-manager
With #8785, We expect users to install their own `cert-manager` install. This PR adds a new pre-flight check to verify the existence of the `cert-manager`. As there is no general way to check for the existence of `cert-manager`, We check for the `certificates.cert-manager.io` CRD instead. Signed-off-by: Tarun Pothulapati <[email protected]>
1 parent 33bd7ff commit 7a20cfa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/kots/manifests/kots-preflight.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,11 @@ spec:
9595
message: The cluster must contain at least 4 cores
9696
- pass:
9797
message: There are at least 2 cores in the cluster
98+
- customResourceDefinition:
99+
checkName: Cert-manager is installed
100+
customResourceDefinitionName: certificates.cert-manager.io
101+
outcomes:
102+
- fail:
103+
message: Custom resource definition `certificates.cert-manager.io` was not found in the cluster. Please [install `cert-manager`](https://cert-manager.io/docs/installation/) to proceed.
104+
- pass:
105+
message: Cert-manager is installed and available.

0 commit comments

Comments
 (0)