Skip to content

Commit

Permalink
fix: stamp enclave uuid at the end of enclave objects (#74)
Browse files Browse the repository at this point in the history
stamp enclave uuid at the end
  • Loading branch information
h4ck3rk3y authored Feb 28, 2023
1 parent 6fc741f commit 4f44d03
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
apiContainerNameSuffix = "kurtosis-api"
apiContainerNamePrefix = "kurtosis-api"
networkingSidecarContainerNameFragment = "networking-sidecar"
artifactExpansionVolumeNameFragment = "files-artifact-expansion"
artifactsExpanderContainerNameFragment = "files-artifacts-expander"
Expand Down Expand Up @@ -158,7 +158,7 @@ func (provider *dockerEnclaveObjectAttributesProviderImpl) ForApiContainer(
) (DockerObjectAttributes, error) {
name, err := provider.getNameForEnclaveObject(
[]string{
apiContainerNameSuffix,
apiContainerNamePrefix,
},
)
if err != nil {
Expand Down Expand Up @@ -422,12 +422,9 @@ func (provider *dockerEnclaveObjectAttributesProviderImpl) ForLogsCollectorVolum
// ====================================================================================================
// Gets the name for an enclave object, making sure to put the enclave ID first and join using the standardized separator
func (provider *dockerEnclaveObjectAttributesProviderImpl) getNameForEnclaveObject(elems []string) (*docker_object_name.DockerObjectName, error) {
toJoin := []string{
provider.enclaveId.GetString(),
}
toJoin = append(toJoin, elems...)
elems = append(elems, provider.enclaveId.GetString())
nameStr := strings.Join(
toJoin,
elems,
objectNameElementSeparator,
)
name, err := docker_object_name.CreateNewDockerObjectName(nameStr)
Expand Down

0 comments on commit 4f44d03

Please sign in to comment.