sostheim / krak8s

API Service for Kraken and Kubernetes Commands
Apache License 2.0
1 stars 5 forks source link

Improve Dup Checking Solution for Projects and Namespaces #9

Open sostheim opened 7 years ago

sostheim commented 7 years ago

Currently the system does a very simple, to simple, brute force search for duplicate terms in the kraken configuration files. If a duplicate is detected, the action is rejected.

1) Need to improve the communication of the status on a duplicate instance to the client

2) Need to improve the fidelity of checking for duplicate names to understand the object and it's context before rejecting the action

3) Need to add user documentation to inform client's of the API what the rules are concerning duplicate, e.g. naming requirements.

sostheim commented 7 years ago

Example:

Attempting to add the project/namespace acme is rejected for a completely unnecessary reason (a textual match), on string acme due to the following stanza in the configuration file.

        - name: kube-lego
          registry: quay.io
          chart: samsung_cnct/kube-lego
          version: '0.0.5-0'
          namespace: ingress
          values:
            image: "jetstack/kube-lego:0.1.4"
            email: letsencrypt@reactioncommerce.com
            domain: launchdock.io
            # api: "https://acme-colonybead.api.letsencrypt.org/directory"
            api: "https://acme-v01.api.letsencrypt.org/directory"