mirror of
https://github.com/mudler/luet.git
synced 2025-09-15 23:00:04 +00:00
pkg/compiler/artifact.go: permit to support config protect with only annotation
This commit is contained in:
@@ -332,9 +332,7 @@ func (a *PackageArtifact) GetProtectFiles() []string {
|
|||||||
ans := []string{}
|
ans := []string{}
|
||||||
annotationDir := ""
|
annotationDir := ""
|
||||||
|
|
||||||
if !LuetCfg.ConfigProtectSkip &&
|
if !LuetCfg.ConfigProtectSkip {
|
||||||
LuetCfg.GetConfigProtectConfFiles() != nil &&
|
|
||||||
len(LuetCfg.GetConfigProtectConfFiles()) > 0 {
|
|
||||||
|
|
||||||
if a.CompileSpec.GetPackage().HasAnnotation(string(pkg.ConfigProtectAnnnotation)) {
|
if a.CompileSpec.GetPackage().HasAnnotation(string(pkg.ConfigProtectAnnnotation)) {
|
||||||
dir, ok := a.CompileSpec.GetPackage().GetAnnotations()[string(pkg.ConfigProtectAnnnotation)]
|
dir, ok := a.CompileSpec.GetPackage().GetAnnotations()[string(pkg.ConfigProtectAnnnotation)]
|
||||||
|
Reference in New Issue
Block a user