Skip to content

Commit

Permalink
Removed unwanted usage of private key, set PULL_SECRET_TOKEN as requi…
Browse files Browse the repository at this point in the history
…red by assisted installer agent
  • Loading branch information
pawanpinjarkar committed Jun 5, 2024
1 parent 7c05aa0 commit 4fe147f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/asset/agent/image/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ func (a *Ignition) Generate(dependencies asset.Parents) error {
osImage,
infraEnv.Spec.Proxy,
imageTypeISO,
keyPairAsset.PrivateKey,
keyPairAsset.PublicKey,
caBundleMount)

Expand Down Expand Up @@ -372,9 +371,7 @@ func getTemplateData(name, pullSecret, releaseImageList, releaseImage,
infraEnvID string,
osImage *models.OsImage,
proxy *v1beta1.Proxy,
imageTypeISO,
privateKey, publicKey string,
caBundleMount string) *agentTemplateData {
imageTypeISO, publicKey, caBundleMount string) *agentTemplateData {
return &agentTemplateData{
ServiceProtocol: "http",
PullSecret: pullSecret,
Expand All @@ -390,7 +387,6 @@ func getTemplateData(name, pullSecret, releaseImageList, releaseImage,
OSImage: osImage,
Proxy: proxy,
ImageTypeISO: imageTypeISO,
PrivateKeyPEM: privateKey,
PublicKeyPEM: publicKey,
CaBundleMount: caBundleMount,
}
Expand All @@ -412,8 +408,9 @@ func getRendezvousHostEnv(serviceProtocol, nodeZeroIP, token string, workflowTyp
SERVICE_BASE_URL=%s
IMAGE_SERVICE_BASE_URL=%s
AGENT_AUTH_TOKEN=%s
PULL_SECRET_TOKEN=%s
WORKFLOW_TYPE=%s
`, nodeZeroIP, serviceBaseURL.String(), imageServiceBaseURL.String(), token, workflowType)
`, nodeZeroIP, serviceBaseURL.String(), imageServiceBaseURL.String(), token, token, workflowType)
}

func getAddNodesEnv(clusterInfo joiner.ClusterInfo) string {
Expand Down

0 comments on commit 4fe147f

Please sign in to comment.