diff --git a/.github/workflows/blank.yml b/.github/workflows/publish-psgal.yml similarity index 86% rename from .github/workflows/blank.yml rename to .github/workflows/publish-psgal.yml index 800f64e..a04e613 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/publish-psgal.yml @@ -18,12 +18,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - # Set up PowerShell environment - - name: Setup PowerShell - uses: actions/setup-powershell@v2 - with: - pwsh-version: '7.x' - # Validate the module (ensure it loads correctly) - name: Validate PowerShell Module run: | diff --git a/KubeTidy.psd1 b/KubeTidy.psd1 index 9340ce3..e55ebbf 100644 --- a/KubeTidy.psd1 +++ b/KubeTidy.psd1 @@ -12,7 +12,7 @@ RootModule = 'KubeTidy.psm1' # Version number of this module. -ModuleVersion = '0.0.2' +ModuleVersion = '0.0.4' # Supported PSEditions # CompatiblePSEditions = @() @@ -95,7 +95,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - # Tags = @(Kubernetes Kubeconfig Cleanup) + Tags = @('Kubernetes', 'PowerShell', 'Windows', 'DevOps', 'KubeTidy', 'kubeconfig') # A URL to the license for this module. LicenseUri = 'https://github.com/PixelRobots/KubeTidy/blob/main/LICENSE' @@ -116,7 +116,7 @@ PrivateData = @{ # RequireLicenseAcceptance = $false # External dependent modules of this module - # ExternalModuleDependencies = @(powershell-yaml) + RequiredModules = @(@{ModuleName="powershell-yaml"; ModuleVersion="0.4.2"}) } # End of PSData hashtable diff --git a/KubeTidy.psm1 b/KubeTidy.psm1 index 2220fa3..133206c 100644 --- a/KubeTidy.psm1 +++ b/KubeTidy.psm1 @@ -21,10 +21,10 @@ .NOTES Script Name: KubeTidy Author: Richard Hooper - Version: 0.1 + Version: 0.4 .EXAMPLE - .\KubeTidy.ps1 -KubeConfigPath "$HOME\.kube\config" -ExclusionList "cluster1,cluster2,cluster3" + Invoke-KubeTidyCleanup -KubeConfigPath "$HOME\.kube\config" -ExclusionList "aks-prod-cluster,aks-staging-cluster"" #> [CmdletBinding()]