Merge pull request #29042 from dims/fixup-imports
Automatic merge from submit-queue Use Go canonical import paths Add canonical imports only in existing doc.go files. https://golang.org/doc/go1.4#canonicalimports Fixes #29014
This commit is contained in:
@@ -21,4 +21,4 @@ limitations under the License.
|
||||
// the upstream hyperkube module is not reusable.
|
||||
//
|
||||
// TODO(jdef,sttts): refactor upstream cmd/hyperkube to be reusable with the necessary mesos changes
|
||||
package main
|
||||
package main // import "k8s.io/kubernetes/contrib/mesos/cmd/km"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package assert is an utility package containing reusable testing functionality
|
||||
// extending github.com/stretchr/testify/assert
|
||||
package assert
|
||||
package assert // import "k8s.io/kubernetes/contrib/mesos/pkg/assert"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package backoff provides backoff functionality with a simple API.
|
||||
// Originally copied from Kubernetes: plugin/pkg/scheduler/factory/factory.go
|
||||
package backoff
|
||||
package backoff // import "k8s.io/kubernetes/contrib/mesos/pkg/backoff"
|
||||
|
@@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package controllermanager is largely a clone of the upstream implementation,
|
||||
// with additional functionality to select between stock or a customized
|
||||
// endpoints controller.
|
||||
package controllermanager
|
||||
package controllermanager // import "k8s.io/kubernetes/contrib/mesos/pkg/controllermanager"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package election provides interfaces used for master election.
|
||||
package election
|
||||
package election // import "k8s.io/kubernetes/contrib/mesos/pkg/election"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package config contains executor configuration constants.
|
||||
package config
|
||||
package config // import "k8s.io/kubernetes/contrib/mesos/pkg/executor/config"
|
||||
|
@@ -18,4 +18,4 @@ limitations under the License.
|
||||
Package executor includes a mesos executor, which contains
|
||||
a kubelet as its member to manage containers.
|
||||
*/
|
||||
package executor
|
||||
package executor // import "k8s.io/kubernetes/contrib/mesos/pkg/executor"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package messages exposes executor event/message names as constants.
|
||||
package messages
|
||||
package messages // import "k8s.io/kubernetes/contrib/mesos/pkg/executor/messages"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package service contains the cmd/k8sm-executor glue code.
|
||||
package service
|
||||
package service // import "k8s.io/kubernetes/contrib/mesos/pkg/executor/service"
|
||||
|
@@ -18,4 +18,4 @@ limitations under the License.
|
||||
// kubernetes-mesos components into a single binary form, providing a
|
||||
// simple mechanism for intra-component discovery as per the original
|
||||
// Kubernetes hyperkube package.
|
||||
package hyperkube
|
||||
package hyperkube // import "k8s.io/kubernetes/contrib/mesos/pkg/hyperkube"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package config contains minion configuration constants.
|
||||
package config
|
||||
package config // import "k8s.io/kubernetes/contrib/mesos/pkg/minion/config"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package minion contains the executor and proxy bootstrap code for a Mesos slave
|
||||
package minion
|
||||
package minion // import "k8s.io/kubernetes/contrib/mesos/pkg/minion"
|
||||
|
@@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package tasks provides an API for supervising system processes as Task's.
|
||||
// It provides stronger guarantees with respect to process lifecycle than a
|
||||
// standalone kubelet running static pods.
|
||||
package tasks
|
||||
package tasks // import "k8s.io/kubernetes/contrib/mesos/pkg/minion/tasks"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package node provides utilities to create and update nodes
|
||||
package node
|
||||
package node // import "k8s.io/kubernetes/contrib/mesos/pkg/node"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package offers contains code that manages Mesos offers.
|
||||
package offers
|
||||
package offers // import "k8s.io/kubernetes/contrib/mesos/pkg/offers"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package metrics defines and exposes instrumentation metrics related to
|
||||
// Mesos offers.
|
||||
package metrics
|
||||
package metrics // import "k8s.io/kubernetes/contrib/mesos/pkg/offers/metrics"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// podutil contains utilities for reading, writing and filtering streams
|
||||
// and lists of api.Pod objects.
|
||||
package podutil
|
||||
package podutil // import "k8s.io/kubernetes/contrib/mesos/pkg/podutil"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package proc provides opinionated utilities for processing background
|
||||
// operations and future errors, somewhat inspired by libprocess.
|
||||
package proc
|
||||
package proc // import "k8s.io/kubernetes/contrib/mesos/pkg/proc"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package profile contains reusable code for profiling Go programs with pprof.
|
||||
package profile
|
||||
package profile // import "k8s.io/kubernetes/contrib/mesos/pkg/profile"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package queue provides several queue implementations, originally
|
||||
// inspired by Kubernetes pkg/client/cache/fifo.
|
||||
package queue
|
||||
package queue // import "k8s.io/kubernetes/contrib/mesos/pkg/queue"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Some file descriptor manipulation funcs (Unix-Only), inspired by
|
||||
// https://github.com/skarnet/execline/blob/master/src/execline/redirfd.c
|
||||
package redirfd
|
||||
package redirfd // import "k8s.io/kubernetes/contrib/mesos/pkg/redirfd"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package runtime provides utilities for semaphores (chan struct{}),
|
||||
// a simple Latch implementation, and metrics for reporting handled panics.
|
||||
package runtime
|
||||
package runtime // import "k8s.io/kubernetes/contrib/mesos/pkg/runtime"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package algorithm implements the SchedulerAlgorithm
|
||||
package algorithm
|
||||
package algorithm // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/algorithm"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package podschedulers defines an interface (w/ implementations) for matching
|
||||
// pods against offers.
|
||||
package podschedulers
|
||||
package podschedulers // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/algorithm/podschedulers"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package binder implements the Binder which launched a task and let the
|
||||
// executor do the actual binding.
|
||||
package binder
|
||||
package binder // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/binder"
|
||||
|
@@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package controller implements the scheduling controller which waits for pod
|
||||
// events from the queuer (i.e. from the apiserver), passes them to the
|
||||
// SchedulerAlgorithm and in case of success to the binder which does the launch.
|
||||
package controller
|
||||
package controller // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/controller"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package deleter implements the deleter which listens for pod DELETE events
|
||||
// from the apiserver and kills tasks for deleted pods.
|
||||
package deleter
|
||||
package deleter // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/deleter"
|
||||
|
@@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package components implements independent aspects of the scheduler which
|
||||
// do not use Framework or Scheduler internals, but rely solely on the Scheduler
|
||||
// interface.
|
||||
package components
|
||||
package components // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package errorhandler implements the ErrorHandler which handles scheduer error
|
||||
// and possibly requeue pods for scheduling again.
|
||||
package errorhandler
|
||||
package errorhandler // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/errorhandler"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package framework implements the Mesos scheduler.
|
||||
package framework
|
||||
package framework // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/framework"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package podreconciler implements pod reconciliation of pods which failed
|
||||
// to launch, i.e. before binding by the executor took place.
|
||||
package podreconciler
|
||||
package podreconciler // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/components/podreconciler"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package config provides mechanisms for low-level scheduler tuning.
|
||||
package config
|
||||
package config // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/config"
|
||||
|
@@ -18,4 +18,4 @@ limitations under the License.
|
||||
// Incomplete.
|
||||
// TODO(jdef) We need better alignment between k8s-mesos and k8s scheduling
|
||||
// constraints (read: a common constraints API).
|
||||
package constraint
|
||||
package constraint // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/constraint"
|
||||
|
@@ -15,7 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package scheduler implements the Kubernetes Mesos scheduler.
|
||||
package scheduler
|
||||
package scheduler // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler"
|
||||
|
||||
// Created from contrib/mesos/docs/scheduler.monopic:
|
||||
//
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package errors contains all scheduler wide used errors
|
||||
package errors
|
||||
package errors // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/errors"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package executorinfo provides a lru-based executor info registry
|
||||
// as well as some utility methods.
|
||||
package executorinfo
|
||||
package executorinfo // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/executorinfo"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package ha encapsulates high-availability scheduler concerns.
|
||||
package ha
|
||||
package ha // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/ha"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package integration implements integration tests.
|
||||
package integration
|
||||
package integration // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/integration"
|
||||
|
@@ -19,4 +19,4 @@ limitations under the License.
|
||||
// for reconciliation upon failover. Other annotations are used as part of
|
||||
// the host-to-pod port-mapping implementation understood by the k8s-mesos
|
||||
// scheduler and custom endpoints-controller implementation.
|
||||
package meta
|
||||
package meta // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/meta"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package metrics defines and exposes instrumentation metrics of the scheduler.
|
||||
package metrics
|
||||
package metrics // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/metrics"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package podtask maps Kubernetes pods to Mesos tasks.
|
||||
package podtask
|
||||
package podtask // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/podtask"
|
||||
|
@@ -16,4 +16,4 @@ limitations under the License.
|
||||
|
||||
// Package queuer implements a Pod Queuer which stores and yields pods waiting
|
||||
// being scheduled.
|
||||
package queuer
|
||||
package queuer // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/queuer"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package resources contains the Mesos scheduler specific resource functions
|
||||
package resources
|
||||
package resources // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/resources"
|
||||
|
@@ -15,4 +15,4 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// Package service contains the cmd/k8sm-scheduler glue code
|
||||
package service
|
||||
package service // import "k8s.io/kubernetes/contrib/mesos/pkg/scheduler/service"
|
||||
|
@@ -17,4 +17,4 @@ limitations under the License.
|
||||
// Package service is largely a clone of the stock Kubernetes endpoints
|
||||
// controller, extended with some very specific functionality related
|
||||
// to kubernetes-mesos specific host-pod port mapping.
|
||||
package service
|
||||
package service // import "k8s.io/kubernetes/contrib/mesos/pkg/service"
|
||||
|
Reference in New Issue
Block a user