-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add script for storage version migartion of crds #1646
Add script for storage version migartion of crds #1646
Conversation
/kind feature |
ee3c75c
to
142e244
Compare
deploy/200-role.yaml
Outdated
|
||
- apiGroups: ['apiextensions.k8s.io'] | ||
resources: ['customresourcedefinitions', 'customresourcedefinitions/status'] | ||
verbs: ['get', 'list', 'watch', 'create', 'update', 'delete', 'patch'] |
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.
Can you reduce this. Our controller and the migration script will never create or delete them. I guess overall we might be fine with just get
and patch
. Can you try?
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 tried and it worked.
hack/storage-version-migration.sh
Outdated
labels: | ||
app: storage-version-migration-shipwright | ||
app.kubernetes.io/component: storage-version-migration-job | ||
app.kubernetes.io/name: shipwright-build | ||
app.kubernetes.io/version: devel |
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.
Not needed.
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.
@SaschaSchwarze0 Do you mean, just this label app.kubernetes.io/version: devel
or all the labels ?
hack/storage-version-migration.sh
Outdated
annotations: | ||
sidecar.istio.io/inject: "false" | ||
labels: | ||
app: storage-version-migration-shipwright | ||
app.kubernetes.io/component: storage-version-migration-job | ||
app.kubernetes.io/name: shipwright-build | ||
app.kubernetes.io/version: devel |
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.
Not needed.
hack/storage-version-migration.sh
Outdated
|
||
if [ "${isFailed}" == "True" ]; then | ||
echo "[ERROR] Storage version migration failed" | ||
kubectl -n shipwright-build logs "job/${JOB_NAME}" | grep -v "Kubernetes default value is insecure" |
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.
This grep
filters out a message from the Knative Serving webhook when it validates KSvcs. Is unnecessary here.
kubectl -n shipwright-build logs "job/${JOB_NAME}" | grep -v "Kubernetes default value is insecure" | |
kubectl -n shipwright-build logs "job/${JOB_NAME}" |
142e244
to
dd9857d
Compare
dd9857d
to
cfd1a39
Compare
c82a6e3
to
3c97d19
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 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 |
Changes
Add script for storage version migartion of crds
Fixes #1603
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes