Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AutocompleteMetricsK8sContainerTask = coretask.NewTask(googlecloudclustergke_contract.AutocompleteMetricsK8sContainerTaskIDForGKE, []taskid.UntypedTaskReference{}, func(ctx context.Context) (string, error) { return "kubernetes.io/container/uptime", nil }, coretask.WithSelectionPriority(1000), inspectioncore_contract.InspectionTypeLabel(googlecloudinspectiontypegroup_contract.GKEBasedClusterInspectionTypes...))
AutocompleteMetricsK8sContainerTask returns the metrics type used for autocomplete cluster names in GKE. The metrics type "kubernetes.io/container/uptime" is used for GKE instead of the default "kubernetes.io/anthos/container/uptime".
var AutocompleteMetricsK8sNodeTask = coretask.NewTask(googlecloudclustergke_contract.AutocompleteMetricsK8sNodeTaskIDForGKE, []taskid.UntypedTaskReference{}, func(ctx context.Context) (string, error) { return "kubernetes.io/node/cpu/total_cores", nil }, coretask.WithSelectionPriority(1000), inspectioncore_contract.InspectionTypeLabel(googlecloudinspectiontypegroup_contract.GKEBasedClusterInspectionTypes...))
AutocompleteMetricsK8sNodeTask returns the metrics type used for autocomplete node names in GKE. The metrics type "kubernetes.io/node/cpu/total_cores" is used for GKE instead of the default "kubernetes.io/anthos/up".
var GKEClusterNamePrefixTask = coretask.NewTask(googlecloudclustergke_contract.ClusterNamePrefixTaskIDForGKE, []taskid.UntypedTaskReference{}, func(ctx context.Context) (string, error) { return "", nil }, inspectioncore_contract.InspectionTypeLabel(googlecloudclustergke_contract.InspectionTypeId))
GKEClusterNamePrefixTask is a task that returns an empty string as the cluster name prefix for GKE. This task is necessary to satisfy the dependency of the log source profile, but GKE does not require a prefix.
Functions ¶
func Register ¶
func Register(registry coreinspection.InspectionTaskRegistry) error
Register registers all googlecloudclustergke inspection tasks to the registry.
Types ¶
This section is empty.