Skip to content

Instantly share code, notes, and snippets.

View mflanneryii's full-sized avatar

Michael Flannery II mflanneryii

View GitHub Profile
@PiotrCzapla
PiotrCzapla / nre_deployment.py
Last active June 24, 2022 17:11
Python script to log a new relic deployment information with minimal python dependency
"""
Python script to log a new relic deployment information with minimsl dependencies
# Usage:
The scripts accepts either `list` or `new` commands
$ API_KEY="..." APP_ID="..."" python nr_deployment.py new 'rev id' "my title"\
--description="some desc" --timestamp='2022-01-02' --user='test'
# Credentials configuration
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
component: resolv
tier: node
name: resolv
namespace: default
spec:
selector:
@isaac-ped
isaac-ped / ResourceGroup.py
Last active May 8, 2023 21:30
Automatic instantiation of single-use component resources
"""
Automatically define singleton resource groups
The structure of the python pulumi library is such that many properties
of resources are not easily modifyable after initialization.
This module functions by delaying the creation of resource attributes
within the ResourceGroup class until the class has been fully instantiated.
"""
from typing import Any, ClassVar, Iterable, TypeVar, Generic