Skip to content

Commit

Permalink
Fix openapi path prefixes for validators and mutators (#732)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha authored Apr 8, 2019
1 parent c1347ed commit d63f9e9
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,15 @@ func (o StashOptions) Config() (*server.StashConfig, error) {
serverConfig.OpenAPIConfig.IgnorePrefixes = []string{
"/swaggerapi",
"/apis/admission.stash.appscode.com/v1alpha1",
"/apis/admission.stash.appscode.com/v1alpha1/restics",
"/apis/admission.stash.appscode.com/v1alpha1/recoveries",
"/apis/admission.stash.appscode.com/v1alpha1/repositories",
"/apis/admission.stash.appscode.com/v1alpha1/deployments",
"/apis/admission.stash.appscode.com/v1alpha1/daemonsets",
"/apis/admission.stash.appscode.com/v1alpha1/statefulsets",
"/apis/admission.stash.appscode.com/v1alpha1/replicationcontrollers",
"/apis/admission.stash.appscode.com/v1alpha1/replicasets",
// v1beta1 apis
"/apis/admission.stash.appscode.com/v1beta1/backupconfigurationtemplates",
"/apis/admission.stash.appscode.com/v1beta1/backupconfigurations",
"/apis/admission.stash.appscode.com/v1beta1/backupsessions",
"/apis/admission.stash.appscode.com/v1beta1/functions",
"/apis/admission.stash.appscode.com/v1beta1/restoresessions",
"/apis/admission.stash.appscode.com/v1beta1/tasks",
"/apis/admission.stash.appscode.com/v1alpha1/resticvalidators",
"/apis/admission.stash.appscode.com/v1alpha1/recoveryvalidators",
"/apis/admission.stash.appscode.com/v1alpha1/repositoryvalidators",
"/apis/admission.stash.appscode.com/v1alpha1/deploymentmutators",
"/apis/admission.stash.appscode.com/v1alpha1/daemonsetmutators",
"/apis/admission.stash.appscode.com/v1alpha1/statefulsetmutators",
"/apis/admission.stash.appscode.com/v1alpha1/replicationcontrollermutators",
"/apis/admission.stash.appscode.com/v1alpha1/replicasetmutators",
"/apis/admission.stash.appscode.com/v1alpha1/deploymentconfigmutators",
}

extraConfig := controller.NewConfig(serverConfig.ClientConfig)
Expand Down

0 comments on commit d63f9e9

Please sign in to comment.