@@ -2,6 +2,7 @@ package config
22
33import (
44 "github.com/layer5io/meshery-adapter-library/adapter"
5+ "github.com/layer5io/meshery-adapter-library/common"
56 "github.com/layer5io/meshery-adapter-library/meshes"
67)
78
@@ -13,15 +14,18 @@ func getOperations(dev adapter.Operations) adapter.Operations {
1314 versions , _ := getLatestReleaseNames (3 )
1415
1516 dev [IstioOperation ] = & adapter.Operation {
16- Type : int32 (meshes .OpCategory_INSTALL ),
17- Description : "Istio Service Mesh" ,
18- Versions : versions ,
19- Templates : []adapter.Template {
20- "templates/istio.yaml" ,
21- },
17+ Type : int32 (meshes .OpCategory_INSTALL ),
18+ Description : "Istio Service Mesh" ,
19+ Versions : versions ,
2220 AdditionalProperties : map [string ]string {},
2321 }
2422
23+ // Add Istio networking resources to sample applications
24+ dev [common .BookInfoOperation ].Templates = append (dev [common .BookInfoOperation ].Templates , "file://templates/bookinfo-gateway.yaml" )
25+ dev [common .HTTPBinOperation ].Templates = append (dev [common .HTTPBinOperation ].Templates , "file://templates/httpbin-gateway.yaml" )
26+ dev [common .ImageHubOperation ].Templates = append (dev [common .ImageHubOperation ].Templates , "file://templates/imagehub-gateway.yaml" )
27+ dev [common .EmojiVotoOperation ].Templates = append (dev [common .EmojiVotoOperation ].Templates , "file://templates/emojivoto-gateway.yaml" )
28+
2529 dev [LabelNamespace ] = & adapter.Operation {
2630 Type : int32 (meshes .OpCategory_CONFIGURE ),
2731 Description : "Label Namespace for Automatic Sidecar Injection" ,
@@ -52,10 +56,55 @@ func getOperations(dev adapter.Operations) adapter.Operations {
5256 Description : "Zipkin Dashboard" ,
5357 }
5458
55- dev [IstioVetOpertation ] = & adapter.Operation {
59+ dev [IstioVetOperation ] = & adapter.Operation {
5660 Type : int32 (meshes .OpCategory_VALIDATE ),
5761 Description : "Analyze Running Configuration" ,
5862 }
5963
64+ dev [EnvoyFilterOperation ] = & adapter.Operation {
65+ Type : int32 (meshes .OpCategory_CONFIGURE ),
66+ Description : "Envoy Filter for Imagehub" ,
67+ Versions : adapter .NoneVersion ,
68+ Templates : []adapter.Template {
69+ "file://templates/imagehub-filter.yaml" ,
70+ },
71+ AdditionalProperties : map [string ]string {
72+ ServiceName : "api-v1" ,
73+ EnvoyPatchFile : "file://templates/imagehub-patch.json" ,
74+ },
75+ }
76+
77+ dev [DenyAllPolicyOperation ] = & adapter.Operation {
78+ Type : int32 (meshes .OpCategory_CONFIGURE ),
79+ Description : "Deny-All Policy" ,
80+ Templates : []adapter.Template {
81+ "file://templates/policy-denyall.yaml" ,
82+ },
83+ }
84+
85+ dev [StrictMTLSPolicyOperation ] = & adapter.Operation {
86+ Type : int32 (meshes .OpCategory_CONFIGURE ),
87+ Description : "Strict MTLS Policy" ,
88+ Templates : []adapter.Template {
89+ "file://templates/policy-strict.yaml" ,
90+ },
91+ }
92+
93+ dev [MutualMTLSPolicyOperation ] = & adapter.Operation {
94+ Type : int32 (meshes .OpCategory_CONFIGURE ),
95+ Description : "Mutual MTLS Policy" ,
96+ Templates : []adapter.Template {
97+ "file://templates/policy-mutual.yaml" ,
98+ },
99+ }
100+
101+ dev [DisableMTLSPolicyOperation ] = & adapter.Operation {
102+ Type : int32 (meshes .OpCategory_CONFIGURE ),
103+ Description : "Disable MTLS Policy" ,
104+ Templates : []adapter.Template {
105+ "file://templates/policy-disable.yaml" ,
106+ },
107+ }
108+
60109 return dev
61110}
0 commit comments