sostheim / krak8s

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

Deleted Resource not Removed Completely #15

Open sostheim opened 7 years ago

sostheim commented 7 years ago

A deleted project is not having it's complete configuration and resources removed.

Initially reported by @jshimko

sostheim commented 7 years ago

Project object:

        "9ef82991": {
            "oid": "9ef82991",
            "objType": "project",
            "name": "heyjeremy",
            "createdAt": "2017-10-10T18:44:24.629905987Z",
            "updatedAt": "2017-10-10T18:44:24.629910214Z",
            "namespaces": [{
                "oid": "fa5e3e39",
                "url": "/v1/projects/9ef82991/namespaces/fa5e3e39"
            }]
        },
sostheim commented 7 years ago

user request:

2017/10/16 17:06:34 [INFO] started req_id=r8PY5mv97z-16 DELETE=/v1/projects/9ef82991 from=127.0.0.1 ctrl=ProjectController action=delete
2017/10/16 17:06:34 [INFO] headers req_id=r8PY5mv97z-16 User-Agent=Paw/3.1.3 (Macintosh; OS X/10.13.0) GCDHTTPRequest Connection=close                                                                                                      
2017/10/16 17:06:34 [INFO] params req_id=r8PY5mv97z-16 projectid=9ef82991
I1016 17:06:34.947277       1 api_datastore.go:230] successfully archived persistent API state udpate.
2017/10/16 17:06:34 [INFO] completed req_id=r8PY5mv97z-16 status=204 bytes=0 time=644.661µs ctrl=ProjectController action=delete
I1016 17:06:34.947847       1 api_datastore.go:230] successfully archived persistent API state udpate.
I1016 17:06:34.948318       1 api_datastore.go:230] successfully archived persistent API state udpate.
sostheim commented 7 years ago

Undeleted node pool configuration stanza in kraken config.yaml

        - name: heyjeremyNodes
          count: 4
          kubeConfig: *colonybeadKube
          containerConfig: *defaultDocker
          osConfig: *defaultCoreOs
          nodeConfig: 
            << : *defaultAwsClusterNode
            taints:
              - key: customer
                value: heyjeremy
                effect: NoSchedule
          keyPair: *colonybeadKeyPair