File tree Expand file tree Collapse file tree
test/java/it/aboutbits/postgresql/helm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ quarkus:
9090 - null
9191 paths :
9292 - (kind == Deployment).spec.template.spec.imagePullSecrets
93- expression : " {{- toYaml .Values.app.imagePullSecrets | nindent 8 }}"
93+ expression : " {{- if eq ( toYaml .Values.app.imagePullSecrets | trim) \" - {} \" }} null{{- else }}{{- toYaml .Values.app.imagePullSecrets | nindent 8 }}{{- end }}"
9494 description : Kubernetes image pull secrets to use if the OCI image is hosted on a private registry
9595 resource-requests-cpu :
9696 property : resources.requests.cpu
Original file line number Diff line number Diff line change 11package it .aboutbits .postgresql .helm ;
22
33import io .fabric8 .kubernetes .api .model .ConfigBuilder ;
4- import io .fabric8 .kubernetes .api .model .LocalObjectReference ;
54import io .fabric8 .kubernetes .client .KubernetesClient ;
65import io .fabric8 .kubernetes .client .utils .Serialization ;
76import io .quarkus .test .junit .QuarkusTest ;
@@ -173,11 +172,8 @@ void helmInstall_createsDeployment() throws IOException {
173172
174173 assertThat (deployment .getSpec ())
175174 .isNotNull ()
176- .satisfies (spec -> assertThat (spec .getTemplate ().getSpec ().getImagePullSecrets ())
177- .isNotEmpty ()
178- .element (0 )
179- .isNotNull ()
180- .isEqualTo (new LocalObjectReference (null ))
175+ .satisfies (spec ->
176+ assertThat (spec .getTemplate ().getSpec ().getImagePullSecrets ()).isEmpty ()
181177 );
182178
183179 var selector = deployment .getSpec ().getSelector ();
You can’t perform that action at this time.
0 commit comments