Documentation ¶
Index ¶
- Constants
- func ApplyLabelsToInstance(labels []string, namespace string) error
- func GenerateInstanceWithLogEntryTemplate(labels []string, namespace string) *models.Instance
- type SubsetInfo
- type SubsetMapper
- func (sm *SubsetMapper) GetDestinationsSubsetsMap() *clientmodels.DestinationsSubsetsMap
- func (sm *SubsetMapper) GetRestClient() (client.IRestClient, error)
- func (sm *SubsetMapper) GetSubsetByLabels(destination string, labels map[string]string) []SubsetInfo
- func (sm *SubsetMapper) RefreshDestinationsSubsetsMap() error
Constants ¶
View Source
const RefreshPeriod = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func ApplyLabelsToInstance ¶
ApplyLabelsToInstance generate and apply instance crd to local configured kubectl This is a temporary solution until istio fixes destination labels This pull request fixes it: https://github.com/istio/api/pull/925 but it isn't arrived at main release, it should be tested with new release
Types ¶
type SubsetInfo ¶
type SubsetInfo struct { DestinationName string SubsetWithPorts clientmodels.SubsetToPorts }
type SubsetMapper ¶ added in v0.0.3
type SubsetMapper struct { DestinationsSubsetMap0 *clientmodels.DestinationsSubsetsMap DestinationsSubsetMap1 *clientmodels.DestinationsSubsetsMap // contains filtered or unexported fields }
func New ¶ added in v0.0.3
func New() *SubsetMapper
func (*SubsetMapper) GetDestinationsSubsetsMap ¶ added in v0.0.3
func (sm *SubsetMapper) GetDestinationsSubsetsMap() *clientmodels.DestinationsSubsetsMap
GetDesitinationsSubsetsMap returns active subset map
func (*SubsetMapper) GetRestClient ¶ added in v0.0.3
func (sm *SubsetMapper) GetRestClient() (client.IRestClient, error)
GetRestClient gets or creates rest client
func (*SubsetMapper) GetSubsetByLabels ¶ added in v0.0.3
func (sm *SubsetMapper) GetSubsetByLabels(destination string, labels map[string]string) []SubsetInfo
GetSubsetByLabels return all possible subsets for given labels
func (*SubsetMapper) RefreshDestinationsSubsetsMap ¶ added in v0.0.3
func (sm *SubsetMapper) RefreshDestinationsSubsetsMap() error
RefreshDestinationsSubsetsMap updates the subset map
Click to show internal directories.
Click to hide internal directories.