Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update kfp-api's apiserver configuration #375

Merged

Conversation

ca-scribner
Copy link
Contributor

@ca-scribner ca-scribner commented Nov 2, 2023

This PR:

  • removes deprecated DBCONFIG_USER, etc, environment variables (they have been replaced by variables of name DBCONFIG_[driver]CONFIG_*)
  • adds OBJECTSTORECONFIG_HOST, _PORT, and _REGION, which previously were required. Although currently they seem to be ignored due to [feature] remove hard-coded configs in KFP V2 launcher kubeflow/pipelines#9689 - but in theory they'll matter again? Not sure exactly the scope of that issue.

afaict, these are both helpful changes. The first doesn't actually affect anything, but removes unnecessary configs. The second should affect things, if not for kubeflow/pipelines#9689

May close #367

This:
* removes deprecated `DBCONFIG_USER`, etc, environment variables (they have been replaced by variables of name `DBCONFIG_[driver]CONFIG_*`)
* adds `OBJECTSTORECONFIG_HOST`, `_PORT`, and `_REGION`, which previously were required.  Although currently they seem to be ignored due to kubeflow/pipelines#9689 - but in theory they'll matter again?  Not sure exactly the scope of that issue.
Copy link
Contributor

@DnPlas DnPlas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ca-scribner, this change actually makes sense. As we tested it, the OBJECTSTORECONFIG_HOST and OBJECTSTORECONFIG_PORT env variables will actually be used by the apiserver when initialising the minio client.

I just left a minor comment to update the comments in the charm code to reflect what is actually happening.

NOTE: the integration tests are flaky at the moment, no need to block this PR because of them. Everything should be fixed after we do a last pass before merging to main.

# Configurations charmed-kubeflow adds to those of upstream
"ARCHIVE_CONFIG_LOG_FILE_NAME": self.model.config["log-archive-filename"],
"ARCHIVE_CONFIG_LOG_PATH_PREFIX": self.model.config["log-archive-prefix"],
# OBJECTSTORECONFIG_HOST and _PORT currently have no effect due to
Copy link
Contributor

@DnPlas DnPlas Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change this comment to say that these variables will actually have an effect and that they will be used in the absence of other env variables like MINIO_SERVICE_SERVICE_HOST and a missing key in the config.json? (related to #367 last two comments)

Copy link
Contributor

@DnPlas DnPlas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ca-scribner LGTM!

@ca-scribner ca-scribner merged commit acdf20a into 1.8-updates-dev-branch Nov 16, 2023
42 of 45 checks passed
DnPlas pushed a commit that referenced this pull request Nov 20, 2023
* update kfp-api's apiserver configuration

This:
* removes deprecated `DBCONFIG_USER`, etc, environment variables (they have been replaced by variables of name `DBCONFIG_[driver]CONFIG_*`)
* adds `OBJECTSTORECONFIG_HOST`, `_PORT`, and `_REGION`, which previously were required.  Although currently they seem to be ignored due to kubeflow/pipelines#9689 - but in theory they'll matter again?  Not sure exactly the scope of that issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants