in src/bake.ts [106:161]
private async getHelmTemplateArgs(
chartPath: string,
isV3: boolean
): Promise<string[]> {
const releaseName = core.getInput('releaseName', {required: false})
let args: string[] = []
args.push('template')
const templateArgs = await getTemplateArguments()
args = args.concat(templateArgs)
const namespace = core.getInput('namespace', {required: false})
if (namespace) {
args.push('--namespace')
args.push(namespace)
}
if (isV3) {
if (releaseName) {
args.push(releaseName)
}
} else {
if (releaseName) {
args.push('--name')
args.push(releaseName)
}
}
args.push(chartPath)
const overrideFilesInput = core.getInput('overrideFiles', {
required: false
})
if (!!overrideFilesInput) {
core.debug('Adding overrides file inputs')
const overrideFiles = overrideFilesInput.split('\n')
if (overrideFiles.length > 0) {
overrideFiles.forEach((file) => {
args.push('-f')
args.push(file)
})
}
}
const overridesInput = core.getInput('overrides', {required: false})
if (!!overridesInput) {
core.debug('Adding overrides inputs')
const overrides = overridesInput.split('\n')
if (overrides.length > 0) {
const overrideValues = this.getOverrideValues(overrides)
overrideValues.forEach((overrideValue) => {
args.push('--set')
args.push(`${overrideValue.name}=${overrideValue.value}`)
})
}
}
return args
}