Skip to content

Commit d63f9e9

Browse files
authored
Fix openapi path prefixes for validators and mutators (#732)
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent c1347ed commit d63f9e9

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

server/start.go

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,15 @@ func (o StashOptions) Config() (*server.StashConfig, error) {
7777
serverConfig.OpenAPIConfig.IgnorePrefixes = []string{
7878
"/swaggerapi",
7979
"/apis/admission.stash.appscode.com/v1alpha1",
80-
"/apis/admission.stash.appscode.com/v1alpha1/restics",
81-
"/apis/admission.stash.appscode.com/v1alpha1/recoveries",
82-
"/apis/admission.stash.appscode.com/v1alpha1/repositories",
83-
"/apis/admission.stash.appscode.com/v1alpha1/deployments",
84-
"/apis/admission.stash.appscode.com/v1alpha1/daemonsets",
85-
"/apis/admission.stash.appscode.com/v1alpha1/statefulsets",
86-
"/apis/admission.stash.appscode.com/v1alpha1/replicationcontrollers",
87-
"/apis/admission.stash.appscode.com/v1alpha1/replicasets",
88-
// v1beta1 apis
89-
"/apis/admission.stash.appscode.com/v1beta1/backupconfigurationtemplates",
90-
"/apis/admission.stash.appscode.com/v1beta1/backupconfigurations",
91-
"/apis/admission.stash.appscode.com/v1beta1/backupsessions",
92-
"/apis/admission.stash.appscode.com/v1beta1/functions",
93-
"/apis/admission.stash.appscode.com/v1beta1/restoresessions",
94-
"/apis/admission.stash.appscode.com/v1beta1/tasks",
80+
"/apis/admission.stash.appscode.com/v1alpha1/resticvalidators",
81+
"/apis/admission.stash.appscode.com/v1alpha1/recoveryvalidators",
82+
"/apis/admission.stash.appscode.com/v1alpha1/repositoryvalidators",
83+
"/apis/admission.stash.appscode.com/v1alpha1/deploymentmutators",
84+
"/apis/admission.stash.appscode.com/v1alpha1/daemonsetmutators",
85+
"/apis/admission.stash.appscode.com/v1alpha1/statefulsetmutators",
86+
"/apis/admission.stash.appscode.com/v1alpha1/replicationcontrollermutators",
87+
"/apis/admission.stash.appscode.com/v1alpha1/replicasetmutators",
88+
"/apis/admission.stash.appscode.com/v1alpha1/deploymentconfigmutators",
9589
}
9690

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

0 commit comments

Comments
 (0)