Skip to content
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

Feature/81 refactor global config using k8s registry lib #83

Conversation

alexander-dammeier
Copy link
Contributor

No description provided.

meiserloh and others added 30 commits October 2, 2024 14:28
The hash is needed as the dogu-op v2 violates
the go standards because it did not contain the
v2 version in the module name. Therefore an
update via 'go mod' or 'go get' is not
possible.

As the new dogu-op version do not contain the
dogu encryption functions anymore, we needed
to strip the code from encryptionAdapter.go
and delete the tests. This is no problem as
this code should be removed anyway because
we do not want to encrypt sensitive dogu config ourselves anymore.
… into feature/81-Use-Kubernetes-native-config-options-instead-of-etcd

# Conflicts:
#	go.mod
#	go.sum
this fixes further problems with the
k8s.io/client-go update
We need a wrapper because of our specific errors
in the blueprint operator. Maybe we can introduce
them in the registry-lib as well, so we can
completely remove this wrapper adapter.

For now, the plan is to replace the old etcd
adapter step by step with the new adapter.
We need a wrapper because of our specific errors
in the blueprint operator. Maybe we can introduce
them in the registry-lib as well, so we can
completely remove this wrapper adapter.

For now, the plan is to replace the old etcd
adapter step by step with the new adapter.
headers will be sent at the write call already.
Calling writeHeader cannot change the status code
afterward.
just use SensitiveDoguConfigEntryRepo directly
It was unused and it should also not be used as
it hides conflict errors which we need to handle
with the current mockery config they will not be
updated automatically with 'make mocks'. I needed
to copy the interface into another package to
generate the mocks. Then I could copy them on the
right place.
Introduce new types so that we can
refactor the operator step by step.
@alexander-dammeier alexander-dammeier force-pushed the feature/81-refactor-global-config-using-k8s-registry-lib branch from 27f5f4f to a4a9c79 Compare October 9, 2024 09:26
meiserloh and others added 6 commits October 9, 2024 11:30
…-of-etcd' into feature/81-refactor-global-config-using-k8s-registry-lib
This includes the linter fixes, previously tested with
this operator.
…-of-etcd' into feature/81-refactor-global-config-using-k8s-registry-lib
type doguConfigEntryRepository interface {
domainservice.DoguConfigEntryRepository
}

type doguConfigRepository interface {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [checkstyle] reported by reviewdog 🐶
type doguConfigRepository is unused

type sensitiveDoguConfigEntryRepository interface {
domainservice.SensitiveDoguConfigEntryRepository
}

type configEncryptionAdapter interface {
domainservice.ConfigEncryptionAdapter
type sensitiveDoguConfigRepository interface {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [checkstyle] reported by reviewdog 🐶
type sensitiveDoguConfigRepository is unused

@alexander-dammeier
Copy link
Contributor Author

We will only merge the third PR #84 which is based on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants