Skip to content

Commit

Permalink
Add a CredentialsRequest to the ARO operator deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimorris27 committed Nov 8, 2023
1 parent edccb1e commit d82c212
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pkg/operator/deploy/staticresources/credentialsrequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
annotations:
exclude.release.openshift.io/internal-openshift-hosted: "true"
include.release.openshift.io/self-managed-high-availability: "true"
finalizers:
- cloudcredential.openshift.io/deprovision
generation: 1
labels:
controller-tools.k8s.io: "1.0"
name: openshift-azure-operator
namespace: openshift-cloud-credential-operator
spec:
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
kind: AzureProviderSpec
roleBindings:
- role: Contributor
secretRef:
name: azure-cloud-credentials
namespace: openshift-azure-operator
serviceAccountNames:
- aro-operator-master
2 changes: 2 additions & 0 deletions pkg/util/scheme/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
machinev1beta1 "github.com/openshift/api/machine/v1beta1"
operatorv1 "github.com/openshift/api/operator/v1"
securityv1 "github.com/openshift/api/security/v1"
cloudcredentialv1 "github.com/openshift/cloud-credential-operator/pkg/apis/cloudcredential/v1"
hivev1 "github.com/openshift/hive/apis/hive/v1"
mcv1 "github.com/openshift/machine-config-operator/pkg/apis/machineconfiguration.openshift.io/v1"
monitoringv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
Expand Down Expand Up @@ -47,6 +48,7 @@ func init() {
utilruntime.Must(consolev1.AddToScheme(scheme.Scheme))
utilruntime.Must(monitoringv1.AddToScheme(scheme.Scheme))
utilruntime.Must(operatorv1.AddToScheme(scheme.Scheme))
utilruntime.Must(cloudcredentialv1.AddToScheme(scheme.Scheme))
// AzureMachineProviderSpec is not registered by default
scheme.Scheme.AddKnownTypes(machinev1beta1.GroupVersion, &machinev1beta1.AzureMachineProviderSpec{})
// AzureMachineProviderSpec type has been deleted from sigs.k8s.io/cluster-api-provider-azure.
Expand Down

0 comments on commit d82c212

Please sign in to comment.