Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #38 from ericchiang/1.6
Browse files Browse the repository at this point in the history
*: add support for 1.6 types
  • Loading branch information
ericchiang authored Mar 27, 2017
2 parents f1ec318 + c19d9dc commit bd3351b
Show file tree
Hide file tree
Showing 32 changed files with 41,530 additions and 11,183 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ import (

"github.com/ericchiang/k8s"
"github.com/ericchiang/k8s/api/v1"
metav1 "github.com/ericchiang/k8s/apis/meta/v1"
)

func createConfigMap(client *k8s.Client, name string, values map[string]string) error {
cm := &v1.ConfigMap{
Metadata: &v1.ObjectMeta{
Metadata: &metav1.ObjectMeta{
Name: &name,
Namespace: &client.Namespace,
},
Expand Down Expand Up @@ -134,7 +135,7 @@ Errors returned by the Kubernetes API are formatted as [`unversioned.Status`][un
// exists.
func createConfigMap(client *k8s.Client, name string, values map[string]string) error {
cm := &v1.ConfigMap{
Metadata: &v1.ObjectMeta{
Metadata: &metav1.ObjectMeta{
Name: &name,
Namespace: &client.Namespace,
},
Expand Down
Loading

0 comments on commit bd3351b

Please sign in to comment.