Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
feat(docs): document how to hide stages from end-users (#1807)
Browse files Browse the repository at this point in the history
* feat(docs): document how to hide stages from end-users

* fix(docs): address dorbin@ code review comments

Co-authored-by: Dave Dorbin <[email protected]>
  • Loading branch information
maggieneterval and dorbin authored Apr 21, 2020
1 parent 15d5826 commit deaf33a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ guides:
url: /guides/operator/webhook-custom-trust-store/
- title: "Orca: Redis to SQL"
url: /guides/operator/orca-redis-to-sql/
- title: Hiding Stages
url: /guides/operator/hiding-stages/
- title: Runbooks
collapsed: true
children:
Expand Down
16 changes: 16 additions & 0 deletions guides/operator/hiding-stages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: single
title: "Hiding Stages"
sidebar:
nav: guides
---

If you're using Spinnaker 1.20 or later, stages that are not provider-specific will be
available by default. To hide specific stages from end-users, set the
`hiddenStages` property in Deck's [custom profile](/reference/halyard/custom/#custom-profile-for-deck)
to a list of the keys of stages you wish to hide. For example, to hide the
Gremlin and Travis stages, include the following in `settings-local.js`:

```js
window.spinnakerSettings.hiddenStages = ['gremlin', 'travis'];
```
2 changes: 1 addition & 1 deletion setup/ci/travis.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos you should see.

`hal config ci travis enable`

1. Turn on the Travis stage feature:
1. If you're using Spinnaker 1.19 or earlier, turn on the Travis stage feature:

`hal config features edit --travis true`

Expand Down
2 changes: 1 addition & 1 deletion setup/ci/wercker.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ and credentials.
hal config ci wercker enable
```

2. And that the Wercker stage feature flag is turned on:
2. If you're using Spinnaker 1.19 or earlier, make sure that the Wercker stage feature flag is turned on:

```bash
hal config features edit --wercker true
Expand Down

0 comments on commit deaf33a

Please sign in to comment.