Skip to content

Commit

Permalink
chore(comments): Write function comments and update license header
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rmclaren committed Dec 14, 2023
1 parent 1828126 commit 1d1fb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/controllers/certificaterequest_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ type CertificateRequestReconciler struct {
// +kubebuilder:rbac:groups=cert-manager.io,resources=certificaterequests/status,verbs=get;update;patch
// +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch

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

Expand Down
2 changes: 2 additions & 0 deletions internal/controllers/issuer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ type IssuerReconciler struct {
//+kubebuilder:rbac:groups=command-issuer.keyfactor.com,resources=issuers/status;clusterissuers/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=command-issuer.keyfactor.com,resources=issuers/finalizers,verbs=update

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

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

Expand Down

0 comments on commit 1d1fb25

Please sign in to comment.