mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
integration: add single-cluster integration tests (#2516)
* integration: add single-cluster integration tests * remove kind load
This commit is contained in:
parent
f5a558d4a0
commit
48cd10d46b
53 changed files with 7455 additions and 31 deletions
55
integration/tpl/backends/verify.libsonnet
Normal file
55
integration/tpl/backends/verify.libsonnet
Normal file
|
@ -0,0 +1,55 @@
|
|||
local utils = import '../utils.libsonnet';
|
||||
|
||||
function(mode) {
|
||||
local name = 'verify',
|
||||
local image = 'pomerium/verify:${VERIFY_TAG:-latest}',
|
||||
|
||||
compose: {
|
||||
services:
|
||||
utils.ComposeService(name, {
|
||||
image: image,
|
||||
depends_on: {
|
||||
[name + '-init']: {
|
||||
condition: 'service_completed_successfully',
|
||||
},
|
||||
},
|
||||
environment: {
|
||||
SSL_CERT_FILE: '/verify_config/ca.pem',
|
||||
},
|
||||
volumes: [
|
||||
'verify_config:/verify_config',
|
||||
],
|
||||
}) +
|
||||
utils.ComposeService(name + '-init', {
|
||||
image: 'busybox:latest',
|
||||
command: [
|
||||
'sh',
|
||||
'-c',
|
||||
"echo '" + (importstr '../files/ca.pem') + "' > /verify_config/ca.pem",
|
||||
],
|
||||
volumes: [
|
||||
'verify_config:/verify_config',
|
||||
],
|
||||
}) +
|
||||
utils.ComposeService(name + '-ready', {
|
||||
image: 'jwilder/dockerize:0.6.1',
|
||||
command: [
|
||||
'-wait',
|
||||
'http://' + name + ':80/',
|
||||
'-timeout',
|
||||
'10m',
|
||||
],
|
||||
}),
|
||||
volumes: {
|
||||
verify_config: {},
|
||||
},
|
||||
},
|
||||
kubernetes: [
|
||||
utils.KubernetesService(name, [
|
||||
{ name: 'http', port: 80, targetPort: 'http' },
|
||||
]),
|
||||
utils.KubernetesDeployment(name, image, null, [
|
||||
{ name: 'http', containerPort: 80 },
|
||||
]),
|
||||
],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue