Skip to content

Commit

Permalink
refactor(operator/inventory): retry discovery pod create
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Feb 2, 2024
1 parent f75eaa7 commit 80ff2ff
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 385 deletions.
248 changes: 0 additions & 248 deletions operator/inventory/annotation.go

This file was deleted.

106 changes: 0 additions & 106 deletions operator/inventory/annotation_test.go

This file was deleted.

7 changes: 6 additions & 1 deletion operator/inventory/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package inventory

import (
"errors"
"fmt"
"os"
"regexp"
Expand All @@ -13,6 +14,10 @@ import (
"gopkg.in/yaml.v3"
)

var (
errConfigInvalidVersion = errors.New("invalid version")
)

type ExcludeRules []*regexp.Regexp

type ConfigStorage struct {
Expand Down Expand Up @@ -182,7 +187,7 @@ loop:
switch node.Content[i].Value {
case "version":
if res.Version, err = semver.ParseTolerant(node.Content[i+1].Value); err != nil {
return fmt.Errorf("%w: %w", errCapabilitiesInvalidVersion, err)
return fmt.Errorf("%w: %w", errConfigInvalidVersion, err)
}
continue loop
case "cluster_storage":
Expand Down
Loading

0 comments on commit 80ff2ff

Please sign in to comment.