Skip to content

Instantly share code, notes, and snippets.

View rhopp's full-sized avatar

Radim Hopp rhopp

  • Red Hat
View GitHub Profile
---
apiVersion: 1.0.0
metadata:
generateName: covidVolutneering-
projects:
-
name: node-app
source:
type: git
location: "[email protected]:rhopp/node-app.git"
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(
com.cloudbees.plugins.credentials.Credentials.class
)
for (c in creds) {
println(c.id)
println(c.class)
if (c.properties.username) {
println(" description: " + c.description)
}
---
apiVersion: 1.0.0
metadata:
generateName: nodejs-
projects:
-
name: nodejs-web-app
source:
type: git
location: "https://github.com/eclipse/che.git"
metadata:
name: wksp-kjuo
projects:
- name: java-web-spring
source:
location: 'https://github.com/spring-projects/spring-petclinic.git'
type: git
branch: master
attributes:
persistVolumes: 'false'
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "test-operatorhub-installation",
"problemMatcher": [],
"options": {
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
apiVersion: org.eclipse.che/v1
kind: CheCluster
metadata:
creationTimestamp: '2019-11-22T13:39:30Z'
generation: 13
name: codeready-workspaces
namespace: crw2-upstream-tests-pipeline
resourceVersion: '809051'
selfLink: >-
/apis/org.eclipse.che/v1/namespaces/crw2-upstream-tests-pipeline/checlusters/codeready-workspaces
apiVersion: org.eclipse.che/v1
kind: CheCluster
metadata:
name: codeready-workspaces
spec:
server:
airGapContainerRegistryHostname: 'image-registry.openshift-image-registry.svc:5000'
airGapContainerRegistryOrganization: 'openshift'
# server image used in Che deployment
cheImage: ''
apiVersion: org.eclipse.che/v1
kind: CheCluster
metadata:
name: eclipse-che
spec:
server:
# server image used in Che deployment
cheImage: 'quay.io/crw/server-rhel8'
# tag of an image used in Che deployment
cheImageTag: '2.0-377'
#!/bin/bash
CLUSTER_NAME=<cluster_name - for example 'rhopp-qa'>
HOSTED_ZONE_ID=Z3URY6TWQ91KVV
# aws route53 list-resource-record-sets --hosted-zone-id ${HOSTED_ZONE_ID} --output json > allRecordSets.json
jq ".ResourceRecordSets[] | select(.Name | contains(\"api.${CLUSTER_NAME}.devcluster.openshift.com\"))" allRecordSets.json > apiRecordSet.json
jq ".ResourceRecordSets[] | select(.Name | contains(\"\\\\052.apps.${CLUSTER_NAME}.devcluster.openshift.com\"))" allRecordSets.json > appsRecordSet.json