This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Utility script to create a Terraform working directory from a repository | |
| .EXAMPLE | |
| Copy-QaInfra.ps1 -VariablePath ./mke_412_rc1 -DestinationPath ./mke_412_ga -Verbose | |
| #> | |
| [CmdletBinding()] | |
| param ( | |
| # Path to the items to copy | |
| [ValidateScript({Test-Path $_ -PathType Container})] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Gets AWS VPC peering connections | |
| .DESCRIPTION | |
| Sometimes we use peering connections to connect VPCs (especially convenient to allow an MKE | |
| cluster to reach an LDAP server | |
| .PARAMETER Region | |
| AWS region where the VPCs reside | |
| .NOTES | |
| Author - rleap@mirantis.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ============================================ | |
| # MKE / Dex OAuth2 PKCE token fetcher (bash-only) | |
| # - Auth Code + PKCE: interactive (copy/paste code) | |
| # - Refresh grant: non-interactive | |
| # | |
| # deps: bash, curl, openssl, base64, tr, sed | |
| # (jq optional; script falls back to sed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Defaults (can be overridden by CLI flags) | |
| HARBOR_URL="${HARBOR_URL:-}" | |
| HARBOR_USER="${HARBOR_USER:-}" | |
| HARBOR_PWD="${HARBOR_PWD:-}" | |
| PREFIX="migration-rule-" | |
| PAGE_SIZE=100 | |
| MODE="all" | |
| LATEST_ONLY="false" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| PAGE_SIZE=100 | |
| # Default values from environment, can be overridden via CLI | |
| HARBOR_URL="${HARBOR_URL:-}" | |
| HARBOR_USER="${HARBOR_USER:-}" | |
| HARBOR_PWD="${HARBOR_PWD:-}" | |
| DRY_RUN=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| # Default ports | |
| ENZI_RETHINKDB_PORT=28015 | |
| ENZI_CLUSTER_PORT=29015 | |
| MSR_RETHINKDB_PORT=28016 | |
| MSR_CLUSTER_PORT=29016 | |
| SCRIPT_NAME=$(basename "$0") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Script to assign team's permissions to organizational repositories in MSR registry. | |
| .PARAMETER MkeUrl | |
| The URL of the MKE server. | |
| .PARAMETER MkrCred | |
| The credentials for the MKE server. | |
| .PARAMETER MsrRegistryHost | |
| The MSR Registry hostname. | |
| .PARAMETER MsrAccessToken |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Script to populate each MSR org with one or more repositories | |
| .DESCRIPTION | |
| This script will take a list of local images and push them to the MSR registry for each MKE organization. | |
| It will create a new repository for each image in the MSR registry and push the image to that repository. | |
| .PARAMETER MkeUrl | |
| The URL of the MKE server. | |
| .PARAMETER MkrCred | |
| The credentials for the MKE server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Script to connect AD resources with MKE | |
| .PARAMETER ParentOu | |
| The distinguished name of the parent organizational unit where all AD resources to be sync'd reside. | |
| .PARAMETER MkeUrl | |
| The URL of the MKE server. | |
| .PARAMETER MkeCred | |
| The credentials for the MKE server. | |
| .PARAMETER LdapServerUrl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "mkeReleaseVersion": "v4.0.1-alpha.2", | |
| "blueprintOperatorVersion": "v1.0.18", | |
| "mkeOperatorVersion": "v1.2.1", | |
| "k0sVersion": "v1.31.1+k0s.1", | |
| "isLatest": true, | |
| "minimumMkectlVersion": "" | |
| }, | |
| { |
NewerOlder