Skip to content

Commit fb9e519

Browse files
committed
skip Kargs asset generation
1 parent 5eca200 commit fb9e519

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/asset/agent/image/kargs.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/openshift/assisted-service/models"
88
"github.com/openshift/installer/pkg/asset"
99
"github.com/openshift/installer/pkg/asset/agent/manifests"
10+
"github.com/openshift/installer/pkg/asset/agent/workflow"
1011
)
1112

1213
// Kargs is an Asset that generates the additional kernel args.
@@ -18,14 +19,21 @@ type Kargs struct {
1819
// Dependencies returns the assets on which the Kargs asset depends.
1920
func (a *Kargs) Dependencies() []asset.Asset {
2021
return []asset.Asset{
22+
&workflow.AgentWorkflow{},
2123
&manifests.AgentClusterInstall{},
2224
}
2325
}
2426

2527
// Generate generates the kernel args configurations for the agent ISO image and PXE assets.
2628
func (a *Kargs) Generate(dependencies asset.Parents) error {
29+
agentWorkflow := &workflow.AgentWorkflow{}
2730
agentClusterInstall := &manifests.AgentClusterInstall{}
28-
dependencies.Get(agentClusterInstall)
31+
dependencies.Get(agentClusterInstall, agentWorkflow)
32+
33+
// Not required for AddNodes workflow
34+
if agentWorkflow.Workflow == workflow.AgentWorkflowTypeAddNodes {
35+
return nil
36+
}
2937

3038
// Add kernel args for external oci platform
3139
if agentClusterInstall.GetExternalPlatformName() == string(models.PlatformTypeOci) {

0 commit comments

Comments
 (0)