Skip to content

Commit

Permalink
chore: add temp. debug codee
Browse files Browse the repository at this point in the history
  • Loading branch information
danimo committed Jul 8, 2024
1 parent 1f1493f commit 23fb9f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,18 @@ func (o *B3ScaleOperator) innerReconcile(ctx context.Context, op *skop.Operator,
return err
}

level.Debug(o.logger).Log("AAA")
if bbbFrontend.Spec.FrontendID == nil || *bbbFrontend.Spec.FrontendID == "" {
level.Debug(o.logger).Log("BBB")
var id string

// Try reading ID from existing frontend
existingFrontend, err := getFrontendByName(ctx, *o.apiClient, bbbFrontend.Spec.Credentials.Frontend)
if err == nil {
level.Debug(o.logger).Log("CCC")
id = existingFrontend.ID
} else {
level.Debug(o.logger).Log("DDD")
// Create frontend in B3Scale backend
createdFrontend, err := o.apiClient.FrontendCreate(ctx, &store.FrontendState{
Active: true,
Expand Down

0 comments on commit 23fb9f4

Please sign in to comment.