This file contains 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
# Requires: | |
# python-waldur-client=^0.3.2 | |
from waldur_client import WaldurClient, WaldurClientException | |
from collections import defaultdict | |
waldur_api_url = 'https://waldur.example.com/api/' | |
waldur_api_token = 'changeme' # Staff token | |
waldur_service_provider_uuid = 'changeme' # UUID of the service provider | |
def get_waldur_users(): |
This file contains 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
$BASE_URL="https://62.3.171.170:443" | |
$IDP_NAME="MyAccessIDAcc" | |
$SSH_TEMP_FOLDER = "/tmp/" # TODO: change me | |
# TODO: ensure your IP is whitelisted | |
# Invoke-WebRequest "$BASE_URL/provisioners" | |
function Generate-MAC { | |
param ( |
This file contains 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/sh | |
# This script creates a service account and role binding between it and provided role as well as generates kubeconfig file. | |
# Requirements: | |
# 1. connection to k8s cluster | |
# 2. presence of role for binding. | |
# List of arguments: | |
# 1. Server URL |