Skip to content

Commit

Permalink
Add support for Equinix Metal cloud provider (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedwaleedmalik committed Jan 6, 2022
1 parent 5d0313a commit 6d4282c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/crd/crd-operating-system-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
- kubevirt
- linode
- openstack
- packet
- equinixmetal
- vsphere
- fake
- alibaba
Expand Down
2 changes: 1 addition & 1 deletion deploy/crd/crd-operating-system-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ spec:
- kubevirt
- linode
- openstack
- packet
- equinixmetal
- vsphere
- fake
- alibaba
Expand Down
1 change: 1 addition & 0 deletions deploy/osps/default/osp-centos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- name: "aws"
- name: "azure"
- name: "digitalocean"
- name: "equinixmetal"
- name: "hetzner"
- name: "kubevirt"
- name: "openstack"
Expand Down
1 change: 1 addition & 0 deletions deploy/osps/default/osp-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
- name: "aws"
- name: "azure"
- name: "digitalocean"
- name: "equinixmetal"
- name: "gce"
- name: "hetzner"
- name: "kubevirt"
Expand Down
4 changes: 2 additions & 2 deletions pkg/cloudprovider/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func GetCloudConfig(pconfig providerconfigtypes.Config, kubeletVersion string) (

// cloud-config is not required for these cloud providers
case osmv1alpha1.CloudProviderAlibaba, osmv1alpha1.CloudProviderAnexia, osmv1alpha1.CloudProviderDigitalocean,
osmv1alpha1.CloudProviderHetzner, osmv1alpha1.CloudProviderLinode, osmv1alpha1.CloudProviderPacket,
osmv1alpha1.CloudProviderHetzner, osmv1alpha1.CloudProviderLinode, osmv1alpha1.CloudProviderEquinixMetal,
osmv1alpha1.CloudProviderScaleway:
return "", nil
}
Expand All @@ -68,7 +68,7 @@ func KubeletCloudProviderName(cloudProvider providerconfigtypes.CloudProvider) (
return osmv1alpha1.CloudProviderExternal, nil

case osmv1alpha1.CloudProviderAlibaba, osmv1alpha1.CloudProviderAnexia, osmv1alpha1.CloudProviderDigitalocean,
osmv1alpha1.CloudProviderHetzner, osmv1alpha1.CloudProviderLinode, osmv1alpha1.CloudProviderPacket,
osmv1alpha1.CloudProviderHetzner, osmv1alpha1.CloudProviderLinode, osmv1alpha1.CloudProviderEquinixMetal,
osmv1alpha1.CloudProviderScaleway:
return "", nil
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/crd/osm/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
)

// CloudProvider represents supported cloud provider.
// +kubebuilder:validation:Enum=aws;azure;digitalocean;gce;hetzner;kubevirt;linode;openstack;packet;vsphere;fake;alibaba;anexia;scaleway;baremetal;external
// +kubebuilder:validation:Enum=aws;azure;digitalocean;gce;hetzner;kubevirt;linode;openstack;equinixmetal;vsphere;fake;alibaba;anexia;scaleway;baremetal;external
type CloudProvider string

const (
Expand All @@ -46,7 +46,7 @@ const (
CloudProviderKubeVirt CloudProvider = "kubevirt"
CloudProviderLinode CloudProvider = "linode"
CloudProviderOpenstack CloudProvider = "openstack"
CloudProviderPacket CloudProvider = "packet"
CloudProviderEquinixMetal CloudProvider = "equinixmetal"
CloudProviderVsphere CloudProvider = "vsphere"
CloudProviderFake CloudProvider = "fake"
CloudProviderAlibaba CloudProvider = "alibaba"
Expand Down

0 comments on commit 6d4282c

Please sign in to comment.