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
#@ load("@ytt:data", "data") | |
#@ if/end data.values.configFileContents.defaultHttpVersions: | |
default-http-versions: #@ data.values.configFileContents.defaultHttpVersions |
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
#@ load("@ytt:data","data") | |
#@ load("@ytt:yaml","yaml") | |
#@ load("@ytt:struct","struct") | |
--- | |
#@ tests = [] | |
#@ test_defintions = data.read("/tests.yaml") | |
#@ for i in test_defintions.split("---"): | |
#@ value = struct.encode(yaml.decode(i)) | |
#@ if type(value) != "NoneType": | |
#@ tests.append(value["metadata"]["name"]) |
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: test.sample.dev/v1beta1 | |
kind: Test | |
metadata: | |
name: name | |
spec: | |
exercises: | |
files: | |
- image: # Note: format is {repository-name}-files | |
url: $(image_repository)/files:latest | |
- path: .local/share/ |
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
#@ load("@ytt:overlay", "overlay") | |
#@ load("@ytt:data", "data") | |
#@ load("@ytt:yaml", "yaml") | |
#@ if/end data.values.create_namespace==True: | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: #@ data.values.namespace |
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: PipelineRun | |
metadata: | |
annotations: | |
kapp.k14s.io/identity: v1;tekton-example/tekton.dev/PipelineRun/build-and-deploy-ver-1;tekton.dev/v1alpha1 | |
kapp.k14s.io/nonce: "1582809426682582000" | |
kapp.k14s.io/original: '{"apiVersion":"tekton.dev/v1alpha1","kind":"PipelineRun","metadata":{"annotations":{"kapp.k14s.io/nonce":"1582809426682582000","kapp.k14s.io/versioned":""},"labels":{"kapp.k14s.io/app":"1582809425979881000","kapp.k14s.io/association":"v1.7e81620f63c24a56771328b853c22d3d"},"name":"build-and-deploy-ver-1","namespace":"tekton-example"},"spec":{"pipelineRef":{"name":"build-and-deploy"},"resources":[{"name":"api-repo","resourceRef":{"name":"api-repo"}},{"name":"api-image","resourceRef":{"name":"api-image"}},{"name":"ui-repo","resourceRef":{"name":"api-repo"}},{"name":"ui-image","resourceRef":{"name":"api-image"}}],"serviceAccountName":"pipeline","timeout":"1h0m0s"}}' | |
kapp.k14s.io/original-diff: | | |
[] | |
kapp.k14s.io/original-diff-full: "" |
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
Deployed (note /tmp/kapp/kapp is my modified kapp): | |
``` | |
ytt ytt -f example-app.yaml -f example-pipeline.yaml -f values.yaml | /tmp/kapp/kapp deploy -a tekton-sample -n default -y -f- | |
``` | |
Changed in example-app, line 97 to a new value, and executed again: | |
``` | |
ytt ytt -f example-app.yaml -f example-pipeline.yaml -f values.yaml | /tmp/kapp/kapp deploy -a tekton-sample -n default -y -f- | |
``` |
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
#@ load("@ytt:data", "data") | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: #@ data.values.namespace | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: RoleBinding |
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: Template | |
metadata: | |
name: galleon-chained-build | |
annotations: | |
iconClass: icon-wildfly | |
openshift.io/display-name: Galleon S2I chained build | |
openshift.io/provider-display-name: Red Hat, Inc. | |
template.openshift.io/long-description: Chained build to provision Wildfly server image using galleon and build/deploy app. | |
description: Chained build to provision Wildfly server image using galleon and build/deploy app. |
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": "ImageStream", | |
"labels": { | |
"xpaas": "1.4.16" | |
}, | |
"metadata": { | |
"annotations": { | |
"openshift.io/display-name": "Red Hat OpenJDK 8", | |
"openshift.io/provider-display-name": "Red Hat, Inc.", |
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/bash | |
_USER=${1:-$ACCESS_REDHAT_USERNAME} | |
_PASSWORD=${2:-$ACCESS_REDHAT_PASSWORD} | |
[ "" == "${_USER}" ] || [ "" == "${_PASSWORD}" ] && echo "${BASH_SOURCE[0]} <RedHat_access_user> <RedHat_access_password>" && exit 1 | |
oc create secret docker-registry access-red-hat --docker-server=registry.redhat.io --docker-username=${_USER} --docker-password=${_PASSWORD} [email protected] -n openshift --as system:admin | |
oc secrets link default access-red-hat --for=pull -n openshift --as system:admin |
NewerOlder