Skip to content

Commit

Permalink
Merge pull request #42 from sabre1041/docker-auth-fix
Browse files Browse the repository at this point in the history
Reordering ImageStreams before BuildConfigs
  • Loading branch information
sherl0cks authored Nov 13, 2017
2 parents 1b62c24 + 930d255 commit a4a3921
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 339 deletions.
34 changes: 17 additions & 17 deletions templates/gogs/gogs-persistent-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ metadata:
tags: instant-app,gogs,go,golang
name: gogs
objects:
- kind: ImageStream
apiVersion: v1
metadata:
labels:
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
tags:
- name: "${GOGS_VERSION}"
from:
kind: DockerImage
name: docker.io/makentenza/gogs:${GOGS_VERSION}
importPolicy: {}
annotations:
description: The Gogs git server docker image
tags: gogs,go,golang
version: "${GOGS_VERSION}"
- kind: ServiceAccount
apiVersion: v1
metadata:
Expand Down Expand Up @@ -226,23 +243,6 @@ objects:
kind: ImageStreamTag
name: ${APPLICATION_NAME}:${GOGS_VERSION}
type: ImageChange
- kind: ImageStream
apiVersion: v1
metadata:
labels:
app: ${APPLICATION_NAME}
name: ${APPLICATION_NAME}
spec:
tags:
- name: "${GOGS_VERSION}"
from:
kind: DockerImage
name: docker.io/makentenza/gogs:${GOGS_VERSION}
importPolicy: {}
annotations:
description: The Gogs git server docker image
tags: gogs,go,golang
version: "${GOGS_VERSION}"
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand Down
62 changes: 31 additions & 31 deletions templates/jenkins-s2i-build/template-with-secret.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,37 @@
}
},
"objects": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"annotations": {
"description": "Keeps track of changes in the application image"
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-2-rhel7"
},
"spec": {
"tags": [
{
"name": "latest",
"annotations": {
"openshift.io/imported-from": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
}
}
]
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
Expand Down Expand Up @@ -56,37 +87,6 @@
}
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"annotations": {
"description": "Keeps track of changes in the application image"
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-2-rhel7"
},
"spec": {
"tags": [
{
"name": "latest",
"annotations": {
"openshift.io/imported-from": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
}
}
]
}
}
],
"parameters": [
Expand Down
62 changes: 31 additions & 31 deletions templates/jenkins-s2i-build/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,37 @@
}
},
"objects": [
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"annotations": {
"description": "Keeps track of changes in the application image"
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-2-rhel7"
},
"spec": {
"tags": [
{
"name": "latest",
"annotations": {
"openshift.io/imported-from": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
}
}
]
}
},
{
"kind": "BuildConfig",
"apiVersion": "v1",
Expand Down Expand Up @@ -53,37 +84,6 @@
}
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "${NAME}",
"annotations": {
"description": "Keeps track of changes in the application image"
}
}
},
{
"kind": "ImageStream",
"apiVersion": "v1",
"metadata": {
"name": "jenkins-2-rhel7"
},
"spec": {
"tags": [
{
"name": "latest",
"annotations": {
"openshift.io/imported-from": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
},
"from": {
"kind": "DockerImage",
"name": "registry.access.redhat.com/openshift3/jenkins-2-rhel7"
}
}
]
}
}
],
"parameters": [
Expand Down
52 changes: 26 additions & 26 deletions templates/jenkins-slave-pod/template-with-secret.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,32 @@
}
},
"objects": [
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"labels": {
"build": "${NAME}"
},
"name": "jenkins-slave-base-rhel7"
},
"spec": {
"tags": [
{
"from": {
"kind": "DockerImage",
"name": "openshift/jenkins-slave-base-rhel7:latest"
},
"generation": 2,
"importPolicy": {},
"name": "latest",
"referencePolicy": {
"type": "Source"
}
}
]
}
},
{
"apiVersion": "v1",
"kind": "BuildConfig",
Expand Down Expand Up @@ -75,32 +101,6 @@
},
"name": "${NAME}"
}
},
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"labels": {
"build": "${NAME}"
},
"name": "jenkins-slave-base-rhel7"
},
"spec": {
"tags": [
{
"from": {
"kind": "DockerImage",
"name": "openshift/jenkins-slave-base-rhel7:latest"
},
"generation": 2,
"importPolicy": {},
"name": "latest",
"referencePolicy": {
"type": "Source"
}
}
]
}
}
],
"parameters": [
Expand Down
74 changes: 37 additions & 37 deletions templates/jenkins-slave-pod/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,43 @@
}
},
"objects": [
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"labels": {
"build": "${NAME}"
},
"name": "jenkins-slave-base-rhel7"
},
"spec": {
"tags": [
{
"from": {
"kind": "DockerImage",
"name": "openshift/jenkins-slave-base-rhel7:latest"
},
"generation": 2,
"importPolicy": {},
"name": "latest",
"referencePolicy": {
"type": "Source"
}
}
]
}
},
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"labels": {
"build": "${NAME}",
"role": "jenkins-slave"
},
"name": "${NAME}"
}
},
{
"apiVersion": "v1",
"kind": "BuildConfig",
Expand Down Expand Up @@ -61,43 +98,6 @@
}
]
}
},
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"labels": {
"build": "${NAME}",
"role": "jenkins-slave"
},
"name": "${NAME}"
}
},
{
"apiVersion": "v1",
"kind": "ImageStream",
"metadata": {
"labels": {
"build": "${NAME}"
},
"name": "jenkins-slave-base-rhel7"
},
"spec": {
"tags": [
{
"from": {
"kind": "DockerImage",
"name": "openshift/jenkins-slave-base-rhel7:latest"
},
"generation": 2,
"importPolicy": {},
"name": "latest",
"referencePolicy": {
"type": "Source"
}
}
]
}
}
],
"parameters": [
Expand Down
Loading

0 comments on commit a4a3921

Please sign in to comment.