Skip to content

Commit

Permalink
Merge pull request #86 from bertinatto/dont-create-cc
Browse files Browse the repository at this point in the history
 Bug 1868339: Don't create CredentialsRequest in aws-ebs-csi-driver-operator
  • Loading branch information
openshift-merge-robot committed Sep 2, 2020
2 parents 3a5ffeb + 0825498 commit 06d21c0
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 65 deletions.
4 changes: 2 additions & 2 deletions assets/controller.yaml
Expand Up @@ -38,12 +38,12 @@ spec:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-cloud-credentials
name: ebs-cloud-credentials
key: aws_access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-cloud-credentials
name: ebs-cloud-credentials
key: aws_secret_access_key
ports:
- name: healthz
Expand Down
@@ -1,11 +1,11 @@
apiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
name: openshift-cluster-csi-drivers
name: aws-ebs-csi-driver-operator
namespace: openshift-cloud-credential-operator
spec:
secretRef:
name: aws-cloud-credentials
name: ebs-cloud-credentials
namespace: openshift-cluster-csi-drivers
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 2 additions & 53 deletions pkg/generated/bindata.go

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

8 changes: 0 additions & 8 deletions pkg/operator/starter.go
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"

dynamicclient "k8s.io/client-go/dynamic"
kubeclient "k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/klog/v2"
Expand All @@ -29,7 +28,6 @@ const (
func RunOperator(ctx context.Context, controllerConfig *controllercmd.ControllerContext) error {
// Create clientsets and informers
kubeClient := kubeclient.NewForConfigOrDie(rest.AddUserAgent(controllerConfig.KubeConfig, operatorName))
dynamicClient := dynamicclient.NewForConfigOrDie(rest.AddUserAgent(controllerConfig.KubeConfig, operatorName))
kubeInformersForNamespaces := v1helpers.NewKubeInformersForNamespaces(kubeClient, defaultNamespace, "")

// Create GenericOperatorclient. This is used by the library-go controllers created down below
Expand Down Expand Up @@ -67,12 +65,6 @@ func RunOperator(ctx context.Context, controllerConfig *controllercmd.Controller
"rbac/snapshotter_role.yaml",
"rbac/snapshotter_binding.yaml",
},
).WithCredentialsRequestController(
"AWSEBSDriverCredentialsRequestController",
defaultNamespace,
generated.MustAsset,
"credentials.yaml",
dynamicClient,
).WithCSIDriverControllerService(
"AWSEBSDriverControllerServiceController",
generated.MustAsset,
Expand Down

0 comments on commit 06d21c0

Please sign in to comment.