Added more to README, tweaked pod, added service, fixed validation

This commit is contained in:
markturansky
2015-04-18 07:16:07 -04:00
parent b634f17ca7
commit 2cf4e6564b
7 changed files with 72 additions and 27 deletions

View File

@@ -18,6 +18,7 @@ package volumeclaimbinder
import (
"fmt"
"reflect"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
@@ -30,7 +31,6 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/watch"
"github.com/golang/glog"
"reflect"
)
// PersistentVolumeClaimBinder is a controller that synchronizes PersistentVolumeClaims.
@@ -94,7 +94,6 @@ func NewPersistentVolumeClaimBinder(kubeClient client.Interface, syncPeriod time
syncClaim(volumeIndex, binderClient, claim)
},
UpdateFunc: func(oldObj, newObj interface{}) {
// oldClaim := newObj.(*api.PersistentVolumeClaim)
newClaim := newObj.(*api.PersistentVolumeClaim)
if newClaim.Status.VolumeRef == nil {
syncClaim(volumeIndex, binderClient, newClaim)

View File

@@ -17,10 +17,10 @@ limitations under the License.
package volumeclaimbinder
import (
"fmt"
"reflect"
"testing"
"fmt"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/latest"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"

View File

@@ -17,9 +17,10 @@ limitations under the License.
package volumeclaimbinder
import (
"testing"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/resource"
"testing"
)
func TestMatchVolume(t *testing.T) {