Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Aspirate.Services/Implementations/KustomizeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ public async Task WriteSecretsOutToTempFiles(AspirateState state, List<string> f

foreach (var resourceSecrets in secretProvider.State.Secrets.Where(x => x.Value.Keys.Count > 0))
{
var resourcePath = fileSystem.Path.Combine(state.OutputPath, resourceSecrets.Key);
var manifestPath = (state.OutputPath ?? state.InputPath) ??
throw new InvalidOperationException("Could not write secret, manifest path not set.");

var resourcePath = fileSystem.Path.Combine(manifestPath, resourceSecrets.Key);

if (!fileSystem.Directory.Exists(resourcePath))
{
Expand Down