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
Include a job to help operators migrate their storage version #7499
Include a job to help operators migrate their storage version #7499
Conversation
/assign @mattmoor |
ko resolve ${KO_YAML_FLAGS} -f config/post-install/ | "${LABEL_YAML_CMD[@]}" > "${SERVING_DEFAULT_DOMAIN_YAML}" | ||
ko resolve ${KO_YAML_FLAGS} -f config/post-install/default-domain.yaml | "${LABEL_YAML_CMD[@]}" > "${SERVING_DEFAULT_DOMAIN_YAML}" | ||
|
||
ko resolve ${KO_YAML_FLAGS} -f config/post-install/storage-version-migration.yaml | "${LABEL_YAML_CMD[@]}" > "${SERVING_STORAGE_VERSION_MIGRATE_YAML}" |
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.
We should add docs for this new artifact.
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.
in the repo or website?
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.
Did it for the website - knative/docs#2369
Should this in general be in some other repo? |
The utility lives in |
"k8s.io/client-go/tools/clientcmd" | ||
) | ||
|
||
// TODO - make a package that's reusable here and by sharedmain |
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.
FYI, I used sharedmain config set up in my PR: Can you use that?
https://github.com/knative/eventing/pull/2910/files#diff-28e3377805ade46afcad16b416392053R37
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.
technically yeah - but that would pull in that package and all it's dependencies
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.
that's already part of serving? Or am I confused about something?
logger := setupLogger() | ||
defer logger.Sync() | ||
|
||
config := configOrDie() |
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.
c846c8f
to
7a0e4e0
Compare
rebased |
I think you need more rebases :) |
lol i knew I should have held the other one :) |
7a0e4e0
to
a255d06
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, mattmoor 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 |
The following jobs failed:
Failed non-flaky tests preventing automatic retry of pull-knative-serving-integration-tests:
|
/retest
…On Thu, Apr 9, 2020 at 22:13 Knative test reporter robot < ***@***.***> wrote:
The following jobs failed:
Test name Triggers Retries
pull-knative-serving-integration-tests
pull-knative-serving-integration-tests
<https://prow.knative.dev/view/gcs/knative-prow/pr-logs/pull/knative_serving/7499/pull-knative-serving-integration-tests/1247573183138107394>
pull-knative-serving-integration-tests
<https://prow.knative.dev/view/gcs/knative-prow/pr-logs/pull/knative_serving/7499/pull-knative-serving-integration-tests/1247581613731090432>
2/3
Failed non-flaky tests preventing automatic retry of
pull-knative-serving-integration-tests:
test/scale.TestScaleToN/scale-10
test/e2e.TestConflictingRouteService
test/e2e.TestProbeWhitelist
test/e2e.TestServiceToServiceCall
test/e2e.TestCallToPublicService
test/e2e.TestSubrouteLocalSTS
test/e2e.TestServiceToServiceCallViaActivator/a-disabled
test/e2e.TestServiceToServiceCallViaActivator/b-disabled
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7499 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAERAVDOL6FEJFE6V6KWK3RLZ6EDANCNFSM4L73GHSQ>
.
|
Fixes #6726
Depended on knative/pkg#1197 to merge
The sigs.k8s.io/kube-storage-version-migrator seems to migrate all K8s resources/CRDs and it does it at a specific intervals. One thing it doesn't do is drop older storage versions from the CRD's status block. That's still a manual process - but this is necessary for us to drop older versions in our spec. Additionally, the tool performs full PUTs which I don't believe is necessary (issue here: kubernetes-sigs/kube-storage-version-migrator#65)
Thus I felt it would simpler to write a custom job to perform the storage migration specific to serving's resources (service, revision, configuration, route)
Proposed Changes
Release Note