Skip to content

Commit af54b25

Browse files
committed
remove hegelurl
1 parent 2ca4378 commit af54b25

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

examples/baremetal-tinkerbell-machinedeployment.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,9 @@ spec:
2525
cloudProvider: "baremetal"
2626
cloudProviderSpec:
2727
driver: "tinkerbell"
28-
metadataClientConfig:
29-
endpoint:
30-
secretKeyRef:
31-
namespace: kube-system
32-
name: machine-controller-baremetal-tb
33-
key: endpoint
34-
authMethod:
35-
secretKeyRef:
36-
namespace: kube-system
37-
name: machine-controller-baremetal-tb
38-
key: authMethod
39-
username:
40-
secretKeyRef:
41-
namespace: kube-system
42-
name: machine-controller-baremetal-tb
43-
key: username
44-
password:
45-
secretKeyRef:
46-
namespace: kube-system
47-
name: machine-controller-baremetal-tb
48-
key: password
49-
token:
50-
secretKeyRef:
51-
namespace: kube-system
52-
name: machine-controller-baremetal-tb
53-
key: token
5428
driverSpec:
5529
clusterName: "<< CLUSTER_NAME >>"
5630
osImageUrl: "<< OS_IMAGE_URL >>"
57-
hegelUrl: "<< HEGEL_URL >>"
5831
auth:
5932
kubeconfig:
6033
value: "<< KUBECONFIG_BASE64 >>"

pkg/cloudprovider/provider/baremetal/plugins/tinkerbell/driver.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import (
4242
type driver struct {
4343
ClusterName string
4444
OSImageURL string
45-
HegelURL string
4645
TinkClient ctrlruntimeclient.Client
4746
//KubeClient ctrlruntimeclient.Client
4847
HardwareRef types.NamespacedName
@@ -84,7 +83,6 @@ func NewTinkerbellDriver(tinkConfig tinktypes.Config, tinkSpec *tinktypes.Tinker
8483
WorkflowClient: *wkClient,
8584
TemplateClient: *tmplClient,
8685
OSImageURL: tinkSpec.OSImageURL.Value,
87-
HegelURL: tinkSpec.HegelURL.Value,
8886
}
8987

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

207-
config.HegelURL, err = aa(driverConfig.HegelURL, "HEGEL_URL")
208-
if err != nil {
209-
return nil, fmt.Errorf(`failed to get value of "HegelURL" field: %w`, err)
210-
}
211-
212205
config.RestConfig, err = clientcmd.RESTConfigFromKubeConfig([]byte(config.Kubeconfig))
213206
if err != nil {
214207
return nil, fmt.Errorf("failed to decode kubeconfig: %w", err)

pkg/cloudprovider/provider/baremetal/plugins/tinkerbell/types/types.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ type TinkerbellPluginSpec struct {
4141
// Tinkerbell cluster API. This field is optional and should be provided if authentication is required.
4242
Auth Auth `json:"auth,omitempty"`
4343

44-
// HegelURL specifies the URL of the Hegel metadata server. This server is crucial
45-
// for the cloud-init process as it provides necessary metadata to the booting machines.
46-
HegelURL providerconfigtypes.ConfigVarString `json:"hegelUrl"`
47-
4844
// OSImageURL is the URL where the OS image for the Tinkerbell template is located.
4945
// This URL is used to download and stream the OS image during the provisioning process.
5046
OSImageURL providerconfigtypes.ConfigVarString `json:"osImageUrl"`
@@ -64,6 +60,5 @@ type Config struct {
6460
Kubeconfig string
6561
ClusterName string
6662
RestConfig *rest.Config
67-
HegelURL string
6863
OSImageURL string
6964
}

0 commit comments

Comments
 (0)