Skip to content

Instantly share code, notes, and snippets.

View nickboldt's full-sized avatar

Nick Boldt nickboldt

View GitHub Profile
@janus-idp/backstage-plugin-rbac:test: Summary of all failing tests
@janus-idp/backstage-plugin-rbac:test: FAIL components/RolesList/DeleteRoleDialog.test.tsx (17.47 s)
@janus-idp/backstage-plugin-rbac:test: ● DeleteRoleDialog › enables the delete button when the role name is correctly entered
@janus-idp/backstage-plugin-rbac:test:
@janus-idp/backstage-plugin-rbac:test: expect(element).not.toBeDisabled()
@janus-idp/backstage-plugin-rbac:test:
@janus-idp/backstage-plugin-rbac:test: Received element is disabled:
@janus-idp/backstage-plugin-rbac:test: <button class="MuiButtonBase-root MuiButton-root MuiButton-contained Mui-disabled Mui-disabled" disabled="" tabindex="-1" type="button" />
@janus-idp/backstage-plugin-rbac:test:
@janus-idp/backstage-plugin-rbac:test: Ignored nodes: comments, script, style
@nickboldt
nickboldt / README.dynamic-plugin-metadata.adoc
Last active May 3, 2024 14:59
README.dynamic-plugin-metadata.adoc

Package.json dynamic plugin metadata

To make it easier to categorize dynamic plugins, this is a proposal to add some standardized keywords, a new supported-versions field to the backstage field, and to encourage use of several standard package.json fields.

For example:

{
  "name": "@janus-idp/backstage-plugin-myplugin",
  "version": "0.7.2",
@nickboldt
nickboldt / plugin versions in janus plugins repo 1.1.x branch
Last active March 26, 2024 19:50
plugin versions in janus plugins repo 1.1.x branch vs. showcase 1.1.x branch
3scale-backend 1.4.4
aap-backend 1.5.2
acr 1.2.25
analytics-module-matomo 1.0.3
analytics-provider-segment 1.2.8
dynamic-frontend-plugin 0.0.1
dynamic-plugins-info 1.0.2
feedback 1.0.1
feedback-backend 1.1.1
jfrog-artifactory 1.2.25
@nickboldt
nickboldt / helm-values-testing.yaml
Last active February 7, 2024 20:24
install helm chart
global:
dynamic:
# -- Array of YAML files listing dynamic plugins to include with those listed in the `plugins` field.
# Relative paths are resolved from the working directory of the initContainer that will install the plugins (`/opt/app-root/src`).
includes:
# -- List of dynamic plugins included inside the `janus-idp/backstage-showcase` container image, some of which are disabled by default.
# This file ONLY works with the `janus-idp/backstage-showcase` container image.
- 'dynamic-plugins.default.yaml'
# -- List of dynamic plugins, possibly overriding the plugins listed in `includes` files.
@nickboldt
nickboldt / blobless-sparse-git-clone.sh
Last active January 24, 2024 03:57
faster git checkout options
#!/bin/bash
# for large repos or repos with binary blobs in them, this is much faster
FORK=https://github.com/rhdh-bot/openshift-helm-charts.git
GIT_DIR=/tmp/catalog
BRANCH=rhdh-1-rhel-9
# under 2 seconds
# remote: Counting objects: 100% (4/4), done.
#!/bin/bash
#
# Copyright (c) 2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# for changes to midstream or missed changes upstream (due to pipeline failure),
@nickboldt
nickboldt / index.yaml
Last active November 17, 2023 02:55
RHDH CI build helmchart index.yaml - moved to https://gist.github.com/rhdh-bot/63cef5cb6285889527bd6a67c0e1c2a9 !
apiVersion: v1
entries:
developer-hub:
- annotations:
artifacthub.io/category: integration-delivery
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: support
url: https://github.com/janus-idp/helm-backstage/issues
- name: Chart Source
@nickboldt
nickboldt / dsc-update.sh
Created October 26, 2023 13:51
update dsc from a newer quay tag
#!/bin/bash
if [[ $1 ]]; then
DSC_VERSION="${1}"
else
DSC_VERSION="next"
fi
cd /tmp || exit;
curl -sSLO https://raw.githubusercontent.com/redhat-developer/devspaces-chectl/devspaces-3-rhel-8/build/scripts/installDscFromContainer.sh; chmod +x installDscFromContainer.sh
./installDscFromContainer.sh "quay.io/devspaces/dsc:${DSC_VERSION}" -t $HOME --verbose
@nickboldt
nickboldt / install-rhdh-latest-build.sh
Last active February 26, 2024 13:55
Install ISCP, CatalogSource from quay.io/rhdh/iib:{next or latest}-${OCP_VER}-${OCP_ARCH}, then install Subscription
# code yoinked from https://gitlab.cee.redhat.com/rhidp/rhdh/-/blob/rhdh-1-rhel-9/build/scripts/installCatalogSourceFromIIB.sh
TMPDIR=/tmp
NAMESPACE="openshift-operators"
INSTALL_PLAN_APPROVAL="Automatic"
OLM_CHANNEL="fast"
# log into your OCP cluster before running this or you'll get null values for OCP vars!
OCP_VER="v$(oc version -o json | jq -r '.openshiftVersion' | sed -r -e "s#([0-9]+\.[0-9]+)\..+#\1#")"
OCP_ARCH="$(oc version -o json | jq -r '.serverVersion.platform' | sed -r -e "s#linux/##")"
@nickboldt
nickboldt / icsp-quay.io.sh
Created September 19, 2023 15:11
Apply an Image Content Source Policy for registry.redhat.io --> quay.io for installing RH DH unreleased CI builds
TMPDIR=/tmp
for ICSP_URL in quay.io/rhdh/; do
ICSP_URL_PRE=${ICSP_URL%%/*}
# echo "[DEBUG] ${ICSP_URL_PRE}, ${ICSP_URL_PRE//./-}, ${ICSP_URL}"
echo "apiVersion: operator.openshift.io/v1alpha1
kind: ImageContentSourcePolicy
metadata:
name: ${ICSP_URL_PRE//./-}
spec: