-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow namespace specification via parameter in templates
- Loading branch information
Showing
3 changed files
with
148 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
{ | ||
"kind": "Template", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "ruby-helloworld-sample", | ||
"creationTimestamp": null, | ||
"annotations": { | ||
"description": "some objects in this template declare their own namespace via a parameter confirm new-app will tolerate it", | ||
"iconClass": "icon-ruby", | ||
"tags": "instant-app,ruby,mysql" | ||
} | ||
}, | ||
"objects": [ | ||
{ | ||
"kind": "Service", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "frontend", | ||
"namespace": "STRIPPED" | ||
}, | ||
"spec": { | ||
"ports": [ | ||
{ | ||
"name": "web", | ||
"protocol": "TCP", | ||
"port": 5432, | ||
"targetPort": 8080, | ||
"nodePort": 0 | ||
} | ||
], | ||
"selector": { | ||
"name": "frontend" | ||
}, | ||
"type": "ClusterIP", | ||
"sessionAffinity": "None" | ||
}, | ||
"status": { | ||
"loadBalancer": {} | ||
} | ||
}, | ||
{ | ||
"kind": "Route", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "route-edge", | ||
"namespace": "${SUBSTITUTED}" | ||
}, | ||
"spec": { | ||
"host": "www.example.com", | ||
"to": { | ||
"kind": "Service", | ||
"name": "frontend" | ||
}, | ||
"tls": { | ||
"termination": "edge" | ||
} | ||
}, | ||
"status": {} | ||
}, | ||
{ | ||
"kind": "Route", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "route-edge2", | ||
"namespace": "${{SUBSTITUTED}}" | ||
}, | ||
"spec": { | ||
"host": "www.example.com", | ||
"to": { | ||
"kind": "Service", | ||
"name": "frontend" | ||
}, | ||
"tls": { | ||
"termination": "edge" | ||
} | ||
}, | ||
"status": {} | ||
}, | ||
{ | ||
"kind": "Route", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "route-edge3", | ||
"namespace": "pre_${SUBSTITUTED}" | ||
}, | ||
"spec": { | ||
"host": "www.example.com", | ||
"to": { | ||
"kind": "Service", | ||
"name": "frontend" | ||
}, | ||
"tls": { | ||
"termination": "edge" | ||
} | ||
}, | ||
"status": {} | ||
}, | ||
{ | ||
"kind": "Route", | ||
"apiVersion": "v1", | ||
"metadata": { | ||
"name": "route-edge4", | ||
"namespace": "pre_${{SUBSTITUTED}}" | ||
}, | ||
"spec": { | ||
"host": "www.example.com", | ||
"to": { | ||
"kind": "Service", | ||
"name": "frontend" | ||
}, | ||
"tls": { | ||
"termination": "edge" | ||
} | ||
}, | ||
"status": {} | ||
} | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "SUBSTITUTED", | ||
"description": "namespace value", | ||
"value": "substituted", | ||
"required": true | ||
} | ||
], | ||
"labels": { | ||
"template": "application-template-stibuild" | ||
} | ||
} |