INNER CODE UNIT · Go

dataSourceKubernetesEndpointSliceV1

hashicorp/terraform-provider-kubernetes · kubernetes/data_source_kubernetes_endpoint_slice_v1.go:16

func dataSourceKubernetesEndpointSliceV1() *schema.Resource {
	return &schema.Resource{
		Description: "An EndpointSlice contains references to a set of network endpoints. This data source allows you to pull data about such endpoint slice.",
		ReadContext: dataSourceKubernetesEndpointSliceV1Read,
		Schema: map[string]*schema.Schema{
			"metadata": namespacedMetadataSchema("endpoint_slice", true),
			"address_type": {
				Type:        schema.TypeString,
				Description: "address_type specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation.",
				Computed:    true,
			},
			"endpoint": {
				Type:        schema.TypeList,
				Description: "endpoint is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.",
				Computed:    true,
				Elem:        schemaEndpointSliceSubsetEndpoints(),
			},
			"port": {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…