mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-28 22:28:50 +00:00
Fix flux migrate -f not considering kind comments
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
parent
f4a811fbd3
commit
7c5fb2297c
4 changed files with 5 additions and 4 deletions
|
|
@ -623,7 +623,8 @@ func (f *FileSystemMigrator) detectFileUpgrades(file string) ([]APIUpgrade, erro
|
|||
if idx == -1 {
|
||||
continue
|
||||
}
|
||||
kind := strings.TrimSpace(kindLine[idx+len(kindPrefix):])
|
||||
kindValuePrefix := strings.TrimSpace(kindLine[idx+len(kindPrefix):])
|
||||
kind := strings.Split(kindValuePrefix, " ")[0]
|
||||
|
||||
// Build GroupKind.
|
||||
gk := schema.GroupKind{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue