In the section "Countdown Logic", replace the code example with this:
def countdown(now):
piday = datetime(now.year, 3, 14)
# Add a year if we're past PiDay
if piday < now:
piday = datetime((now.year + 1), 3, 14)| # Without an argument, prints the current gopath | |
| # With a integer argument, prints the directory at the index of a multi-directory GOPATH | |
| gopath () | |
| { | |
| if [ -z "$GOPATH" ]; then | |
| echo "GOPATH not set..."; | |
| exit 1; | |
| fi; | |
| local gopath="${GOPATH}"; |
| #!/usr/bin/env bash | |
| oc get nodes -l type=compute -o=jsonpath='{range .items[*]}{.metadata.labels.hostname}{"\n"}{end}' |
| #!/usr/bin/env python | |
| from subprocess import Popen, PIPE | |
| import json | |
| def get_data_from_hive(): | |
| # Get a list of all accounts | |
| acct_cmd = [ | |
| "oc", | |
| "get", |
| #!/usr/bin/env bash | |
| # The name of the project | |
| name='aws-account-operator' | |
| # The path to be used in the Go /src/ dir | |
| project_source_path="github.com/openshift/${name}" | |
| # Set Go version you want to use | |
| go_version='1.13.1' |
| [ 0.000000] Booting Linux on physical CPU 0x0 | |
| [ 0.000000] Linux version 4.19.97-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1294 SMP Thu Jan 30 13:21:14 GMT 2020 | |
| [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d | |
| [ 0.000000] CPU: div instructions available: patching division code | |
| [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache | |
| [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1 | |
| [ 0.000000] Memory policy: Data cache writealloc | |
| [ 0.000000] cma: Reserved 256 MiB at 0x000000001ec00000 | |
| [ 0.000000] On node 0 totalpages: 1012736 | |
| [ 0.000000] DMA zone: 1728 pages used for memmap |
| #!/usr/bin/env python3 | |
| # | |
| # This script written for python3.7 | |
| # If running on hive, you will need a virtualenv. | |
| # | |
| # $ virtualenv venv -p python3.7 | |
| # $ pip install boto3 | |
| # | |
| # Then you should be able to run this script. |
| #!/bin/bash | |
| set -o errexit | |
| set -o nounset | |
| trap quit INT TERM | |
| COUNT=0 | |
| if ! [ $(id -u) = 0 ]; then |
In the section "Countdown Logic", replace the code example with this:
def countdown(now):
piday = datetime(now.year, 3, 14)
# Add a year if we're past PiDay
if piday < now:
piday = datetime((now.year + 1), 3, 14)| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: openshift-file-integrity | |
| --- | |
| apiVersion: operators.coreos.com/v1 | |
| kind: OperatorGroup | |
| metadata: |
| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| labels: | |
| kubernetes.io/metadata.name: kube-verify | |
| name: kube-verify | |
| spec: | |
| --- | |
| apiVersion: apps/v1 |