Skip to content

Commit 3f1f4cf

Browse files
hossainemruztamalsaha
authored andcommitted
Remove importance of order of rule in RestoreSession (#795)
Tasks: - [x] Remove importance of rule order - [x] Add validator to ensure followings, - [x] There is at most one rule with empty targetHosts field. - [x] No two rule with non-empty targetHosts matches for a host. - [x] If snapshot is specified in a rule then paths is not specified. - [x] Update concept doc to make rules behavior clear Fixes: stashed/stash#790
1 parent 86a4af0 commit 3f1f4cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func (o StashOptions) Config() (*server.StashConfig, error) {
8686
"/apis/admission.stash.appscode.com/v1alpha1/replicationcontrollermutators",
8787
"/apis/admission.stash.appscode.com/v1alpha1/replicasetmutators",
8888
"/apis/admission.stash.appscode.com/v1alpha1/deploymentconfigmutators",
89+
"/apis/admission.stash.appscode.com/v1beta1/restoresessionvalidators",
8990
}
9091

9192
extraConfig := controller.NewConfig(serverConfig.ClientConfig)

0 commit comments

Comments
 (0)