use of io.stackgres.common.crd.SecretKeySelector in project stackgres by ongres.
the class ClusterResourceQuarkusTest method getSecretScriptEntry.
private ClusterScriptEntry getSecretScriptEntry() {
ClusterScriptEntry entry = new ClusterScriptEntry();
entry.setName("init");
final ClusterScriptFrom scriptFrom = new ClusterScriptFrom();
scriptFrom.setSecretScript("CREATE DATABASE test");
final SecretKeySelector secretMapKeyRef = new SecretKeySelector();
scriptFrom.setSecretKeyRef(secretMapKeyRef);
secretMapKeyRef.setKey("script");
secretMapKeyRef.setName("initScript");
entry.setScriptFrom(scriptFrom);
return entry;
}
Aggregations