Skip to content

Commit

Permalink
optional providerconfig keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jaylevin authored Oct 1, 2024
1 parent e0d06c7 commit b6d8d8e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions internal/clients/confluent.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,16 @@ func TerraformSetupBuilder(version, providerSource, providerVersion string, sche
ps.Configuration = map[string]any{
cloudAPIKey: creds[cloudAPIKey],
cloudAPISecret: creds[cloudAPISecret],
kafkaAPIKey: creds[kafkaAPIKey],
kafkaAPISecret: creds[kafkaAPISecret],
kafkaRESTEndpoint: creds[kafkaRESTEndpoint],
}

if kafkaAPIKey, ok := creds[kafkaAPIKey]; ok {
ps.Configuration[kafkaAPIKey] = creds[kafkaAPIKey],
}

Check failure on line 81 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected }, expected expression

Check failure on line 81 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

expected operand, found '}' (typecheck)

Check failure on line 81 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected }, expected expression

Check failure on line 81 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected }, expected expression

Check failure on line 81 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / local-deploy

syntax error: unexpected }, expected expression

Check failure on line 81 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / unit-tests

syntax error: unexpected }, expected expression
if kafkaAPISecret, ok := creds[kafkaAPISecret]; ok {

Check failure on line 82 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

expected ';', found 'if' (typecheck)
ps.Configuration[kafkaAPISecret] = creds[kafkaAPISecret],
}

Check failure on line 84 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected }, expected expression

Check failure on line 84 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

expected operand, found '}' (typecheck)

Check failure on line 84 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected }, expected expression

Check failure on line 84 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected }, expected expression

Check failure on line 84 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / local-deploy

syntax error: unexpected }, expected expression

Check failure on line 84 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / unit-tests

syntax error: unexpected }, expected expression
if kafkaRESTEndpoint, ok := creds[kafkaRESTEndpoint]; ok {

Check failure on line 85 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

expected ';', found 'if' (typecheck)
ps.Configuration[kafkaRESTEndpoint] = creds[kafkaRESTEndpoint],
}

Check failure on line 87 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected }, expected expression (typecheck)

Check failure on line 87 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

expected operand, found '}' (typecheck)

Check failure on line 87 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected }, expected expression

Check failure on line 87 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / publish-artifacts

syntax error: unexpected }, expected expression

Check failure on line 87 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / local-deploy

syntax error: unexpected }, expected expression

Check failure on line 87 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / unit-tests

syntax error: unexpected }, expected expression
return ps, nil

Check failure on line 88 in internal/clients/confluent.go

View workflow job for this annotation

GitHub Actions / lint

expected ';', found 'return' (typecheck)
}
Expand Down

0 comments on commit b6d8d8e

Please sign in to comment.