Skip to content

Commit

Permalink
Updated const for corral-packge conflict on naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MSpencer87 committed Nov 1, 2024
1 parent b064619 commit fcba8b0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions clients/corral/corral.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
)

const (
debugFlag = "--trace"
skipCleanupFlag = "--skip-cleanup"
corralPrivateSSHKey = "corral_private_key"
corralPublicSSHKey = "corral_public_key"
corralRegistryIP = "bastion_ip"
corralRegistryPrivateIP = "bastion_private_ip"
debugFlag = "--trace"
skipCleanupFlag = "--skip-cleanup"
corralPrivateSSHKey = "corral_private_key"
corralPublicSSHKey = "corral_public_key"
corralBastionIP = "bastion_ip"
corralBastionPrivateIP = "bastion_private_ip"
)

// GetCorralEnvVar gets corral environment variables
Expand Down Expand Up @@ -350,20 +350,20 @@ func SetCorralSSHKeys(corralName string) error {

// SetCorralBastion is a helper function that will set the corral bastion private and pulic addresses previously generated by `corralName`
func SetCorralBastion(corralName string) error {
bastion_ip, err := GetCorralEnvVar(corralName, corralRegistryIP)
bastion_ip, err := GetCorralEnvVar(corralName, corralBastionIP)
if err != nil {
return err
}

err = UpdateCorralConfig(corralRegistryIP, bastion_ip)
err = UpdateCorralConfig(corralBastionIP, bastion_ip)
if err != nil {
return err
}

bastion_internal_ip, err := GetCorralEnvVar(corralName, corralRegistryPrivateIP)
bastion_internal_ip, err := GetCorralEnvVar(corralName, corralBastionPrivateIP)
if err != nil {
return err
}

return UpdateCorralConfig(corralRegistryPrivateIP, bastion_internal_ip)
return UpdateCorralConfig(corralBastionPrivateIP, bastion_internal_ip)
}

0 comments on commit fcba8b0

Please sign in to comment.