Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Constants to use in log statements IstioOperation = "istio" LabelNamespace = "label-namespace" PatchFile = "patch-file" // Istio vet operation IstioVetOperation = "istio-vet" // Configure Envoy filter operation EnvoyFilterOperation = "envoy-filter-operation" // Addons that the adapter supports PrometheusAddon = "prometheus-addon" GrafanaAddon = "grafana-addon" KialiAddon = "kiali-addon" JaegerAddon = "jaeger-addon" ZipkinAddon = "zipkin-addon" // Policies DenyAllPolicyOperation = "deny-all-policy-operation" StrictMTLSPolicyOperation = "strict-mtls-policy-operation" MutualMTLSPolicyOperation = "mutual-mtls-policy-operation" DisableMTLSPolicyOperation = "disable-mtls-policy-operation" )
View Source
const ( ErrEmptyConfigCode = "11300" ErrGetLatestReleasesCode = "istio_test_code" ErrGetLatestReleaseNamesCode = "istio_test_code" )
Variables ¶
View Source
var ( Config = configprovider.Options{ ServerConfig: ServerConfig, MeshSpec: MeshSpec, ProviderConfig: ProviderConfig, Operations: Operations, } ServerConfig = map[string]string{ "name": "istio-adapter", "port": "10000", "version": "v1.0.0", } MeshSpec = map[string]string{ "name": "istio", "status": status.None, "traceurl": status.None, "version": status.None, } ProviderConfig = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "istio", } // KubeConfig - Controlling the kubeconfig lifecycle with viper KubeConfig = map[string]string{ configprovider.FilePath: configRootPath, configprovider.FileType: "yaml", configprovider.FileName: "kubeconfig", } Operations = getOperations(common.Operations) )
View Source
var (
ErrEmptyConfig = errors.NewDefault(ErrEmptyConfigCode, "Config is empty")
)
View Source
var (
ServiceName = "service_name"
)
Functions ¶
func ErrGetLatestReleaseNames ¶
ErrGetLatestReleaseNames is the error for fetching istio releases
func ErrGetLatestReleases ¶
ErrGetLatestReleases is the error for fetching istio releases
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name,omitempty"` State string `json:"state,omitempty"` DownloadURL string `json:"browser_download_url,omitempty"` }
Asset describes the github release asset object
type Release ¶
type Release struct { ID int `json:"id,omitempty"` TagName string `json:"tag_name,omitempty"` Name adapter.Version `json:"name,omitempty"` Draft bool `json:"draft,omitempty"` Assets []*Asset `json:"assets,omitempty"` }
Release is used to save the release informations
func GetLatestReleases ¶
GetLatestReleases fetches the latest releases from the istio repository
Click to show internal directories.
Click to hide internal directories.