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
curl -LO https://github.com/harness/harness-cli/releases/download/v0.0.15-Preview/harness-v0.0.15-Preview-darwin-amd64.tar.gz | |
tar -xvf harness-v0.0.15-Preview-darwin-amd64.tar.gz | |
export PATH="$(pwd):$PATH" | |
echo 'export PATH="'$(pwd)':$PATH"' >> ~/.bash_profile | |
minikube start --memory 4g --cpus 4 | |
kubectl create namespace mygitopsns | |
helm install gitops-agent ./gitops-agent.tgz -n mygitopsns | |
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
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: grafana-pvc | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
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
apiVersion: shipa.crossplane.io/v1alpha1 | |
kind: AppDeploy | |
metadata: | |
name: deploy-of-some-app | |
spec: | |
forProvider: | |
app: cp-app-prod | |
image: "public.ecr.aws/j7f8d3t2/todoapp" |
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
#!/usr/bin/env bash | |
usage() { | |
local -r _exitCode="${1}" | |
local -r _errorMessage="${2}" | |
if [[ -n "${_errorMessage}" ]]; then | |
printf >&2 "[ERROR] %s\n\n" "${_errorMessage}" | |
fi | |
echo " Connects to a Kubernetes cluster, pulls a diagnostic information and creates a bundle for Shipa Support." | |
echo >&2 " Usage: $0 [-o output_base_dir] [-s control_plan_namespace] [-m managed_namespace_1 managed_namespace_2 managed_namespace_n...] [-h]" |
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
apiVersion: shipa.crossplane.io/v1alpha1 | |
kind: AppDeploy | |
metadata: | |
name: first-deploy-of-wordpress | |
spec: | |
forProvider: | |
app: wordpress | |
image: "docker.io/wordpress" |
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
apiVersion: shipa.crossplane.io/v1alpha1 | |
kind: App | |
metadata: | |
name: wordpress-app-create | |
spec: | |
forProvider: | |
name: wordpress | |
teamowner: shipa-team | |
framework: cp-dev |
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
apiVersion: shipa.crossplane.io/v1alpha1 | |
kind: Cluster | |
metadata: | |
name: cp-cluster | |
spec: | |
forProvider: | |
name: cp-cluster | |
endpoint: | |
addresses: ["https://k8s-api.url:6443"] | |
caCert: | |
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
apiVersion: shipa.crossplane.io/v1alpha1 | |
kind: Framework | |
metadata: | |
name: cp-dev | |
spec: | |
forProvider: | |
shipaFramework: cp-dev | |
resources: | |
general: | |
setup: |
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
//App.tsx | |
// @ts-nocheck | |
//Import | |
import { Event, initialize } from '@harnessio/ff-javascript-client-sdk'; | |
//App Function | |
const [featureFlags, setFeatureFlags] = useState({}); |
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
#Docker Compose Install | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
docker-compose --version |