Skip to content

Commit

Permalink
Add support for Equinix Metal
Browse files Browse the repository at this point in the history
  • Loading branch information
detiber committed Jan 14, 2021
1 parent e0ae005 commit bc13f83
Show file tree
Hide file tree
Showing 635 changed files with 56,739 additions and 17,397 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ data:
azure_region: Base64encodeRegion
```
### Equinix Metal
```yaml
apiVersion: v1
kind: Secret
metadata:
namespace: kube-system
name: equinix-metal-credentials
data:
EQUINIX_METAL_API_KEY: EquinixMetalAPIKey
```
### GCP
```yaml
Expand Down Expand Up @@ -212,6 +224,7 @@ Cloud | Mint | Mint + Remove Admin Cred | Passthrough | Manual | Token
--- | --- | --- | --- | --- | ---
AWS | Y | 4.4+ | Y | 4.3+ | 4.6+ (expected)
Azure | Y | N | Y | unknown | N
EquinixMetal | N | N | 4.x+ (expected) | N | N
GCP | Y | 4.7+ | Y | unknown | N
KubeVirt | N | N | Y | N | N
OpenStack | N | N | Y | N | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: cloudcredentials.operator.openshift.io
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
spec:
scope: Cluster
group: operator.openshift.io
Expand Down
21 changes: 11 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ go 1.13
require (
cloud.google.com/go v0.56.0
github.com/Azure/azure-sdk-for-go v31.1.0+incompatible
github.com/Azure/go-autorest/autorest v0.10.0
github.com/Azure/go-autorest/autorest/adal v0.8.3
github.com/Azure/go-autorest/autorest v0.11.1
github.com/Azure/go-autorest/autorest/adal v0.9.5
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2
github.com/Azure/go-autorest/autorest/date v0.2.0
github.com/Azure/go-autorest/autorest/date v0.3.0
github.com/Azure/go-autorest/autorest/to v0.3.0
github.com/Azure/go-autorest/autorest/validation v0.2.0 // indirect
github.com/aws/aws-sdk-go v1.30.5
Expand All @@ -18,8 +18,7 @@ require (
github.com/go-logr/zapr v0.2.0 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/mock v1.4.3
github.com/google/go-cmp v0.5.1 // indirect
github.com/google/uuid v1.1.1
github.com/google/uuid v1.1.2
github.com/googleapis/gnostic v0.5.1 // indirect
github.com/imdario/mergo v0.3.10 // indirect
github.com/onsi/ginkgo v1.14.0 // indirect
Expand All @@ -32,7 +31,7 @@ require (
github.com/sirupsen/logrus v1.6.0
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.5.1
github.com/stretchr/testify v1.6.1
go.uber.org/zap v1.15.0 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e
Expand All @@ -41,9 +40,11 @@ require (
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
google.golang.org/grpc v1.28.0
k8s.io/api v0.19.2
k8s.io/apimachinery v0.19.2
k8s.io/client-go v0.19.2
k8s.io/code-generator v0.19.2
k8s.io/api v0.20.0
k8s.io/apimachinery v0.20.0
k8s.io/client-go v0.20.0
k8s.io/code-generator v0.20.0
sigs.k8s.io/controller-runtime v0.6.2
)

replace github.com/openshift/api => github.com/detiber/api v0.0.0-20210113181726-19e9a251beff
86 changes: 69 additions & 17 deletions go.sum

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions manifests/00-config-custresdef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: cloudcredentials.operator.openshift.io
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
spec:
scope: Cluster
group: operator.openshift.io
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/cloudcredential/v1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&GCPProviderStatus{}, &GCPProviderSpec{},
&VSphereProviderStatus{}, &VSphereProviderSpec{},
&KubevirtProviderStatus{}, &KubevirtProviderSpec{},
&EquinixMetalProviderStatus{}, &EquinixMetalProviderSpec{},
)

return nil
Expand Down
37 changes: 37 additions & 0 deletions pkg/apis/cloudcredential/v1/types_equinixmetal.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
Copyright 2020 The OpenShift Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// TODO: these types should eventually be broken out, along with the actuator,
// to a separate repo.

// EquinixMetalProviderSpec contains the required information to create RBAC role
// bindings for EquinixMetal.
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type EquinixMetalProviderSpec struct {
metav1.TypeMeta `json:",inline"`
}

// EquinixMetalProviderStatus contains the status of the credentials request in EquinixMetal.
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type EquinixMetalProviderStatus struct {
metav1.TypeMeta `json:",inline"`
}
50 changes: 50 additions & 0 deletions pkg/apis/cloudcredential/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/assets/bootstrap/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bc13f83

Please sign in to comment.