Skip to content

feat: ensure manifest folder in values repo#3097

Open
ElderMatt wants to merge 16 commits intomainfrom
APL-1729
Open

feat: ensure manifest folder in values repo#3097
ElderMatt wants to merge 16 commits intomainfrom
APL-1729

Conversation

@ElderMatt
Copy link
Copy Markdown
Contributor

This PR ensure that the manifests folders are always present in the values with a .gitkeep file.

image

Copy link
Copy Markdown
Contributor

@CasLubbers CasLubbers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is not wrong, but we already have a similar function for this: ensureTeamGitOpsDirectories https://github.com/linode/apl-core/blob/main/src/common/utils.ts#L218
We can consolidate the logic and re-use it for the manifests folder. I think it would also be good to call it in the same place.

@ElderMatt ElderMatt requested a review from CasLubbers April 1, 2026 07:59
@ElderMatt ElderMatt requested a review from j-zimnowoda April 2, 2026 13:33
if (!existsSync(dirname(keepFilePath))) {
await $`mkdir -p ${dirname(keepFilePath)}`
}
await ensureDirectoryWithGitkeepAsync(dirname(keepFilePath), deps)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is forwarding deps object necessary here?

describe('AplOperator', () => {
let aplOperator: AplOperator
let defaultConfig: AplOperatorConfig
const fs = require('fs')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if this is the best way to mock it. We use deps as dependency injection pattern which makes packing deps very easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants