Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enforce best practices #132

Merged
merged 2 commits into from
Mar 20, 2023
Merged

enforce best practices #132

merged 2 commits into from
Mar 20, 2023

Conversation

wkloucek
Copy link
Contributor

@wkloucek wkloucek commented Dec 8, 2022

Description

add best practice hints to the NOTES.txt

This is what I will see when I violate most of the best practices, eg. on my minikube dev deployment:

helmfile sync
Building dependency release=ocis, chart=../../charts/ocis
Upgrading release=ocis, chart=../../charts/ocis
Release "ocis" has been upgraded. Happy Helming!
NAME: ocis
LAST DEPLOYED: Thu Mar  9 09:00:37 2023
NAMESPACE: ocis
STATUS: deployed
REVISION: 52
TEST SUITE: None
NOTES:
You're now running
                 ,----..      ,---,   .--.--.
                /   /   \  ,`--.' |  /  /    '.
       ,---.   |   :     : |   :  : |  :  /`. /
      '   ,'\  .   |  ;. / :   |  ' ;  |  |--`
     /   /   | .   ; /--`  |   :  | |  :  ;_
    .   ; ,. : ;   | ;     '   '  ;  \  \    `.
    '   | |: : |   : |     |   |  |   `----.   \
    '   | .; : .   | '___  '   :  ;   __ \  \  |
    |   :    | '   ; : .'| |   |  '  /  /`--'  /
     \   \  /  '   | '/  : '   :  | '--'.     /
      `----'   |   :    /  ;   |.'    `--'---'
                \   \ .'   '---'
                 `---`


You can get the initial "admin" administrator user password by running:

kubectl -n <namespace> get secrets/admin-user --template='{{.data.password | base64decode}}'


#################################################################################
######   WARNING: Your deployment of oCIS does not follow all best          #####
######   practices for production deployments of oCIS.                      #####
######                                                                      #####
######   Following best practices are not applied:                          #####
######     - `features.externalUserManagement.enabled` should be            #####
######       set to `true`.                                                 #####
######     - `cache.type` should not be set to `noop`                       #####
######     - `features.basicAuthentication` should be set to `false`        #####
######     - `insecure.oidcIdpInsecure` should be set to `false`            #####
######     - `insecure.ocisHttpApiInsecure` should be set to `false`        #####
#################################################################################

#################################################################################
######   WARNING: Persistence is disabled for some services.                #####
######   You will lose your data when a service's pod is terminated.        #####
######                                                                      #####
######   Following services don't use persistence:                          #####
######     - storage-users                                                  #####
######     - storage-system                                                 #####
######     - idm                                                            #####
######     - store                                                          #####
######     - search                                                         #####
######     - nats                                                           #####
#################################################################################

Listing releases matching ^ocis$
ocis	ocis     	52      	2023-03-09 09:00:37.301174228 +0100 CET	deployed	ocis-0.1.0	3.0.0-alpha.1


UPDATED RELEASES:
NAME   CHART               VERSION
ocis   ../../charts/ocis     0.1.0

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation generated (make docs) and committed
  • Documentation ticket raised:
  • Documentation PR created:

Copy link
Contributor

@d7oc d7oc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comment.

charts/ocis/templates/NOTES.txt Show resolved Hide resolved
@wkloucek wkloucek merged commit 03feae8 into master Mar 20, 2023
@delete-merged-branch delete-merged-branch bot deleted the enforce-best-practices branch March 20, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants