Skip to content

Commit

Permalink
Merge pull request #242 from fi-ts/remove-reversed-vpn-flag
Browse files Browse the repository at this point in the history
remove --reversed-vpn for cluster create
  • Loading branch information
mwennrich authored Jul 20, 2023
2 parents 3568654 + 74e948d commit 853620f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ func newClusterCmd(c *config) *cobra.Command {
clusterCreateCmd.Flags().Duration("healthtimeout", 0, "period (e.g. \"24h\") after which an unhealthy node is declared failed and will be replaced. [optional]")
clusterCreateCmd.Flags().Duration("draintimeout", 0, "period (e.g. \"3h\") after which a draining node will be forcefully deleted. [optional]")
clusterCreateCmd.Flags().Bool("encrypted-storage-classes", false, "enables the deployment of encrypted duros storage classes into the cluster. please refer to the user manual to properly use volume encryption. [optional]")
clusterCreateCmd.Flags().BoolP("reversed-vpn", "", false, "enables usage of reversed-vpn instead of konnectivity tunnel for worker connectivity. [optional]")
clusterCreateCmd.Flags().BoolP("autoupdate-kubernetes", "", false, "enables automatic updates of the kubernetes patch version of the cluster [optional]")
clusterCreateCmd.Flags().BoolP("autoupdate-machineimages", "", false, "enables automatic updates of the worker node images of the cluster, be aware that this deletes worker nodes! [optional]")
clusterCreateCmd.Flags().String("default-storage-class", "", "set default storage class to given name, must be one of the managed storage classes")
Expand Down Expand Up @@ -552,8 +551,6 @@ func (c *config) clusterCreate() error {
maintenanceBegin := "220000+0100"
maintenanceEnd := "233000+0100"

reversedVPN := strconv.FormatBool(viper.GetBool("reversed-vpn"))

version := viper.GetString("version")
if version == "" {
request := cluster.NewListConstraintsParams()
Expand Down Expand Up @@ -656,7 +653,8 @@ func (c *config) clusterCreate() error {
AdditionalNetworks: networks,
PartitionID: &partition,
ClusterFeatures: &models.V1ClusterFeatures{
ReversedVPN: &reversedVPN,
// always set reversed vpn for new clusters
ReversedVPN: pointer.Pointer("true"),
LogAcceptedConnections: &logAcceptedConnections,
DurosStorageEncryption: &encryptedStorageClasses,
},
Expand Down

0 comments on commit 853620f

Please sign in to comment.