-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema_peer_authentication.go
50 lines (47 loc) · 1.36 KB
/
schema_peer_authentication.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package istio
import (
"log"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
func peerAuthenticationSpecFields() map[string]*schema.Schema {
log.Printf("[INFO] Creating New peerAuthentication peerAuthenticationSpecFields")
pa := map[string]*schema.Schema{
"selector": {
Type: schema.TypeList,
Description: "A label query over pods that should match the Replicas count.",
Optional: true,
ForceNew: true,
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"matchlabels": {
Type: schema.TypeMap,
Description: "A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of `match_expressions`, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
Optional: true,
ForceNew: true,
},
},
},
},
"mtls": {
Type: schema.TypeList,
Optional: true,
Description: "Specify peerAuthentication",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"mode": {
Type: schema.TypeString,
Optional: true,
Description: "gateway.",
},
},
},
},
"portlevelmtls": {
Type: schema.TypeMap,
Optional: true,
Description: "peerAuthentication.",
},
}
return pa
}