Commit bfa70377 authored by Evan Read's avatar Evan Read

Merge branch 'auto-devops-banner' into 'master'

Add Auto DevOps banner disablement detail

See merge request gitlab-org/gitlab!21333
parents 2d695583 fd1613dd
...@@ -1340,26 +1340,28 @@ spec: ...@@ -1340,26 +1340,28 @@ spec:
service account for your project. For help debugging this issue, see service account for your project. For help debugging this issue, see
[Troubleshooting failed deployment jobs](../../user/project/clusters/index.md#troubleshooting). [Troubleshooting failed deployment jobs](../../user/project/clusters/index.md#troubleshooting).
### Disable the banner instance wide ### Auto DevOps banner
If an administrator would like to disable the banners on an instance level, this The following Auto DevOps banner will show for maintainers+ on new projects when Auto DevOps is not enabled
feature can be disabled either through the console:
```sh ![Auto DevOps banner](img/autodevops_banner_v12_6.png)
sudo gitlab-rails console
```
Then run: The banner can be disabled:
```ruby - Per user when they dismiss it.
Feature.get(:auto_devops_banner_disabled).enable - Project-wide by explicitly [disabling Auto DevOps](#enablingdisabling-auto-devops).
``` - By a GitLab administrator for an entire GitLab instance by either:
- Running the following in a Rails console:
```ruby
Feature.get(:auto_devops_banner_disabled).enable
```
Or through the HTTP API with an admin access token: - Through the REST API with an admin access token:
```sh ```sh
curl --data "value=true" --header "PRIVATE-TOKEN: personal_access_token" https://gitlab.example.com/api/v4/features/auto_devops_banner_disabled curl --data "value=true" --header "PRIVATE-TOKEN: personal_access_token" https://gitlab.example.com/api/v4/features/auto_devops_banner_disabled
``` ```
[ce-37115]: https://gitlab.com/gitlab-org/gitlab-foss/issues/37115 [ce-37115]: https://gitlab.com/gitlab-org/gitlab-foss/issues/37115
[docker-in-docker]: ../../docker/using_docker_build.md#use-docker-in-docker-executor [docker-in-docker]: ../../docker/using_docker_build.md#use-docker-in-docker-executor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment