Skip to content

Conversation

@RafiaSabih
Copy link
Contributor

Test for creation and deletion of connection pooler, using k8s fake client API.

@zalando-robot
Copy link

Docker image "registry-write.opensource.zalan.do/acid/postgres-operator-ui-test:4e8acc2-pr-1301-1" is not based on an approved base image. Currently, this will have no impact on your deployments, but builds using non-allowed images will be blocked from deployment from February 1st 2021.

To create a compliant Docker image of your application, you must reference an allowed Docker image as its base image in your Dockerfile. This base image must come from the Open Source Registry namespace library and use a recommended version as listed in the documentation.

@zalando-robot
Copy link

Docker image "registry-write.opensource.zalan.do/acid/postgres-operator-ui-test:c666e2a-pr-1301-2" is not based on an approved base image. Currently, this will have no impact on your deployments, but builds using non-allowed images will be blocked from deployment from February 1st 2021.

To create a compliant Docker image of your application, you must reference an allowed Docker image as its base image in your Dockerfile. This base image must come from the Open Source Registry namespace library and use a recommended version as listed in the documentation.

@FxKu
Copy link
Member

FxKu commented Jan 12, 2021

was their a discussion to put it in an extra file an not add it to connection_pooler_test.go?

@zalando-robot
Copy link

Docker image "registry-write.opensource.zalan.do/acid/postgres-operator-ui-test:ce2b791-pr-1301-3" is not based on an approved base image. Currently, this will have no impact on your deployments, but builds using non-allowed images will be blocked from deployment from February 1st 2021.

To create a compliant Docker image of your application, you must reference an allowed Docker image as its base image in your Dockerfile. This base image must come from the Open Source Registry namespace library and use a recommended version as listed in the documentation.

@zalando-robot
Copy link

Docker image "registry-write.opensource.zalan.do/acid/postgres-operator-test:v1.6.0-15-g4c615aa-pr-1301-5" is not based on an approved base image. Currently, this will have no impact on your deployments, but builds using non-allowed images will be blocked from deployment from February 1st 2021.

To create a compliant Docker image of your application, you must reference an allowed Docker image as its base image in your Dockerfile. This base image must come from the Open Source Registry namespace library and use a recommended version as listed in the documentation.

@zalando-robot
Copy link

Docker image "registry-write.opensource.zalan.do/acid/postgres-operator-ui-test:v1.6.0-15-g425336e-pr-1301-5" is not based on an approved base image. Currently, this will have no impact on your deployments, but builds using non-allowed images will be blocked from deployment from February 1st 2021.

To create a compliant Docker image of your application, you must reference an allowed Docker image as its base image in your Dockerfile. This base image must come from the Open Source Registry namespace library and use a recommended version as listed in the documentation.

@zalando-robot
Copy link

Docker image "registry-write.opensource.zalan.do/acid/postgres-operator-test:v1.6.0-16-gc174de7-pr-1301-6" is not based on an approved base image. Currently, this will have no impact on your deployments, but builds using non-allowed images will be blocked from deployment from February 1st 2021.

To create a compliant Docker image of your application, you must reference an allowed Docker image as its base image in your Dockerfile. This base image must come from the Open Source Registry namespace library and use a recommended version as listed in the documentation.

if err != nil {
t.Errorf("%s: Cannot create connection pooler, %s, %+v",
testName, err, reason)
func MasterobjectsAreSaved(cluster *Cluster, err error, reason SyncReason) error {
Copy link
Member

Choose a reason for hiding this comment

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

small thing: MasterObjects (o -> O)

return nil
}

func ReplicaobjectsAreSaved(cluster *Cluster, err error, reason SyncReason) error {
Copy link
Member

Choose a reason for hiding this comment

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

again ReplicaObjects (o -> O)

ConnectionPoolerDefaultCPULimit: "100m",
ConnectionPoolerDefaultMemoryRequest: "100Mi",
ConnectionPoolerDefaultMemoryLimit: "100Mi",
NumberOfInstances: int32ToPointer(1),
Copy link
Member

Choose a reason for hiding this comment

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

Why int32ToPointer(1) instead of simply 1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because NumberOfInstances is of type *int32...!

@sdudoladov
Copy link
Member

👍

1 similar comment
@RafiaSabih
Copy link
Contributor Author

👍

@RafiaSabih RafiaSabih merged commit a9b677c into master Jan 19, 2021
@RafiaSabih RafiaSabih deleted the fake-client-cp branch January 19, 2021 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants