'remove a image_pull_secret'

def delete_image_pull_secret(self, inc_secret):

    remove_idx = None
    for (idx, sec) in enumerate(self.image_pull_secrets):
        if (sec['name'] == inc_secret):
            remove_idx = idx
            break
    if remove_idx:
        del self.image_pull_secrets[remove_idx]
        return True
    return False
