Skip to content

Commit

Permalink
Adding some comment instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-rieke committed Jul 3, 2024
1 parent 13bcf08 commit a679481
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atrium/vestibulum/trcdb/trcplgtoolbase/trcplgtoolbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ func CommonMain(envDefaultPtr *string,
}
}

// Move into function (both if and else) in ecrcommon... and call directly from azrcr..
if pluginToolConfig["trcsha256"] != nil &&
pluginToolConfig["imagesha256"] != nil &&
pluginToolConfig["trcsha256"].(string) == pluginToolConfig["imagesha256"].(string) {
Expand Down Expand Up @@ -577,6 +578,7 @@ func CommonMain(envDefaultPtr *string,
}
}

// Create a file from deployPath and make copy the reader directly into file pointing at deployPath...
err = os.WriteFile(deployPath, pluginToolConfig["rawImageFile"].([]byte), 0644)
if err != nil {
fmt.Println(err.Error())
Expand Down
4 changes: 4 additions & 0 deletions pkg/core/util/repository/azrcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ func GetImageShaFromLayer(blobClient *azcontainerregistry.BlobClient, name strin

sha256 := hex.EncodeToString(hash.Sum(nil))

// Do sha256 here... If it matches and wantblob is set on the map, then goto 131.... repeat and write to file....
// If we do want the blob, pull deploypath logic from trcplgtool. and write to the expected location...
// Call new function with reader and pluginToolConfig to make the file...

return sha256, nil
}

Expand Down

0 comments on commit a679481

Please sign in to comment.