apiVersion: v1
kind: Secret
metadata:
name: test-readonly-credentials
type: kubernetes.io/dockercfg
data:
# Generated by:
This file contains hidden or 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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)" | |
echo "Creating secret htpass-secret ---" | |
oc create secret generic htpass-secret --from-file=htpasswd=$DIR/users.htpasswd -n openshift-config | |
echo "Creating a htpasswd identity provider" | |
oc apply -f $DIR/test-oauth.yaml |
This file contains hidden or 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: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: task-echo-message | |
spec: | |
params: | |
- name: MESSAGE1 | |
type: string | |
default: "Hello World-1" | |
- name: MESSAGE2 |
This file contains hidden or 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: Secret | |
metadata: | |
name: git-ssh | |
annotations: | |
tekton.dev/git-0: github.com | |
type: kubernetes.io/ssh-auth | |
data: | |
# Generated by: | |
# cat id_rsa | base64 -w 0 |
This file contains hidden or 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: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: show-non-root-steps | |
spec: | |
steps: | |
# no securityContext specified so will use | |
# securityContext from TaskRun podTemplate | |
- name: show-user-1001 | |
image: ubuntu |
This file contains hidden or 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 | |
# Generate test coverage statistics for Go packages. | |
# | |
set -e | |
workdir=.cover | |
profile="$workdir/cover.out" | |
mode=count | |
generate_cover_data() { |
This file contains hidden or 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: tekton.dev/v1alpha1 | |
kind: Task | |
metadata: | |
name: task1 | |
spec: | |
steps: | |
- name: task-one-step-one | |
image: ubuntu | |
command: ["/bin/bash"] | |
args: ['-c', 'for i in {1..2}; do echo GONLOGGIN 1 && sleep 1; done;'] |
This file contains hidden or 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: triggers.tekton.dev/v1alpha1 | |
kind: TriggerTemplate | |
metadata: | |
name: v1alpha1-task-template | |
spec: | |
resourcetemplates: | |
- apiVersion: tekton.dev/v1alpha1 | |
kind: TaskRun | |
metadata: |
This file contains hidden or 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: LimitRange | |
metadata: | |
name: limit-mem-cpu-per-container | |
spec: | |
limits: | |
- max: | |
cpu: "800m" | |
memory: "100Mi" | |
min: |
This file contains hidden or 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: tekton.dev/v1beta1 | |
kind: TaskRun | |
metadata: | |
generateName: test-unnamed-correct- | |
spec: | |
taskSpec: | |
steps: | |
- image: ubuntu | |
script: | | |
#!/usr/bin/env bash |