mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-12 12:36:56 +00:00
Drop dir source and do http and docker source
Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
4
main.go
4
main.go
@@ -1099,12 +1099,12 @@ func validateSourceSysext(source string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
r, err := regexp.Compile(`^oci:|^dir:|^file:|^http:|^https:`)
|
||||
r, err := regexp.Compile(`^oci:|^file:|^http:|^https:`)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !r.MatchString(source) {
|
||||
return fmt.Errorf("source %s does not match any of oci:, dir:, file: or http(s): ", source)
|
||||
return fmt.Errorf("source %s does not match any of oci:, file: or http(s): ", source)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user