Edit /etc/pam.d/sudo add after header:
auth sufficient pam_tid.so
File should look like this in the end:
| // Returns all duplicates in an array based on an id function. | |
| local findDuplicates(a, id=function(o) o) = | |
| std.foldl( | |
| function(prev, o) | |
| prev { | |
| set: std.set(super.set + [ o ], id), | |
| duplicates: super.duplicates + if std.setMember(o, super.set,id) then [ o ] else [], | |
| }, | |
| a, | |
| { set: [], duplicates: [] } |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/google/go-jsonnet" | |
| "github.com/google/go-jsonnet/ast" | |
| ) |
| h2. Summary | |
| *As* a VSHN customer user | |
| *I want* to search and visualise my logs | |
| *So that* I can check my application health and be aided with debugging it.- | |
| h2. Context | |
| APPUiO Public has 2.4TB Log Volumes for ~10 days retention. |
| diff -rub compiled-4.8/openshift4-monitoring/openshift4-monitoring/prometheus_rules.yaml compiled/openshift4-monitoring/openshift4-monitoring/prometheus_rules.yaml | |
| --- compiled-4.8/openshift4-monitoring/openshift4-monitoring/prometheus_rules.yaml 2021-11-15 16:12:31.000000000 +0100 | |
| +++ compiled/openshift4-monitoring/openshift4-monitoring/prometheus_rules.yaml 2021-11-15 16:13:35.000000000 +0100 | |
| @@ -156,8 +156,10 @@ | |
| syn: 'true' | |
| - alert: SYN_SamplesTBRInaccessibleOnBoot | |
| annotations: | |
| - message: 'Samples operator could not access ''registry.redhat.io'' during | |
| - its initial installation and it bootstrapped as removed. | |
| + message: 'One of two situations has occurred. Either |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: merge-configmap | |
| labels: | |
| test: insert-merged | |
| --- | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: |
| #!/bin/bash | |
| set -euo pipefail | |
| kubectl --as=cluster-admin get clusterrole -ojson | jq '[ .items[] | |
| | select( | |
| .rules[]? | |
| | select( | |
| (.apiGroups[]? == "" or .apiGroups[]? == "*") | |
| and |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: readiness-test-ready | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: readiness-test-ready | |
| pdb: readiness-test | |
| template: |
| &http.Transport{ | |
| Proxy: http.ProxyFromEnvironment, | |
| } |
| tk eval environments/default | jq --raw-output '[paths(scalars) as $$p | select($$p[-1] == "image") | getpath($$p)] | unique[]' | tee -a images.txt |