Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for normalize_configmap (0.1 sec)

  1. bin/diff_yaml.py

        removed = k0s - k1s
        common = k0s.intersection(k1s)
    
        return added, removed, common
    
    
    def drop_keys(res, k1, k2):
        if k2 in res[k1]:
            del res[k1][k2]
    
    
    def normalize_configmap(res):
        try:
            if res['kind'] != "ConfigMap":
                return res
    
            data = res['data']
    
            # some times keys are yamls...
            # so parse them
            for k in data:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Mar 03 16:14:57 UTC 2021
    - 4.5K bytes
    - Viewed (0)
Back to top