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
""" | |
This script will take a Humanitec application as a blueprint | |
and create a new Humanitec application from it based on the | |
last deployment set in each environment. | |
Also the pipelines of the application will be copied. | |
It's required to have your HUMANITEC_TOKEN set as an environment variable | |
The script takes 3 parameters | |
1. your Humanitec organization id |
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
import requests | |
import sys | |
humanitec_url = "api.humanitec.io" | |
def printUsage(): | |
print(f"usage: python3 {sys.argv[0]} your-humanitec-api-token") | |
exit() | |
if len(sys.argv) != 2: |
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
# This is an example test case for the Robot Framework KubeLibrary | |
# https://github.com/devopsspiral/KubeLibrary | |
*** Settings *** | |
Library KubeLibrary None True False | |
*** Variables *** | |
${POD_NAME_PATTERN} my-pod-name | |
${NAMESPACE} my-namespace | |
${IMAGE_NAME} my-image:1.0.0 |