Documentation ¶
Index ¶
- type K8sutil
- func (k *K8sutil) CreateKongAdminService(namespace string) error
- func (k *K8sutil) CreateKongDeployment(baseImage string, replicas *int32, namespace string) error
- func (k *K8sutil) CreateKongProxyService(namespace string) error
- func (k *K8sutil) CreateKubernetesThirdPartyResource() error
- func (k *K8sutil) DeleteAdminService(namespace string) error
- func (k *K8sutil) DeleteKongDeployment(namespace string) error
- func (k *K8sutil) DeleteProxyService(namespace string) error
- func (k *K8sutil) GetKongClusters() ([]tpr.KongCluster, error)
- func (k *K8sutil) MonitorKongEvents(stopchan chan struct{}) (<-chan *tpr.KongCluster, <-chan error)
- type KubeInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sutil ¶
type K8sutil struct { Config *rest.Config TprClient *rest.RESTClient Kclient KubeInterface MasterHost string }
K8sutil defines the kube object
func (*K8sutil) CreateKongAdminService ¶
CreateKongAdminService creates the kong proxy service
func (*K8sutil) CreateKongDeployment ¶
CreateKongDeployment creates the kong deployment
func (*K8sutil) CreateKongProxyService ¶
CreateKongProxyService creates the kong proxy service
func (*K8sutil) CreateKubernetesThirdPartyResource ¶
CreateKubernetesThirdPartyResource checks if Kong TPR exists. If not, create
func (*K8sutil) DeleteAdminService ¶
DeleteAdminService creates the kong admin service
func (*K8sutil) DeleteKongDeployment ¶
DeleteKongDeployment deletes kong deployment
func (*K8sutil) DeleteProxyService ¶
DeleteProxyService creates the kong proxy service
func (*K8sutil) GetKongClusters ¶
func (k *K8sutil) GetKongClusters() ([]tpr.KongCluster, error)
GetKongClusters returns a list of custom clusters defined
func (*K8sutil) MonitorKongEvents ¶
func (k *K8sutil) MonitorKongEvents(stopchan chan struct{}) (<-chan *tpr.KongCluster, <-chan error)
MonitorKongEvents watches for new or removed clusters
type KubeInterface ¶
type KubeInterface interface { Services(namespace string) coreType.ServiceInterface ThirdPartyResources() extensionsType.ThirdPartyResourceInterface Deployments(namespace string) extensionsType.DeploymentInterface ReplicaSets(namespace string) extensionsType.ReplicaSetInterface Secrets(namespace string) coreType.SecretInterface }
KubeInterface abstracts the kubernetes client
Click to show internal directories.
Click to hide internal directories.