Skip to content

Commit 99cd79f

Browse files
committed
feat: #147 Load secrets before remote artifacts
Signed-off-by: Laurent Broudoux <laurent.broudoux@gmail.com>
1 parent e5e6ad8 commit 99cd79f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/microcks-container.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ export class MicrocksContainer extends GenericContainer {
113113
for (let i=0; i<this.snapshots.length; i++) {
114114
await startedContainer.importSnapshot(this.snapshots[i]);
115115
}
116+
// Load secrets before artifacts.
117+
for (let i=0; i<this.secrets.length; i++) {
118+
await startedContainer.createSecret(this.secrets[i]);
119+
}
116120
// Load remote artifacts before local ones.
117121
for (let i=0; i<this.mainRemoteArtifacts.length; i++) {
118122
const { url, secretName } = this.extractArtifactInfo(this.mainRemoteArtifacts[i]);
@@ -129,9 +133,6 @@ export class MicrocksContainer extends GenericContainer {
129133
for (let i=0; i<this.secondaryArtifacts.length; i++) {
130134
await startedContainer.importAsSecondaryArtifact(this.secondaryArtifacts[i]);
131135
}
132-
for (let i=0; i<this.secrets.length; i++) {
133-
await startedContainer.createSecret(this.secrets[i]);
134-
}
135136

136137
return startedContainer;
137138
}

0 commit comments

Comments
 (0)