Skip to content

Commit

Permalink
Document CRD not found errors
Browse files Browse the repository at this point in the history
Signed-off-by: Nolan Brubaker <nolan@heptio.com>
  • Loading branch information
Nolan Brubaker committed Aug 2, 2018
1 parent 6f061db commit eb6f742
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ Related to this, if you need to restore a backup from cluster A into cluster B,
mode in cluster B's Ark instance while it's configured to use cluster A's bucket. This will ensure no
new backups are created, and no existing backups are deleted or overwritten.

## I receive 'custom resource not found' errors when starting up the Ark server

Ark's server will not start if the required Custom Resource Definitions are not found in Kubernetes. Apply
the `examples/common/00-prereqs.yaml` file to create these defintions, then restart Ark.

[1]: config-definition.md#main-config-parameters
3 changes: 2 additions & 1 deletion pkg/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (s *server) arkResourcesExist() error {
}

if arkGroupVersion == nil {
return errors.Errorf("Ark API group %s not found", api.SchemeGroupVersion)
return errors.Errorf("Ark API group %s not found. Apply examples/common/00-prereqs.yaml to create it.", api.SchemeGroupVersion)
}

foundResources := sets.NewString()
Expand All @@ -347,6 +347,7 @@ func (s *server) arkResourcesExist() error {
}

if len(errs) > 0 {
errs = append(errs, errors.New("Ark custom resources not found - apply examples/common/00-prereqs.yaml to update the custom resource definitions"))
return kubeerrs.NewAggregate(errs)
}

Expand Down

0 comments on commit eb6f742

Please sign in to comment.