This commit is contained in:
Bernie White 2019-05-17 09:18:33 +10:00 коммит произвёл GitHub
Родитель c61fff79ea
Коммит 6f4909cecf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 15 добавлений и 11 удалений

Просмотреть файл

@ -2,36 +2,40 @@
## Prerequisites
A separate `PSRule` module is required for `PSRule.Rules.Kubernetes` to work. The required version will automatically be installed along-side `PSRule.Rules.Kubernetes` when using `Install-Module` or `Update-Module` cmdlets.
- Windows PowerShell 5.1 with .NET Framework 4.7.2+ or
- PowerShell Core 6.0 or greater on Windows, macOS and Linux
For a list of platforms that PowerShell Core is supported on [see](https://github.com/PowerShell/PowerShell#get-powershell).
The following modules are required for `PSRule.Rules.Kubernetes` to work:
- PSRule
The required version of each module will automatically be installed along-side `PSRule.Rules.Kubernetes` when using `Install-Module` or `Update-Module` cmdlets.
## Getting the modules
Install from [PowerShell Gallery][psg] for all users (requires permissions)
Install from [PowerShell Gallery][module] for all users (requires permissions):
```powershell
# Install PSRule module
Install-Module -Name 'PSRule.Rules.Kubernetes';
# Install module
Install-Module -Name 'PSRule.Rules.Kubernetes' -Repository PSGallery;
```
Install from [PowerShell Gallery][psg] for current user only
Install from [PowerShell Gallery][module] for current user only:
```powershell
# Install PSRule module
Install-Module -Name 'PSRule.Rules.Kubernetes' -Scope CurrentUser;
# Install module
Install-Module -Name 'PSRule.Rules.Kubernetes' -Repository PSGallery -Scope CurrentUser;
```
Save for offline use from PowerShell Gallery
Save for offline use from PowerShell Gallery:
```powershell
# Save PSRule module, in the .\modules directory
# Save module, in the .\modules directory
Save-Module -Name 'PSRule', 'PSRule.Rules.Kubernetes' -Path '.\modules';
```
> For pre-release versions the `-AllowPrerelease` switch must be added when calling `Install-Module` or `Save-Module`.
[psg]: https://www.powershellgallery.com/packages/PSRule.Rules.Kubernetes
[module]: https://www.powershellgallery.com/packages/PSRule.Rules.Kubernetes