File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,26 @@ impl DefinitionSetTransformer for ExcludePermissions {
86
86
}
87
87
}
88
88
89
+ #[ derive( Default , Debug ) ]
90
+ pub struct ExcludeRuntimeParameters { }
91
+
92
+ impl DefinitionSetTransformer for ExcludeRuntimeParameters {
93
+ fn transform < ' a > ( & self , defs : & ' a mut ClusterDefinitionSet ) -> & ' a mut ClusterDefinitionSet {
94
+ defs. parameters = Vec :: new ( ) ;
95
+ defs
96
+ }
97
+ }
98
+
99
+ #[ derive( Default , Debug ) ]
100
+ pub struct ExcludePolicies { }
101
+
102
+ impl DefinitionSetTransformer for ExcludePolicies {
103
+ fn transform < ' a > ( & self , defs : & ' a mut ClusterDefinitionSet ) -> & ' a mut ClusterDefinitionSet {
104
+ defs. policies = Vec :: new ( ) ;
105
+ defs
106
+ }
107
+ }
108
+
89
109
//
90
110
// Transformation chain
91
111
//
@@ -112,6 +132,12 @@ impl From<Vec<&str>> for TransformationChain {
112
132
"exclude_permissions" => {
113
133
vec. push ( Box :: new ( ExcludePermissions :: default ( ) ) ) ;
114
134
}
135
+ "exclude_runtime_parameters" => {
136
+ vec. push ( Box :: new ( ExcludeRuntimeParameters :: default ( ) ) ) ;
137
+ }
138
+ "exclude_policies" => {
139
+ vec. push ( Box :: new ( ExcludePolicies :: default ( ) ) ) ;
140
+ }
115
141
_ => {
116
142
vec. push ( Box :: new ( NoOp :: default ( ) ) ) ;
117
143
}
You can’t perform that action at this time.
0 commit comments