golint cleanup for the operator

This commit is contained in:
Travis Nielsen committed 2017-07-24 17:24:24 -07:00
1 parent 88905f279b
commit f3640887f3
37 files changed
+214 -94

No files matched your search

+3
View File
@@ -13,6 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Package test for the operator tests.
package test
import (
@@ -22,6 +24,7 @@ import (
"k8s.io/client-go/kubernetes/fake"
)
// New creates a fake K8s cluster
func New(nodes int) *fake.Clientset {
clientset := fake.NewSimpleClientset()
for i := 0; i < nodes; i++ {
+3
View File
@@ -13,6 +13,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Package test for the operator tests
package test
import (
@@ -21,6 +23,7 @@ import (
"github.com/rook/rook/pkg/ceph/mon"
)
// CreateClusterInfo creates a test cluster
func CreateClusterInfo(mons int) *mon.ClusterInfo {
c := &mon.ClusterInfo{
FSID: "12345",