Skip to content

Commit dca6625

Browse files
committed
chore: address copilot feedback
Signed-off-by: Matthew H. Irby <[email protected]>
1 parent 8339bd1 commit dca6625

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

api/v1alpha1/issuer_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ const (
285285
)
286286

287287
type HealthCheckConfig struct {
288-
// Determines whether to the health check when the issuer is healthy. Default: true
288+
// Determines whether to enable the health check when the issuer is healthy. Default: true
289289
Enabled bool `json:"enabled"`
290290

291291
// The interval at which to health check the issuer when healthy. Defaults to 1 minute. Must not be less than "30s".

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
a health check to determine issuer's connectivity to Command instance.
109109
properties:
110110
enabled:
111-
description: 'Determines whether to the health check when the
111+
description: 'Determines whether to enable the health check when the
112112
issuer is healthy. Default: true'
113113
type: boolean
114114
interval:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ spec:
108108
a health check to determine issuer's connectivity to Command instance.
109109
properties:
110110
enabled:
111-
description: 'Determines whether to the health check when the
111+
description: 'Determines whether to enable the health check when the
112112
issuer is healthy. Default: true'
113113
type: boolean
114114
interval:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ spec:
8585
a health check to determine issuer's connectivity to Command instance.
8686
properties:
8787
enabled:
88-
description: 'Determines whether to the health check when the
88+
description: 'Determines whether to enable the health check when the
8989
issuer is healthy. Default: true'
9090
type: boolean
9191
interval:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ spec:
8585
a health check to determine issuer's connectivity to Command instance.
8686
properties:
8787
enabled:
88-
description: 'Determines whether to the health check when the
88+
description: 'Determines whether to enable the health check when the
8989
issuer is healthy. Default: true'
9090
type: boolean
9191
interval:

docsource/content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ For example, ClusterIssuer resources can be used to issue certificates for resou
219219
| ownerRoleName | The name of the security role assigned as the certificate owner. The security role must be assigned to the identity context of the issuer. If `ownerRoleId` and `ownerRoleName` are both specified, `ownerRoleId` will take precedence. This field is **required** if the enrollment pattern, certificate template, or system-wide setting requires it. |
220220
| scopes | (Optional) Required if using ambient credentials with Azure AKS. If using ambient credentials, these scopes will be put on the access token generated by the ambient credentials' token provider, if applicable. |
221221
| audience | (Optional) If using ambient credentials, this audience will be put on the access token generated by the ambient credentials' token provider, if applicable. Google's ambient credential token provider generates an OIDC ID Token. If this value is not provided, it will default to `command`. |
222-
| healthcheck | (Optional) Defines the health check configuration for the issuer. If ommitted, health checks will be enabled and default to 60 seconds. If left disabled, the issuer will not perform a health check when the issuer is healthy and may cause CertificateRequest resources to silently fail. |
222+
| healthcheck | (Optional) Defines the health check configuration for the issuer. If omitted, health checks will be enabled and default to 60 seconds. If left disabled, the issuer will not perform a health check when the issuer is healthy and may cause CertificateRequest resources to silently fail. |
223223
| healthcheck.enabled | (Required if health check block provided) Boolean to enable / disable health checks. By default, health checks are enabled. |
224224
| healthcheck.interval | (Optional) Defines the interval between health checks. Example values: `30s`, `1m`, `5.5m`. To prevent overloading the Command instance, this interval must not be less than `30s`. Default value: `60s`. |
225225

internal/controller/issuer_controller.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const (
3939
)
4040

4141
var (
42-
errGetAuthSecret = errors.New("failed to get Secret containing Issuer credentials")
43-
errGetCaSecret = errors.New("caSecretName specified a name, but failed to get Secret containing CA certificate")
44-
errHealthCheckerBuilder = errors.New("failed to build the healthchecker")
45-
errHealthCheckerCheck = errors.New("healthcheck failed")
42+
errGetAuthSecret = errors.New("failed to get Secret containing Issuer credentials")
43+
errGetCaSecret = errors.New("caSecretName specified a name, but failed to get Secret containing CA certificate")
44+
errHealthCheckerBuilder = errors.New("failed to build the healthchecker")
45+
errHealthCheckerCheck = errors.New("healthcheck failed")
4646
defaultHealthCheckInterval = time.Minute
4747
)
4848

@@ -102,7 +102,7 @@ func (r *IssuerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res
102102

103103
healthCheckInterval, err := getHealthCheckInterval(log, issuer)
104104
if err != nil {
105-
log.Error(err, "en error occurred while getting the health check interval")
105+
log.Error(err, "an error occurred while getting the health check interval")
106106
issuer.GetStatus().SetCondition(ctx, commandissuer.IssuerConditionReady, commandissuer.ConditionFalse, issuerReadyConditionReason, err.Error())
107107
issuer.GetStatus().SetCondition(ctx, commandissuer.IssuerConditionSupportsMetadata, commandissuer.ConditionUnknown, "", "")
108108
return ctrl.Result{}, nil

0 commit comments

Comments
 (0)