-
Notifications
You must be signed in to change notification settings - Fork 288
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
Refactor copy packages command to support regional ECR #6747
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6747 +/- ##
==========================================
- Coverage 75.66% 71.68% -3.99%
==========================================
Files 475 531 +56
Lines 38404 41051 +2647
==========================================
+ Hits 29059 29427 +368
- Misses 7733 9978 +2245
- Partials 1612 1646 +34
☔ View full report in Codecov by Sentry. |
fa4a0d4
to
8da5e4b
Compare
9c00867
to
c45e857
Compare
/retest |
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.
I left a few comments.
--dst-cert ${REGISTRY_MIRROR_CERT_PATH} \ | ||
${REGISTRY_MIRROR_URL} | ||
``` | ||
If your EKSA cluster is running in an airgapped environment and you set up a local registry mirror, you can copy curated packages from Amazon ECR to your local registry mirror with the following command. |
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.
If your EKSA cluster is running in an airgapped environment and you set up a local registry mirror, you can copy curated packages from Amazon ECR to your local registry mirror with the following command. | |
If your EKS Anywhere cluster is running in an airgapped environment and you set up a local registry mirror, you can copy curated packages from Amazon ECR to your local registry mirror with the following command. |
``` | ||
If your EKSA cluster is running in an airgapped environment and you set up a local registry mirror, you can copy curated packages from Amazon ECR to your local registry mirror with the following command. | ||
|
||
`$KUBEVERSION` must equals to the `spec.kubernetesVersion` of your EKS Anywhere cluster specification. |
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.
`$KUBEVERSION` must equals to the `spec.kubernetesVersion` of your EKS Anywhere cluster specification. | |
`$KUBEVERSION` be must equal to the `spec.kubernetesVersion` of your EKS Anywhere cluster specification. |
@@ -26,5 +26,5 @@ Copy EKS Anywhere resources and artifacts | |||
### SEE ALSO | |||
|
|||
* [anywhere](../anywhere/) - Amazon EKS Anywhere | |||
* [anywhere copy packages](../anywhere_copy_packages/) - Copy curated package images and charts from a source to a destination | |||
* [anywhere copy packages](../anywhere_copy_packages/) - Copy curated package images and charts from source regisries to a destination registry |
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.
* [anywhere copy packages](../anywhere_copy_packages/) - Copy curated package images and charts from source regisries to a destination registry | |
* [anywhere copy packages](../anywhere_copy_packages/) - Copy curated package images and charts from source registries to a destination registry |
@@ -5,11 +5,11 @@ linkTitle: "anywhere copy packages" | |||
|
|||
## anywhere copy packages | |||
|
|||
Copy curated package images and charts from a source to a destination | |||
Copy curated package images and charts from source regisries to a destination registry |
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.
Copy curated package images and charts from source regisries to a destination registry | |
Copy curated package images and charts from source registries to a destination registry |
-h, --help help for packages | ||
--insecure Skip TLS verification while copying images and charts | ||
--src-cert string TLS certificate for source registry | ||
--dry-run Dry run will not really copy the artifacts, but shows what artifacts would be copied |
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.
--dry-run Dry run will not really copy the artifacts, but shows what artifacts would be copied | |
--dry-run Dry run will show what artifacts would be copied, but not actually copy them |
--src-cert string TLS certificate for source registry | ||
--dry-run Dry run will not really copy the artifacts, but shows what artifacts would be copied | ||
--dst-insecure Skip TLS verification against the destination registry | ||
--dst-plain-http Whether to use plain http for destination registry |
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.
--dst-plain-http Whether to use plain http for destination registry | |
--dst-plain-http Whether or not to use plain http for destination registry |
Is the alternative https?
--dst-insecure Skip TLS verification against the destination registry | ||
--dst-plain-http Whether to use plain http for destination registry | ||
-h, --help help for packages | ||
--kube-version string The kube version of the package bundle to copy |
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.
--kube-version string The kube version of the package bundle to copy | |
--kube-version string The Kubernetes version of the package bundle to copy |
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.
Generally lgtm, I think it's fine to refactor for testing later.
} | ||
|
||
// Since package bundle doesn't contain tags, we get tags from chart values. | ||
func getTagsFromCharts(ctx context.Context, helm *executables.Helm, charts []registry.Artifact) (map[string]string, error) { |
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.
Is this used any more? Should we remove it?
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.
Good catch, removed
c45e857
to
c2b44bf
Compare
New changes are detected. LGTM label has been removed. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: d8660091 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue #, if available:
Description of changes:
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.