Skip to content

Instantly share code, notes, and snippets.

View wgordon17's full-sized avatar

Will Gordon wgordon17

  • Red Hat
  • North Carolina
  • 00:43 (UTC -04:00)
View GitHub Profile
from pathlib import Path
def hello() -> str:
ret_str= "Hello from fmt-test!"
return ret_str
import logging
from datetime import datetime
from json import JSONDecodeError
from typing import Any
from typing import Dict
from typing import List
from typing import Optional
import httpx
import jwt
def make_exe():
# https://pyoxidizer.readthedocs.io/en/stable/pyoxidizer_config_type_python_distribution.html
dist = default_python_distribution()
# https://pyoxidizer.readthedocs.io/en/stable/pyoxidizer_config_type_python_packaging_policy.html
policy = dist.make_python_packaging_policy()
policy.resources_location_fallback = "filesystem-relative:lib"
# https://pyoxidizer.readthedocs.io/en/stable/pyoxidizer_config_type_python_interpreter_config.html
python_config = dist.make_python_interpreter_config()
{
"name": "testing",
"version": "0",
"description": "",
"keywords": [],
"author": "",
"devDependencies": {
"search-list-react": "^1.1.0"
}
}
@wgordon17
wgordon17 / setup-vpc.tf
Last active March 28, 2023 03:19
Existing VPC Terraform
variable "aws_region" {
type = string
description = "The region to create the ROSA cluster in"
default = "us-east-1"
validation {
condition = contains(["us-east-1", "eu-west-1"], var.aws_region)
error_message = "HyperShift is currently only availble in these regions: us-east-1, eu-west-1."
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"name": "learning-portal-production",
"annotations": {
"openshift.io/display-name": "Learning Portal (Production)"
}
},
"parameters": [
# Console DNS failure
2019-01-03 15:50:40.670231 UTC - [Parent 46910: Main Thread]: D/nsHostResolver Resolving host [console-openshift-console.apps.openshift.willandsteph.com] - bypassing cache type 0. [this=0x118a68310]
2019-01-03 15:50:40.670243 UTC - [Parent 46910: Main Thread]: D/nsHostResolver No usable record in cache for host [console-openshift-console.apps.openshift.willandsteph.com] type 0.
2019-01-03 15:50:40.670257 UTC - [Parent 46910: Main Thread]: D/nsHostResolver DNS thread counters: total=2 any-live=0 idle=2 pending=1
2019-01-03 15:50:40.670267 UTC - [Parent 46910: Main Thread]: D/nsHostResolver DNS lookup for host [console-openshift-console.apps.openshift.willandsteph.com] blocking pending 'getaddrinfo' or trr query: callback [0x141872ee0]
2019-01-03 15:50:40.670285 UTC - [Parent 46910: DNS Resolver #5]: D/nsHostResolver DNS lookup thread - Calling getaddrinfo for host [console-openshift-console.apps.openshift.willandsteph.com].
2019-01-03 15:50:40.671341 UTC - [Parent 46910: DNS Resolve
time="2018-12-14T13:05:06-05:00" level=debug msg="Fetching \"Terraform Variables\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg="Loading \"Terraform Variables\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Install Config\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Cluster ID\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"SSH Key\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Base Domain\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Cluster Name\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Pull Secret\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Platform\"..."
time="2018-12-14T13:05:06-05:00" level=debug msg=" Loading \"Bootstrap Ignition Config\"..."
@wgordon17
wgordon17 / minimal-dc.yaml
Created November 1, 2018 19:09
An example of minimum required deployment config for OpenShift
kind: DeploymentConfig
apiVersion: v1
metadata:
name: minimal-dc
spec:
replicas: 1
selector:
name: busybox
template:
metadata: