• k8s dev


    0. install golang 1.9.1

    https://golang.org/doc/install

    1. development.md

    https://github.com/kubernetes/community/blob/master/contributors/devel/development.md

     2. 配置国内的docker源

    http://www.jianshu.com/p/34d3b4568059

    3. Unable to find image 'gcr.io/google_containers/gen-swagger-docs:v8' locally

    因为墙的原因访问不到这个image,可以配置中科大的docker源后,使用如下命令下载

    docker pull docker.io/k82cn/gen-swagger-docs:v8

    然后标记tag为

    gcr.io/google_containers/gen-swagger-docs:v8

    4.unrecognized import path "golang.org/x/tools/go/vcs" (https fetch: Get https://golang.org/x/tools/go/vcs?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

    因为墙的原因下载不到golang.org/x/tools,可以从github上下载跟它一样的代码,然后重命名目录

    具体方法见这里   

    https://studygolang.com/articles/7131

    mkdir $GOPATH/src/golang.org

    ln -s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x

    cd $GOPATH/src/golang.org/x/tools/go/buildutil

    go install

    5.

    Step 1 : FROM gcr.io/google_containers/kube-cross:v1.9.2-1
    Trying to pull repository gcr.io/google_containers/kube-cross ...
    Get https://gcr.io/v1/_ping: dial tcp 74.125.204.82:443: i/o timeout

    还是墙的原因。。。

    docker pull docker.io/pickjob/kube-cross:v1.9.2-1

    docker tag xxx gcr.io/google_containers/kube-cross:v1.9.2-1

    6. centos 翻墙

    https://fanach.github.io/post/ss-linux/  

    7. mac go get 翻墙

    https://www.goodspb.net/mac-%E4%BD%BF%E7%94%A8-golang-%E7%BF%BB%E5%A2%99%E5%AE%9E%E5%BD%95/

    https://github.com/mrdulin/blog/issues/18

     

     

    8. 提交前的注意事项

    https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md#the-pr-submit-process and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide

     

     

    9. make verify

    [[0;31mFAILED TESTS^[[0m
    ========================
    ^[[0;31mhack/make-rules/../../hack/verify-api-groups.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-bazel.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-boilerplate.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-cli-conventions.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-generated-docs.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-generated-protobuf.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-godep-licenses.sh^[[0m

    KUBE_FORCE_VERIFY_CHECKS=y hack/verify-godeps.sh


    ^[[0;31mhack/make-rules/../../hack/verify-godeps.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-gofmt.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-golint.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-govet.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-openapi-spec.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-readonly-packages.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-swagger-spec.sh^[[0m
    ^[[0;31mhack/make-rules/../../hack/verify-symbols.sh^[[0m

  • 相关阅读:
    信步漫谈之Struts2—输入校验(编码方式)
    信步拾遗之Java反射机制浅析
    信步漫谈之Log4j—基础介绍
    Log4J基础详解及示例大全(转)
    设计模式之Bridge(桥接)(转)
    设计模式之Adapter(适配器)(转)
    设计模式之Facade(外观)(转)
    设计模式之Factory(工厂)(转)
    设计模式之Flyweight(享元)(转)
    基于CentOS7系统部署cobbler批量安装系统
  • 原文地址:https://www.cnblogs.com/elaron/p/7929967.html
Copyright © 2020-2023  润新知