-
Notifications
You must be signed in to change notification settings - Fork 192
Generate Package Custom Resource when Package Bundle is Created #2199
Generate Package Custom Resource when Package Bundle is Created #2199
Conversation
Signed-off-by: Harish Yayi <yharish991@gmail.com>
Signed-off-by: F. Gold <fgold@vmware.com>
6180c7a
to
0607c41
Compare
@danniel1205 was worried about I can provide the assurance that in our code, $ ytt -f hack/packages/templates/repo-utils/images-tmpl.yaml -f hack/packages/templates/repo-utils/package-helpers.lib.yaml -f packages/package-values.yaml -v packageRepository=management -v registry=dockerhub.frankie
apiVersion: imgpkg.carvel.dev/v1alpha1
images:
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/featuregates:vlatest
image: dockerhub.frankie/featuregates@sha256:featuregates:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/cliplugins:vlatest
image: dockerhub.frankie/cliplugins@sha256:cliplugins:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/core-management-plugins:vlatest
image: dockerhub.frankie/core-management-plugins@sha256:core-management-plugins:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/addons-manager-v2:vlatest
image: dockerhub.frankie/addons-manager-v2@sha256:addons-manager-v2:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkg:vlatest
image: dockerhub.frankie/tkg@sha256:tkg:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkg-clusterclass:vlatest
image: dockerhub.frankie/tkg-clusterclass@sha256:tkg-clusterclass:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkg-clusterclass-docker:vlatest
image: dockerhub.frankie/tkg-clusterclass-docker@sha256:tkg-clusterclass-docker:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkg-clusterclass-azure:vlatest
image: dockerhub.frankie/tkg-clusterclass-azure@sha256:tkg-clusterclass-azure:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkg-clusterclass-vsphere:vlatest
image: dockerhub.frankie/tkg-clusterclass-vsphere@sha256:tkg-clusterclass-vsphere:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkg-clusterclass-aws:vlatest
image: dockerhub.frankie/tkg-clusterclass-aws@sha256:tkg-clusterclass-aws:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkr-aws-machine-webhook:vlatest
image: dockerhub.frankie/tkr-aws-machine-webhook@sha256:tkr-aws-machine-webhook:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkr-azure-machine-webhook:vlatest
image: dockerhub.frankie/tkr-azure-machine-webhook@sha256:tkr-azure-machine-webhook:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkr-docker-machine-webhook:vlatest
image: dockerhub.frankie/tkr-docker-machine-webhook@sha256:tkr-docker-machine-webhook:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkr-vsphere-machine-webhook:vlatest
image: dockerhub.frankie/tkr-vsphere-machine-webhook@sha256:tkr-vsphere-machine-webhook:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/tkr-service:vlatest
image: dockerhub.frankie/tkr-service@sha256:tkr-service:latest
- annotations:
kbld.carvel.dev/id: dockerhub.frankie/framework:vlatest
image: dockerhub.frankie/framework@sha256:framework:latest
kind: ImagesLock The difference between Daniel's example and our code are several. For one, in @danniel1205 's playgound, he has the following in the first line of the #@data/values-schema That line needs to be changed to what it is in packages/package-values.yaml#L1. #@data/values Having Another difference is that Daniel is missing the array items the contain annotations and image sections. These are available in our code in the images-tmpl.yaml file. Given those, the I am also just learning about YTT and what all it can do. I'm still not certain how it all works, but I'm learning that even the first line, whether it is |
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
cd0271a
to
1941863
Compare
Signed-off-by: F. Gold <fgold@vmware.com>
1941863
to
880681d
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
…re-tanzu#2199) * generate Package CR when package bundle is generated Signed-off-by: Harish Yayi <yharish991@gmail.com> * Address golang-ci lint failed checks Signed-off-by: F. Gold <fgold@vmware.com> * Fix bug and pick up subversion from package values or flag Signed-off-by: F. Gold <fgold@vmware.com> Co-authored-by: Harish Yayi <yharish991@gmail.com>
What this PR does / why we need it
This PR makes changes to package tooling to also generate Package CR when the package bundle is being created.
Merge this PR after PR #2187 (generate thick tarball)
Which issue(s) this PR fixes
Fixes #2158
Describe testing done for PR
Release note
PR Checklist
Additional information
Special notes for your reviewer