Skip to content

Commit

Permalink
[bitnami/zipkin] feat: 🎉 Add chart (#29199)
Browse files Browse the repository at this point in the history
* [bitnami/zipkin] feat: 🎉 Add chart

Description of the change

This PR adds the helm chart for zipkin, based on the upstream one https://github.com/openzipkin/zipkin-helm/tree/master/charts/zipkin. Features:

    All Bitnami standards
    Cassandra as storage backend (with native support for mem and possibility to use others with the custom configuration section)
    Fully modifiable and adaptable thanks to the use of configurationOverrides and secretConfigurationOverrides
    TLS support
    Ingress support
    HPA, VPA and PDB
    Security checklists

---------

Signed-off-by: Javier J. Salmerón García <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
javsalgar and bitnami-bot authored Sep 5, 2024
1 parent df1a61b commit 558a979
Show file tree
Hide file tree
Showing 34 changed files with 3,828 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vib/zipkin/cypress/cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
defaultCommandTimeout: 90000,
e2e: {
setupNodeEvents(on, config) {},
baseUrl: 'http://localhost',
},
}
16 changes: 16 additions & 0 deletions .vib/zipkin/cypress/cypress/e2e/zipkin.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Broadcom, Inc. All Rights Reserved.
* SPDX-License-Identifier: APACHE-2.0
*/

/// <reference types="cypress" />

// We check the pushed trace in the Job
it('should find pushed trace', () => {
cy.visit('/')
cy.get('[data-testid="add-button"]').click();
cy.contains('li', 'serviceName').click();
cy.fixture('services').then((service) => {
cy.contains(service.name);
});
})
3 changes: 3 additions & 0 deletions .vib/zipkin/cypress/cypress/fixtures/services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "yelp-main"
}
25 changes: 25 additions & 0 deletions .vib/zipkin/cypress/cypress/support/e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright Broadcom, Inc. All Rights Reserved.
* SPDX-License-Identifier: APACHE-2.0
*/

// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
// import './commands';

// Alternatively you can use CommonJS syntax:
// require('./commands')
42 changes: 42 additions & 0 deletions .vib/zipkin/goss/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0

http:
http://127.0.0.1:{{ .Vars.containerPorts.http }}/api/v2/services:
status: 200
body:
- /yelp-main/
http://zipkin:{{ .Vars.service.ports.http }}/api/v2/services:
status: 200
body:
- /yelp-main/
http://127.0.0.1:{{ .Vars.containerPorts.http }}/prometheus:
status: 200
body:
- /armeria_server/
http://zipkin:{{ .Vars.service.ports.http }}/prometheus:
status: 200
body:
- /armeria_server/

command:
{{- $uid := .Vars.containerSecurityContext.runAsUser }}
{{- $gid := .Vars.podSecurityContext.fsGroup }}
check-user-info:
# The UID and GID should always be either the one specified as vars (always a bigger number that the default)
# or the one randomly defined by openshift (larger values). Otherwise, the chart is still using the default value.
exec: if [ $(id -u) -lt {{ $uid }} ] || [ $(id -G | awk '{print $2}') -lt {{ $gid }} ]; then exit 1; fi
exit-status: 0
check-configured-env-vars:
exec: env
exit-status: 0
stdout:
- /AUTOCOMPLETE_TTL.*{{ .Vars.configOverrides.AUTOCOMPLETE_TTL }}/

# The secret configuration should be mounted as a file
file:
/bitnami/zipkin/secrets/configuration/QUERY_NAMES_MAX_AGE:
exists: true
filetype: symlink
contents:
- /{{ .Vars.secretConfigOverrides.QUERY_NAMES_MAX_AGE }}/
Loading

0 comments on commit 558a979

Please sign in to comment.