Repository navigation
MG-53: Proposal for FTPHost in must-gather-operator spec - #1831
openshift-merge-bot[bot] merged 8 commits into
Conversation
|
@shivprakashmuley: This pull request references MG-53 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
@shivprakashmuley: This pull request references MG-53 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
|
||
| Add an optional field `ftpHost` to `MustGather.spec` that allows directing must-gather artifacts to a designated FTP/SFTP endpoint during the upload phase. This provides a supported, secure, and validated path for environments that require alternate upload targets beyond the default Red Hat case management destination. | ||
|
|
||
| Supported values: `access.redhat.com`, `access.stage.redhat.com` |
There was a problem hiding this comment.
if the only reason for this is to have an internal endpoint for QE testing - can't we somehow change the must-gather template when building the CI/QE image rather than having this be controlled through the API?
There was a problem hiding this comment.
alternative to the API field,
i.e. we can inject:
OPENSHIFT_CIenv var from the CI's test pod- -> Subscription spec.config.env (will reflect in operator pod, via OLM)
- -> upon observing this env var in the operator, also inject the same/similar env var into Job's pod spec
- -> upload container script when detects this env, uses
access.stage.redhat.cominstead of the defaultaccess.redhat.com.
- -> upload container script when detects this env, uses
- -> upon observing this env var in the operator, also inject the same/similar env var into Job's pod spec
- -> Subscription spec.config.env (will reflect in operator pod, via OLM)
There was a problem hiding this comment.
had a brief discussion with @TrilokGeer , some of the cases he raised were
- if the ftp target endpoint changes in future
- if DNS does not resolve name properly but IP works
in these cases it'd be better to have API field for ftpHost
There was a problem hiding this comment.
in these cases it'd be better to have API field for ftpHost
but even then we have hardcoded set of values right? we are not going to let the user define any value for the ftpHost, correct?
There was a problem hiding this comment.
removed the enum and enum validation now @Prashanth684
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TrilokGeer The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
||
| Add an optional field `ftpHost` to `MustGather.spec` that allows directing must-gather artifacts to a designated FTP/SFTP endpoint during the upload phase. This provides a supported, secure, and validated path for environments that require alternate upload targets beyond the default Red Hat case management destination. | ||
|
|
||
| Default: `access.redhat.com` (used when ftpHost is unset) |
There was a problem hiding this comment.
nit: the current default upload host is sftp.access.redhat.com.
|
|
||
| * Add `spec.ftpHost` with a safe default. | ||
| * Ensure the upload container honors ftpHost and existing proxy settings. | ||
| * Maintain full backward compatibility. |
There was a problem hiding this comment.
To attain this goal (in the future), should we adhere with adding spec.uploadTargets?
ref: #1830 (comment)
There was a problem hiding this comment.
yes, this should reflect the same change in #1830 so we are unified on the API changes
|
@shivprakashmuley: This pull request references MG-53 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
nit: should we move the enhancement into enhancements/support-log-gather/upload-targets.md instead? That way all our operator enhancements can live in a common directory.
|
|
||
| #### Hypershift / Hosted Control Planes | ||
|
|
||
|
|
||
| #### Standalone Clusters | ||
|
|
||
| This change is fully relevant for standalone clusters where must-gather operations are performed directly. | ||
|
|
||
| #### Single-node Deployments or MicroShift | ||
|
|
There was a problem hiding this comment.
| #### Hypershift / Hosted Control Planes | |
| #### Standalone Clusters | |
| This change is fully relevant for standalone clusters where must-gather operations are performed directly. | |
| #### Single-node Deployments or MicroShift | |
| No specific topology considerations exist. | |
| The operator behaves identically on a dedicated OpenShift cluster as that on a hosted HyperShift cluster. Single node OpenShift clusters running the operator and gather pod could itself be some overhead but there is no difference in the uploadTarget behaviour. | |
| MicroShift is well out of scope for now as it does not ship with an OLM and the default must-gather script will not be useful there. |
|
|
||
| // caseManagementAccountSecretRef references a secret containing the upload credentials. | ||
| // +required | ||
| CaseManagementAccountSecretRef corev1.LocalObjectReference `json:"caseManagementAccountSecretRef"` |
There was a problem hiding this comment.
we need to add the InternalUser field here too, as this specific to the SFTP upload process itself.
Or, in future we can add a new field for BasePath to make this more generic. Upload will then land into: $user@$host:$basePath/$caseId-must-gather.tar.
| ### Removing a deprecated feature | ||
|
|
||
| The deprecated fields `caseID`, `caseManagementAccountSecretRef`, and `ftpHost` are removed. |
There was a problem hiding this comment.
| ### Removing a deprecated feature | |
| The deprecated fields `caseID`, `caseManagementAccountSecretRef`, and `ftpHost` are removed. |
I don't think we need this as we technically do not have a supported offering at this time, in case there is need to retain this section we can probably mention that these field were present the community operator which are being removed through this enhancement.
|
/lgtm |
|
/label tide/merge-method-merge |
|
@shivprakashmuley: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This PR is part of https://issues.redhat.com/browse/MG-53.
This PR includes proposal to introduce a new API field in must-gather-operator spec for adding FTPHost target. This target is basically used for uploading collected must-gather artifacts.
Proposal includes various aspects of the proposed changes.
#1839 for PVC reference.