<p dir="auto">TL;DR: The versioned API types should be self-contained package. For example, the file "pkg/api/v1beta3/types.go" is not self contained and contains tendrils to other internal types (see below). This is somewhat cruddy for other clients wanting to import minimal source from k8s just to call its APIs. It'd be nice to have a single package to import to get the API object definitions (i.e. for json unmarshalling, etc).</p>
<p dir="auto">Observed outside of package depencies in "pkg/api/v1beta3/types.go":</p>
<p dir="auto">"pkg/runtime" - The "List" type contains a field "Items []runtime.RawExtension". "RawExtension" is a trivial struct containing only a "[]byte".</p>
<p dir="auto">"pkg/types" - Various places uses the "types.UID" struct, which is an alias to "string".</p>
<p dir="auto">"pkg/util" - Two types from this package are used: "util.Time" and "util.IntOrString". The former is a wrapper on Go's Time object, with extra functions for custom JSON serialization (RFC3339 compliant) in "pkg/util/time.go". "IntOrString" is the dual-mode struct holding an int value or a string ("pkg/util/util.go").</p>
<p dir="auto">"pkg/api/resource" - The "ResourceList" object is a map whose keys are "resource.Quantity" objects. The "Quantity" object contains a field to "inf.Dec", which is an infinite precision decimal package imported from "speter.net/go/exp/math/dec/inf". This is the only package which is external to k8s.</p>
<p dir="auto">I know that some of the json annotations added are to support swagger, but the go-&gt;swagger-&gt;go thing seems like an unnecessary complexity.</p>
<p dir="auto">Hi all</p>
<p dir="auto">The logs on the gci master 1.3 beta image are not being rolled.  Just lost my master because <code class="notranslate">/var/log</code> was filled up :(  Are we using logrotate?  Because it is not configured.</p>
<p dir="auto">The cluster is a multi az cluster running on gce, using the default master.  Cluster was created using <code class="notranslate">kube-up.sh</code>.</p>
<p dir="auto">Master version info.</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="clove@kubernetes-master /etc $ cat /proc/version
Linux version 4.4.4+ (chrome-bot@build297-m2) (gcc version 4.9.x 20150123 (prerelease) (4.9.2_cos_gg_a2bc87a_4.9.2-r128) ) #1 SMP Fri Jun 17 14:27:45 PDT 2016"><pre class="notranslate"><span class="pl-e">clove@kubernetes-master /etc</span> $ <span class="pl-s1">cat /proc/version</span>
<span class="pl-c1">Linux version 4.4.4+ (chrome-bot@build297-m2) (gcc version 4.9.x 20150123 (prerelease) (4.9.2_cos_gg_a2bc87a_4.9.2-r128) ) #1 SMP Fri Jun 17 14:27:45 PDT 2016</span></pre></div>
<p dir="auto">K8s Version info:</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3+&quot;, GitVersion:&quot;v1.3.0-beta.1&quot;, GitCommit:&quot;1c7855093eb999c8f3cedb19d3467cd7b691e35e&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-06-17T00:58:51Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;3+&quot;, GitVersion:&quot;v1.3.0-beta.1&quot;, GitCommit:&quot;1c7855093eb999c8f3cedb19d3467cd7b691e35e&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-06-17T00:53:24Z&quot;, GoVersion:&quot;go1.6.2&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><span class="pl-c1">Client Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-beta.1", GitCommit:"1c7855093eb999c8f3cedb19d3467cd7b691e35e", GitTreeState:"clean", BuildDate:"2016-06-17T00:58:51Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</span>
<span class="pl-c1">Server Version: version.Info{Major:"1", Minor:"3+", GitVersion:"v1.3.0-beta.1", GitCommit:"1c7855093eb999c8f3cedb19d3467cd7b691e35e", GitTreeState:"clean", BuildDate:"2016-06-17T00:53:24Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</span></pre></div>
<p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bgrant0607/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bgrant0607">@bgrant0607</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andyzheng0831/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andyzheng0831">@andyzheng0831</a> <a class="team-mention js-team-mention notranslate" data-error-text="Failed to load team members" data-id="2015565" data-permission-text="Team members are private" data-url="/orgs/kubernetes/teams/goog-image/members" data-hovercard-type="team" data-hovercard-url="/orgs/kubernetes/teams/goog-image/hovercard" href="https://github.com/orgs/kubernetes/teams/goog-image">@kubernetes/goog-image</a></p>