Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
string data encodes by default?
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ha <chuckh@vmware.com>
  • Loading branch information
chuckha committed Jun 18, 2019
1 parent 3e90c24 commit b3ab4d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions capkactuators/actuators.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package capkactuators

import (
"encoding/base64"
"fmt"
"io/ioutil"

Expand Down Expand Up @@ -108,7 +107,7 @@ func kubeconfigToSecret(clusterName, namespace string) (*v1.Secret, error) {
Namespace: namespace,
},
StringData: map[string]string{
"kubeconfig": base64.StdEncoding.EncodeToString(data),
"kubeconfig": string(data),
},
}, nil
}

0 comments on commit b3ab4d6

Please sign in to comment.