- Make sure gosmee client installed on psi cluster
- Make sure tkn-pac is compiled from main
- Make sure we are on the right cluster ($ opac)
- Create a demo directory in /tmp (
mkdir /tmp/demo
)
gh repo create
#!/bin/bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" | |
NIGHTLY_BUILD_TAG=${NIGHTLY_BUILD_TAG:-""} | |
BUNDLE_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-gitops-1-gitops-operator-bundle:v$NIGHTLY_BUILD_TAG | |
echo -e "Bundle image: $BUNDLE_IMAGE" | |
MANAGED_GITOPS_COMPONENT_IMAGE=brew.registry.redhat.io/rh-osbs/openshift-gitops-1-managed-service-rhel8:v$NIGHTLY_BUILD_TAG | |
echo -e "Managed service component image: $MANAGED_GITOPS_COMPONENT_IMAGE" | |
USERNAME=${USERNAME:-"|20b80f70-70f6-11e9-8733-001a4a0b004e.kvcr.e09cd7"} |
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: gosmee-client | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: gosmee-client | |
template: |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: send-slack-notification | |
labels: | |
app.kubernetes.io/version: '0.1' | |
annotations: | |
tekton.dev/pipelines.minVersion: 0.13.1 | |
tekton.dev/tags: slack, openshift | |
tekton.dev/displayName: openshift |
mkdir /tmp/demo
)gh repo create
apiVersion: hive.openshift.io/v1 | |
kind: ClusterClaim | |
metadata: | |
name: gitops-01 | |
namespace: devtools-qe | |
spec: | |
clusterPoolName: gitops-49 |
#!/usr/bin/env bash | |
set -euo pipefail | |
ENVSTAGE="stage" | |
INDEX=${INDEX:-} | |
ENVIRONMENT=${ENVIRONMENT:-"pre-stage"} | |
IS_DISCONNECTED=${IS_DISCONNECTED:-"false"} | |
MIRROR_REG=${MIRROR_REG:-"quay.io"} | |
MIRROR_REG_REPO=${MIRROR_REG_REPO:-"praveen4g0"} | |
if [[ $ENVIRONMENT == "prod" && $IS_DISCONNECTED == "false" ]]; then |
#!/bin/bash | |
BREW_IIB_PREFIX="brew.registry.redhat.io/rh-osbs/iib" | |
MIRROR_REG=${MIRROR_REG:-"brew.registry.redhat.io"} | |
USERNAME=${USERNAME:-"|shared-qe-temp.zmns.153b77"} | |
PASSWORD=${PASSWORD:-} | |
INDEX=${INDEX:-} | |
ENVIRONMENT=${ENVIRONMENT:-"pre-stage"} |
package backend | |
import ( | |
"context" | |
"fmt" | |
"strings" | |
"gopkg.in/yaml.v2" | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
"k8s.io/client-go/kubernetes" |
package main | |
import ( | |
"fmt" | |
"log" | |
"math" | |
"os" | |
"sync" | |
"time" | |
) |
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
type ( | |
Event struct { |