Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Sep 30, 2024
1 parent deb7f4c commit 7fd4f21
Show file tree
Hide file tree
Showing 9 changed files with 706 additions and 11 deletions.
2 changes: 1 addition & 1 deletion controller/konnect/ops/ops_kongsni.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func createSNI(
resp, err := sdk.CreateSniWithCertificate(ctx, sdkkonnectops.CreateSniWithCertificateRequest{
ControlPlaneID: cpID,
CertificateID: sni.Status.Konnect.CertificateID,
SNIWithoutParents: sdkkonnectcomp.SNIWithoutParents{},
SNIWithoutParents: kongSNIToSNIWithoutParents(sni),
})

if errWrapped := wrapErrIfKonnectOpFailed(err, CreateOp, sni); errWrapped != nil {
Expand Down
2 changes: 1 addition & 1 deletion controller/konnect/reconciler_certificateref.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func handleKongCertificateRef[T constraints.SupportedKonnectEntityType, TEnt con
// If referenced KongCertificate is being deleted, return an error so that we
// can remove the entity from Konnect first.
if delTimestamp := cert.GetDeletionTimestamp(); !delTimestamp.IsZero() {
return ctrl.Result{}, ReferencedKongUpstreamIsBeingDeleted{
return ctrl.Result{}, ReferencedKongCertificateIsBeingDeleted{
Reference: nn,
DeletionTimestamp: delTimestamp.Time,
}
Expand Down
Loading

0 comments on commit 7fd4f21

Please sign in to comment.