File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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.
1920func (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.
2628func (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 ) {
You can’t perform that action at this time.
0 commit comments