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
const readline = require('readline'); | |
const URL = 'https://api.github.com'; | |
const TIMEOUT_MS = 10000; // Aligning with the default timeout settings in RHDH/Backstage | |
let requestInterval = 3000; | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); |
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: ConfigMap | |
metadata: | |
name: app-config-rhdh | |
data: | |
"app-config-rhdh.yaml": | | |
backend: | |
auth: | |
externalAccess: | |
- type: legacy |
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: backstage.io/v1alpha1 | |
kind: User | |
metadata: | |
namespace: default | |
name: rm3l | |
spec: | |
profile: | |
displayName: rm3l | |
picture: https://blah.com/fname | |
memberOf: |
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
/** | |
* Importing this modules will configure the global undici agent, which is used to provide | |
* global `fetch()` support, to use an http proxy if present during development. Unfortunately | |
* undici doesn't come with this functionality so we implement a solution that is not fully | |
* correct as to the way that proxy environment variables are supposed to be parsed. | |
* | |
* This only goes into effect during development, though, and it's functional enough for that | |
* purpose. | |
*/ |
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: rhdh.redhat.com/v1alpha1 | |
kind: Backstage | |
metadata: | |
name: backstage-with-sidecar | |
spec: | |
# TODO: you may want to add app-config files, dynamic plugins config, extra env vars, etc. in the 'application' field. | |
# application: {} | |
rawRuntimeConfig: | |
backstageConfig: backstage-with-sidecar-runtime-config |
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: rhdh.redhat.com/v1alpha1 | |
kind: Backstage | |
metadata: | |
name: backstage-with-sidecar | |
spec: | |
# TODO: you may want to add app-config files, dynamic plugins config, extra env vars, etc. in the 'application' field. | |
# application: {} | |
rawRuntimeConfig: | |
backstageConfig: backstage-with-sidecar-runtime-config |
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
#!/bin/bash | |
# | |
# Copyright (c) 2023 Red Hat, Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
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: Namespace | |
metadata: | |
name: imageswap-system | |
labels: | |
app: imageswap | |
resource: namespace | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 |
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
#!/bin/bash | |
# set your own logins! | |
#QUAY_USER="****" | |
#QUAY_TOKEN="****" | |
#RRIO_USERNAME="****" | |
#RRIO_PASSWORD="****" | |
# login to quay.io | |
REGISTRY="quay.io" |
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
#!/bin/sh | |
NAME=$(git config user.name) | |
EMAIL=$(git config user.email) | |
if [ -z "$NAME" ]; then | |
echo "empty git config user.name" | |
exit 1 | |
fi |
NewerOlder