From ccf3f7e10a1c74e0f53e1c6d4ed20cf83fd8d954 Mon Sep 17 00:00:00 2001 From: EDGsheryl Date: Tue, 3 Mar 2020 18:08:08 +0800 Subject: [PATCH 1/3] fix comment, add +optional flag to comment. keep consistence to Kubernetes. --- pkg/apis/tensorflow/v1/types.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/apis/tensorflow/v1/types.go b/pkg/apis/tensorflow/v1/types.go index 9042be7ac3..0eaf0c5a31 100644 --- a/pkg/apis/tensorflow/v1/types.go +++ b/pkg/apis/tensorflow/v1/types.go @@ -29,13 +29,17 @@ type TFJob struct { metav1.TypeMeta `json:",inline"` // Standard Kubernetes object's metadata. + // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired state of the TFJob. + // +optional Spec TFJobSpec `json:"spec,omitempty"` // Most recently observed status of the TFJob. - // Read-only (modified by the system). + // Populated by the system. + // Read-only. + // +optional Status common.JobStatus `json:"status,omitempty"` } @@ -53,6 +57,7 @@ type TFJobSpec struct { // Defines the policy for cleaning up pods after the TFJob completes. // Defaults to Running. + // +optional CleanPodPolicy *common.CleanPodPolicy `json:"cleanPodPolicy,omitempty"` // Defines the TTL for cleaning up finished TFJobs (temporary @@ -60,6 +65,7 @@ type TFJobSpec struct { // It may take extra ReconcilePeriod seconds for the cleanup, since // reconcile gets called periodically. // Defaults to infinite. + // +optional TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` // A map of TFReplicaType (type) to ReplicaSpec (value). Specifies the TF cluster configuration. @@ -105,6 +111,7 @@ type TFJobList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. + // +optional metav1.ListMeta `json:"metadata,omitempty"` // List of TFJobs. From a7de4eb6a2396ea064a65cf283b81e058e4b7478 Mon Sep 17 00:00:00 2001 From: EDGsheryl Date: Tue, 3 Mar 2020 18:51:12 +0800 Subject: [PATCH 2/3] fix comment --- Gopkg.lock | 307 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 278 insertions(+), 29 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index bd5b07270b..7e412b8a36 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -2,327 +2,451 @@ [[projects]] + digest = "1:4d6f036ea3fe636bcb2e89850bcdc62a771354e157cd51b8b22a2de8562bf663" name = "cloud.google.com/go" packages = ["compute/metadata"] + pruneopts = "NUT" revision = "c9474f2f8deb81759839474b6bd1726bbfe1c1c4" version = "v0.36.0" [[projects]] + digest = "1:d8ebbd207f3d3266d4423ce4860c9f3794956306ded6c7ba312ecc69cdfbf04c" name = "github.com/PuerkitoBio/purell" packages = ["."] + pruneopts = "NUT" revision = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4" version = "v1.1.0" [[projects]] branch = "master" + digest = "1:8098cd40cd09879efbf12e33bcd51ead4a66006ac802cd563a66c4f3373b9727" name = "github.com/PuerkitoBio/urlesc" packages = ["."] + pruneopts = "NUT" revision = "de5bf2ad457846296e2031421a34e2568e304e35" [[projects]] + digest = "1:707ebe952a8b3d00b343c01536c79c73771d100f63ec6babeaed5c79e2b8a8dd" name = "github.com/beorn7/perks" packages = ["quantile"] + pruneopts = "NUT" revision = "4b2b341e8d7715fae06375aa633dbb6e91b3fb46" version = "v1.0.0" [[projects]] + digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" name = "github.com/davecgh/go-spew" packages = ["spew"] + pruneopts = "NUT" revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" version = "v1.1.1" [[projects]] + digest = "1:4189ee6a3844f555124d9d2656fe7af02fca961c2a9bad9074789df13a0c62e0" name = "github.com/docker/distribution" packages = [ "digestset", - "reference" + "reference", ] + pruneopts = "NUT" revision = "edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c" [[projects]] + digest = "1:2aa58f7bf714a480d6c982c8a4c972ee6c235e2c7bc1f42a3df52f7170746ac6" name = "github.com/emicklei/go-restful" packages = [ ".", - "log" + "log", ] + pruneopts = "NUT" revision = "e37671aced663c8d3a395bd301857e26dcf4340c" version = "v2.8.1" [[projects]] + digest = "1:81466b4218bf6adddac2572a30ac733a9255919bc2f470b4827a317bd4ee1756" name = "github.com/ghodss/yaml" packages = ["."] + pruneopts = "NUT" revision = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7" version = "v1.0.0" [[projects]] + digest = "1:260f7ebefc63024c8dfe2c9f1a2935a89fa4213637a1f522f592f80c001cc441" name = "github.com/go-openapi/jsonpointer" packages = ["."] + pruneopts = "NUT" revision = "ef5f0afec364d3b9396b7b77b43dbe26bf1f8004" version = "v0.18.0" [[projects]] + digest = "1:98abd61947ff5c7c6fcfec5473d02a4821ed3a2dd99a4fbfdb7925b0dd745546" name = "github.com/go-openapi/jsonreference" packages = ["."] + pruneopts = "NUT" revision = "8483a886a90412cd6858df4ea3483dce9c8e35a3" version = "v0.18.0" [[projects]] + digest = "1:4da4ea0a664ba528965683d350f602d0f11464e6bb2e17aad0914723bc25d163" name = "github.com/go-openapi/spec" packages = ["."] + pruneopts = "NUT" revision = "5b6cdde3200976e3ecceb2868706ee39b6aff3e4" version = "v0.18.0" [[projects]] + digest = "1:dc0f590770e5a6c70ea086232324f7b7dc4857c60eca63ab8ff78e0a5cfcdbf3" name = "github.com/go-openapi/swag" packages = ["."] + pruneopts = "NUT" revision = "1d29f06aebd59ccdf11ae04aa0334ded96e2d909" version = "v0.18.0" [[projects]] + digest = "1:abea725bcf0210887f5da19d804fffa1dd45a42a56bdf5f02322345e3fee4f0d" name = "github.com/gogo/protobuf" packages = [ "proto", - "sortkeys" + "sortkeys", ] + pruneopts = "NUT" revision = "4cbf7e384e768b4e01799441fdf2a706a5635ae7" version = "v1.2.0" [[projects]] branch = "master" + digest = "1:e2b86e41f3d669fc36b50d31d32d22c8ac656c75aa5ea89717ce7177e134ff2a" name = "github.com/golang/glog" packages = ["."] + pruneopts = "NUT" revision = "23def4e6c14b4da8ac2ed8007337bc5eb5007998" [[projects]] branch = "master" + digest = "1:b7cb6054d3dff43b38ad2e92492f220f57ae6087ee797dca298139776749ace8" name = "github.com/golang/groupcache" packages = ["lru"] + pruneopts = "NUT" revision = "5b532d6fd5efaf7fa130d4e859a2fde0fc3a9e1b" [[projects]] + digest = "1:63ccdfbd20f7ccd2399d0647a7d100b122f79c13bb83da9660b1598396fd9f62" name = "github.com/golang/protobuf" packages = [ "proto", "ptypes", "ptypes/any", "ptypes/duration", - "ptypes/timestamp" + "ptypes/timestamp", ] + pruneopts = "NUT" revision = "aa810b61a9c79d51363740d207bb46cf8e620ed5" version = "v1.2.0" [[projects]] branch = "master" + digest = "1:05f95ffdfcf651bdb0f05b40b69e7f5663047f8da75c72d58728acb59b5cc107" name = "github.com/google/btree" packages = ["."] + pruneopts = "NUT" revision = "4030bb1f1f0c35b30ca7009e9ebd06849dd45306" [[projects]] branch = "master" + digest = "1:52c5834e2bebac9030c97cc0798ac11c3aa8a39f098aeb419f142533da6cd3cc" name = "github.com/google/gofuzz" packages = ["."] + pruneopts = "NUT" revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1" [[projects]] + digest = "1:ab3ec1fe3e39bac4b3ab63390767766622be35b7cab03f47f787f9ec60522a53" name = "github.com/google/uuid" packages = ["."] + pruneopts = "NUT" revision = "0cd6bf5da1e1c83f8b45653022c74f71af0538a4" version = "v1.1.1" [[projects]] + digest = "1:06a7dadb7b760767341ffb6c8d377238d68a1226f2b21b5d497d2e3f6ecf6b4e" name = "github.com/googleapis/gnostic" packages = [ "OpenAPIv2", "compiler", - "extensions" + "extensions", ] + pruneopts = "NUT" revision = "7c663266750e7d82587642f65e60bc4083f1f84e" version = "v0.2.0" [[projects]] branch = "master" + digest = "1:a86d65bc23eea505cd9139178e4d889733928fe165c7a008f41eaab039edf9df" name = "github.com/gregjones/httpcache" packages = [ ".", - "diskcache" + "diskcache", ] + pruneopts = "NUT" revision = "7a902570cb17174de4ac788094f8ebedec136f57" [[projects]] + digest = "1:b42cde0e1f3c816dd57f57f7bbcf05ca40263ad96f168714c130c611fc0856a6" name = "github.com/hashicorp/golang-lru" packages = [ ".", - "simplelru" + "simplelru", ] + pruneopts = "NUT" revision = "20f1fb78b0740ba8c3cb143a61e86ba5c8669768" version = "v0.5.0" [[projects]] + digest = "1:aaa38889f11896ee3644d77e17dc7764cc47f5f3d3b488268df2af2b52541c5f" name = "github.com/imdario/mergo" packages = ["."] + pruneopts = "NUT" revision = "7c29201646fa3de8506f701213473dd407f19646" version = "v0.3.7" [[projects]] + digest = "1:8e36686e8b139f8fe240c1d5cf3a145bc675c22ff8e707857cdd3ae17b00d728" name = "github.com/json-iterator/go" packages = ["."] + pruneopts = "NUT" revision = "1624edc4454b8682399def8740d46db5e4362ba4" version = "v1.1.5" [[projects]] + digest = "1:4059c14e87a2de3a434430340521b5feece186c1469eff0834c29a63870de3ed" name = "github.com/konsorten/go-windows-terminal-sequences" packages = ["."] + pruneopts = "NUT" revision = "5c8c8bd35d3832f5d134ae1e1e375b69a4d25242" version = "v1.0.1" [[projects]] branch = "master" + digest = "1:77edf86659dbc30631c76be50d5ba4a22dabc4a3a3e236b6f96854f21333034b" name = "github.com/kubeflow/common" packages = ["job_controller/api/v1"] + pruneopts = "NUT" revision = "09e1ac17011c3a384d4123381ac3bb0128402dbf" [[projects]] + branch = "master" + digest = "1:2ba84ac2019c51a749d704eec204a02ede3521df5984a029bc104c8d874931df" + name = "github.com/kubeflow/tf-operator" + packages = [ + "cmd/tf-operator.v1/app", + "cmd/tf-operator.v1/app/options", + "pkg/apis/tensorflow/v1", + "pkg/apis/tensorflow/validation", + "pkg/client/clientset/versioned", + "pkg/client/clientset/versioned/scheme", + "pkg/client/clientset/versioned/typed/tensorflow/v1", + "pkg/client/clientset/versioned/typed/tensorflow/v1/fake", + "pkg/client/informers/externalversions", + "pkg/client/informers/externalversions/internalinterfaces", + "pkg/client/informers/externalversions/tensorflow", + "pkg/client/informers/externalversions/tensorflow/v1", + "pkg/client/listers/tensorflow/v1", + "pkg/common/jobcontroller", + "pkg/common/util/v1/testutil", + "pkg/common/util/v1/unstructured", + "pkg/control", + "pkg/controller.v1/tensorflow", + "pkg/logger", + "pkg/util", + "pkg/util/k8sutil", + "pkg/util/signals", + "pkg/util/train", + "pkg/version", + ] + pruneopts = "NUT" + revision = "d455e6ef57dc2cb85315ea8ad9281fe5e9c6c9f3" + +[[projects]] + digest = "1:680c0fba95a0cff934e350b1ad6774d8229378a3e37d9902e07e2861e82a5908" name = "github.com/kubernetes-sigs/kube-batch" packages = [ "pkg/apis/scheduling/v1alpha1", "pkg/client/clientset/versioned", "pkg/client/clientset/versioned/scheme", - "pkg/client/clientset/versioned/typed/scheduling/v1alpha1" + "pkg/client/clientset/versioned/typed/scheduling/v1alpha1", ] + pruneopts = "NUT" revision = "b0dbd4f2df590237cecee48f463bfb8746cfa357" version = "v0.3" [[projects]] branch = "master" + digest = "1:84a5a2b67486d5d67060ac393aa255d05d24ed5ee41daecd5635ec22657b6492" name = "github.com/mailru/easyjson" packages = [ "buffer", "jlexer", - "jwriter" + "jwriter", ] + pruneopts = "NUT" revision = "60711f1a8329503b04e1c88535f419d0bb440bff" [[projects]] + digest = "1:5985ef4caf91ece5d54817c11ea25f182697534f8ae6521eadcd628c142ac4b6" name = "github.com/matttproud/golang_protobuf_extensions" packages = ["pbutil"] + pruneopts = "NUT" revision = "c12348ce28de40eed0136aa2b644d0ee0650e56c" version = "v1.0.1" [[projects]] + digest = "1:2f42fa12d6911c7b7659738758631bec870b7e9b4c6be5444f963cdcfccc191f" name = "github.com/modern-go/concurrent" packages = ["."] + pruneopts = "NUT" revision = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94" version = "1.0.3" [[projects]] + digest = "1:c6aca19413b13dc59c220ad7430329e2ec454cc310bc6d8de2c7e2b93c18a0f6" name = "github.com/modern-go/reflect2" packages = ["."] + pruneopts = "NUT" revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" version = "1.0.1" [[projects]] + digest = "1:96df5bdca983e4b8c62682af5b67100b187d582ac6db0968d8af52e84138d1e6" name = "github.com/onrik/logrus" packages = ["filename"] + pruneopts = "NUT" revision = "a09d5cdcdc628f91fda03e7dcaf2b9a624aae49c" version = "0.2.2" [[projects]] + digest = "1:e0cc8395ea893c898ff5eb0850f4d9851c1f57c78c232304a026379a47a552d0" name = "github.com/opencontainers/go-digest" packages = ["."] + pruneopts = "NUT" revision = "279bed98673dd5bef374d3b6e4b09e2af76183bf" version = "v1.0.0-rc1" [[projects]] + digest = "1:93b1d84c5fa6d1ea52f4114c37714cddd84d5b78f151b62bb101128dd51399bf" name = "github.com/pborman/uuid" packages = ["."] + pruneopts = "NUT" revision = "adf5a7427709b9deb95d29d3fa8a2bf9cfd388f1" version = "v1.2" [[projects]] branch = "master" + digest = "1:3bf17a6e6eaa6ad24152148a631d18662f7212e21637c2699bff3369b7f00fa2" name = "github.com/petar/GoLLRB" packages = ["llrb"] + pruneopts = "NUT" revision = "53be0d36a84c2a886ca057d34b6aa4468df9ccb4" [[projects]] + digest = "1:6c6d91dc326ed6778783cff869c49fb2f61303cdd2ebbcf90abe53505793f3b6" name = "github.com/peterbourgon/diskv" packages = ["."] + pruneopts = "NUT" revision = "5f041e8faa004a95c88a202771f4cc3e991971e6" version = "v2.0.1" [[projects]] + digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" name = "github.com/pmezard/go-difflib" packages = ["difflib"] + pruneopts = "NUT" revision = "792786c7400a136282c1664665ae0a8db921c6c2" version = "v1.0.0" [[projects]] + digest = "1:0cdaf6137130e4cbe124b737f85fc6c589ef341d43ac1fd1942a381e8b733b55" name = "github.com/prometheus/client_golang" packages = [ "prometheus", "prometheus/internal", "prometheus/promauto", - "prometheus/promhttp" + "prometheus/promhttp", ] + pruneopts = "NUT" revision = "50c4339db732beb2165735d2cde0bff78eb3c5a5" version = "v0.9.3" [[projects]] branch = "master" + digest = "1:2d5cd61daa5565187e1d96bae64dbbc6080dacf741448e9629c64fd93203b0d4" name = "github.com/prometheus/client_model" packages = ["go"] + pruneopts = "NUT" revision = "fd36f4220a901265f90734c3183c5f0c91daa0b8" [[projects]] + digest = "1:d03ca24670416dc8fccc78b05d6736ec655416ca7db0a028e8fb92cfdfe3b55e" name = "github.com/prometheus/common" packages = [ "expfmt", "internal/bitbucket.org/ww/goautoneg", - "model" + "model", ] + pruneopts = "NUT" revision = "17f5ca1748182ddf24fc33a5a7caaaf790a52fcc" version = "v0.4.1" [[projects]] branch = "master" + digest = "1:faf5688d03dc097b63b91bcfe02ad54ab2caaefe0b43ee5c4a67cc8653b9719f" name = "github.com/prometheus/procfs" packages = [ ".", - "internal/fs" + "internal/fs", ] + pruneopts = "NUT" revision = "a7aeb8df3389edaf53efcc319ad0063cb27c3960" [[projects]] + digest = "1:e256b859ab89f005f2f639f5ed9807d0873d9135e27c6382f419b840ff9abe71" name = "github.com/sirupsen/logrus" packages = ["."] + pruneopts = "NUT" revision = "e1e72e9de974bd926e5c56f83753fba2df402ce5" version = "v1.3.0" [[projects]] + digest = "1:9d8420bbf131d1618bde6530af37c3799340d3762cc47210c1d9532a4c3a2779" name = "github.com/spf13/pflag" packages = ["."] + pruneopts = "NUT" revision = "298182f68c66c05229eb03ac171abe6e309ee79a" version = "v1.0.3" [[projects]] + digest = "1:42e8c2456d7ec0f31e182c20022e74324c4da2cb3bd9069ff9b131fe33466308" name = "github.com/stretchr/testify" packages = ["assert"] + pruneopts = "NUT" revision = "ffdc059bfe9ce6a4e144ba849dbedead332c6053" version = "v1.3.0" [[projects]] branch = "master" + digest = "1:fb961be99914b3b93d599cabeaec91736f662e3f706b894668fcd23c0d9aafd7" name = "golang.org/x/crypto" packages = [ "ed25519", "ed25519/internal/edwards25519", "pbkdf2", - "ssh/terminal" + "ssh/terminal", ] + pruneopts = "NUT" revision = "193df9c0f06f8bb35fba505183eaf0acc0136505" [[projects]] branch = "master" + digest = "1:f3834eef4cff8c456e64d853dd6ccc9e2f9b2e3b4f197467c887b1783d3b2f7a" name = "golang.org/x/net" packages = [ "context", @@ -330,32 +454,38 @@ "http/httpguts", "http2", "http2/hpack", - "idna" + "idna", ] + pruneopts = "NUT" revision = "65e2d4e15006aab9813ff8769e768bbf4bb667a0" [[projects]] branch = "master" + digest = "1:3542fdd11877ce9e6c4e4591fc1ec31ffbdaed09daeaae9790ca6ec00e11795e" name = "golang.org/x/oauth2" packages = [ ".", "google", "internal", "jws", - "jwt" + "jwt", ] + pruneopts = "NUT" revision = "99b60b757ec124ebb7d6b7e97f153b19c10ce163" [[projects]] branch = "master" + digest = "1:24929061ae45b02fd9af859ac5c1f60336e042f6b4959db640737019e57d821c" name = "golang.org/x/sys" packages = [ "unix", - "windows" + "windows", ] + pruneopts = "NUT" revision = "3b5209105503162ded1863c307ac66fec31120dd" [[projects]] + digest = "1:e33513a825fcd765e97b5de639a2f7547542d1a8245df0cef18e1fd390b778a9" name = "golang.org/x/text" packages = [ "collate", @@ -372,19 +502,23 @@ "unicode/cldr", "unicode/norm", "unicode/rangetable", - "width" + "width", ] + pruneopts = "NUT" revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" version = "v0.3.0" [[projects]] branch = "master" + digest = "1:9fdc2b55e8e0fafe4b41884091e51e77344f7dc511c5acedcfd98200003bff90" name = "golang.org/x/time" packages = ["rate"] + pruneopts = "NUT" revision = "85acf8d2951cb2a3bde7632f9ff273ef0379bcbd" [[projects]] branch = "master" + digest = "1:f57e88c4326d5433c2f4eb28fcd1662be003cb0d11dd13710c8828e687303c76" name = "golang.org/x/tools" packages = [ "go/ast/astutil", @@ -398,11 +532,13 @@ "internal/fastwalk", "internal/gopathwalk", "internal/module", - "internal/semver" + "internal/semver", ] + pruneopts = "NUT" revision = "3744606dbb67b99c60d3f11cb10bd3f9e6dad472" [[projects]] + digest = "1:d395d49d784dd3a11938a3e85091b6570664aa90ff2767a626565c6c130fa7e9" name = "google.golang.org/appengine" packages = [ ".", @@ -414,35 +550,43 @@ "internal/modules", "internal/remote_api", "internal/urlfetch", - "urlfetch" + "urlfetch", ] + pruneopts = "NUT" revision = "e9657d882bb81064595ca3b56cbe2546bbabf7b1" version = "v1.4.0" [[projects]] + digest = "1:2d1fbdc6777e5408cabeb02bf336305e724b925ff4546ded0fa8715a7267922a" name = "gopkg.in/inf.v0" packages = ["."] + pruneopts = "NUT" revision = "d2d2541c53f18d2a059457998ce2876cc8e67cbf" version = "v0.9.1" [[projects]] + digest = "1:3eae6badd4900930e3180060324edc2b29e9e524ef63b5fc243b63fbf7595da9" name = "gopkg.in/square/go-jose.v2" packages = [ ".", "cipher", "json", - "jwt" + "jwt", ] + pruneopts = "NUT" revision = "e94fb177d3668d35ab39c61cbb2f311550557e83" version = "v2.2.2" [[projects]] + digest = "1:18108594151654e9e696b27b181b953f9a90b16bf14d253dd1b397b025a1487f" name = "gopkg.in/yaml.v2" packages = ["."] + pruneopts = "NUT" revision = "51d6538a90f86fe93ac480b35f37b2be17fef232" version = "v2.2.2" [[projects]] + digest = "1:b3f8152a68d73095a40fdcf329a93fc42e8eadb3305171df23fdb6b4e41a6417" name = "k8s.io/api" packages = [ "admission/v1beta1", @@ -477,18 +621,22 @@ "settings/v1alpha1", "storage/v1", "storage/v1alpha1", - "storage/v1beta1" + "storage/v1beta1", ] + pruneopts = "NUT" revision = "b503174bad5991eb66f18247f52e41c3258f6348" version = "kubernetes-1.12.3" [[projects]] + digest = "1:aff2ac035da399e2ccd6d58a0c484f87a52c82868b652397727c2ce1a3aba7f0" name = "k8s.io/apiextensions-apiserver" packages = ["pkg/features"] + pruneopts = "NUT" revision = "408db4a50408e2149acbd657bceb2480c13cb0a4" version = "kubernetes-1.11.2" [[projects]] + digest = "1:b5553f52137926d378cbc240610070947d76201b43a7b27b9704d6be0c479722" name = "k8s.io/apimachinery" packages = [ "pkg/api/equality", @@ -537,24 +685,28 @@ "pkg/version", "pkg/watch", "third_party/forked/golang/json", - "third_party/forked/golang/reflect" + "third_party/forked/golang/reflect", ] + pruneopts = "NUT" revision = "eddba98df674a16931d2d4ba75edc3a389bf633a" version = "kubernetes-1.12.3" [[projects]] + digest = "1:e74fbedce0f81942543ce4077e9f84914579d910c18300e68eb367f927e00e9e" name = "k8s.io/apiserver" packages = [ "pkg/authentication/authenticator", "pkg/authentication/serviceaccount", "pkg/authentication/user", "pkg/features", - "pkg/util/feature" + "pkg/util/feature", ] + pruneopts = "NUT" revision = "92fdef3a232a23afb9644f6151119b5961b9feab" version = "kubernetes-1.12.3" [[projects]] + digest = "1:9708371e514ebc04113f945b5b24a7e12787e56c94335c480297bd26dffceaaf" name = "k8s.io/client-go" packages = [ "discovery", @@ -697,12 +849,14 @@ "util/jsonpath", "util/retry", "util/testing", - "util/workqueue" + "util/workqueue", ] + pruneopts = "NUT" revision = "d082d5923d3cc0bfbb066ee5fbdea3d0ca79acf8" version = "kubernetes-1.12.3" [[projects]] + digest = "1:4e2addcdbe0330f43800c1fcb905fc7a21b86415dfcca619e5c606c87257af1b" name = "k8s.io/code-generator" packages = [ "cmd/client-gen", @@ -725,13 +879,15 @@ "cmd/lister-gen/generators", "cmd/openapi-gen", "cmd/openapi-gen/args", - "pkg/util" + "pkg/util", ] + pruneopts = "T" revision = "3dcf91f64f638563e5106f21f50c31fa361c918d" version = "kubernetes-1.12.3" [[projects]] branch = "master" + digest = "1:61024ed77a53ac618effed55043bf6a9afbdeb64136bd6a5b0c992d4c0363766" name = "k8s.io/gengo" packages = [ "args", @@ -741,27 +897,33 @@ "generator", "namer", "parser", - "types" + "types", ] + pruneopts = "NUT" revision = "0689ccc1d7d65d9dd1bedcc3b0b1ed7df91ba266" [[projects]] + digest = "1:9cc257b3c9ff6a0158c9c661ab6eebda1fe8a4a4453cd5c4044dc9a2ebfb992b" name = "k8s.io/klog" packages = ["."] + pruneopts = "NUT" revision = "a5bc97fbc634d635061f3146511332c7e313a55a" version = "v0.1.0" [[projects]] branch = "release-1.10" + digest = "1:5e6cf5c86780f55cab6254217bc22e327606b6d09aed280ac12494d837327512" name = "k8s.io/kube-openapi" packages = [ "pkg/common", "pkg/generators", - "pkg/util/proto" + "pkg/util/proto", ] + pruneopts = "NUT" revision = "39cb288412c48cb533ba4be5d6c28620b9a0c1b4" [[projects]] + digest = "1:a31313c139a6af3619b2d4842c71ec67025e738b225f1201da40ff94311cac10" name = "k8s.io/kubernetes" packages = [ "pkg/api/legacyscheme", @@ -862,20 +1024,107 @@ "pkg/util/net/sets", "pkg/util/node", "pkg/util/parsers", - "pkg/util/taints" + "pkg/util/taints", ] + pruneopts = "NUT" revision = "e3c134023df5dea457638b614ee17ef234dc34a6" version = "v1.12.10" [[projects]] branch = "master" + digest = "1:98bfb68d62e4df4c94f54f333dea17c1f2d26c5b70620b6c9ad6d7bbc6a0f7ea" name = "k8s.io/utils" packages = ["pointer"] + pruneopts = "NUT" revision = "581e00157fb1a0435d4fac54a52d1ca1e481d60e" [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "87806e683f7a0739c8f62338002aad490a831f7ae5f9b8bcf669d1627f074ce5" + input-imports = [ + "github.com/go-openapi/spec", + "github.com/golang/glog", + "github.com/golang/protobuf/proto", + "github.com/kubeflow/common/job_controller/api/v1", + "github.com/kubeflow/tf-operator/cmd/tf-operator.v1/app", + "github.com/kubeflow/tf-operator/cmd/tf-operator.v1/app/options", + "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1", + "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/validation", + "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned", + "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme", + "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/tensorflow/v1", + "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/tensorflow/v1/fake", + "github.com/kubeflow/tf-operator/pkg/client/informers/externalversions", + "github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/internalinterfaces", + "github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/tensorflow", + "github.com/kubeflow/tf-operator/pkg/client/informers/externalversions/tensorflow/v1", + "github.com/kubeflow/tf-operator/pkg/client/listers/tensorflow/v1", + "github.com/kubeflow/tf-operator/pkg/common/jobcontroller", + "github.com/kubeflow/tf-operator/pkg/common/util/v1/testutil", + "github.com/kubeflow/tf-operator/pkg/common/util/v1/unstructured", + "github.com/kubeflow/tf-operator/pkg/control", + "github.com/kubeflow/tf-operator/pkg/controller.v1/tensorflow", + "github.com/kubeflow/tf-operator/pkg/logger", + "github.com/kubeflow/tf-operator/pkg/util", + "github.com/kubeflow/tf-operator/pkg/util/k8sutil", + "github.com/kubeflow/tf-operator/pkg/util/signals", + "github.com/kubeflow/tf-operator/pkg/util/train", + "github.com/kubeflow/tf-operator/pkg/version", + "github.com/kubernetes-sigs/kube-batch/pkg/apis/scheduling/v1alpha1", + "github.com/kubernetes-sigs/kube-batch/pkg/client/clientset/versioned", + "github.com/onrik/logrus/filename", + "github.com/prometheus/client_golang/prometheus", + "github.com/prometheus/client_golang/prometheus/promauto", + "github.com/prometheus/client_golang/prometheus/promhttp", + "github.com/sirupsen/logrus", + "github.com/stretchr/testify/assert", + "k8s.io/api/core/v1", + "k8s.io/apimachinery/pkg/api/equality", + "k8s.io/apimachinery/pkg/api/errors", + "k8s.io/apimachinery/pkg/api/meta", + "k8s.io/apimachinery/pkg/api/resource", + "k8s.io/apimachinery/pkg/apis/meta/v1", + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", + "k8s.io/apimachinery/pkg/labels", + "k8s.io/apimachinery/pkg/runtime", + "k8s.io/apimachinery/pkg/runtime/schema", + "k8s.io/apimachinery/pkg/runtime/serializer", + "k8s.io/apimachinery/pkg/types", + "k8s.io/apimachinery/pkg/util/errors", + "k8s.io/apimachinery/pkg/util/intstr", + "k8s.io/apimachinery/pkg/util/runtime", + "k8s.io/apimachinery/pkg/util/uuid", + "k8s.io/apimachinery/pkg/util/wait", + "k8s.io/apimachinery/pkg/watch", + "k8s.io/client-go/discovery", + "k8s.io/client-go/discovery/fake", + "k8s.io/client-go/dynamic", + "k8s.io/client-go/informers", + "k8s.io/client-go/kubernetes", + "k8s.io/client-go/kubernetes/scheme", + "k8s.io/client-go/kubernetes/typed/core/v1", + "k8s.io/client-go/listers/core/v1", + "k8s.io/client-go/plugin/pkg/client/auth/gcp", + "k8s.io/client-go/rest", + "k8s.io/client-go/testing", + "k8s.io/client-go/tools/cache", + "k8s.io/client-go/tools/clientcmd", + "k8s.io/client-go/tools/leaderelection", + "k8s.io/client-go/tools/leaderelection/resourcelock", + "k8s.io/client-go/tools/record", + "k8s.io/client-go/util/flowcontrol", + "k8s.io/client-go/util/testing", + "k8s.io/client-go/util/workqueue", + "k8s.io/code-generator/cmd/client-gen", + "k8s.io/code-generator/cmd/deepcopy-gen", + "k8s.io/code-generator/cmd/defaulter-gen", + "k8s.io/code-generator/cmd/informer-gen", + "k8s.io/code-generator/cmd/lister-gen", + "k8s.io/code-generator/cmd/openapi-gen", + "k8s.io/klog", + "k8s.io/kube-openapi/pkg/common", + "k8s.io/kubernetes/pkg/api/testapi", + "k8s.io/kubernetes/pkg/controller", + ] solver-name = "gps-cdcl" solver-version = 1 From dfec43476b68e7dbc7f244f038aaf7fec82df48a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 4 Mar 2020 11:49:05 +0800 Subject: [PATCH 3/3] update code gen --- pkg/apis/tensorflow/v1/openapi_generated.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/tensorflow/v1/openapi_generated.go b/pkg/apis/tensorflow/v1/openapi_generated.go index acea0f7955..62fdb30eec 100644 --- a/pkg/apis/tensorflow/v1/openapi_generated.go +++ b/pkg/apis/tensorflow/v1/openapi_generated.go @@ -63,7 +63,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA }, "status": { SchemaProps: spec.SchemaProps{ - Description: "Most recently observed status of the TFJob. Read-only (modified by the system).", + Description: "Most recently observed status of the TFJob. Populated by the system. Read-only.", Ref: ref("github.com/kubeflow/common/job_controller/api/v1.JobStatus"), }, },