Skip to content

Commit

Permalink
Fix configmap example in values.yaml (#16)
Browse files Browse the repository at this point in the history
* Fix configmap example in values.yaml

* bump to v2.1.1
  • Loading branch information
keisku authored Jul 3, 2021
1 parent 2ba15ae commit 366e8b9
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/unleash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ sources:
- https://github.com/Unleash/unleash-docker
- https://github.com/Unleash/helm-charts
type: application
version: 2.1.0
version: 2.1.1
110 changes: 95 additions & 15 deletions charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# Declare variables to be passed into your templates.

affinity: {}
# podAntiAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - podAffinityTerm:
# labelSelector:
# matchExpressions:
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - unleash
# topologyKey: failure-domain.beta.kubernetes.io/zone
# weight: 100
# podAntiAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - podAffinityTerm:
# labelSelector:
# matchExpressions:
# - key: app.kubernetes.io/instance
# operator: In
# values:
# - unleash
# topologyKey: failure-domain.beta.kubernetes.io/zone
# weight: 100

# HorizontalPodAutoscaler
# https://kubernetes.io/de/docs/tasks/run-application/horizontal-pod-autoscale/
Expand All @@ -29,6 +29,84 @@ autoscaling:
# You can also add your own custom auth:
# https://github.com/Unleash/unleash-examples/tree/main/v4
configMaps: {}
# index.js:
# mountPath: /unleash/index.js
# content: |-
# 'use strict';
#
# const passport = require('@passport-next/passport');
# const GoogleOAuth2Strategy = require('@passport-next/passport-google-oauth2').Strategy;
# const { AuthenticationRequired } = require('unleash-server');
# const unleash = require('unleash-server');
#
# function enableGoogleOauth(app, config, services) {
# const { baseUriPath } = config.server;
# const { userService } = services;
#
# passport.use(
# new GoogleOAuth2Strategy(
# {
# clientID: process.env.GOOGLE_CLIENT_ID,
# clientSecret: process.env.GOOGLE_CLIENT_SECRET,
# callbackURL: process.env.GOOGLE_CALLBACK_URL,
# },
#
# async (accessToken, refreshToken, profile, done) => {
# const email = profile.emails[0].value;
# const user = await userService.loginUserWithoutPassword(email, true);
# done(
# null,
# user
# );
# },
# ),
# );
#
# app.use(passport.initialize());
# app.use(passport.session());
#
# passport.serializeUser((user, done) => done(null, user));
# passport.deserializeUser((user, done) => done(null, user));
# app.get(
# '/api/admin/login',
# passport.authenticate('google', { scope: ['email'] }),
# );
#
# app.get(
# '/api/auth/callback',
# passport.authenticate('google', {
# failureRedirect: '/api/admin/error-login',
# }),
# (req, res) => {
# res.redirect('/');
# },
# );
#
# app.use('/api/admin/', (req, res, next) => {
# if (req.user) {
# return next();
# }
#
# return res
# .status('401')
# .json(
# new AuthenticationRequired({
# path: '/api/admin/login',
# type: 'custom',
# message: `You have to identify yourself in order to use Unleash.
# Click the button and follow the instructions.`,
# }),
# )
# .end();
# });
# }
#
# unleash.start({
# authentication: {
# type: 'custom',
# customAuthHandler: enableGoogleOauth,
# },
# });

containerPort: 4242

Expand All @@ -54,7 +132,8 @@ env: []
# value: https://unleash.example.com/api/auth/callback

# adds environmentvars for existing secrets to the container via tpl function
existingSecrets: ""
existingSecrets:
""
# - name: GOOGLE_CLIENT_SECRET
# valueFrom:
# secretKeyRef:
Expand All @@ -72,7 +151,8 @@ imagePullSecrets: []

ingress:
enabled: false
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
Expand All @@ -83,7 +163,6 @@ ingress:
# hosts:
# - chart-example.local


livenessProbe:
enabled: true
path: /health
Expand All @@ -106,7 +185,8 @@ readinessProbe:

replicaCount: 1

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down

0 comments on commit 366e8b9

Please sign in to comment.