Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ spec:
authTokenSecretKey: string
authTokenSecretNamespace: string
serviceAccountKeyPath: string
serviceAccountBaseUrl: string
acmeTxtRecordTTL: int64
```

Expand All @@ -195,6 +196,7 @@ spec:
- authTokenSecretKey: The key within the secret containing the STACKIT authentication token. (Default: auth-token)
- authTokenSecretNamespace: The namespace of the secret containing the STACKIT authentication token. (Default: cert-manager)
- serviceAccountKeyPath: The path to the service account key file. The file must be mounted into the container.
- serviceAccountBaseUrl: The base URL for the STACKIT service account API. (Default: https://service-account.api.stackit.cloud/token)
- acmeTxtRecordTTL: The TTL for the ACME TXT record. (Default: 600)

## Test Procedures
Expand Down
13 changes: 7 additions & 6 deletions internal/repository/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package repository
import "net/http"

type Config struct {
ApiBasePath string
AuthToken string
ProjectId string
HttpClient *http.Client
SaKeyPath string
UseSaKey bool
ApiBasePath string
ServiceAccountBaseUrl string
AuthToken string
ProjectId string
HttpClient *http.Client
SaKeyPath string
UseSaKey bool
}
1 change: 1 addition & 0 deletions internal/repository/dns_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func newStackitDnsClientKeyPath(config Config) (*stackitdnsclient.APIClient, err
stackitconfig.WithServiceAccountKeyPath(config.SaKeyPath),
stackitconfig.WithHTTPClient(&httpClient),
stackitconfig.WithEndpoint(config.ApiBasePath),
stackitconfig.WithTokenEndpoint(config.ServiceAccountBaseUrl),
)
}

Expand Down
17 changes: 12 additions & 5 deletions internal/repository/mock/rrset_repository.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions internal/repository/mock/zone_repository.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/resolver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type StackitDnsProviderConfig struct {
AuthTokenSecretKey string `json:"authTokenSecretKey"`
AuthTokenSecretNamespace string `json:"authTokenSecretNamespace"`
ServiceAccountKeyPath string `json:"serviceAccountKeyPath"`
ServiceAccountBaseUrl string `json:"serviceAccountBaseUrl"`
AcmeTxtRecordTTL int64 `json:"acmeTxtRecordTTL"`
}

Expand Down
8 changes: 7 additions & 1 deletion internal/resolver/mock/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion internal/resolver/mock/secrets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading