Skip to content

Add Database.Spec CABundle and Secrets options, fix Database.Spec.Path getters #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix goconst linter, comment prealloc linter
  • Loading branch information
artgromov committed Feb 17, 2023
commit b0666b5473843bbb636d530d12dc4029265cc358
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ linters:
# - nilnil
# - nlreturn
- nolintlint
- prealloc
# - prealloc
- predeclared
- rowserrcheck
- revive
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/database_statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (b *DatabaseStatefulSetBuilder) buildCaStorePatchingInitContainerArgs() ([]
}

if arg != "" {
arg += "update-ca-certificates"
arg += updateCACertificatesBin
}

args := []string{arg}
Expand Down
2 changes: 2 additions & 0 deletions internal/resources/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const (
datastreamsIAMServiceAccountKeyVolumeName = "datastreams-iam-sa-key"
defaultEncryptionSecretKey = "key"
defaultPin = "EmptyPin"

updateCACertificatesBin = "update-ca-certificates"
)

type ResourceBuilder interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/storage_statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func (b *StorageStatefulSetBuilder) buildCaStorePatchingInitContainerArgs() ([]s
}

if arg != "" {
arg += "update-ca-certificates"
arg += updateCACertificatesBin
}

args := []string{arg}
Expand Down