Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
Committing 0.62.0 files
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtosisbot committed Dec 16, 2022
1 parent 225a4aa commit 0f3a973
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions api/golang/core/lib/enclaves/enclave_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ func (enclaveCtx *EnclaveContext) AddServicesToPartition(
for serviceID, containerConfig := range containerConfigs {
logrus.Tracef("Creating files artifact ID str -> mount dirpaths map for service with Id '%v'...", serviceID)
artifactIdStrToMountDirpath := map[string]string{}
for filesArtifactID, mountDirpath := range containerConfig.GetFilesArtifactMountpoints() {
artifactIdStrToMountDirpath[string(filesArtifactID)] = mountDirpath
for mountDirpath, filesArtifactID := range containerConfig.GetFilesArtifactMountpoints() {
artifactIdStrToMountDirpath[mountDirpath] = string(filesArtifactID)
}
logrus.Tracef("Successfully created files artifact ID str -> mount dirpaths map for service with ID '%v'", serviceID)
privatePorts := containerConfig.GetUsedPorts()
Expand Down
10 changes: 5 additions & 5 deletions api/golang/core/lib/services/container_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type ContainerConfig struct {
image string
usedPorts map[string]*PortSpec
publicPorts map[string]*PortSpec //TODO this is a huge hack to temporarily enable static ports for NEAR until we have a more productized solution
filesArtifactMountpoints map[FilesArtifactUUID]string
filesArtifactMountpoints map[string]FilesArtifactUUID
entrypointOverrideArgs []string
cmdOverrideArgs []string
environmentVariableOverrides map[string]string
Expand All @@ -51,7 +51,7 @@ func (config *ContainerConfig) GetUsedPorts() map[string]*PortSpec {
return config.usedPorts
}

func (config *ContainerConfig) GetFilesArtifactMountpoints() map[FilesArtifactUUID]string {
func (config *ContainerConfig) GetFilesArtifactMountpoints() map[string]FilesArtifactUUID {
return config.filesArtifactMountpoints
}

Expand Down Expand Up @@ -95,7 +95,7 @@ type ContainerConfigBuilder struct {
image string
usedPorts map[string]*PortSpec
publicPorts map[string]*PortSpec //TODO this is a huge hack to temporarily enable static ports for NEAR until we have a more productized solution
filesArtifactMountpoints map[FilesArtifactUUID]string
filesArtifactMountpoints map[string]FilesArtifactUUID
entrypointOverrideArgs []string
cmdOverrideArgs []string
environmentVariableOverrides map[string]string
Expand All @@ -109,7 +109,7 @@ func NewContainerConfigBuilder(image string) *ContainerConfigBuilder {
image: image,
usedPorts: map[string]*PortSpec{},
publicPorts: nil,
filesArtifactMountpoints: map[FilesArtifactUUID]string{},
filesArtifactMountpoints: map[string]FilesArtifactUUID{},
entrypointOverrideArgs: nil,
cmdOverrideArgs: nil,
environmentVariableOverrides: map[string]string{},
Expand All @@ -124,7 +124,7 @@ func (builder *ContainerConfigBuilder) WithUsedPorts(usedPorts map[string]*PortS
return builder
}

func (builder *ContainerConfigBuilder) WithFiles(filesArtifactMountpoints map[FilesArtifactUUID]string) *ContainerConfigBuilder {
func (builder *ContainerConfigBuilder) WithFiles(filesArtifactMountpoints map[string]FilesArtifactUUID) *ContainerConfigBuilder {
builder.filesArtifactMountpoints = filesArtifactMountpoints
return builder
}
Expand Down
4 changes: 3 additions & 1 deletion api/golang/core/lib/services/service_config_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ func (builder *ServiceConfigBuilder) WithPrivateIPAddressPlaceholder(privateIPAd
}

func (builder *ServiceConfigBuilder) WithSubnetwork(subnetwork string) *ServiceConfigBuilder {
builder.subnetwork = subnetwork
if subnetwork != "" {
builder.subnetwork = subnetwork
}
return builder
}

Expand Down
2 changes: 1 addition & 1 deletion api/golang/kurtosis_version/kurtosis_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ const (
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
// This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
// API container
KurtosisVersion = "0.61.0"
KurtosisVersion = "0.62.0"
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
)
2 changes: 1 addition & 1 deletion api/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kurtosis-sdk",
"//": "NOTE: DO NOT UPDATE THIS VERSION MANUALLY - IT WILL BE UPDATED DURING THE RELEASE PROCESS!",
"version": "0.61.0",
"version": "0.62.0",
"main": "./build/index",
"description": "This repo contains a Typescript client for communicating with the Kurtosis Engine server, which is responsible for creating, managing and destroying Kurtosis Enclaves.",
"types": "./build/index",
Expand Down
4 changes: 2 additions & 2 deletions api/typescript/src/core/lib/enclaves/enclave_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ export class EnclaveContext {
for (const [serviceID, containerConfig] of containerConfigs.entries()) {
log.trace(`Creating files artifact ID str -> mount dirpaths map for service with Id '${serviceID}'...`);
const artifactIdStrToMountDirpath: Map<string, string> = new Map<string, string>();
for (const [filesArtifactId, mountDirpath] of containerConfig.filesArtifactMountpoints) {
artifactIdStrToMountDirpath.set(filesArtifactId, mountDirpath);
for (const [mountDirpath, filesArtifactId] of containerConfig.filesArtifactMountpoints) {
artifactIdStrToMountDirpath.set(mountDirpath, filesArtifactId);
}
log.trace(`Successfully created files artifact ID str -> mount dirpaths map for service with Id '${serviceID}'`);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function readStreamContentUntilClosed(responseLines: Readable): Pro
if (responseLine.getError()?.getInterpretationError() !== undefined) {
interpretationError = responseLine.getError()?.getInterpretationError()
} else if (responseLine.getError()?.getValidationError() !== undefined) {
validationErrors.push(responseLine.getError()!.getInterpretationError()!)
validationErrors.push(responseLine.getError()!.getValidationError()!)
} else if (responseLine.getError()?.getExecutionError() !== undefined) {
executionError = responseLine.getError()?.getExecutionError()
}
Expand Down
6 changes: 3 additions & 3 deletions api/typescript/src/core/lib/services/container_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class ContainerConfig {
public readonly image: string,
public readonly usedPorts: Map<string, PortSpec>,
public readonly publicPorts: Map<string, PortSpec>, //TODO this is a huge hack to temporarily enable static ports for NEAR until we have a more productized solution
public readonly filesArtifactMountpoints: Map<FilesArtifactUUID, string>,
public readonly filesArtifactMountpoints: Map<string, FilesArtifactUUID>,
public readonly entrypointOverrideArgs: string[],
public readonly cmdOverrideArgs: string[],
public readonly environmentVariableOverrides: Map<string,string>,
Expand All @@ -36,7 +36,7 @@ export class ContainerConfigBuilder {
private readonly image: string;
private usedPorts: Map<string, PortSpec>;
private publicPorts: Map<string, PortSpec>; //TODO this is a huge hack to temporarily enable static ports for NEAR until we have a more productized solution
private filesArtifactMountpoints: Map<FilesArtifactUUID, string>;
private filesArtifactMountpoints: Map<string, FilesArtifactUUID>;
private entrypointOverrideArgs: string[];
private cmdOverrideArgs: string[];
private environmentVariableOverrides: Map<string,string>;
Expand All @@ -62,7 +62,7 @@ export class ContainerConfigBuilder {
return this;
}

public withFiles(filesArtifactMountpoints: Map<FilesArtifactUUID, string>): ContainerConfigBuilder {
public withFiles(filesArtifactMountpoints: Map<string, FilesArtifactUUID>): ContainerConfigBuilder {
this.filesArtifactMountpoints = filesArtifactMountpoints;
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion api/typescript/src/kurtosis_version/kurtosis_version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
// This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
// API container
export const KURTOSIS_VERSION: string = "0.61.0"
export const KURTOSIS_VERSION: string = "0.62.0"
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!

0 comments on commit 0f3a973

Please sign in to comment.