Module: Dapp::Kube::Kubernetes

Defined in:
lib/dapp/kube/kubernetes.rb,
lib/dapp/kube/kubernetes/client.rb,
lib/dapp/kube/kubernetes/config.rb

Defined Under Namespace

Modules: Error, Manager Classes: Client, Config

Constant Summary collapse

K8S_API_ENDPOINTS =

TODO endpoints can be gathered from api-server by api discovery.

{
  '1.6' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/apps/v1beta1' => [:deployment, :statefulset, ],
    '/apis/extensions/v1beta1' => [:replicaset, :daemonset, ],
    '/apis/batch/v1' => [:job, ],
    '/apis/batch/v2aplha1' => [:cronjob, ],
  },
  '1.7' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/apps/v1beta1' => [:deployment, :statefulset, ],
    '/apis/extensions/v1beta1' => [:replicaset, :daemonset, ],
    '/apis/batch/v1' => [:job, ],
    '/apis/batch/v2aplha1' => [:cronjob, ],
  },
  '1.8' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/apps/v1beta2' => [:daemonset, :deployment, :replicaset, :statefulset, ],
    '/apis/batch/v1' => [:job, ],
    '/apis/batch/v1beta1' => [:cronjob, ],
  },
  '1.9' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/apps/v1' => [:daemonset, :deployment, :replicaset, :statefulset, ],
    '/apis/batch/v1' => [:job, ],
    '/apis/batch/v1beta1' => [:cronjob, ],
  },
  '1.10' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/apps/v1' => [:daemonset, :deployment, :replicaset, :statefulset, ],
    '/apis/batch/v1' => [:job, ],
    '/apis/batch/v1beta1' => [:cronjob, ],
  },
  '1.11' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/apps/v1' => [:daemonset, :deployment, :replicaset, :statefulset, ],
    '/apis/batch/v1' => [:job, ],
    '/apis/batch/v1beta1' => [:cronjob, ],
  },
  'stable' => {
    '/api/v1' => [:service, :replicationcontroller, :pod, :podtemplate, ],
    '/apis/batch/v1' => [:job, ],
  },
}