'update the object'

def update(self):

    for secret in self.config.secrets:
        result = self.service_account.find_secret(secret)
        if (not result):
            self.service_account.add_secret(secret)
    for secret in self.config.image_pull_secrets:
        result = self.service_account.find_image_pull_secret(secret)
        if (not result):
            self.service_account.add_image_pull_secret(secret)
    return self._replace_content(self.kind, self.config.name, self.config.data)
