-
Notifications
You must be signed in to change notification settings - Fork 0
feat(ui): Display and manage deployment registry credentials #42
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
Conversation
Code Review Summary✨ This pull request introduces the ability to configure registry credentials for deployments, allowing them to pull images from private repositories. Key changes include updating 🚀 Key Improvements
💡 Minor Suggestions
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review complete. See the overview comment for a summary.
Deploying flatrun-ui with
|
| Latest commit: |
b2a9c1f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://60ddedff.flatrun-ui.pages.dev |
| Branch Preview URL: | https://feat-track-registry-credenti.flatrun-ui.pages.dev |
b60c5ea to
5dddae4
Compare
🔍 Code Review💡 1. **src/services/api.ts** (Lines 44-63) - REFACTORThe To address this, consider removing the local definition and importing the Suggested Code: Current Code: export interface ServiceMetadata {
name: string;
type: string;
networking: {
expose: boolean;
domain: string;
container_port: number;
protocol: string;
proxy_type: string;
};
ssl: {
enabled: boolean;
auto_cert: boolean;
};
healthcheck: {
path: string;
interval: string;
};
credential_id?: string;
}💡 2. **src/views/DeploymentDetailView.vue** (Lines 2104-2122) - BUGWhen updating metadata, it's crucial to preserve existing fields that are not being explicitly changed by the current form. The current implementation of To ensure all existing metadata properties are preserved, use the spread operator ( Suggested Code: Current Code: const currentMetadata = deployment.value?.metadata || {};
await deploymentsApi.updateMetadata(route.params.name as string, {
...currentMetadata,
name: deployment.value?.name || "",
type: currentMetadata.type || "custom",
networking: {
expose: domainSettings.value.expose,
domain: domainSettings.value.domain,
container_port: domainSettings.value.containerPort,
protocol: "http",
proxy_type: "http",
},
ssl: {
enabled: domainSettings.value.sslEnabled,
auto_cert: domainSettings.value.autoCert,
},
healthcheck: currentMetadata.healthcheck || {
path: "/",
interval: "30s",
},
credential_id: registryCredential.value?.id,
});💡 3. **src/views/DeploymentDetailView.vue** (Lines 2149-2154) - BUGSimilar to Modify this to use the spread operator for Suggested Code: Current Code: const currentMetadata = deployment.value?.metadata || {};
await deploymentsApi.updateMetadata(route.params.name as string, {
...currentMetadata,
name: currentMetadata.name || deployment.value?.name || "",
type: currentMetadata.type || "custom",
credential_id: selectedCredentialId.value || undefined,
});Verdict: APPROVE Posted as a comment because posting a review failed. |
8bcd36c to
8594a38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review complete. See the overview comment for a summary.
Add UI for viewing and changing registry credentials associated with deployments. Changes include: - Add credential_id to ServiceMetadata in types and API service - Display credential name in deployment detail General Information card - Add modal to select/change registry credential for a deployment - Preserve credential_id when saving domain settings Signed-off-by: nfebe <fenn25.fn@gmail.com>
8594a38 to
b2a9c1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review complete. See the overview comment for a summary.
Add UI for viewing and changing registry credentials associated with deployments. Changes include: