Skip to content

Commit

Permalink
fix(run): Use AssetNames in bindata so do not have to maintain separa…
Browse files Browse the repository at this point in the history
…te slice
  • Loading branch information
bostrt committed Jun 30, 2022
1 parent b656b5b commit f9ee083
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ type RunOptions struct {

const runTimeoutSeconds = 21600

var defaultPlugins = []string{
"manifests/openshift-kube-conformance.yaml",
"manifests/openshift-provider-cert-level-1.yaml",
"manifests/openshift-provider-cert-level-2.yaml",
"manifests/openshift-provider-cert-level-3.yaml",
}

func NewRunOptions(config *pkg.Config) *RunOptions {
return &RunOptions{
config: config,
Expand Down Expand Up @@ -247,7 +240,7 @@ func (r *RunOptions) Run() error {
if r.plugins == nil || len(*r.plugins) == 0 {
// Use default built-in plugins
log.Debugf("Loading default certification plugins")
for _, m := range defaultPlugins {
for _, m := range assets.AssetNames() {
log.Debugf("Loading certification plugin: %s", m)
asset, err := loader.LoadDefinition(assets.MustAsset(m))
if err != nil {
Expand Down

0 comments on commit f9ee083

Please sign in to comment.