Skip to content

Commit 1d1fb25

Browse files
committed
chore(comments): Write function comments and update license header
1 parent 1828126 commit 1d1fb25

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/controllers/certificaterequest_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ type CertificateRequestReconciler struct {
6060
// +kubebuilder:rbac:groups=cert-manager.io,resources=certificaterequests/status,verbs=get;update;patch
6161
// +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch
6262

63+
// Reconcile attempts to sign a CertificateRequest given the configuration provided and a configured
64+
// Command signer instance.
6365
func (r *CertificateRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error) {
6466
log := ctrl.LoggerFrom(ctx)
6567

internal/controllers/issuer_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ type IssuerReconciler struct {
6060
//+kubebuilder:rbac:groups=command-issuer.keyfactor.com,resources=issuers/status;clusterissuers/status,verbs=get;update;patch
6161
//+kubebuilder:rbac:groups=command-issuer.keyfactor.com,resources=issuers/finalizers,verbs=update
6262

63+
// newIssuer returns a new Issuer or ClusterIssuer object
6364
func (r *IssuerReconciler) newIssuer() (client.Object, error) {
6465
issuerGVK := commandissuer.GroupVersion.WithKind(r.Kind)
6566
ro, err := r.Scheme.New(issuerGVK)
@@ -69,6 +70,7 @@ func (r *IssuerReconciler) newIssuer() (client.Object, error) {
6970
return ro.(client.Object), nil
7071
}
7172

73+
// Reconcile reconciles and updates the status of an Issuer or ClusterIssuer object
7274
func (r *IssuerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error) {
7375
log := ctrl.LoggerFrom(ctx)
7476

0 commit comments

Comments
 (0)