Skip to content

Commit

Permalink
remove hegelurl
Browse files Browse the repository at this point in the history
  • Loading branch information
moadqassem committed Jul 25, 2024
1 parent 2ca4378 commit af54b25
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
27 changes: 0 additions & 27 deletions examples/baremetal-tinkerbell-machinedeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,9 @@ spec:
cloudProvider: "baremetal"
cloudProviderSpec:
driver: "tinkerbell"
metadataClientConfig:
endpoint:
secretKeyRef:
namespace: kube-system
name: machine-controller-baremetal-tb
key: endpoint
authMethod:
secretKeyRef:
namespace: kube-system
name: machine-controller-baremetal-tb
key: authMethod
username:
secretKeyRef:
namespace: kube-system
name: machine-controller-baremetal-tb
key: username
password:
secretKeyRef:
namespace: kube-system
name: machine-controller-baremetal-tb
key: password
token:
secretKeyRef:
namespace: kube-system
name: machine-controller-baremetal-tb
key: token
driverSpec:
clusterName: "<< CLUSTER_NAME >>"
osImageUrl: "<< OS_IMAGE_URL >>"
hegelUrl: "<< HEGEL_URL >>"
auth:
kubeconfig:
value: "<< KUBECONFIG_BASE64 >>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import (
type driver struct {
ClusterName string
OSImageURL string
HegelURL string
TinkClient ctrlruntimeclient.Client
//KubeClient ctrlruntimeclient.Client
HardwareRef types.NamespacedName
Expand Down Expand Up @@ -84,7 +83,6 @@ func NewTinkerbellDriver(tinkConfig tinktypes.Config, tinkSpec *tinktypes.Tinker
WorkflowClient: *wkClient,
TemplateClient: *tmplClient,
OSImageURL: tinkSpec.OSImageURL.Value,
HegelURL: tinkSpec.HegelURL.Value,
}

return &d, nil
Expand Down Expand Up @@ -204,11 +202,6 @@ func GetConfig(driverConfig tinktypes.TinkerbellPluginSpec, aa func(configVar pr
return nil, fmt.Errorf(`failed to get value of "OSImageURL" field: %w`, err)
}

config.HegelURL, err = aa(driverConfig.HegelURL, "HEGEL_URL")
if err != nil {
return nil, fmt.Errorf(`failed to get value of "HegelURL" field: %w`, err)
}

config.RestConfig, err = clientcmd.RESTConfigFromKubeConfig([]byte(config.Kubeconfig))
if err != nil {
return nil, fmt.Errorf("failed to decode kubeconfig: %w", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ type TinkerbellPluginSpec struct {
// Tinkerbell cluster API. This field is optional and should be provided if authentication is required.
Auth Auth `json:"auth,omitempty"`

// HegelURL specifies the URL of the Hegel metadata server. This server is crucial
// for the cloud-init process as it provides necessary metadata to the booting machines.
HegelURL providerconfigtypes.ConfigVarString `json:"hegelUrl"`

// OSImageURL is the URL where the OS image for the Tinkerbell template is located.
// This URL is used to download and stream the OS image during the provisioning process.
OSImageURL providerconfigtypes.ConfigVarString `json:"osImageUrl"`
Expand All @@ -64,6 +60,5 @@ type Config struct {
Kubeconfig string
ClusterName string
RestConfig *rest.Config
HegelURL string
OSImageURL string
}

0 comments on commit af54b25

Please sign in to comment.