Skip to content

Commit 4f1b454

Browse files
committed
Add enrollmentPatternName and enrollmentPatternId
1 parent 78bd4ac commit 4f1b454

File tree

10 files changed

+147
-87
lines changed

10 files changed

+147
-87
lines changed

api/v1alpha1/issuer_types.go

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright © 2024 Keyfactor
2+
Copyright © 2025 Keyfactor
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -46,7 +46,23 @@ type IssuerSpec struct {
4646
// +kubebuilder:default:=KeyfactorAPI
4747
APIPath string `json:"apiPath,omitempty"`
4848

49-
// CertificateTemplate is the name of the certificate template to use.
49+
// EnrollmentPatternId is the ID of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
50+
// If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
51+
// If EnrollmentPatternId and EnrollmentPatternName are both specified, EnrollmentPatternId will take precedence.
52+
// Enrollment will fail if the specified template is not compatible with the enrollment pattern.
53+
// Refer to the Keyfactor Command documentation for more information.
54+
EnrollmentPatternId int32 `json:"enrollmentPatternId,omitempty"`
55+
56+
// EnrollmentPatternName is the name of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
57+
// If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
58+
// If EnrollmentPatternId and EnrollmentPatternName are both specified, EnrollmentPatternId will take precedence.
59+
// Enrollment will fail if the specified template is not compatible with the enrollment pattern.
60+
// Refer to the Keyfactor Command documentation for more information.
61+
EnrollmentPatternName string `json:"enrollmentPatternName,omitempty"`
62+
63+
// Deprecated. CertificateTemplate is the name of the certificate template to use. If using Keyfactor Command 25.1 or later, use EnrollmentPatternName or EnrollmentPatternId instead.
64+
// If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
65+
// Enrollment will fail if the specified template is not compatible with the enrollment pattern.
5066
// Refer to the Keyfactor Command documentation for more information.
5167
CertificateTemplate string `json:"certificateTemplate,omitempty"`
5268

config/crd/bases/command-issuer.keyfactor.com_clusterissuers.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,28 @@ spec:
6868
CertificateAuthorityLogicalName is the logical name of the certificate authority to use
6969
E.g. "Keyfactor Root CA" or "Intermediate CA"
7070
type: string
71+
enrollmentPatternId:
72+
description: |-
73+
EnrollmentPatternId is the ID of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
74+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
75+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
76+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
77+
Refer to the Keyfactor Command documentation for more information.
78+
type: integer
79+
format: int32
80+
enrollmentPatternName:
81+
description: |-
82+
EnrollmentPatternName is the name of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
83+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
84+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
85+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
86+
Refer to the Keyfactor Command documentation for more information.
87+
type: string
7188
certificateTemplate:
7289
description: |-
73-
CertificateTemplate is the name of the certificate template to use.
90+
CertificateTemplate is the name of the certificate template to use. Deprecated in favor of EnrollmentPattern as of Keyfactor Command 25.1.
91+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
92+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
7493
Refer to the Keyfactor Command documentation for more information.
7594
type: string
7695
commandSecretName:

config/crd/bases/command-issuer.keyfactor.com_issuers.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,28 @@ spec:
6868
CertificateAuthorityLogicalName is the logical name of the certificate authority to use
6969
E.g. "Keyfactor Root CA" or "Intermediate CA"
7070
type: string
71+
enrollmentPatternId:
72+
description: |-
73+
EnrollmentPatternId is the ID of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
74+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
75+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
76+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
77+
Refer to the Keyfactor Command documentation for more information.
78+
type: integer
79+
format: int32
80+
enrollmentPatternName:
81+
description: |-
82+
EnrollmentPatternName is the name of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
83+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
84+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
85+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
86+
Refer to the Keyfactor Command documentation for more information.
87+
type: string
7188
certificateTemplate:
7289
description: |-
73-
CertificateTemplate is the name of the certificate template to use.
90+
CertificateTemplate is the name of the certificate template to use. Deprecated in favor of EnrollmentPattern as of Keyfactor Command 25.1.
91+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
92+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
7493
Refer to the Keyfactor Command documentation for more information.
7594
type: string
7695
commandSecretName:

deploy/charts/command-cert-manager-issuer/templates/crds/clusterissuers.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,28 @@ spec:
6262
CertificateAuthorityLogicalName is the logical name of the certificate authority to use
6363
E.g. "Keyfactor Root CA" or "Intermediate CA"
6464
type: string
65+
enrollmentPatternId:
66+
description: |-
67+
EnrollmentPatternId is the ID of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
68+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
69+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
70+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
71+
Refer to the Keyfactor Command documentation for more information.
72+
type: integer
73+
format: int32
74+
enrollmentPatternName:
75+
description: |-
76+
EnrollmentPatternName is the name of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
77+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
78+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
79+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
80+
Refer to the Keyfactor Command documentation for more information.
81+
type: string
6582
certificateTemplate:
6683
description: |-
67-
CertificateTemplate is the name of the certificate template to use.
84+
CertificateTemplate is the name of the certificate template to use. Deprecated in favor of EnrollmentPattern as of Keyfactor Command 25.1.
85+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
86+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
6887
Refer to the Keyfactor Command documentation for more information.
6988
type: string
7089
commandSecretName:

deploy/charts/command-cert-manager-issuer/templates/crds/issuers.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,28 @@ spec:
6262
CertificateAuthorityLogicalName is the logical name of the certificate authority to use
6363
E.g. "Keyfactor Root CA" or "Intermediate CA"
6464
type: string
65+
enrollmentPatternId:
66+
description: |-
67+
EnrollmentPatternId is the ID of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
68+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
69+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
70+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
71+
Refer to the Keyfactor Command documentation for more information.
72+
type: integer
73+
format: int32
74+
enrollmentPatternName:
75+
description: |-
76+
EnrollmentPatternName is the name of the enrollment pattern to use. Supported in Keyfactor Command 25.1 and later.
77+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
78+
If both enrollmentPatternId and enrollmentPatternName are specified, enrollmentPatternId will take precendence.
79+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
80+
Refer to the Keyfactor Command documentation for more information.
81+
type: string
6582
certificateTemplate:
6683
description: |-
67-
CertificateTemplate is the name of the certificate template to use.
84+
CertificateTemplate is the name of the certificate template to use. Deprecated in favor of EnrollmentPattern as of Keyfactor Command 25.1.
85+
If both enrollment pattern and certificate template are specified, enrollment pattern will take precendence.
86+
Enrollment will fail if the specified template is not compatible with the enrollment pattern.
6887
Refer to the Keyfactor Command documentation for more information.
6988
type: string
7089
commandSecretName:

docs/ambient-providers/google.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)