CNCF Projects: Build and Deliver
This page covers the CNCF and three of its projects for building and delivering software: Helm, Backstage, and Cloud Native Buildpacks. The practice run lints, renders, and tests a Helm chart, validates Backstage catalog files, and builds an image with a buildpack. It needs no Kubernetes cluster and no cloud account, and one step uses Docker. It comes after Monitoring and Observability and before CNCF Projects: Runtime, Scheduling, and Data.
47 min read47 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 49 sources49টি সোর্স · updated Nov 2026আপডেট: Nov 2026
Helm: values, render, release, rollbackHelm: value, রেন্ডার, রিলিজ, রোলব্যাক
Change one value, render the chart, install and upgrade it, then roll back and watch the revision number.একটা value বদলান, chart রেন্ডার করুন, install ও upgrade করুন, তারপর রোলব্যাক করে রিভিশন নম্বর দেখুন।
You’ll learnআপনি শিখবেন
- Values override template defaultsvalue কীভাবে template-এর default বদলায়
- helm template renders with no clustercluster ছাড়াই helm template রেন্ডার করে
- helm lint counts [ERROR] lineshelm lint কীভাবে [ERROR] গোনে
- Every upgrade adds one revisionপ্রতিটা upgrade একটা করে রিভিশন যোগ করে
- A rollback gets a new revision numberরোলব্যাক নতুন রিভিশন নম্বর পায়
What it is
The CNCF and its stages. The Cloud Native Computing Foundation (CNCF) hosts critical components of the global technology infrastructure Source 1সোর্স 1. CNCF is part of the nonprofit Linux Foundation Source 1সোর্স 1. The CNCF has a Technical Oversight Committee (TOC) Source 3সোর্স 3. The TOC defines 4 stages of the project lifecycle Source 3সোর্স 3. Sandbox projects are experimental or innovative projects early in their development Source 3সোর্স 3. Incubation projects are gaining adoption, with a focus on improving stability and maturity Source 3সোর্স 3. Graduated projects are highly mature, robust projects whose adopters have demonstrated their production-readiness by deploying them to production environments Source 3সোর্স 3. Archived projects are inactive or low activity projects that the TOC no longer supports, or does not recommend for use, for reasons that depend on the project Source 3সোর্স 3. The CNCF says that graduated and incubating projects are considered stable and are used successfully in production environments Source 2সোর্স 2.
The three projects. Helm is the package manager for Kubernetes Source 7সোর্স 7. The CNCF page says that Helm was accepted on June 1, 2018 at the Incubating maturity level, and moved to the Graduated maturity level on May 1, 2020 Source 4সোর্স 4. Backstage is an open source framework for building developer portals Source 26সোর্স 26. It was accepted on September 8, 2020, and moved to the Incubating maturity level on March 15, 2022 Source 5সোর্স 5. Cloud Native Buildpacks transform your application source code into images that can run on any cloud Source 6সোর্স 6. Buildpacks was accepted on October 3, 2018, moved to the Incubating maturity level on November 18, 2020, and then moved to the Graduated maturity level on July 17, 2026 Source 6সোর্স 6. The tutorial read these three CNCF pages on 2026-11-19. A maturity level can change, so read the pages again when it matters.
Helm: chart, release, repository, values. A chart is a Helm package that contains information sufficient for installing a set of Kubernetes resources into a Kubernetes cluster Source 7সোর্স 7. Charts contain a Chart.yaml file as well as templates, default values (values.yaml), and dependencies Source 7সোর্স 7. When a chart is installed, the Helm library creates a release to track that installation Source 7সোর্স 7. A single chart may be installed many times into the same cluster, and create many different releases Source 7সোর্স 7. Helm charts may be stored on dedicated HTTP servers called chart repositories Source 7সোর্স 7. Values provide a way to override template defaults with your own information Source 7সোর্স 7.
Backstage: the software catalog. The Backstage Software Catalog is a centralized system that keeps track of ownership and metadata for all the software in your ecosystem Source 27সোর্স 27. The catalog is built around metadata YAML files that are stored together with the code, and then harvested and visualized in Backstage Source 27সোর্স 27. Out of the box, Backstage also includes Software Templates and TechDocs Source 26সোর্স 26.
Cloud Native Buildpacks. A buildpack is software that transforms application source code into runnable artifacts by analyzing the code and determining the best way to build it Source 34সোর্স 34. A builder is an OCI image that contains an ordered combination of buildpacks, a build-time base image, a lifecycle binary, and a reference to a runtime base image Source 35সোর্স 35. A platform orchestrates builds by invoking the lifecycle binary together with buildpacks and app source code to produce a runnable OCI image Source 36সোর্স 36. The Pack CLI is one such platform Source 36সোর্স 36. The tutorial uses pack for that reason.
সহজ English
The CNCF and its stages. The Cloud Native Computing Foundation (CNCF) hosts critical components of the global technology infrastructure Source 1সোর্স 1. CNCF is part of the nonprofit Linux Foundation Source 1সোর্স 1. The CNCF has a Technical Oversight Committee (TOC) Source 3সোর্স 3. The TOC defines 4 stages of the project lifecycle Source 3সোর্স 3. Sandbox projects are experimental or innovative projects early in their development Source 3সোর্স 3. Incubation projects are gaining adoption, with a focus on improving stability and maturity Source 3সোর্স 3. Graduated projects are highly mature, robust projects whose adopters have demonstrated their production-readiness by deploying them to production environments Source 3সোর্স 3. Archived projects are inactive or low activity projects that the TOC no longer supports, or does not recommend for use, for reasons that depend on the project Source 3সোর্স 3. The CNCF says that graduated and incubating projects are considered stable and are used successfully in production environments Source 2সোর্স 2.
The three projects. Helm is the package manager for Kubernetes Source 7সোর্স 7. The CNCF page says that Helm was accepted on June 1, 2018 at the Incubating maturity level, and moved to the Graduated maturity level on May 1, 2020 Source 4সোর্স 4. Backstage is an open source framework for building developer portals Source 26সোর্স 26. It was accepted on September 8, 2020, and moved to the Incubating maturity level on March 15, 2022 Source 5সোর্স 5. Cloud Native Buildpacks transform your application source code into images that can run on any cloud Source 6সোর্স 6. Buildpacks was accepted on October 3, 2018, moved to the Incubating maturity level on November 18, 2020, and then moved to the Graduated maturity level on July 17, 2026 Source 6সোর্স 6. The tutorial read these three CNCF pages on 2026-11-19. A maturity level can change, so read the pages again when it matters.
Helm: chart, release, repository, values. A chart is a Helm package that contains information sufficient for installing a set of Kubernetes resources into a Kubernetes cluster Source 7সোর্স 7. Charts contain a Chart.yaml file as well as templates, default values (values.yaml), and dependencies Source 7সোর্স 7. When a chart is installed, the Helm library creates a release to track that installation Source 7সোর্স 7. A single chart may be installed many times into the same cluster, and create many different releases Source 7সোর্স 7. Helm charts may be stored on dedicated HTTP servers called chart repositories Source 7সোর্স 7. Values provide a way to override template defaults with your own information Source 7সোর্স 7.
Backstage: the software catalog. The Backstage Software Catalog is a centralized system that keeps track of ownership and metadata for all the software in your ecosystem Source 27সোর্স 27. The catalog is built around metadata YAML files that are stored together with the code, and then harvested and visualized in Backstage Source 27সোর্স 27. Out of the box, Backstage also includes Software Templates and TechDocs Source 26সোর্স 26.
Cloud Native Buildpacks. A buildpack is software that transforms application source code into runnable artifacts by analyzing the code and determining the best way to build it Source 34সোর্স 34. A builder is an OCI image that contains an ordered combination of buildpacks, a build-time base image, a lifecycle binary, and a reference to a runtime base image Source 35সোর্স 35. A platform orchestrates builds by invoking the lifecycle binary together with buildpacks and app source code to produce a runnable OCI image Source 36সোর্স 36. The Pack CLI is one such platform Source 36সোর্স 36. The tutorial uses pack for that reason.
বাংলা ব্যাখ্যা
CNCF আর তার ধাপ। Cloud Native Computing Foundation (CNCF) বিশ্বব্যাপী প্রযুক্তি অবকাঠামোর গুরুত্বপূর্ণ (critical) অংশ host করে Source 1সোর্স 1। CNCF অলাভজনক Linux Foundation-এর অংশ Source 1সোর্স 1। CNCF-এর একটা Technical Oversight Committee (TOC) আছে Source 3সোর্স 3। TOC project-এর জীবনচক্রের ৪টা ধাপ ঠিক করে Source 3সোর্স 3। Sandbox project হলো উন্নয়নের শুরুর দিকের পরীক্ষামূলক বা নতুন ধরনের project Source 3সোর্স 3। Incubation project-গুলো গ্রহণযোগ্যতা পাচ্ছে, আর তাদের মনোযোগ থাকে স্থিতি ও পরিপক্বতা বাড়ানোর দিকে Source 3সোর্স 3। Graduated project হলো অত্যন্ত পরিপক্ব, মজবুত project, যার ব্যবহারকারীরা production পরিবেশে চালিয়ে দেখিয়েছেন যে project production-এর জন্য প্রস্তুত Source 3সোর্স 3। Archived project হলো নিষ্ক্রিয় বা কম সক্রিয় project, যাকে TOC আর সমর্থন করে না, বা ব্যবহারের জন্য সুপারিশ করে না, কারণগুলো project অনুযায়ী আলাদা Source 3সোর্স 3। CNCF বলে, graduated ও incubating project-গুলোকে stable বলে ধরা হয় এবং production পরিবেশে সফলভাবে ব্যবহার করা হয় Source 2সোর্স 2।
তিনটা project। Helm হলো Kubernetes-এর package manager Source 7সোর্স 7। CNCF page বলে, Helm গ্রহণ করা হয়েছে ২০১৮ সালের ১ জুন Incubating স্তরে, আর ২০২০ সালের ১ মে Graduated স্তরে উঠেছে Source 4সোর্স 4। Backstage হলো developer portal বানানোর একটা open source framework Source 26সোর্স 26। সেটা গ্রহণ করা হয়েছে ২০২০ সালের ৮ সেপ্টেম্বর, আর ২০২২ সালের ১৫ মার্চ Incubating স্তরে উঠেছে Source 5সোর্স 5। Cloud Native Buildpacks আপনার application source code-কে এমন image-এ বদলে দেয়, যা যেকোনো cloud-এ চলতে পারে Source 6সোর্স 6। Buildpacks গ্রহণ করা হয়েছে ২০১৮ সালের ৩ অক্টোবর, ২০২০ সালের ১৮ নভেম্বর Incubating স্তরে উঠেছে, আর তারপর ২০২৬ সালের ১৭ জুলাই Graduated স্তরে উঠেছে Source 6সোর্স 6। টিউটোরিয়াল এই তিনটা CNCF page পড়েছে ২০২৬-১১-১৯ তারিখে। কোনো project-এর স্তর বদলাতে পারে, তাই প্রয়োজন হলে page আবার পড়ুন।
Helm: chart, release, repository, values। chart হলো একটা Helm package, যাতে Kubernetes cluster-এ একগুচ্ছ Kubernetes resource install করার মতো যথেষ্ট তথ্য থাকে Source 7সোর্স 7। chart-এ থাকে একটা Chart.yaml file, এবং template, default value (values.yaml) আর dependency Source 7সোর্স 7। একটা chart install করলে Helm library সেই install-এর হিসাব রাখতে একটা release তৈরি করে Source 7সোর্স 7। একই chart একই cluster-এ অনেকবার install করা যেতে পারে, আর তাতে অনেক আলাদা release তৈরি হয় Source 7সোর্স 7। Helm chart রাখা যেতে পারে chart repository নামের বিশেষ HTTP server-এ Source 7সোর্স 7। value দেয় template-এর default বদলানোর একটা উপায়, আপনার নিজের তথ্য দিয়ে Source 7সোর্স 7।
Backstage: software catalog। Backstage Software Catalog হলো একটা কেন্দ্রীয় system, যা আপনার ecosystem-এর সব software-এর মালিকানা আর metadata-র হিসাব রাখে Source 27সোর্স 27। catalog দাঁড়িয়ে আছে metadata YAML file-এর ওপর, যেগুলো code-এর সঙ্গেই রাখা হয়, আর তারপর Backstage-এ সংগ্রহ করে দেখানো হয় Source 27সোর্স 27। শুরু থেকেই Backstage-এ আরও আছে Software Templates আর TechDocs Source 26সোর্স 26।
Cloud Native Buildpacks। buildpack হলো এমন software, যা application source code-কে চালানো যায় এমন artifact-এ বদলে দেয়, code বিশ্লেষণ করে আর সেটা বানানোর সবচেয়ে ভালো উপায় ঠিক করে Source 34সোর্স 34। builder হলো একটা OCI image, যাতে থাকে ক্রমানুসারে সাজানো buildpack, build-এর সময়ের একটা base image, একটা lifecycle binary আর runtime-এর একটা base image-এর reference Source 35সোর্স 35। platform build-কে চালায় lifecycle binary-কে buildpack আর app-এর source code-এর সঙ্গে চালিয়ে, যাতে একটা চালানো যায় এমন OCI image তৈরি হয় Source 36সোর্স 36। Pack CLI এমন একটা platform Source 36সোর্স 36। টিউটোরিয়াল সেই কারণেই pack ব্যবহার করে।
How it works
The files of a chart. A chart is a collection of files that describe a related set of Kubernetes resources Source 8সোর্স 8. Charts are created as files laid out in a particular directory tree Source 8সোর্স 8. The helm create command creates a chart directory along with the common files and directories used in a chart Source 9সোর্স 9. Its example tree has Chart.yaml, with information about your chart, values.yaml, with the default values for your templates, charts/, with the charts that this chart depends on, and templates/, with the template files Source 9সোর্স 9. Every chart must have a Chart.yaml file Source 7সোর্স 7. Charts are versioned according to the SemVer 2 spec, and a version number is required on every chart Source 7সোর্স 7. A chart archive is a tarred and gzipped (and optionally signed) chart Source 7সোর্স 7.
Values and templates. Values provide a way to override template defaults with your own information Source 7সোর্স 7. A chart developer may expose configuration that can be overridden at installation time Source 7সোর্স 7. The order of specificity is this: values.yaml is the default, a parent chart's values.yaml can override it, a user-supplied values file can override that, and --set parameters can override that Source 19সোর্স 19. You can give the --values or -f flag more than once, and the last, right-most file gets the priority Source 12সোর্স 12. To force a string value, use --set-string Source 12সোর্স 12. The chart best practices say that variable names should begin with a lowercase letter, and words should be separated with camelcase Source 20সোর্স 20. They also say that in most cases flat should be favored over nested Source 20সোর্স 20.
Rendering without a cluster. helm template renders chart templates locally and displays the output Source 11সোর্স 11. Any values that would normally be looked up or retrieved in-cluster are faked locally Source 11সোর্স 11. None of the server-side testing of chart validity, for example whether an API is supported, is done Source 11সোর্স 11. The flag --dry-run=client simulates the operation on the client side only, and avoids cluster connections Source 11সোর্স 11. The flag --dry-run=server simulates and validates the operation on the server, and needs cluster connectivity Source 11সোর্স 11. The helm install command installs a chart archive Source 12সোর্স 12. Its argument must be a chart reference, a path to a packaged chart, a path to an unpacked chart directory, or a URL Source 12সোর্স 12.
Lint and the values schema. To lint a chart is to validate that it follows the conventions and requirements of the Helm chart standard Source 7সোর্স 7. helm lint takes a path to a chart and runs a series of tests to verify that the chart is well-formed Source 10সোর্স 10. It emits [ERROR] messages for things that will cause the chart to fail installation Source 10সোর্স 10. It emits [WARNING] messages for issues that break with convention or recommendation Source 10সোর্স 10. A chart maintainer can define a structure on the values by defining a schema in the values.schema.json file Source 8সোর্স 8. The schema is represented as a JSON Schema Source 8সোর্স 8. Validation occurs when helm install, helm upgrade, helm lint, or helm template is invoked Source 8সোর্স 8.
Releases, revisions, and rollback. After a first helm install, a release has release number 1 Source 7সোর্স 7. Each time a release is upgraded or rolled back, the release number is incremented Source 7সোর্স 7. Since release history is stored, a release can be rolled back to a previous release number with the helm rollback command Source 7সোর্স 7. A rolled back release receives a new release number Source 7সোর্স 7. helm rollback takes the name of a release and a revision number Source 14সোর্স 14. If the revision is omitted or set to 0, it rolls back to the previous release Source 14সোর্স 14. To see revision numbers, run helm history RELEASE Source 14সোর্স 14. helm history returns a default maximum of 256 revisions Source 15সোর্স 15. By default, release information is stored in Secrets in the namespace of the release Source 21সোর্স 21. The HELM_DRIVER environment variable can select another backend Source 21সোর্স 21.
Tests and hooks. A test in a Helm chart lives under the templates/ directory Source 17সোর্স 17. It is a workload definition, commonly a Pod or Job, that specifies a container with a given command to run Source 17সোর্স 17. The container should exit successfully (exit 0) for a test to be considered a success Source 17সোর্স 17. The definition must contain the test hook annotation helm.sh/hook: test Source 17সোর্স 17. The helm test command runs the tests for a release Source 16সোর্স 16. Its argument is the name of a deployed release Source 16সোর্স 16. The tests to run are defined in the chart that was installed Source 16সোর্স 16. Hooks work like regular templates, but they have special annotations that cause Helm to use them differently Source 18সোর্স 18. Helm defines two hooks for the install lifecycle: pre-install and post-install Source 18সোর্স 18.
Packages, signing, and sharing. helm package packages a chart into a versioned chart archive file Source 13সোর্স 13. If a path is given, it looks at that path for a chart, which must contain a Chart.yaml file Source 13সোর্স 13. Versioned chart archives are used by Helm package repositories Source 13সোর্স 13. To sign a chart, use the --sign flag Source 13সোর্স 13. Helm has provenance tools which help chart users verify the integrity and origin of a package Source 22সোর্স 22. Provenance files are generated at packaging time, and can be checked by multiple commands, notably helm install --verify Source 22সোর্স 22. A chart repository is an HTTP server that houses an index.yaml file and optionally some packaged charts Source 24সোর্স 24. The Helm docs recommend container registries with OCI support to store and share chart packages Source 23সোর্স 23.
A catalog descriptor. The Backstage docs recommend naming a catalog descriptor file catalog-info.yaml Source 28সোর্স 28. The descriptor files are YAML, so that people can maintain them more easily Source 28সোর্স 28. The kind is the high level entity type being described Source 28সোর্স 28. The apiVersion is the version of the specification format that the entity is written against Source 28সোর্স 28. A name must be unique per kind, within a given namespace, at any point in time Source 28সোর্স 28. By default, a name is a string of 1 to 63 characters, made of sequences of letters and digits, possibly separated by -, _, or . Source 28সোর্স 28. The rules for names are configurable Source 28সোর্স 28. For a Component, spec.type, spec.lifecycle, and spec.owner are each required Source 28সোর্স 28.
Owners and lifecycle. In Backstage, the owner of a component is the singular entity, commonly a team, that bears ultimate responsibility for the component and has the authority and capability to develop and maintain it Source 28সোর্স 28. The owner is the point of contact if something goes wrong, or if features are to be requested Source 28সোর্স 28. The software catalog accepts any lifecycle value, but an organization should take great care to establish a proper taxonomy for these Source 28সোর্স 28. The docs list experimental as an experiment or early, non-production component Source 28সোর্স 28. They list production as an established, owned, maintained component Source 28সোর্স 28.
Kinds and references. Components are individual pieces of software Source 29সোর্স 29. APIs are the boundaries between different components Source 29সোর্স 29. Resources are physical or virtual infrastructure needed to operate a component Source 29সোর্স 29. A user describes a person, such as an employee, a contractor, or similar Source 29সোর্স 29. A group describes an organizational entity, such as a team, a business unit, or a loose collection of people in an interest group Source 29সোর্স 29. Each entity in the catalog is uniquely identified by the triplet of its kind, namespace, and name Source 31সোর্স 31. A string reference is made of between one and three parts, in this specific order, without any additional encoding: optionally the kind followed by a colon, optionally the namespace followed by a forward slash, and the name Source 31সোর্স 31.
The life of an entity. The catalog is a hub where entities are ingested from various authoritative sources and held in a database, subject to automated processing, and then presented through an API Source 30সোর্স 30. Ingestion is where entity providers fetch raw entity data from external sources and seed it into the database Source 30সোর্স 30. In processing, the policies and processors continually treat the ingested data Source 30সোর্স 30. Policies establish baseline rules about the shape of entities Source 30সোর্স 30. Processors validate, analyze, and mutate the raw entity data into its final form Source 30সোর্স 30. In stitching, all the data that the processors emitted is assembled into the final output entity Source 30সোর্স 30. An entity is not visible through the catalog API until it has passed through the last process and landed among the final entities Source 30সোর্স 30.
Software templates and TechDocs. By default, Software Templates can load skeletons of code, template in some variables, and then publish the template to locations like GitHub or GitLab Source 32সোর্স 32. TechDocs is Spotify's homegrown docs-like-code solution, built directly into Backstage Source 33সোর্স 33. Engineers write their documentation in Markdown files that live together with their code Source 33সোর্স 33. With little configuration, they get a doc site in Backstage Source 33সোর্স 33.
The lifecycle. The lifecycle orchestrates buildpacks, then assembles the resulting artifacts into an OCI image Source 37সোর্স 37. An image build requires 5 lifecycle phases Source 37সোর্স 37. They are the detect, analyze, restore, build, and export binaries Source 45সোর্স 45. The analyzer, restorer, and exporter need access to an image repository, either an OCI registry or a Docker-compliant daemon Source 37সোর্স 37. For security hardening, these phases run in separate containers to avoid exposing sensitive data to buildpacks Source 37সোর্স 37. The detector and builder invoke buildpacks Source 37সোর্স 37. For security hardening, both the lifecycle and buildpacks run as non-root users when doing this work Source 37সোর্স 37. When a builder is trusted, all 5 lifecycle phases can be run in the same container, with the creator binary Source 37সোর্স 37.
Detect. The detector finds an ordered group of buildpacks to use during the build phase Source 38সোর্স 38. It reads order.toml, and looks for the first group that passes the detection process Source 38সোর্স 38. If all of the groups fail, the detection process fails Source 38সোর্স 38. To pass, the detect scripts of all required buildpacks must pass successfully, which means that the exit code is zero Source 38সোর্স 38. The detector should also be able to create a build plan with all of the requirements of the group's buildpacks Source 38সোর্স 38. The first group that passes both steps is written to group.toml, and its build plan is written to plan.toml Source 38সোর্স 38.
The two executables of a buildpack. A component buildpack is a buildpack that contains /bin/detect and /bin/build executables Source 41সোর্স 41. The pack buildpack new command generates the basic scaffolding of a buildpack repository Source 42সোর্স 42. It creates a buildpack.toml and two executable bash scripts, bin/detect and bin/build Source 42সোর্স 42. The spec gives the exit status of /bin/detect as pass (0), fail (100), or error (1-99, 101+) Source 41সোর্স 41. The spec gives the exit status of /bin/build as success (0) or failure (1+) Source 41সোর্স 41. The CNB_LAYERS_DIR variable holds the absolute path of the buildpack layers directory Source 41সোর্স 41. A build can write a launch.toml file with app metadata into that directory Source 41সোর্স 41. The positional arguments to the detect and build executables were deprecated in Buildpack API 0.8, and the lifecycle provides their values as environment variables Source 41সোর্স 41.
Layers. A layer is a set of filesystem changes packaged according to the OCI Image Specification Source 41সোর্স 41. A layer directory is a directory created by a component buildpack that contains build and/or runtime dependencies Source 41সোর্স 41. The spec names three layer types Source 41সোর্স 41. A launch layer is added as a layer in the exported OCI image Source 41সোর্স 41. A cache layer is saved to the cache, and its contents may be restored on the next build Source 41সোর্স 41. A build layer has child directories whose paths are added to the environment for subsequent buildpacks in the same build Source 41সোর্স 41. In the example output of the Buildpacks docs, the layers of the buildpack example/node-engine are in /layers/example_node-engine Source 47সোর্স 47.
Builders, platforms, and trust. pack build uses Cloud Native Buildpacks to create a runnable app image from source code Source 43সোর্স 43. It requires an image name Source 43সোর্স 43. It defaults to the current directory, and you can use --path to specify another source code directory Source 43সোর্স 43. It requires a builder, which can be given with --builder or can be set with the set-default-builder command Source 43সোর্স 43. The --buildpack flag accepts a path to a buildpack directory, among other forms Source 43সোর্স 43. pack inspect shows information about a built app image Source 44সোর্স 44. From pack version 0.11.0 onward, pack can identify builders that should be considered trusted Source 45সোর্স 45. When pack considers a builder trusted, pack build uses a single lifecycle binary called the creator Source 45সোর্স 45. If pack does not trust a builder, it continues to execute five separate lifecycle binaries Source 45সোর্স 45. The docs say that this choice strikes a balance between security and performance Source 45সোর্স 45.
The privilege behind the trust. If pack does not trust a builder, it runs the more privileged phases using a published lifecycle image, if one is available Source 45সোর্স 45. The analyze, restore, and export phases need higher levels of privilege or access to sensitive data that the detect and build phases do not need Source 45সোর্স 45. If pack used the creator with an untrusted builder, each buildpack's bin/detect and bin/build would run within a container that has heightened privileges or access to registry credentials Source 45সোর্স 45.
Rebase, reproducibility, and the SBOM. The rebaser places application layers atop a new version of the runtime base image Source 39সোর্স 39. The Cloud Native Buildpacks project aims to create “Reproducible Builds” of container images Source 40সোর্স 40. Given the same inputs, two builds should produce the same outputs Source 40সোর্স 40. A Software Bill-of-Materials (SBOM) lists all the software components included in an image Source 46সোর্স 46. Buildpacks can populate SBOM information about the dependencies they have provided Source 46সোর্স 46. The pack sbom download command downloads the app layer containing the SBOM files to ./layers/sbom/... on your local filesystem Source 46সোর্স 46.
সহজ English
The files of a chart. A chart is a collection of files that describe a related set of Kubernetes resources Source 8সোর্স 8. Charts are created as files laid out in a particular directory tree Source 8সোর্স 8. The helm create command creates a chart directory along with the common files and directories used in a chart Source 9সোর্স 9. Its example tree has Chart.yaml, with information about your chart, values.yaml, with the default values for your templates, charts/, with the charts that this chart depends on, and templates/, with the template files Source 9সোর্স 9. Every chart must have a Chart.yaml file Source 7সোর্স 7. Charts are versioned according to the SemVer 2 spec, and a version number is required on every chart Source 7সোর্স 7. A chart archive is a tarred and gzipped (and optionally signed) chart Source 7সোর্স 7.
Values and templates. Values provide a way to override template defaults with your own information Source 7সোর্স 7. A chart developer may expose configuration that can be overridden at installation time Source 7সোর্স 7. The order of specificity is this: values.yaml is the default, a parent chart's values.yaml can override it, a user-supplied values file can override that, and --set parameters can override that Source 19সোর্স 19. You can give the --values or -f flag more than once, and the last, right-most file gets the priority Source 12সোর্স 12. To force a string value, use --set-string Source 12সোর্স 12. The chart best practices say that variable names should begin with a lowercase letter, and words should be separated with camelcase Source 20সোর্স 20. They also say that in most cases flat should be favored over nested Source 20সোর্স 20.
Rendering without a cluster. helm template renders chart templates locally and displays the output Source 11সোর্স 11. Any values that would normally be looked up or retrieved in-cluster are faked locally Source 11সোর্স 11. None of the server-side testing of chart validity, for example whether an API is supported, is done Source 11সোর্স 11. The flag --dry-run=client simulates the operation on the client side only, and avoids cluster connections Source 11সোর্স 11. The flag --dry-run=server simulates and validates the operation on the server, and needs cluster connectivity Source 11সোর্স 11. The helm install command installs a chart archive Source 12সোর্স 12. Its argument must be a chart reference, a path to a packaged chart, a path to an unpacked chart directory, or a URL Source 12সোর্স 12.
Lint and the values schema. To lint a chart is to validate that it follows the conventions and requirements of the Helm chart standard Source 7সোর্স 7. helm lint takes a path to a chart and runs a series of tests to verify that the chart is well-formed Source 10সোর্স 10. It emits [ERROR] messages for things that will cause the chart to fail installation Source 10সোর্স 10. It emits [WARNING] messages for issues that break with convention or recommendation Source 10সোর্স 10. A chart maintainer can define a structure on the values by defining a schema in the values.schema.json file Source 8সোর্স 8. The schema is represented as a JSON Schema Source 8সোর্স 8. Validation occurs when helm install, helm upgrade, helm lint, or helm template is invoked Source 8সোর্স 8.
Releases, revisions, and rollback. After a first helm install, a release has release number 1 Source 7সোর্স 7. Each time a release is upgraded or rolled back, the release number is incremented Source 7সোর্স 7. Since release history is stored, a release can be rolled back to a previous release number with the helm rollback command Source 7সোর্স 7. A rolled back release receives a new release number Source 7সোর্স 7. helm rollback takes the name of a release and a revision number Source 14সোর্স 14. If the revision is omitted or set to 0, it rolls back to the previous release Source 14সোর্স 14. To see revision numbers, run helm history RELEASE Source 14সোর্স 14. helm history returns a default maximum of 256 revisions Source 15সোর্স 15. By default, release information is stored in Secrets in the namespace of the release Source 21সোর্স 21. The HELM_DRIVER environment variable can select another backend Source 21সোর্স 21.
Tests and hooks. A test in a Helm chart lives under the templates/ directory Source 17সোর্স 17. It is a workload definition, commonly a Pod or Job, that specifies a container with a given command to run Source 17সোর্স 17. The container should exit successfully (exit 0) for a test to be considered a success Source 17সোর্স 17. The definition must contain the test hook annotation helm.sh/hook: test Source 17সোর্স 17. The helm test command runs the tests for a release Source 16সোর্স 16. Its argument is the name of a deployed release Source 16সোর্স 16. The tests to run are defined in the chart that was installed Source 16সোর্স 16. Hooks work like regular templates, but they have special annotations that cause Helm to use them differently Source 18সোর্স 18. Helm defines two hooks for the install lifecycle: pre-install and post-install Source 18সোর্স 18.
Packages, signing, and sharing. helm package packages a chart into a versioned chart archive file Source 13সোর্স 13. If a path is given, it looks at that path for a chart, which must contain a Chart.yaml file Source 13সোর্স 13. Versioned chart archives are used by Helm package repositories Source 13সোর্স 13. To sign a chart, use the --sign flag Source 13সোর্স 13. Helm has provenance tools which help chart users verify the integrity and origin of a package Source 22সোর্স 22. Provenance files are generated at packaging time, and can be checked by multiple commands, notably helm install --verify Source 22সোর্স 22. A chart repository is an HTTP server that houses an index.yaml file and optionally some packaged charts Source 24সোর্স 24. The Helm docs recommend container registries with OCI support to store and share chart packages Source 23সোর্স 23.
A catalog descriptor. The Backstage docs recommend naming a catalog descriptor file catalog-info.yaml Source 28সোর্স 28. The descriptor files are YAML, so that people can maintain them more easily Source 28সোর্স 28. The kind is the high level entity type being described Source 28সোর্স 28. The apiVersion is the version of the specification format that the entity is written against Source 28সোর্স 28. A name must be unique per kind, within a given namespace, at any point in time Source 28সোর্স 28. By default, a name is a string of 1 to 63 characters, made of sequences of letters and digits, possibly separated by -, _, or . Source 28সোর্স 28. The rules for names are configurable Source 28সোর্স 28. For a Component, spec.type, spec.lifecycle, and spec.owner are each required Source 28সোর্স 28.
Owners and lifecycle. In Backstage, the owner of a component is the singular entity, commonly a team, that bears ultimate responsibility for the component and has the authority and capability to develop and maintain it Source 28সোর্স 28. The owner is the point of contact if something goes wrong, or if features are to be requested Source 28সোর্স 28. The software catalog accepts any lifecycle value, but an organization should take great care to establish a proper taxonomy for these Source 28সোর্স 28. The docs list experimental as an experiment or early, non-production component Source 28সোর্স 28. They list production as an established, owned, maintained component Source 28সোর্স 28.
Kinds and references. Components are individual pieces of software Source 29সোর্স 29. APIs are the boundaries between different components Source 29সোর্স 29. Resources are physical or virtual infrastructure needed to operate a component Source 29সোর্স 29. A user describes a person, such as an employee, a contractor, or similar Source 29সোর্স 29. A group describes an organizational entity, such as a team, a business unit, or a loose collection of people in an interest group Source 29সোর্স 29. Each entity in the catalog is uniquely identified by the triplet of its kind, namespace, and name Source 31সোর্স 31. A string reference is made of between one and three parts, in this specific order, without any additional encoding: optionally the kind followed by a colon, optionally the namespace followed by a forward slash, and the name Source 31সোর্স 31.
The life of an entity. The catalog is a hub where entities are ingested from various authoritative sources and held in a database, subject to automated processing, and then presented through an API Source 30সোর্স 30. Ingestion is where entity providers fetch raw entity data from external sources and seed it into the database Source 30সোর্স 30. In processing, the policies and processors continually treat the ingested data Source 30সোর্স 30. Policies establish baseline rules about the shape of entities Source 30সোর্স 30. Processors validate, analyze, and mutate the raw entity data into its final form Source 30সোর্স 30. In stitching, all the data that the processors emitted is assembled into the final output entity Source 30সোর্স 30. An entity is not visible through the catalog API until it has passed through the last process and landed among the final entities Source 30সোর্স 30.
Software templates and TechDocs. By default, Software Templates can load skeletons of code, template in some variables, and then publish the template to locations like GitHub or GitLab Source 32সোর্স 32. TechDocs is Spotify's homegrown docs-like-code solution, built directly into Backstage Source 33সোর্স 33. Engineers write their documentation in Markdown files that live together with their code Source 33সোর্স 33. With little configuration, they get a doc site in Backstage Source 33সোর্স 33.
The lifecycle. The lifecycle orchestrates buildpacks, then assembles the resulting artifacts into an OCI image Source 37সোর্স 37. An image build requires 5 lifecycle phases Source 37সোর্স 37. They are the detect, analyze, restore, build, and export binaries Source 45সোর্স 45. The analyzer, restorer, and exporter need access to an image repository, either an OCI registry or a Docker-compliant daemon Source 37সোর্স 37. For security hardening, these phases run in separate containers to avoid exposing sensitive data to buildpacks Source 37সোর্স 37. The detector and builder invoke buildpacks Source 37সোর্স 37. For security hardening, both the lifecycle and buildpacks run as non-root users when doing this work Source 37সোর্স 37. When a builder is trusted, all 5 lifecycle phases can be run in the same container, with the creator binary Source 37সোর্স 37.
Detect. The detector finds an ordered group of buildpacks to use during the build phase Source 38সোর্স 38. It reads order.toml, and looks for the first group that passes the detection process Source 38সোর্স 38. If all of the groups fail, the detection process fails Source 38সোর্স 38. To pass, the detect scripts of all required buildpacks must pass successfully, which means that the exit code is zero Source 38সোর্স 38. The detector should also be able to create a build plan with all of the requirements of the group's buildpacks Source 38সোর্স 38. The first group that passes both steps is written to group.toml, and its build plan is written to plan.toml Source 38সোর্স 38.
The two executables of a buildpack. A component buildpack is a buildpack that contains /bin/detect and /bin/build executables Source 41সোর্স 41. The pack buildpack new command generates the basic scaffolding of a buildpack repository Source 42সোর্স 42. It creates a buildpack.toml and two executable bash scripts, bin/detect and bin/build Source 42সোর্স 42. The spec gives the exit status of /bin/detect as pass (0), fail (100), or error (1-99, 101+) Source 41সোর্স 41. The spec gives the exit status of /bin/build as success (0) or failure (1+) Source 41সোর্স 41. The CNB_LAYERS_DIR variable holds the absolute path of the buildpack layers directory Source 41সোর্স 41. A build can write a launch.toml file with app metadata into that directory Source 41সোর্স 41. The positional arguments to the detect and build executables were deprecated in Buildpack API 0.8, and the lifecycle provides their values as environment variables Source 41সোর্স 41.
Layers. A layer is a set of filesystem changes packaged according to the OCI Image Specification Source 41সোর্স 41. A layer directory is a directory created by a component buildpack that contains build and/or runtime dependencies Source 41সোর্স 41. The spec names three layer types Source 41সোর্স 41. A launch layer is added as a layer in the exported OCI image Source 41সোর্স 41. A cache layer is saved to the cache, and its contents may be restored on the next build Source 41সোর্স 41. A build layer has child directories whose paths are added to the environment for subsequent buildpacks in the same build Source 41সোর্স 41. In the example output of the Buildpacks docs, the layers of the buildpack example/node-engine are in /layers/example_node-engine Source 47সোর্স 47.
Builders, platforms, and trust. pack build uses Cloud Native Buildpacks to create a runnable app image from source code Source 43সোর্স 43. It requires an image name Source 43সোর্স 43. It defaults to the current directory, and you can use --path to specify another source code directory Source 43সোর্স 43. It requires a builder, which can be given with --builder or can be set with the set-default-builder command Source 43সোর্স 43. The --buildpack flag accepts a path to a buildpack directory, among other forms Source 43সোর্স 43. pack inspect shows information about a built app image Source 44সোর্স 44. From pack version 0.11.0 onward, pack can identify builders that should be considered trusted Source 45সোর্স 45. When pack considers a builder trusted, pack build uses a single lifecycle binary called the creator Source 45সোর্স 45. If pack does not trust a builder, it continues to execute five separate lifecycle binaries Source 45সোর্স 45. The docs say that this choice strikes a balance between security and performance Source 45সোর্স 45.
The privilege behind the trust. If pack does not trust a builder, it runs the more privileged phases using a published lifecycle image, if one is available Source 45সোর্স 45. The analyze, restore, and export phases need higher levels of privilege or access to sensitive data that the detect and build phases do not need Source 45সোর্স 45. If pack used the creator with an untrusted builder, each buildpack's bin/detect and bin/build would run within a container that has heightened privileges or access to registry credentials Source 45সোর্স 45.
Rebase, reproducibility, and the SBOM. The rebaser places application layers atop a new version of the runtime base image Source 39সোর্স 39. The Cloud Native Buildpacks project aims to create “Reproducible Builds” of container images Source 40সোর্স 40. Given the same inputs, two builds should produce the same outputs Source 40সোর্স 40. A Software Bill-of-Materials (SBOM) lists all the software components included in an image Source 46সোর্স 46. Buildpacks can populate SBOM information about the dependencies they have provided Source 46সোর্স 46. The pack sbom download command downloads the app layer containing the SBOM files to ./layers/sbom/... on your local filesystem Source 46সোর্স 46.
বাংলা ব্যাখ্যা
chart-এর file। chart হলো একগুচ্ছ file, যা একটা সম্পর্কিত Kubernetes resource-এর সেট বর্ণনা করে Source 8সোর্স 8। chart বানানো হয় একটা নির্দিষ্ট directory tree-তে সাজানো file দিয়ে Source 8সোর্স 8। helm create command একটা chart directory বানায়, সঙ্গে chart-এ ব্যবহৃত সাধারণ file আর directory-ও Source 9সোর্স 9। তার উদাহরণ tree-তে আছে Chart.yaml (chart-এর তথ্য), values.yaml (template-এর default value), charts/ (এই chart যেসব chart-এর ওপর নির্ভর করে) আর templates/ (template file) Source 9সোর্স 9। প্রতিটা chart-এ একটা Chart.yaml file থাকতেই হয় Source 7সোর্স 7। chart-এর version দেওয়া হয় SemVer 2 spec অনুযায়ী, আর প্রতিটা chart-এ একটা version number লাগে Source 7সোর্স 7। chart archive হলো একটা tar আর gzip করা (আর ইচ্ছে হলে signed) chart Source 7সোর্স 7।
value আর template। value দেয় template-এর default বদলানোর একটা উপায়, আপনার নিজের তথ্য দিয়ে Source 7সোর্স 7। chart-এর developer এমন configuration সামনে রাখতে পারেন, যা install-এর সময় বদলানো যায় Source 7সোর্স 7। কোনটা কার ওপরে, তার ক্রম এই: values.yaml হলো default, parent chart-এর values.yaml তাকে বদলাতে পারে, user-এর দেওয়া values file সেটাকে বদলাতে পারে, আর --set parameter সেটাকেও বদলাতে পারে Source 19সোর্স 19। --values বা -f flag একাধিকবার দেওয়া যায়, আর শেষের, ডানদিকের file-টা অগ্রাধিকার পায় Source 12সোর্স 12। একটা মানকে string করতে চাইলে --set-string ব্যবহার করুন Source 12সোর্স 12। chart best practice বলে, variable-এর নাম ছোট হাতের অক্ষর দিয়ে শুরু হওয়া উচিত, আর শব্দগুলো camelcase দিয়ে আলাদা করা উচিত Source 20সোর্স 20। তারা আরও বলে, বেশির ভাগ ক্ষেত্রে nested-এর চেয়ে flat বেছে নেওয়া উচিত Source 20সোর্স 20।
cluster ছাড়া render করা। helm template chart-এর template স্থানীয়ভাবে render করে আর output দেখায় Source 11সোর্স 11। যে মান সাধারণত cluster-এর ভেতর থেকে খুঁজে বা এনে নেওয়া হতো, তা স্থানীয়ভাবে নকল করা হয় Source 11সোর্স 11। chart ঠিক আছে কি না, তা server-এর দিক থেকে পরীক্ষা করার কিছুই করা হয় না, যেমন কোনো API সমর্থিত কি না Source 11সোর্স 11। --dry-run=client flag কাজটার অনুকরণ করে শুধু client-এর দিকে, আর cluster-এর সঙ্গে যোগাযোগ এড়ায় Source 11সোর্স 11। --dry-run=server flag কাজটার অনুকরণ আর যাচাই করে server-এ, আর cluster-এর সঙ্গে যোগাযোগ লাগে Source 11সোর্স 11। helm install command একটা chart archive install করে Source 12সোর্স 12। তার argument হতে হবে একটা chart reference, একটা packaged chart-এর path, একটা খোলা chart directory-র path, বা একটা URL Source 12সোর্স 12।
lint আর values schema। একটা chart lint করা মানে যাচাই করা যে সে Helm chart standard-এর রীতি আর শর্ত মেনে চলছে Source 7সোর্স 7। helm lint একটা chart-এর path নেয় আর কয়েকটা test চালিয়ে দেখে chart ঠিকঠাক গড়া কি না Source 10সোর্স 10। যা chart-কে install-এ ব্যর্থ করবে, সেসবের জন্য সে [ERROR] বার্তা দেয় Source 10সোর্স 10। যা রীতি বা সুপারিশ ভাঙে, সেসবের জন্য সে [WARNING] বার্তা দেয় Source 10সোর্স 10। chart-এর maintainer values.schema.json file-এ একটা schema ঠিক করে value-গুলোর কাঠামো বেঁধে দিতে পারেন Source 8সোর্স 8। schema লেখা হয় JSON Schema হিসেবে Source 8সোর্স 8। helm install, helm upgrade, helm lint বা helm template চালালে এই যাচাই হয় Source 8সোর্স 8।
release, revision আর rollback। প্রথম helm install-এর পর একটা release-এর release number হয় 1 Source 7সোর্স 7। একটা release upgrade বা rollback হলে প্রতিবার release number একটা করে বাড়ে Source 7সোর্স 7। release-এর ইতিহাস রাখা হয় বলে একটা release-কে আগের কোনো release number-এ rollback করা যায়, helm rollback command দিয়ে Source 7সোর্স 7। rollback করা release একটা নতুন release number পায় Source 7সোর্স 7। helm rollback নেয় একটা release-এর নাম আর একটা revision number Source 14সোর্স 14। revision বাদ দিলে বা 0 দিলে সে আগের release-এ ফিরে যায় Source 14সোর্স 14। revision number দেখতে চালান helm history RELEASE Source 14সোর্স 14। helm history ডিফল্টভাবে সর্বোচ্চ ২৫৬টা revision ফেরত দেয় Source 15সোর্স 15। ডিফল্টভাবে release-এর তথ্য রাখা হয় release-এর namespace-এর Secret-এ Source 21সোর্স 21। HELM_DRIVER environment variable অন্য একটা backend বেছে নিতে পারে Source 21সোর্স 21।
test আর hook। Helm chart-এর একটা test থাকে templates/ directory-র ভেতরে Source 17সোর্স 17। সেটা একটা workload definition, সাধারণত Pod বা Job, যা একটা container আর তার চালানোর একটা command ঠিক করে Source 17সোর্স 17। test সফল ধরা হতে হলে container-এর সফলভাবে (exit 0 দিয়ে) শেষ হওয়া উচিত Source 17সোর্স 17। definition-এ test hook annotation helm.sh/hook: test থাকতেই হয় Source 17সোর্স 17। helm test command একটা release-এর test চালায় Source 16সোর্স 16। তার argument একটা deployed release-এর নাম Source 16সোর্স 16। চালানোর test-গুলো ঠিক করা থাকে install করা chart-এ Source 16সোর্স 16। hook সাধারণ template-এর মতোই কাজ করে, কিন্তু তাদের বিশেষ annotation থাকে, যার ফলে Helm তাদের আলাদাভাবে ব্যবহার করে Source 18সোর্স 18। install lifecycle-এর জন্য Helm দুটো hook ঠিক করে: pre-install আর post-install Source 18সোর্স 18।
package, signing আর ভাগ করা। helm package একটা chart-কে একটা version-যুক্ত chart archive file-এ package করে Source 13সোর্স 13। path দিলে সে সেই path-এ একটা chart খোঁজে, যাতে একটা Chart.yaml file থাকতে হবে Source 13সোর্স 13। version-যুক্ত chart archive Helm package repository ব্যবহার করে Source 13সোর্স 13। chart-এ signature দিতে --sign flag ব্যবহার করুন Source 13সোর্স 13। Helm-এর provenance tool আছে, যা chart-এর ব্যবহারকারীকে package-এর অখণ্ডতা (integrity) আর উৎস যাচাই করতে সাহায্য করে Source 22সোর্স 22। provenance file তৈরি হয় package করার সময়, আর একাধিক command তা যাচাই করতে পারে, বিশেষ করে helm install --verify Source 22সোর্স 22। chart repository হলো একটা HTTP server, যাতে থাকে একটা index.yaml file আর ইচ্ছে হলে কিছু packaged chart Source 24সোর্স 24। Helm docs chart package রাখতে আর ভাগ করতে OCI সমর্থন করে এমন container registry ব্যবহারের সুপারিশ করে Source 23সোর্স 23।
catalog descriptor। Backstage docs একটা catalog descriptor file-এর নাম catalog-info.yaml রাখার সুপারিশ করে Source 28সোর্স 28। descriptor file YAML, যাতে মানুষ সেটা সহজে সামলাতে পারে Source 28সোর্স 28। kind হলো যে উঁচু স্তরের entity type বর্ণনা করা হচ্ছে, সেটা Source 28সোর্স 28। apiVersion হলো specification format-এর সেই version, যার বিপরীতে entity লেখা হয়েছে Source 28সোর্স 28। একটা নাম হতে হবে kind অনুযায়ী অনন্য, একটা নির্দিষ্ট namespace-এর মধ্যে, যেকোনো সময়ে Source 28সোর্স 28। ডিফল্টভাবে একটা নাম হলো ১ থেকে ৬৩ অক্ষরের একটা string, যা গড়া অক্ষর আর অঙ্কের ক্রম দিয়ে, যাদের আলাদা করতে পারে -, _ বা . Source 28সোর্স 28। নামের নিয়ম বদলানো যায় Source 28সোর্স 28। একটা Component-এর জন্য spec.type, spec.lifecycle আর spec.owner প্রতিটাই বাধ্যতামূলক Source 28সোর্স 28।
owner আর lifecycle। Backstage-এ একটা component-এর owner হলো সেই একক entity, সাধারণত একটা team, যে component-টার চূড়ান্ত দায় বহন করে আর তা বানানো ও সামলানোর অধিকার ও সামর্থ্য রাখে Source 28সোর্স 28। কিছু ভুল হলে বা নতুন feature চাইলে owner-ই যোগাযোগের মানুষ Source 28সোর্স 28। software catalog যেকোনো lifecycle মান নেয়, কিন্তু একটা প্রতিষ্ঠানের উচিত সেগুলোর একটা ঠিকঠাক শ্রেণিবিন্যাস দাঁড় করাতে খুব যত্ন নেওয়া Source 28সোর্স 28। docs experimental-কে বলে একটা পরীক্ষা বা শুরুর দিকের, production নয় এমন component Source 28সোর্স 28। তারা production-কে বলে একটা প্রতিষ্ঠিত, মালিকানাযুক্ত, রক্ষণাবেক্ষণ করা component Source 28সোর্স 28।
kind আর reference। component হলো আলাদা আলাদা software-এর টুকরো Source 29সোর্স 29। API হলো আলাদা component-এর মধ্যেকার সীমানা Source 29সোর্স 29। resource হলো একটা component চালাতে দরকারি বাস্তব বা ভার্চুয়াল অবকাঠামো Source 29সোর্স 29। user বর্ণনা করে একজন মানুষকে, যেমন একজন কর্মী, ঠিকাদার বা অনুরূপ কেউ Source 29সোর্স 29। group বর্ণনা করে একটা সাংগঠনিক entity-কে, যেমন একটা team, একটা business unit বা আগ্রহের ভিত্তিতে গড়া আলগা একটা দল Source 29সোর্স 29। catalog-এর প্রতিটা entity অনন্যভাবে চেনা যায় তার kind, namespace আর name-এর তিনটা মান দিয়ে Source 31সোর্স 31। একটা string reference এক থেকে তিনটা অংশ দিয়ে গড়া, এই নির্দিষ্ট ক্রমে, কোনো বাড়তি encoding ছাড়া: ইচ্ছে হলে kind আর তার পর একটা কোলন, ইচ্ছে হলে namespace আর তার পর একটা সামনের slash, আর name Source 31সোর্স 31।
একটা entity-র জীবন। catalog একটা কেন্দ্র, যেখানে entity বিভিন্ন নির্ভরযোগ্য উৎস থেকে ঢোকে (ingest) আর একটা database-এ থাকে, স্বয়ংক্রিয় processing-এর মধ্য দিয়ে যায়, আর তারপর একটা API দিয়ে দেখানো হয় Source 30সোর্স 30। ingestion হলো যেখানে entity provider বাইরের উৎস থেকে কাঁচা entity data আনে আর database-এ বসায় Source 30সোর্স 30। processing-এ policy আর processor ঢুকে আসা data-র ওপর ক্রমাগত কাজ করে Source 30সোর্স 30। policy entity-র আকার নিয়ে প্রাথমিক নিয়ম ঠিক করে Source 30সোর্স 30। processor কাঁচা entity data যাচাই করে, বিশ্লেষণ করে আর বদলে তার চূড়ান্ত রূপ দেয় Source 30সোর্স 30। stitching-এ processor-রা যে সব data ছেড়েছে, তা জোড়া লেগে চূড়ান্ত output entity হয় Source 30সোর্স 30। একটা entity catalog API দিয়ে দেখা যায় না, যতক্ষণ না সে শেষ ধাপ পেরিয়ে চূড়ান্ত entity-দের মধ্যে এসে পৌঁছায় Source 30সোর্স 30।
software template আর TechDocs। ডিফল্টভাবে Software Templates code-এর কাঠামো load করতে পারে, কিছু variable বসাতে পারে, আর তারপর সেই template GitHub বা GitLab-এর মতো জায়গায় publish করতে পারে Source 32সোর্স 32। TechDocs হলো Spotify-র নিজস্ব docs-like-code সমাধান, যা সরাসরি Backstage-এর ভেতরে বানানো Source 33সোর্স 33। engineer-রা তাদের documentation লেখেন Markdown file-এ, যা তাদের code-এর সঙ্গেই থাকে Source 33সোর্স 33। সামান্য configuration দিয়ে তারা Backstage-এ একটা doc site পান Source 33সোর্স 33।
lifecycle। lifecycle buildpack-গুলোকে চালায়, তারপর পাওয়া artifact-গুলো জুড়ে একটা OCI image বানায় Source 37সোর্স 37। একটা image build-এ ৫টা lifecycle phase লাগে Source 37সোর্স 37। সেগুলো হলো detect, analyze, restore, build আর export binary Source 45সোর্স 45। analyzer, restorer আর exporter-এর একটা image repository-তে ঢোকার সুযোগ লাগে, হয় একটা OCI registry, নয় একটা Docker-সামঞ্জস্যপূর্ণ daemon Source 37সোর্স 37। নিরাপত্তা শক্ত করতে এই phase-গুলো আলাদা আলাদা container-এ চলে, যাতে সংবেদনশীল data buildpack-গুলোর সামনে না পড়ে Source 37সোর্স 37। detector আর builder buildpack-গুলোকে চালায় Source 37সোর্স 37। নিরাপত্তা শক্ত করতে এই কাজ করার সময় lifecycle আর buildpack দুটোই non-root user হিসেবে চলে Source 37সোর্স 37। কোনো builder trusted হলে ৫টা lifecycle phase-ই একই container-এ চলতে পারে, creator binary দিয়ে Source 37সোর্স 37।
detect। detector build phase-এ ব্যবহারের জন্য buildpack-এর একটা ক্রমানুসারে সাজানো group খুঁজে বের করে Source 38সোর্স 38। সে order.toml পড়ে, আর প্রথম যে group detection পার হয়, তাকে খোঁজে Source 38সোর্স 38। সব group ব্যর্থ হলে detection ব্যর্থ হয় Source 38সোর্স 38। পার হতে হলে সব দরকারি (required) buildpack-এর detect script সফলভাবে পার হতে হবে, অর্থাৎ exit code শূন্য হতে হবে Source 38সোর্স 38। detector-এরও উচিত group-এর buildpack-গুলোর সব চাহিদা নিয়ে একটা build plan বানাতে পারা Source 38সোর্স 38। যে প্রথম group দুটো ধাপই পার হয়, তাকে group.toml-এ লেখা হয়, আর তার build plan plan.toml-এ লেখা হয় Source 38সোর্স 38।
একটা buildpack-এর দুটো executable। component buildpack হলো এমন buildpack, যাতে /bin/detect আর /bin/build executable আছে Source 41সোর্স 41। pack buildpack new command একটা buildpack repository-র মৌলিক কাঠামো বানায় Source 42সোর্স 42। সে একটা buildpack.toml আর দুটো executable bash script, bin/detect আর bin/build, বানায় Source 42সোর্স 42। spec /bin/detect-এর exit status দেয় এভাবে: pass (0), fail (100) বা error (1-99, 101+) Source 41সোর্স 41। spec /bin/build-এর exit status দেয় এভাবে: success (0) বা failure (1+) Source 41সোর্স 41। CNB_LAYERS_DIR variable-এ থাকে buildpack-এর layers directory-র পূর্ণ path Source 41সোর্স 41। build সেই directory-তে app-এর metadata সহ একটা launch.toml file লিখতে পারে Source 41সোর্স 41। detect আর build executable-এর positional argument Buildpack API 0.8-এ deprecated হয়েছে, আর lifecycle তাদের মান environment variable হিসেবে দেয় Source 41সোর্স 41।
layer। layer হলো একগুচ্ছ filesystem পরিবর্তন, OCI Image Specification অনুযায়ী package করা Source 41সোর্স 41। layer directory হলো একটা component buildpack-এর বানানো directory, যাতে build আর/বা runtime-এর dependency থাকে Source 41সোর্স 41। spec তিন ধরনের layer-এর নাম দেয় Source 41সোর্স 41। launch layer রপ্তানি করা OCI image-এ একটা layer হিসেবে যোগ হয় Source 41সোর্স 41। cache layer cache-এ রাখা হয়, আর তার ভেতরের জিনিস পরের build-এ ফিরিয়ে আনা হতে পারে Source 41সোর্স 41। build layer-এ থাকে child directory, যাদের path একই build-এর পরের buildpack-গুলোর জন্য environment-এ যোগ হয় Source 41সোর্স 41। Buildpacks docs-এর উদাহরণ output-এ example/node-engine buildpack-এর layer আছে /layers/example_node-engine-এ Source 47সোর্স 47।
builder, platform আর বিশ্বাস। pack build Cloud Native Buildpacks ব্যবহার করে source code থেকে একটা চালানো যায় এমন app image বানায় Source 43সোর্স 43। তার একটা image name লাগে Source 43সোর্স 43। সে ডিফল্টভাবে current directory ধরে, আর --path দিয়ে আপনি অন্য একটা source code directory দিতে পারেন Source 43সোর্স 43। তার একটা builder লাগে, যা --builder দিয়ে দেওয়া যায় বা set-default-builder command দিয়ে ঠিক করা যায় Source 43সোর্স 43। --buildpack flag আরও কয়েক রকমের সঙ্গে একটা buildpack directory-র path নেয় Source 43সোর্স 43। pack inspect একটা বানানো app image-এর তথ্য দেখায় Source 44সোর্স 44। pack version 0.11.0 থেকে pack এমন builder চিনতে পারে, যাকে trusted ধরা উচিত Source 45সোর্স 45। pack কোনো builder-কে trusted ধরলে pack build creator নামের একটা একক lifecycle binary ব্যবহার করে Source 45সোর্স 45। pack কোনো builder-কে বিশ্বাস না করলে সে পাঁচটা আলাদা lifecycle binary চালিয়ে যায় Source 45সোর্স 45। docs বলে, এই বাছাই নিরাপত্তা আর গতির মধ্যে একটা ভারসাম্য আনে Source 45সোর্স 45।
বিশ্বাসের পেছনের সুবিধা-অসুবিধা। pack কোনো builder-কে বিশ্বাস না করলে সে বেশি সুবিধাপ্রাপ্ত phase-গুলো চালায় একটা প্রকাশিত lifecycle image দিয়ে, যদি তেমন একটা পাওয়া যায় Source 45সোর্স 45। analyze, restore আর export phase-এর দরকার বেশি উঁচু স্তরের সুবিধা বা সংবেদনশীল data-য় ঢোকার সুযোগ, যা detect আর build phase-এর লাগে না Source 45সোর্স 45। pack কোনো অবিশ্বস্ত builder-এর সঙ্গে creator ব্যবহার করলে প্রতিটা buildpack-এর bin/detect আর bin/build চলত এমন একটা container-এ, যেখানে বাড়তি সুবিধা বা registry credential-এ ঢোকার সুযোগ আছে Source 45সোর্স 45।
rebase, পুনরাবৃত্তিযোগ্যতা আর SBOM। rebaser application layer-গুলোকে runtime base image-এর একটা নতুন version-এর ওপর বসায় Source 39সোর্স 39। Cloud Native Buildpacks project container image-এর “Reproducible Builds” বানানোর লক্ষ্য রাখে Source 40সোর্স 40। একই input পেলে দুটো build-এর একই output দেওয়া উচিত Source 40সোর্স 40। Software Bill-of-Materials (SBOM) একটা image-এ থাকা সব software component-এর তালিকা Source 46সোর্স 46। buildpack তাদের দেওয়া dependency নিয়ে SBOM তথ্য ভরতে পারে Source 46সোর্স 46। pack sbom download command SBOM file সহ app layer-টা আপনার স্থানীয় filesystem-এর ./layers/sbom/...-এ download করে Source 46সোর্স 46।
Try it
The tutorial ran steps 1 to 9 on 2026-11-19 at 23:26 (+06) on Linux 7.0.0-43-generic, with Helm v4.3.2, pack 0.40.11, Node.js v26.8.1, npm 11.19.0, @backstage/catalog-model 1.10.3, yaml 2.9.1, Docker 29.10.0, and bash 5.3.9. The output on this page is from the tutorial's run. Each step ran in its own shell, in a copy of the practice folder, with a new, empty HOME. The page shows the folder of the run as /work.
The Helm steps (2 to 6) work on local files only, and need no cluster. Step 7 downloads two npm packages. Step 9 needs the Docker daemon. The run added four images (the builder, the run image, the lifecycle image buildpacksio/lifecycle, and the app image) and two cache volumes. The runner stops at the start if one of these images already exists, so it never removes an image that it did not add. After the steps it removed exactly what it had added, and its record says that the lists of images, volumes, and containers were the same as before the run. It never prunes. The empty home folder held .npm and .pack after the steps, and the run added nothing to the real home folder.
The choices that no source gives are the tutorial's own: the chart name qa-demo, the schema, the checks of render_test.sh, the catalog files, validate.mjs, the buildpack id qa/hello-buildpack, hello.txt, the two scripts of the buildpack, the image name, the builder, and the flags of docker run (--pull never, --network none, and --memory 64m). The tutorial did not run a Kubernetes cluster, helm install without --dry-run=client, helm test, helm upgrade, helm rollback, hooks, helm package --sign, helm verify, a chart repository, an OCI registry, Backstage itself (its catalog backend, its templates, or TechDocs), pack build --publish, pack rebase, pack sbom download, or pack builder create. Those parts are described from the docs only.
Install the tools. The Helm docs say that each Helm release includes cryptographic signatures that confirm the binary was built and signed by Helm maintainers Source 25সোর্স 25. They say that you should always verify the authenticity of Helm binaries before installing Source 25সোর্স 25. One of their steps is to verify the SHA256 checksum to confirm the download was not corrupted Source 25সোর্স 25. Another is to verify the binary's signature Source 25সোর্স 25. They also say that you can cross-check the maintainer keys on Keybase Source 25সোর্স 25.
On 2026-11-19 at 18:28, the tutorial's install script downloaded the Helm v4.3.2 archive from get.helm.sh. It compared the SHA-256 of the archive with the value in the .sha256sum file of the same release, and the two values were the same. It imported the keys of the KEYS file of the Helm repository into a throw-away GnuPG home, and checked that the .asc file is a good signature of the archive, made by a key from that file. The archive starts with d1c0278d, and the primary key of the signature ends in B91C1155. The tutorial did not cross-check the keys on Keybase. So its check shows that a key from the KEYS file signed the archive, and it does not show who owns that key.
At 18:28 the script downloaded pack-v0.40.11-linux.tgz from the GitHub release page of the pack project, and compared its SHA-256, which starts with 280a53ff, with the .sha256 file of the same release. The two values were the same. The release listed a .sha256 file for each archive and no signature file. The checksum file comes from the same host as the archive. So the check finds a damaged or a swapped archive, and it does not prove who built it. The scripts put helm and pack into ~/.local/bin. Step 7 installs @backstage/catalog-model and yaml from the npm registry with npm install, without a lockfile and without hash pinning. All of this is the tutorial's own choice.
1. Check the tools. Run:
helm version
pack --version
node --version
npm --version
docker --versionOutput of the tutorial's run:
version.BuildInfo{Version:"v4.3.2", GitCommit:"8346aaa55e7161f7c547212d0a87f01367976727", GitTreeState:"clean", GoVersion:"go1.27.4", KubeClientVersion:"v1.37"}
0.40.11+git-523c9ce.build-7117
v26.8.1
11.19.0
Docker version 29.10.0, build fdd4b8ehelm versionprintedv4.3.2.pack --versionprinted0.40.11. Node.js and npm are for step 7, and Docker is for step 9 only.- These commands only print versions.
2. Create a chart and lint it. Run:
helm create qa-demo
find qa-demo -type f | sort
helm lint qa-demoOutput of the tutorial's run:
Creating qa-demo
qa-demo/.helmignore
qa-demo/Chart.yaml
qa-demo/templates/NOTES.txt
qa-demo/templates/_helpers.tpl
qa-demo/templates/deployment.yaml
qa-demo/templates/hpa.yaml
qa-demo/templates/httproute.yaml
qa-demo/templates/ingress.yaml
qa-demo/templates/service.yaml
qa-demo/templates/serviceaccount.yaml
qa-demo/templates/tests/test-connection.yaml
qa-demo/values.yaml
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failedhelm createmade the chart directoryqa-demowith the common files and directories of a chart Source 9সোর্স 9.- The list has
Chart.yaml,values.yaml,.helmignore, and the files undertemplates/.templates/tests/test-connection.yamlis a test file. The docs showtests/undertemplates/for the test files Source 9সোর্স 9. - The scaffold of this Helm version has more templates than the example tree of the docs:
hpa.yaml,httproute.yaml, andingress.yamlare among them. That is what the run created. helm lintprinted[INFO] Chart.yaml: icon is recommended, and then1 chart(s) linted, 0 chart(s) failed. The docs say thathelm lintemits[ERROR]messages for things that will cause the chart to fail installation, and[WARNING]messages for issues that break with convention or recommendation Source 10সোর্স 10. The run printed no[ERROR]and no[WARNING].
3. Render the chart without a cluster. Run:
helm template demo qa-demo | grep '^# Source:'
helm template demo qa-demo -s templates/deployment.yaml | grep -E 'replicas:|image:'
helm template demo qa-demo -s templates/deployment.yaml --set replicaCount=3 | grep 'replicas:'
helm install demo ./qa-demo --dry-run=client | grep -E '^(NAME|STATUS|REVISION|DESCRIPTION):'Output of the tutorial's run:
# Source: qa-demo/templates/serviceaccount.yaml
# Source: qa-demo/templates/service.yaml
# Source: qa-demo/templates/deployment.yaml
# Source: qa-demo/templates/tests/test-connection.yaml
replicas: 1
image: "nginx:1.16.0"
replicas: 3
NAME: demo
STATUS: pending-install
REVISION: 1
DESCRIPTION: Dry run completehelm templateprinted a# Source:line for four templates:serviceaccount.yaml,service.yaml,deployment.yaml, andtests/test-connection.yaml. The chart also hashpa.yaml,httproute.yaml, andingress.yaml. The run printed no# Source:line for them.-s templates/deployment.yamlshowed only that template Source 11সোর্স 11.- With the default values, the Deployment had
replicas: 1and the imagenginx:1.16.0. With--set replicaCount=3it hadreplicas: 3. The docs say that--sethas a higher precedence than the defaultvalues.yamlfile Source 19সোর্স 19. helm install demo ./qa-demo --dry-run=clientprintedSTATUS: pending-install,REVISION: 1, andDESCRIPTION: Dry run complete. The flag--dry-run=clientsimulates the operation on the client side only, and avoids cluster connections Source 11সোর্স 11. Thepending-installstate is one of the states that the status of a release can have, according to thehelm statuspage Source 48সোর্স 48. After a firsthelm install, a release has release number 1 Source 7সোর্স 7.
4. Add a schema for the values. Save this as values.schema.json. The schema is the tutorial's own. It requires replicaCount, an integer of at least 1, and image with a repository string:
{
"$schema": "https://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["replicaCount", "image"],
"properties": {
"replicaCount": { "type": "integer", "minimum": 1 },
"image": {
"type": "object",
"required": ["repository"],
"properties": { "repository": { "type": "string", "minLength": 1 }, "tag": { "type": "string" } }
}
}
}Run:
cp values.schema.json qa-demo/
helm lint qa-demo
helm lint qa-demo --set replicaCount=0; echo "exit status: $?"
helm template demo qa-demo --set replicaCount=abc; echo "exit status: $?"Output of the tutorial's run:
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
[ERROR] values.yaml: - at '/replicaCount': minimum: got 0, want 1
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
qa-demo:
- at '/replicaCount': minimum: got 0, want 1
Error: 1 chart(s) linted, 1 chart(s) failed
exit status: 1
Error: values don't meet the specifications of the schema(s) in the following chart(s):
qa-demo:
- at '/replicaCount': got string, want integer
exit status: 1- With the default values,
helm lintpassed. The default values meet the schema. - With
--set replicaCount=0,helm lintprinted two[ERROR]lines that name/replicaCount(minimum: got 0, want 1), thenError: 1 chart(s) linted, 1 chart(s) failed. The shell printedexit status: 1. The docs say that validation occurs whenhelm lintis invoked Source 8সোর্স 8. - With
--set replicaCount=abc,helm templatestopped withgot string, want integerandexit status: 1. The docs say that validation also occurs whenhelm templateis invoked Source 8সোর্স 8.
5. Write a test of the rendered chart. Save this as render_test.sh, and make it executable. It is the tutorial's own script. It renders the Deployment and checks three things:
#!/usr/bin/env bash
# render_test.sh CHART [helm template flags]: render the chart and check three things about the Deployment.
# It is the tutorial's own script.
chart=$1; shift
out=$(helm template demo "$chart" -s templates/deployment.yaml "$@") || { echo "FAIL: helm template did not render"; exit 2; }
fail=0
check() { if eval "$2" >/dev/null 2>&1; then echo "PASS: $1"; else echo "FAIL: $1"; fail=1; fi; }
check "the image has an explicit tag, and it is not latest" 'echo "$out" | grep -E "image: \"[^\":]+:[^\":]+\"" | grep -v ":latest"'
check "the pod asks for at least 1 replica" 'echo "$out" | grep -E "replicas: [1-9][0-9]*"'
check "the container sets resource limits" 'echo "$out" | grep -q "limits:"'
exit $failRun:
./render_test.sh qa-demo; echo "exit status: $?"
./render_test.sh qa-demo --set resources.limits.cpu=100m --set resources.limits.memory=128Mi; echo "exit status: $?"Output of the tutorial's run:
PASS: the image has an explicit tag, and it is not latest
PASS: the pod asks for at least 1 replica
FAIL: the container sets resource limits
exit status: 1
PASS: the image has an explicit tag, and it is not latest
PASS: the pod asks for at least 1 replica
PASS: the container sets resource limits
exit status: 0- The first run failed the third check, because the rendered Deployment had no
limits:line, and the script exited with 1. The second run passed--setflags for the limits, so all three checks passed, and the script exited with 0. - The script uses
helm template, so it has the limits ofhelm template. Any value that would normally be looked up in the cluster is faked, and none of the server-side testing of chart validity is done Source 11সোর্স 11. - A Helm test of a release is a different thing. It lives under
templates/as a workload definition Source 17সোর্স 17, andhelm testruns it for a deployed release Source 16সোর্স 16. The tutorial did not runhelm test, because it has no deployed release.
6. Package the chart. Run:
helm package qa-demo
helm show chart qa-demo-0.1.0.tgz
helm lint qa-demo-0.1.0.tgz
tar tzf qa-demo-0.1.0.tgz | sortOutput of the tutorial's run:
Successfully packaged chart and saved it to: /work/qa-demo-0.1.0.tgz
apiVersion: v2
appVersion: 1.16.0
description: A Helm chart for Kubernetes
name: qa-demo
type: application
version: 0.1.0
==> Linting qa-demo-0.1.0.tgz
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
qa-demo/.helmignore
qa-demo/Chart.yaml
qa-demo/templates/NOTES.txt
qa-demo/templates/_helpers.tpl
qa-demo/templates/deployment.yaml
qa-demo/templates/hpa.yaml
qa-demo/templates/httproute.yaml
qa-demo/templates/ingress.yaml
qa-demo/templates/service.yaml
qa-demo/templates/serviceaccount.yaml
qa-demo/templates/tests/test-connection.yaml
qa-demo/values.schema.json
qa-demo/values.yamlhelm packagewroteqa-demo-0.1.0.tgz. The docs say that this command packages a chart into a versioned chart archive file Source 13সোর্স 13. The name of the file in the run has the chart name and the version thathelm show chartprinted (name: qa-demoandversion: 0.1.0).- A chart archive is a tarred and gzipped (and optionally signed) chart Source 7সোর্স 7.
tar tzflisted it. The run's archive holds the 12 files of step 2 andqa-demo/values.schema.json, so the schema travels with the chart. helm lintalso took the archive as its argument, and it passed.- The tutorial did not use
--sign, and it did not runhelm verify. The docs say that provenance files are generated at packaging time and can be checked by multiple commands, notablyhelm install --verifySource 22সোর্স 22.
7. Validate Backstage catalog files. Save these three files in a folder named catalog. good.yaml is a Component with its three required fields. bad-owner.yaml has no spec.owner. bad-name.yaml has a space in metadata.name:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa-demo
description: The demo service of the QA team
tags: [qa, demo]
spec:
type: service
lifecycle: experimental
owner: group:default/qa-teamapiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa-demo
spec:
type: service
lifecycle: experimentalapiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa demo
spec:
type: service
lifecycle: experimental
owner: group:default/qa-teamSave this as validate.mjs. It is the tutorial's own script. It checks each file with the Component validator of the @backstage/catalog-model package, and the name with the name validator of the same package:
// validate.mjs FILE...: check each Component descriptor with the validators of @backstage/catalog-model.
// It is the tutorial's own script.
import { readFileSync } from 'node:fs';
import { parseAllDocuments } from 'yaml';
import { componentEntityV1alpha1Validator, makeValidator } from '@backstage/catalog-model';
const names = makeValidator();
let failed = 0;
for (const file of process.argv.slice(2)) {
for (const doc of parseAllDocuments(readFileSync(file, 'utf8'))) {
const entity = doc.toJS();
const problems = [];
try {
const applies = await componentEntityV1alpha1Validator.check(entity);
if (!applies) problems.push('the Component validator does not apply to this entity');
} catch (error) {
problems.push(`kind check: ${error.message}`);
}
const name = entity?.metadata?.name;
if (!names.isValidEntityName(name)) problems.push(`metadata.name ${JSON.stringify(name)} is not a valid entity name`);
if (problems.length) failed++;
console.log(`${problems.length ? 'FAIL' : 'PASS'} ${file}${problems.map((p) => `\n ${p}`).join('')}`);
}
}
process.exit(failed ? 1 : 0);Run:
npm init -y > /dev/null
npm install --no-audit --no-fund @backstage/catalog-model yaml
node -e "console.log('catalog-model', require('@backstage/catalog-model/package.json').version, '| yaml', require('yaml/package.json').version)"
node validate.mjs catalog/good.yaml catalog/bad-owner.yaml catalog/bad-name.yaml; echo "exit status: $?"Output of the tutorial's run:
added 14 packages in 15s
catalog-model 1.10.3 | yaml 2.9.1
PASS catalog/good.yaml
FAIL catalog/bad-owner.yaml
kind check: /spec must have required property 'owner' - missingProperty: owner
FAIL catalog/bad-name.yaml
metadata.name "qa demo" is not a valid entity name
exit status: 1npm installadded 14 packages in 15 s. The time is different on every run.good.yamlpassed. It has the three fields that the docs call required for a Component:spec.type,spec.lifecycle, andspec.ownerSource 28সোর্স 28. Its ownergroup:default/qa-teamis a string reference with all three parts, a kind, a namespace, and a name, where the docs make the kind and the namespace optional Source 31সোর্স 31.bad-owner.yamlfailed with/spec must have required property 'owner'. It has nospec.owner, and the docs say that the field is required Source 28সোর্স 28.bad-name.yamlfailed, becauseqa demois not a valid entity name. By default, the docs allow sequences of letters and digits, possibly separated by-,_, or.Source 28সোর্স 28. A space is none of these.- The script printed
exit status: 1, because two of the three files failed. - The script checks the shape of each file. The catalog backend does more: its processors validate, analyze, and mutate the raw entity data Source 30সোর্স 30. An entity is not visible through the catalog API until it has passed through the last process Source 30সোর্স 30. The tutorial did not run the backend.
8. Write a buildpack by hand. Make a folder hello-app with one file, hello.txt:
Hello from the QA buildpack.Save these two scripts next to it, as buildpack-detect.sh and buildpack-build.sh. They are the tutorial's own:
#!/usr/bin/env bash
set -euo pipefail
# The tutorial's own detect script: this buildpack applies only to an app that has a file named hello.txt.
if [[ ! -f hello.txt ]]; then
exit 100
fi
exit 0#!/usr/bin/env bash
set -euo pipefail
echo "---> Hello buildpack"
mkdir -p "${CNB_LAYERS_DIR}/greeting"
cp hello.txt "${CNB_LAYERS_DIR}/greeting/hello.txt"
cat > "${CNB_LAYERS_DIR}/greeting.toml" <<TOML
[types]
launch = true
TOML
cat > "${CNB_LAYERS_DIR}/launch.toml" <<TOML
[[processes]]
type = "web"
command = ["cat", "/layers/qa_hello-buildpack/greeting/hello.txt"]
default = true
TOMLRun:
pack buildpack new qa/hello-buildpack --path hello-buildpack --api 0.10
cat hello-buildpack/buildpack.toml
cat hello-buildpack/bin/build
cp buildpack-detect.sh hello-buildpack/bin/detect
cp buildpack-build.sh hello-buildpack/bin/build
chmod +x hello-buildpack/bin/detect hello-buildpack/bin/build
mkdir -p empty-app layers
(cd empty-app && ../hello-buildpack/bin/detect; echo "detect in an app without hello.txt: exit status $?")
(cd hello-app && ../hello-buildpack/bin/detect; echo "detect in hello-app: exit status $?")
(cd hello-app && CNB_LAYERS_DIR=../layers ../hello-buildpack/bin/build; echo "build in hello-app: exit status $?")
find layers -type f | sort
cat layers/greeting.toml layers/launch.tomlOutput of the tutorial's run:
'create' buildpack.toml
'create' bin/build
'create' bin/detect
Successfully created 'qa/hello-buildpack'
api = "0.10"
WithWindowsBuild = false
WithLinuxBuild = false
[buildpack]
id = "qa/hello-buildpack"
version = "1.0.0"
[[targets]]
os = "linux"
arch = "amd64"
#!/usr/bin/env bash
set -euo pipefail
layers_dir="$1"
env_dir="$2/env"
plan_path="$3"
exit 0
detect in an app without hello.txt: exit status 100
detect in hello-app: exit status 0
---> Hello buildpack
build in hello-app: exit status 0
layers/greeting.toml
layers/greeting/hello.txt
layers/launch.toml
[types]
launch = true
[[processes]]
type = "web"
command = ["cat", "/layers/qa_hello-buildpack/greeting/hello.txt"]
default = truepack buildpack newmade abuildpack.tomland the two scriptsbin/detectandbin/buildSource 42সোর্স 42. Thebuildpack.tomlof the run hasapi = "0.10", the idqa/hello-buildpack, and the version1.0.0.- The
bin/buildthat the scaffold made reads its layers directory from$1. That is a positional argument. The spec says that the positional arguments to the detect and build executables were deprecated in Buildpack API 0.8, and that the lifecycle provides these values as environment variables Source 41সোর্স 41. The tutorial's script readsCNB_LAYERS_DIRinstead Source 41সোর্স 41. - The detect script exited with 100 in the folder without
hello.txt, and with 0 inhello-app. The spec gives the exit status of/bin/detectas pass (0) or fail (100) Source 41সোর্স 41. - The build script ran with
CNB_LAYERS_DIR=../layers. It printed---> Hello buildpack, exited with 0, and left three files:layers/greeting.toml,layers/greeting/hello.txt, andlayers/launch.toml. - For a given layer, the buildpack may say whether the layer is cached, intended for build, and intended for launch Source 41সোর্স 41. The tutorial's
greeting.tomlsayslaunch = true. - The
launch.tomlof the run has awebprocess that is the default. The Buildpacks tutorial says that a default start command must be set to make an app runnable Source 49সোর্স 49. The command of the tutorial iscat, with the path of the file in the layer. The path follows the pattern of the docs example, where the buildpackexample/node-enginehas the directory/layers/example_node-engineSource 47সোর্স 47.
9. Build an image with pack, and run it. This step needs the Docker daemon. It downloads the builder image and the run image the first time. Run:
pack build p7a-qa-hello --builder paketobuildpacks/builder-jammy-buildpackless-base --buildpack ./hello-buildpack --path ./hello-app --no-color
docker run --rm --pull never --network none --memory 64m p7a-qa-hello
pack inspect p7a-qa-hello --no-color
pack build p7a-qa-hello --builder paketobuildpacks/builder-jammy-buildpackless-base --buildpack ./hello-buildpack --path ./hello-app --no-color 2>&1 | grep -E 'Previous image|Reusing|Adding layer|Images|Successfully'Output of the tutorial's run:
Warning: Exporting to docker daemon (building without --publish) and daemon uses containerd storage; performance may be significantly degraded.
For more information, see https://github.com/buildpacks/pack/issues/2272.
Warning: Builder is trusted but additional modules were added; using the untrusted (5 phases) build flow
===> ANALYZING
[analyzer] Image with name "p7a-qa-hello" not found
===> DETECTING
[detector] target distro name/version labels not found, reading /etc/os-release file
[detector] qa/hello-buildpack 1.0.0
===> RESTORING
[restorer] No run metadata found at path "/cnb/run.toml"
===> BUILDING
[builder] target distro name/version labels not found, reading /etc/os-release file
[builder] ---> Hello buildpack
===> EXPORTING
[exporter] Adding layer 'qa/hello-buildpack:greeting'
[exporter] Adding layer 'buildpacksio/lifecycle:launch.sbom'
[exporter] Added 1/1 app layer(s)
[exporter] Adding layer 'buildpacksio/lifecycle:launcher'
[exporter] Adding layer 'buildpacksio/lifecycle:config'
[exporter] Adding layer 'buildpacksio/lifecycle:process-types'
[exporter] Adding label 'io.buildpacks.lifecycle.metadata'
[exporter] Adding label 'io.buildpacks.build.metadata'
[exporter] Adding label 'io.buildpacks.project.metadata'
[exporter] Adding label 'io.buildpacks.exec-env'
[exporter] Setting default process type 'web'
[exporter] Saving p7a-qa-hello...
[exporter] *** Images (772b48ce2926):
[exporter] p7a-qa-hello
Successfully built image 'p7a-qa-hello'
Hello from the QA buildpack.
Inspecting image: 'p7a-qa-hello'
REMOTE:
(not present)
LOCAL:
Stack: io.buildpacks.stacks.jammy
Base Image:
Reference: 286fc9d6cd814cd9085f50b075aa3da0262dc408b5a5ce4c85b2d6a60a9288a7
Top Layer: sha256:04c34e27609db21d521b68522b534d45f9e67837d5c82d634342aa5197a3aea3
Run Images:
docker.io/paketobuildpacks/run-jammy-base:latest
Rebasable: true
Buildpacks:
ID VERSION HOMEPAGE
qa/hello-buildpack 1.0.0 -
Processes:
TYPE SHELL COMMAND ARGS WORK DIR
web (default) cat /layers/qa_hello-buildpack/greeting/hello.txt /workspace
[exporter] Reusing layer 'qa/hello-buildpack:greeting'
[exporter] Reusing layer 'buildpacksio/lifecycle:launch.sbom'
[exporter] Reusing layer 'buildpacksio/lifecycle:launcher'
[exporter] Reusing layer 'buildpacksio/lifecycle:config'
[exporter] Reusing layer 'buildpacksio/lifecycle:process-types'
[exporter] *** Images (772b48ce2926):
Successfully built image 'p7a-qa-hello'- The tutorial chose the builder
paketobuildpacks/builder-jammy-buildpackless-base, and gave the buildpack as a path with--buildpack. The docs say thatpack buildrequires an image name Source 43সোর্স 43, that you can use--pathto specify another source code directory Source 43সোর্স 43, and that it requires a builder, which can be provided with--builderor set with theset-default-buildercommand Source 43সোর্স 43. The--buildpackflag accepts a path to a buildpack directory Source 43সোর্স 43. packprinted two warnings first. One says that the Docker daemon uses containerd storage, and that performance may be significantly degraded. The other saysBuilder is trusted but additional modules were added; using the untrusted (5 phases) build flow. The docs say that whenpackdoes not trust a builder, it executes five separate lifecycle binaries Source 45সোর্স 45. The output has five headings:ANALYZING,DETECTING,RESTORING,BUILDING, andEXPORTING.- The detector printed
qa/hello-buildpack 1.0.0. The line---> Hello buildpackis theechoof the tutorial'sbin/build. The exporter added the layerqa/hello-buildpack:greeting, and set the default process typeweb. The image ID in the run was772b48ce2926. docker runprintedHello from the QA buildpack., the content ofhello.txt, read by thewebprocess from the layer. The flags--pull never,--network none, and--memory 64mare the tutorial's own choice.pack inspectshows information about a built app image Source 44সোর্স 44. In the run it listed the stackio.buildpacks.stacks.jammy, the run imagedocker.io/paketobuildpacks/run-jammy-base:latest,Rebasable: true, the buildpackqa/hello-buildpackwith the version1.0.0, and the processweb (default), with the commandcatand the work dir/workspace.- The second
pack buildprintedReusing layerfor all five layers, and the same image ID,772b48ce2926. The spec says that a launch layer can be re-used on the next build if the buildpack that created it has the same requirements Source 41সোর্স 41. The Buildpacks docs say that given the same inputs, two builds should produce the same outputs Source 40সোর্স 40. In this run, the two builds printed the same image ID.
সহজ English
The tutorial ran steps 1 to 9 on 2026-11-19 at 23:26 (+06) on Linux 7.0.0-43-generic, with Helm v4.3.2, pack 0.40.11, Node.js v26.8.1, npm 11.19.0, @backstage/catalog-model 1.10.3, yaml 2.9.1, Docker 29.10.0, and bash 5.3.9. The output on this page is from the tutorial's run. Each step ran in its own shell, in a copy of the practice folder, with a new, empty HOME. The page shows the folder of the run as /work.
The Helm steps (2 to 6) work on local files only, and need no cluster. Step 7 downloads two npm packages. Step 9 needs the Docker daemon. The run added four images (the builder, the run image, the lifecycle image buildpacksio/lifecycle, and the app image) and two cache volumes. The runner stops at the start if one of these images already exists, so it never removes an image that it did not add. After the steps it removed exactly what it had added, and its record says that the lists of images, volumes, and containers were the same as before the run. It never prunes. The empty home folder held .npm and .pack after the steps, and the run added nothing to the real home folder.
The choices that no source gives are the tutorial's own: the chart name qa-demo, the schema, the checks of render_test.sh, the catalog files, validate.mjs, the buildpack id qa/hello-buildpack, hello.txt, the two scripts of the buildpack, the image name, the builder, and the flags of docker run (--pull never, --network none, and --memory 64m). The tutorial did not run a Kubernetes cluster, helm install without --dry-run=client, helm test, helm upgrade, helm rollback, hooks, helm package --sign, helm verify, a chart repository, an OCI registry, Backstage itself (its catalog backend, its templates, or TechDocs), pack build --publish, pack rebase, pack sbom download, or pack builder create. Those parts are described from the docs only.
Install the tools. The Helm docs say that each Helm release includes cryptographic signatures that confirm the binary was built and signed by Helm maintainers Source 25সোর্স 25. They say that you should always verify the authenticity of Helm binaries before installing Source 25সোর্স 25. One of their steps is to verify the SHA256 checksum to confirm the download was not corrupted Source 25সোর্স 25. Another is to verify the binary's signature Source 25সোর্স 25. They also say that you can cross-check the maintainer keys on Keybase Source 25সোর্স 25.
On 2026-11-19 at 18:28, the tutorial's install script downloaded the Helm v4.3.2 archive from get.helm.sh. It compared the SHA-256 of the archive with the value in the .sha256sum file of the same release, and the two values were the same. It imported the keys of the KEYS file of the Helm repository into a throw-away GnuPG home, and checked that the .asc file is a good signature of the archive, made by a key from that file. The archive starts with d1c0278d, and the primary key of the signature ends in B91C1155. The tutorial did not cross-check the keys on Keybase. So its check shows that a key from the KEYS file signed the archive, and it does not show who owns that key.
At 18:28 the script downloaded pack-v0.40.11-linux.tgz from the GitHub release page of the pack project, and compared its SHA-256, which starts with 280a53ff, with the .sha256 file of the same release. The two values were the same. The release listed a .sha256 file for each archive and no signature file. The checksum file comes from the same host as the archive. So the check finds a damaged or a swapped archive, and it does not prove who built it. The scripts put helm and pack into ~/.local/bin. Step 7 installs @backstage/catalog-model and yaml from the npm registry with npm install, without a lockfile and without hash pinning. All of this is the tutorial's own choice.
1. Check the tools. Run:
helm version
pack --version
node --version
npm --version
docker --versionOutput of the tutorial's run:
version.BuildInfo{Version:"v4.3.2", GitCommit:"8346aaa55e7161f7c547212d0a87f01367976727", GitTreeState:"clean", GoVersion:"go1.27.4", KubeClientVersion:"v1.37"}
0.40.11+git-523c9ce.build-7117
v26.8.1
11.19.0
Docker version 29.10.0, build fdd4b8ehelm versionprintedv4.3.2.pack --versionprinted0.40.11. Node.js and npm are for step 7, and Docker is for step 9 only.- These commands only print versions.
2. Create a chart and lint it. Run:
helm create qa-demo
find qa-demo -type f | sort
helm lint qa-demoOutput of the tutorial's run:
Creating qa-demo
qa-demo/.helmignore
qa-demo/Chart.yaml
qa-demo/templates/NOTES.txt
qa-demo/templates/_helpers.tpl
qa-demo/templates/deployment.yaml
qa-demo/templates/hpa.yaml
qa-demo/templates/httproute.yaml
qa-demo/templates/ingress.yaml
qa-demo/templates/service.yaml
qa-demo/templates/serviceaccount.yaml
qa-demo/templates/tests/test-connection.yaml
qa-demo/values.yaml
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failedhelm createmade the chart directoryqa-demowith the common files and directories of a chart Source 9সোর্স 9.- The list has
Chart.yaml,values.yaml,.helmignore, and the files undertemplates/.templates/tests/test-connection.yamlis a test file. The docs showtests/undertemplates/for the test files Source 9সোর্স 9. - The scaffold of this Helm version has more templates than the example tree of the docs:
hpa.yaml,httproute.yaml, andingress.yamlare among them. That is what the run created. helm lintprinted[INFO] Chart.yaml: icon is recommended, and then1 chart(s) linted, 0 chart(s) failed. The docs say thathelm lintemits[ERROR]messages for things that will cause the chart to fail installation, and[WARNING]messages for issues that break with convention or recommendation Source 10সোর্স 10. The run printed no[ERROR]and no[WARNING].
3. Render the chart without a cluster. Run:
helm template demo qa-demo | grep '^# Source:'
helm template demo qa-demo -s templates/deployment.yaml | grep -E 'replicas:|image:'
helm template demo qa-demo -s templates/deployment.yaml --set replicaCount=3 | grep 'replicas:'
helm install demo ./qa-demo --dry-run=client | grep -E '^(NAME|STATUS|REVISION|DESCRIPTION):'Output of the tutorial's run:
# Source: qa-demo/templates/serviceaccount.yaml
# Source: qa-demo/templates/service.yaml
# Source: qa-demo/templates/deployment.yaml
# Source: qa-demo/templates/tests/test-connection.yaml
replicas: 1
image: "nginx:1.16.0"
replicas: 3
NAME: demo
STATUS: pending-install
REVISION: 1
DESCRIPTION: Dry run completehelm templateprinted a# Source:line for four templates:serviceaccount.yaml,service.yaml,deployment.yaml, andtests/test-connection.yaml. The chart also hashpa.yaml,httproute.yaml, andingress.yaml. The run printed no# Source:line for them.-s templates/deployment.yamlshowed only that template Source 11সোর্স 11.- With the default values, the Deployment had
replicas: 1and the imagenginx:1.16.0. With--set replicaCount=3it hadreplicas: 3. The docs say that--sethas a higher precedence than the defaultvalues.yamlfile Source 19সোর্স 19. helm install demo ./qa-demo --dry-run=clientprintedSTATUS: pending-install,REVISION: 1, andDESCRIPTION: Dry run complete. The flag--dry-run=clientsimulates the operation on the client side only, and avoids cluster connections Source 11সোর্স 11. Thepending-installstate is one of the states that the status of a release can have, according to thehelm statuspage Source 48সোর্স 48. After a firsthelm install, a release has release number 1 Source 7সোর্স 7.
4. Add a schema for the values. Save this as values.schema.json. The schema is the tutorial's own. It requires replicaCount, an integer of at least 1, and image with a repository string:
{
"$schema": "https://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["replicaCount", "image"],
"properties": {
"replicaCount": { "type": "integer", "minimum": 1 },
"image": {
"type": "object",
"required": ["repository"],
"properties": { "repository": { "type": "string", "minLength": 1 }, "tag": { "type": "string" } }
}
}
}Run:
cp values.schema.json qa-demo/
helm lint qa-demo
helm lint qa-demo --set replicaCount=0; echo "exit status: $?"
helm template demo qa-demo --set replicaCount=abc; echo "exit status: $?"Output of the tutorial's run:
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
[ERROR] values.yaml: - at '/replicaCount': minimum: got 0, want 1
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
qa-demo:
- at '/replicaCount': minimum: got 0, want 1
Error: 1 chart(s) linted, 1 chart(s) failed
exit status: 1
Error: values don't meet the specifications of the schema(s) in the following chart(s):
qa-demo:
- at '/replicaCount': got string, want integer
exit status: 1- With the default values,
helm lintpassed. The default values meet the schema. - With
--set replicaCount=0,helm lintprinted two[ERROR]lines that name/replicaCount(minimum: got 0, want 1), thenError: 1 chart(s) linted, 1 chart(s) failed. The shell printedexit status: 1. The docs say that validation occurs whenhelm lintis invoked Source 8সোর্স 8. - With
--set replicaCount=abc,helm templatestopped withgot string, want integerandexit status: 1. The docs say that validation also occurs whenhelm templateis invoked Source 8সোর্স 8.
5. Write a test of the rendered chart. Save this as render_test.sh, and make it executable. It is the tutorial's own script. It renders the Deployment and checks three things:
#!/usr/bin/env bash
# render_test.sh CHART [helm template flags]: render the chart and check three things about the Deployment.
# It is the tutorial's own script.
chart=$1; shift
out=$(helm template demo "$chart" -s templates/deployment.yaml "$@") || { echo "FAIL: helm template did not render"; exit 2; }
fail=0
check() { if eval "$2" >/dev/null 2>&1; then echo "PASS: $1"; else echo "FAIL: $1"; fail=1; fi; }
check "the image has an explicit tag, and it is not latest" 'echo "$out" | grep -E "image: \"[^\":]+:[^\":]+\"" | grep -v ":latest"'
check "the pod asks for at least 1 replica" 'echo "$out" | grep -E "replicas: [1-9][0-9]*"'
check "the container sets resource limits" 'echo "$out" | grep -q "limits:"'
exit $failRun:
./render_test.sh qa-demo; echo "exit status: $?"
./render_test.sh qa-demo --set resources.limits.cpu=100m --set resources.limits.memory=128Mi; echo "exit status: $?"Output of the tutorial's run:
PASS: the image has an explicit tag, and it is not latest
PASS: the pod asks for at least 1 replica
FAIL: the container sets resource limits
exit status: 1
PASS: the image has an explicit tag, and it is not latest
PASS: the pod asks for at least 1 replica
PASS: the container sets resource limits
exit status: 0- The first run failed the third check, because the rendered Deployment had no
limits:line, and the script exited with 1. The second run passed--setflags for the limits, so all three checks passed, and the script exited with 0. - The script uses
helm template, so it has the limits ofhelm template. Any value that would normally be looked up in the cluster is faked, and none of the server-side testing of chart validity is done Source 11সোর্স 11. - A Helm test of a release is a different thing. It lives under
templates/as a workload definition Source 17সোর্স 17, andhelm testruns it for a deployed release Source 16সোর্স 16. The tutorial did not runhelm test, because it has no deployed release.
6. Package the chart. Run:
helm package qa-demo
helm show chart qa-demo-0.1.0.tgz
helm lint qa-demo-0.1.0.tgz
tar tzf qa-demo-0.1.0.tgz | sortOutput of the tutorial's run:
Successfully packaged chart and saved it to: /work/qa-demo-0.1.0.tgz
apiVersion: v2
appVersion: 1.16.0
description: A Helm chart for Kubernetes
name: qa-demo
type: application
version: 0.1.0
==> Linting qa-demo-0.1.0.tgz
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
qa-demo/.helmignore
qa-demo/Chart.yaml
qa-demo/templates/NOTES.txt
qa-demo/templates/_helpers.tpl
qa-demo/templates/deployment.yaml
qa-demo/templates/hpa.yaml
qa-demo/templates/httproute.yaml
qa-demo/templates/ingress.yaml
qa-demo/templates/service.yaml
qa-demo/templates/serviceaccount.yaml
qa-demo/templates/tests/test-connection.yaml
qa-demo/values.schema.json
qa-demo/values.yamlhelm packagewroteqa-demo-0.1.0.tgz. The docs say that this command packages a chart into a versioned chart archive file Source 13সোর্স 13. The name of the file in the run has the chart name and the version thathelm show chartprinted (name: qa-demoandversion: 0.1.0).- A chart archive is a tarred and gzipped (and optionally signed) chart Source 7সোর্স 7.
tar tzflisted it. The run's archive holds the 12 files of step 2 andqa-demo/values.schema.json, so the schema travels with the chart. helm lintalso took the archive as its argument, and it passed.- The tutorial did not use
--sign, and it did not runhelm verify. The docs say that provenance files are generated at packaging time and can be checked by multiple commands, notablyhelm install --verifySource 22সোর্স 22.
7. Validate Backstage catalog files. Save these three files in a folder named catalog. good.yaml is a Component with its three required fields. bad-owner.yaml has no spec.owner. bad-name.yaml has a space in metadata.name:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa-demo
description: The demo service of the QA team
tags: [qa, demo]
spec:
type: service
lifecycle: experimental
owner: group:default/qa-teamapiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa-demo
spec:
type: service
lifecycle: experimentalapiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa demo
spec:
type: service
lifecycle: experimental
owner: group:default/qa-teamSave this as validate.mjs. It is the tutorial's own script. It checks each file with the Component validator of the @backstage/catalog-model package, and the name with the name validator of the same package:
// validate.mjs FILE...: check each Component descriptor with the validators of @backstage/catalog-model.
// It is the tutorial's own script.
import { readFileSync } from 'node:fs';
import { parseAllDocuments } from 'yaml';
import { componentEntityV1alpha1Validator, makeValidator } from '@backstage/catalog-model';
const names = makeValidator();
let failed = 0;
for (const file of process.argv.slice(2)) {
for (const doc of parseAllDocuments(readFileSync(file, 'utf8'))) {
const entity = doc.toJS();
const problems = [];
try {
const applies = await componentEntityV1alpha1Validator.check(entity);
if (!applies) problems.push('the Component validator does not apply to this entity');
} catch (error) {
problems.push(`kind check: ${error.message}`);
}
const name = entity?.metadata?.name;
if (!names.isValidEntityName(name)) problems.push(`metadata.name ${JSON.stringify(name)} is not a valid entity name`);
if (problems.length) failed++;
console.log(`${problems.length ? 'FAIL' : 'PASS'} ${file}${problems.map((p) => `\n ${p}`).join('')}`);
}
}
process.exit(failed ? 1 : 0);Run:
npm init -y > /dev/null
npm install --no-audit --no-fund @backstage/catalog-model yaml
node -e "console.log('catalog-model', require('@backstage/catalog-model/package.json').version, '| yaml', require('yaml/package.json').version)"
node validate.mjs catalog/good.yaml catalog/bad-owner.yaml catalog/bad-name.yaml; echo "exit status: $?"Output of the tutorial's run:
added 14 packages in 15s
catalog-model 1.10.3 | yaml 2.9.1
PASS catalog/good.yaml
FAIL catalog/bad-owner.yaml
kind check: /spec must have required property 'owner' - missingProperty: owner
FAIL catalog/bad-name.yaml
metadata.name "qa demo" is not a valid entity name
exit status: 1npm installadded 14 packages in 15 s. The time is different on every run.good.yamlpassed. It has the three fields that the docs call required for a Component:spec.type,spec.lifecycle, andspec.ownerSource 28সোর্স 28. Its ownergroup:default/qa-teamis a string reference with all three parts, a kind, a namespace, and a name, where the docs make the kind and the namespace optional Source 31সোর্স 31.bad-owner.yamlfailed with/spec must have required property 'owner'. It has nospec.owner, and the docs say that the field is required Source 28সোর্স 28.bad-name.yamlfailed, becauseqa demois not a valid entity name. By default, the docs allow sequences of letters and digits, possibly separated by-,_, or.Source 28সোর্স 28. A space is none of these.- The script printed
exit status: 1, because two of the three files failed. - The script checks the shape of each file. The catalog backend does more: its processors validate, analyze, and mutate the raw entity data Source 30সোর্স 30. An entity is not visible through the catalog API until it has passed through the last process Source 30সোর্স 30. The tutorial did not run the backend.
8. Write a buildpack by hand. Make a folder hello-app with one file, hello.txt:
Hello from the QA buildpack.Save these two scripts next to it, as buildpack-detect.sh and buildpack-build.sh. They are the tutorial's own:
#!/usr/bin/env bash
set -euo pipefail
# The tutorial's own detect script: this buildpack applies only to an app that has a file named hello.txt.
if [[ ! -f hello.txt ]]; then
exit 100
fi
exit 0#!/usr/bin/env bash
set -euo pipefail
echo "---> Hello buildpack"
mkdir -p "${CNB_LAYERS_DIR}/greeting"
cp hello.txt "${CNB_LAYERS_DIR}/greeting/hello.txt"
cat > "${CNB_LAYERS_DIR}/greeting.toml" <<TOML
[types]
launch = true
TOML
cat > "${CNB_LAYERS_DIR}/launch.toml" <<TOML
[[processes]]
type = "web"
command = ["cat", "/layers/qa_hello-buildpack/greeting/hello.txt"]
default = true
TOMLRun:
pack buildpack new qa/hello-buildpack --path hello-buildpack --api 0.10
cat hello-buildpack/buildpack.toml
cat hello-buildpack/bin/build
cp buildpack-detect.sh hello-buildpack/bin/detect
cp buildpack-build.sh hello-buildpack/bin/build
chmod +x hello-buildpack/bin/detect hello-buildpack/bin/build
mkdir -p empty-app layers
(cd empty-app && ../hello-buildpack/bin/detect; echo "detect in an app without hello.txt: exit status $?")
(cd hello-app && ../hello-buildpack/bin/detect; echo "detect in hello-app: exit status $?")
(cd hello-app && CNB_LAYERS_DIR=../layers ../hello-buildpack/bin/build; echo "build in hello-app: exit status $?")
find layers -type f | sort
cat layers/greeting.toml layers/launch.tomlOutput of the tutorial's run:
'create' buildpack.toml
'create' bin/build
'create' bin/detect
Successfully created 'qa/hello-buildpack'
api = "0.10"
WithWindowsBuild = false
WithLinuxBuild = false
[buildpack]
id = "qa/hello-buildpack"
version = "1.0.0"
[[targets]]
os = "linux"
arch = "amd64"
#!/usr/bin/env bash
set -euo pipefail
layers_dir="$1"
env_dir="$2/env"
plan_path="$3"
exit 0
detect in an app without hello.txt: exit status 100
detect in hello-app: exit status 0
---> Hello buildpack
build in hello-app: exit status 0
layers/greeting.toml
layers/greeting/hello.txt
layers/launch.toml
[types]
launch = true
[[processes]]
type = "web"
command = ["cat", "/layers/qa_hello-buildpack/greeting/hello.txt"]
default = truepack buildpack newmade abuildpack.tomland the two scriptsbin/detectandbin/buildSource 42সোর্স 42. Thebuildpack.tomlof the run hasapi = "0.10", the idqa/hello-buildpack, and the version1.0.0.- The
bin/buildthat the scaffold made reads its layers directory from$1. That is a positional argument. The spec says that the positional arguments to the detect and build executables were deprecated in Buildpack API 0.8, and that the lifecycle provides these values as environment variables Source 41সোর্স 41. The tutorial's script readsCNB_LAYERS_DIRinstead Source 41সোর্স 41. - The detect script exited with 100 in the folder without
hello.txt, and with 0 inhello-app. The spec gives the exit status of/bin/detectas pass (0) or fail (100) Source 41সোর্স 41. - The build script ran with
CNB_LAYERS_DIR=../layers. It printed---> Hello buildpack, exited with 0, and left three files:layers/greeting.toml,layers/greeting/hello.txt, andlayers/launch.toml. - For a given layer, the buildpack may say whether the layer is cached, intended for build, and intended for launch Source 41সোর্স 41. The tutorial's
greeting.tomlsayslaunch = true. - The
launch.tomlof the run has awebprocess that is the default. The Buildpacks tutorial says that a default start command must be set to make an app runnable Source 49সোর্স 49. The command of the tutorial iscat, with the path of the file in the layer. The path follows the pattern of the docs example, where the buildpackexample/node-enginehas the directory/layers/example_node-engineSource 47সোর্স 47.
9. Build an image with pack, and run it. This step needs the Docker daemon. It downloads the builder image and the run image the first time. Run:
pack build p7a-qa-hello --builder paketobuildpacks/builder-jammy-buildpackless-base --buildpack ./hello-buildpack --path ./hello-app --no-color
docker run --rm --pull never --network none --memory 64m p7a-qa-hello
pack inspect p7a-qa-hello --no-color
pack build p7a-qa-hello --builder paketobuildpacks/builder-jammy-buildpackless-base --buildpack ./hello-buildpack --path ./hello-app --no-color 2>&1 | grep -E 'Previous image|Reusing|Adding layer|Images|Successfully'Output of the tutorial's run:
Warning: Exporting to docker daemon (building without --publish) and daemon uses containerd storage; performance may be significantly degraded.
For more information, see https://github.com/buildpacks/pack/issues/2272.
Warning: Builder is trusted but additional modules were added; using the untrusted (5 phases) build flow
===> ANALYZING
[analyzer] Image with name "p7a-qa-hello" not found
===> DETECTING
[detector] target distro name/version labels not found, reading /etc/os-release file
[detector] qa/hello-buildpack 1.0.0
===> RESTORING
[restorer] No run metadata found at path "/cnb/run.toml"
===> BUILDING
[builder] target distro name/version labels not found, reading /etc/os-release file
[builder] ---> Hello buildpack
===> EXPORTING
[exporter] Adding layer 'qa/hello-buildpack:greeting'
[exporter] Adding layer 'buildpacksio/lifecycle:launch.sbom'
[exporter] Added 1/1 app layer(s)
[exporter] Adding layer 'buildpacksio/lifecycle:launcher'
[exporter] Adding layer 'buildpacksio/lifecycle:config'
[exporter] Adding layer 'buildpacksio/lifecycle:process-types'
[exporter] Adding label 'io.buildpacks.lifecycle.metadata'
[exporter] Adding label 'io.buildpacks.build.metadata'
[exporter] Adding label 'io.buildpacks.project.metadata'
[exporter] Adding label 'io.buildpacks.exec-env'
[exporter] Setting default process type 'web'
[exporter] Saving p7a-qa-hello...
[exporter] *** Images (772b48ce2926):
[exporter] p7a-qa-hello
Successfully built image 'p7a-qa-hello'
Hello from the QA buildpack.
Inspecting image: 'p7a-qa-hello'
REMOTE:
(not present)
LOCAL:
Stack: io.buildpacks.stacks.jammy
Base Image:
Reference: 286fc9d6cd814cd9085f50b075aa3da0262dc408b5a5ce4c85b2d6a60a9288a7
Top Layer: sha256:04c34e27609db21d521b68522b534d45f9e67837d5c82d634342aa5197a3aea3
Run Images:
docker.io/paketobuildpacks/run-jammy-base:latest
Rebasable: true
Buildpacks:
ID VERSION HOMEPAGE
qa/hello-buildpack 1.0.0 -
Processes:
TYPE SHELL COMMAND ARGS WORK DIR
web (default) cat /layers/qa_hello-buildpack/greeting/hello.txt /workspace
[exporter] Reusing layer 'qa/hello-buildpack:greeting'
[exporter] Reusing layer 'buildpacksio/lifecycle:launch.sbom'
[exporter] Reusing layer 'buildpacksio/lifecycle:launcher'
[exporter] Reusing layer 'buildpacksio/lifecycle:config'
[exporter] Reusing layer 'buildpacksio/lifecycle:process-types'
[exporter] *** Images (772b48ce2926):
Successfully built image 'p7a-qa-hello'- The tutorial chose the builder
paketobuildpacks/builder-jammy-buildpackless-base, and gave the buildpack as a path with--buildpack. The docs say thatpack buildrequires an image name Source 43সোর্স 43, that you can use--pathto specify another source code directory Source 43সোর্স 43, and that it requires a builder, which can be provided with--builderor set with theset-default-buildercommand Source 43সোর্স 43. The--buildpackflag accepts a path to a buildpack directory Source 43সোর্স 43. packprinted two warnings first. One says that the Docker daemon uses containerd storage, and that performance may be significantly degraded. The other saysBuilder is trusted but additional modules were added; using the untrusted (5 phases) build flow. The docs say that whenpackdoes not trust a builder, it executes five separate lifecycle binaries Source 45সোর্স 45. The output has five headings:ANALYZING,DETECTING,RESTORING,BUILDING, andEXPORTING.- The detector printed
qa/hello-buildpack 1.0.0. The line---> Hello buildpackis theechoof the tutorial'sbin/build. The exporter added the layerqa/hello-buildpack:greeting, and set the default process typeweb. The image ID in the run was772b48ce2926. docker runprintedHello from the QA buildpack., the content ofhello.txt, read by thewebprocess from the layer. The flags--pull never,--network none, and--memory 64mare the tutorial's own choice.pack inspectshows information about a built app image Source 44সোর্স 44. In the run it listed the stackio.buildpacks.stacks.jammy, the run imagedocker.io/paketobuildpacks/run-jammy-base:latest,Rebasable: true, the buildpackqa/hello-buildpackwith the version1.0.0, and the processweb (default), with the commandcatand the work dir/workspace.- The second
pack buildprintedReusing layerfor all five layers, and the same image ID,772b48ce2926. The spec says that a launch layer can be re-used on the next build if the buildpack that created it has the same requirements Source 41সোর্স 41. The Buildpacks docs say that given the same inputs, two builds should produce the same outputs Source 40সোর্স 40. In this run, the two builds printed the same image ID.
বাংলা ব্যাখ্যা
টিউটোরিয়াল ১ থেকে ৯ নম্বর ধাপ চালিয়েছে 2026-11-19 তারিখে 23:26-এ (+06), Linux 7.0.0-43-generic-এ, Helm v4.3.2, pack 0.40.11, Node.js v26.8.1, npm 11.19.0, @backstage/catalog-model 1.10.3, yaml 2.9.1, Docker 29.10.0 আর bash 5.3.9 দিয়ে। এই page-এর output টিউটোরিয়ালের run থেকে নেওয়া। প্রতিটা ধাপ চলেছে নিজের shell-এ, practice folder-এর একটা কপিতে, একটা নতুন, খালি HOME দিয়ে। page-এ run-এর folder দেখানো হয়েছে /work নামে।
Helm-এর ধাপগুলো (২ থেকে ৬) শুধু স্থানীয় file নিয়ে কাজ করে, কোনো cluster লাগে না। ৭ নম্বর ধাপ দুটো npm package download করে। ৯ নম্বর ধাপে Docker daemon লাগে। run চারটা image যোগ করেছে (builder, run image, lifecycle image buildpacksio/lifecycle আর app image) আর দুটো cache volume। এই image-গুলোর একটাও আগে থেকে থাকলে runner শুরুতেই থেমে যায়, তাই যে image সে যোগ করেনি, তা সে কখনো মোছে না। ধাপগুলোর পর সে ঠিক যা যোগ করেছিল, তা-ই মুছেছে, আর তার record বলে, image, volume আর container-এর তালিকা run-এর আগের মতোই ছিল। সে কখনো prune করে না। ধাপগুলোর পর খালি home folder-এ ছিল .npm আর .pack, আর run আসল home folder-এ কিছুই যোগ করেনি।
যে সিদ্ধান্ত কোনো source দেয় না, সেগুলো টিউটোরিয়ালের নিজের: chart-এর নাম qa-demo, schema, render_test.sh-এর check, catalog file, validate.mjs, buildpack-এর id qa/hello-buildpack, hello.txt, buildpack-এর দুটো script, image-এর নাম, builder, আর docker run-এর flag (--pull never, --network none আর --memory 64m)। টিউটোরিয়াল Kubernetes cluster, --dry-run=client ছাড়া helm install, helm test, helm upgrade, helm rollback, hook, helm package --sign, helm verify, chart repository, OCI registry, Backstage নিজে (তার catalog backend, template বা TechDocs), pack build --publish, pack rebase, pack sbom download বা pack builder create চালায়নি। সেই অংশগুলো শুধু docs থেকে বর্ণনা করা।
tool-গুলো install করুন। Helm docs বলে, প্রতিটা Helm release-এ ক্রিপ্টোগ্রাফিক signature থাকে, যা নিশ্চিত করে binary-টা Helm maintainer-রা বানিয়েছেন ও signature দিয়েছেন Source 25সোর্স 25। তারা বলে, install করার আগে আপনার সবসময় Helm binary-র খাঁটিত্ব যাচাই করা উচিত Source 25সোর্স 25। তাদের একটা ধাপ হলো SHA256 checksum যাচাই করা, যাতে নিশ্চিত হওয়া যায় download নষ্ট হয়নি Source 25সোর্স 25। আরেকটা হলো binary-র signature যাচাই করা Source 25সোর্স 25। তারা আরও বলে, আপনি maintainer-দের key Keybase-এ মিলিয়ে দেখতে পারেন Source 25সোর্স 25।
2026-11-19 তারিখে 18:28-এ টিউটোরিয়ালের install script get.helm.sh থেকে Helm v4.3.2-এর archive download করেছে। সে archive-এর SHA-256 একই release-এর .sha256sum file-এর মানের সঙ্গে মিলিয়েছে, আর দুটো মান এক ছিল। সে Helm repository-র KEYS file-এর key-গুলো একটা সাময়িক GnuPG home-এ import করেছে, আর দেখেছে যে .asc file archive-এর একটা ভালো signature, যা ওই file-এর একটা key দিয়ে করা। archive শুরু হয় d1c0278d দিয়ে, আর signature-এর primary key শেষ হয় B91C1155 দিয়ে। টিউটোরিয়াল key-গুলো Keybase-এ মেলায়নি। তাই তার যাচাই দেখায় KEYS file-এর একটা key archive-টায় signature দিয়েছে, কিন্তু সেই key-র মালিক কে, তা দেখায় না।
18:28-এ script pack project-এর GitHub release page থেকে pack-v0.40.11-linux.tgz download করেছে, আর তার SHA-256 (যা 280a53ff দিয়ে শুরু) একই release-এর .sha256 file-এর সঙ্গে মিলিয়েছে। দুটো মান এক ছিল। release প্রতিটা archive-এর জন্য একটা .sha256 file তালিকাভুক্ত করেছিল, কোনো signature file নয়। checksum file আসে archive-এর একই host থেকে। তাই যাচাই একটা নষ্ট বা বদলে দেওয়া archive ধরে, কিন্তু কে সেটা বানিয়েছে তা প্রমাণ করে না। script helm আর pack ~/.local/bin-এ রেখেছে। ৭ নম্বর ধাপ npm install দিয়ে npm registry থেকে @backstage/catalog-model আর yaml install করে, lockfile ছাড়া আর hash যাচাই ছাড়া। এসবই টিউটোরিয়ালের নিজের সিদ্ধান্ত।
১. tool-গুলো দেখে নিন। চালান:
helm version
pack --version
node --version
npm --version
docker --versionটিউটোরিয়ালের run-এর output:
version.BuildInfo{Version:"v4.3.2", GitCommit:"8346aaa55e7161f7c547212d0a87f01367976727", GitTreeState:"clean", GoVersion:"go1.27.4", KubeClientVersion:"v1.37"}
0.40.11+git-523c9ce.build-7117
v26.8.1
11.19.0
Docker version 29.10.0, build fdd4b8ehelm versionছাপিয়েছেv4.3.2।pack --versionছাপিয়েছে0.40.11। Node.js আর npm ৭ নম্বর ধাপের জন্য, আর Docker শুধু ৯ নম্বর ধাপের জন্য।- এই command-গুলো শুধু version ছাপে।
২. একটা chart বানান আর lint করুন। চালান:
helm create qa-demo
find qa-demo -type f | sort
helm lint qa-demoটিউটোরিয়ালের run-এর output:
Creating qa-demo
qa-demo/.helmignore
qa-demo/Chart.yaml
qa-demo/templates/NOTES.txt
qa-demo/templates/_helpers.tpl
qa-demo/templates/deployment.yaml
qa-demo/templates/hpa.yaml
qa-demo/templates/httproute.yaml
qa-demo/templates/ingress.yaml
qa-demo/templates/service.yaml
qa-demo/templates/serviceaccount.yaml
qa-demo/templates/tests/test-connection.yaml
qa-demo/values.yaml
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failedhelm createqa-demoনামে একটা chart directory বানিয়েছে, chart-এর সাধারণ file আর directory সহ Source 9সোর্স 9।- তালিকায় আছে
Chart.yaml,values.yaml,.helmignore, আরtemplates/-এর নিচের file-গুলো।templates/tests/test-connection.yamlএকটা test file। docs test file-এর জন্যtemplates/-এর নিচেtests/দেখায় Source 9সোর্স 9। - এই Helm version-এর scaffold-এ docs-এর উদাহরণ tree-র চেয়ে বেশি template আছে:
hpa.yaml,httproute.yamlআরingress.yamlতাদের মধ্যে। run এটাই বানিয়েছে। helm lintছাপিয়েছে[INFO] Chart.yaml: icon is recommended, আর তারপর1 chart(s) linted, 0 chart(s) failed। docs বলে, যা chart-কে install-এ ব্যর্থ করবে তার জন্যhelm lint[ERROR]বার্তা দেয়, আর যা রীতি বা সুপারিশ ভাঙে তার জন্য[WARNING]বার্তা দেয় Source 10সোর্স 10। run কোনো[ERROR]বা[WARNING]ছাপেনি।
৩. cluster ছাড়া chart render করুন। চালান:
helm template demo qa-demo | grep '^# Source:'
helm template demo qa-demo -s templates/deployment.yaml | grep -E 'replicas:|image:'
helm template demo qa-demo -s templates/deployment.yaml --set replicaCount=3 | grep 'replicas:'
helm install demo ./qa-demo --dry-run=client | grep -E '^(NAME|STATUS|REVISION|DESCRIPTION):'টিউটোরিয়ালের run-এর output:
# Source: qa-demo/templates/serviceaccount.yaml
# Source: qa-demo/templates/service.yaml
# Source: qa-demo/templates/deployment.yaml
# Source: qa-demo/templates/tests/test-connection.yaml
replicas: 1
image: "nginx:1.16.0"
replicas: 3
NAME: demo
STATUS: pending-install
REVISION: 1
DESCRIPTION: Dry run completehelm templateচারটা template-এর# Source:লাইন ছাপিয়েছে:serviceaccount.yaml,service.yaml,deployment.yamlআরtests/test-connection.yaml। chart-এhpa.yaml,httproute.yamlআরingress.yaml-ও আছে। run তাদের জন্য কোনো# Source:লাইন ছাপেনি।-s templates/deployment.yamlশুধু সেই template দেখিয়েছে Source 11সোর্স 11।- default value দিয়ে Deployment-এ ছিল
replicas: 1আর imagenginx:1.16.0।--set replicaCount=3দিয়ে ছিলreplicas: 3। docs বলে,--set-এর অগ্রাধিকার defaultvalues.yamlfile-এর চেয়ে বেশি Source 19সোর্স 19। helm install demo ./qa-demo --dry-run=clientছাপিয়েছেSTATUS: pending-install,REVISION: 1আরDESCRIPTION: Dry run complete।--dry-run=clientflag কাজটার অনুকরণ করে শুধু client-এর দিকে, আর cluster-এর সঙ্গে যোগাযোগ এড়ায় Source 11সোর্স 11।pending-installসেই অবস্থাগুলোর একটা, যা একটা release-এর status-এ থাকতে পারে,helm statuspage অনুযায়ী Source 48সোর্স 48। প্রথমhelm install-এর পর একটা release-এর release number হয় 1 Source 7সোর্স 7।
৪. value-র জন্য একটা schema যোগ করুন। এটা values.schema.json নামে save করুন। schema-টা টিউটোরিয়ালের নিজের। সে replicaCount চায়, যা ১ বা তার বেশি একটা পূর্ণসংখ্যা, আর image চায়, যাতে একটা repository string আছে:
{
"$schema": "https://json-schema.org/draft-07/schema#",
"type": "object",
"required": ["replicaCount", "image"],
"properties": {
"replicaCount": { "type": "integer", "minimum": 1 },
"image": {
"type": "object",
"required": ["repository"],
"properties": { "repository": { "type": "string", "minLength": 1 }, "tag": { "type": "string" } }
}
}
}চালান:
cp values.schema.json qa-demo/
helm lint qa-demo
helm lint qa-demo --set replicaCount=0; echo "exit status: $?"
helm template demo qa-demo --set replicaCount=abc; echo "exit status: $?"টিউটোরিয়ালের run-এর output:
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
==> Linting qa-demo
[INFO] Chart.yaml: icon is recommended
[ERROR] values.yaml: - at '/replicaCount': minimum: got 0, want 1
[ERROR] templates/: values don't meet the specifications of the schema(s) in the following chart(s):
qa-demo:
- at '/replicaCount': minimum: got 0, want 1
Error: 1 chart(s) linted, 1 chart(s) failed
exit status: 1
Error: values don't meet the specifications of the schema(s) in the following chart(s):
qa-demo:
- at '/replicaCount': got string, want integer
exit status: 1- default value দিয়ে
helm lintপার হয়েছে। default value schema মানে। --set replicaCount=0দিয়েhelm lint/replicaCountনাম করে দুটো[ERROR]লাইন ছাপিয়েছে (minimum: got 0, want 1), তারপরError: 1 chart(s) linted, 1 chart(s) failed। shell ছাপিয়েছেexit status: 1। docs বলে,helm lintচালালে এই যাচাই হয় Source 8সোর্স 8।--set replicaCount=abcদিয়েhelm templategot string, want integerআরexit status: 1বলে থেমেছে। docs বলে,helm templateচালালেও এই যাচাই হয় Source 8সোর্স 8।
৫. render করা chart-এর একটা test লিখুন। এটা render_test.sh নামে save করুন, আর executable করুন। script-টা টিউটোরিয়ালের নিজের। সে Deployment render করে আর তিনটা জিনিস দেখে:
#!/usr/bin/env bash
# render_test.sh CHART [helm template flags]: render the chart and check three things about the Deployment.
# It is the tutorial's own script.
chart=$1; shift
out=$(helm template demo "$chart" -s templates/deployment.yaml "$@") || { echo "FAIL: helm template did not render"; exit 2; }
fail=0
check() { if eval "$2" >/dev/null 2>&1; then echo "PASS: $1"; else echo "FAIL: $1"; fail=1; fi; }
check "the image has an explicit tag, and it is not latest" 'echo "$out" | grep -E "image: \"[^\":]+:[^\":]+\"" | grep -v ":latest"'
check "the pod asks for at least 1 replica" 'echo "$out" | grep -E "replicas: [1-9][0-9]*"'
check "the container sets resource limits" 'echo "$out" | grep -q "limits:"'
exit $failচালান:
./render_test.sh qa-demo; echo "exit status: $?"
./render_test.sh qa-demo --set resources.limits.cpu=100m --set resources.limits.memory=128Mi; echo "exit status: $?"টিউটোরিয়ালের run-এর output:
PASS: the image has an explicit tag, and it is not latest
PASS: the pod asks for at least 1 replica
FAIL: the container sets resource limits
exit status: 1
PASS: the image has an explicit tag, and it is not latest
PASS: the pod asks for at least 1 replica
PASS: the container sets resource limits
exit status: 0- প্রথমবারে তৃতীয় check ব্যর্থ হয়েছে, কারণ render করা Deployment-এ কোনো
limits:লাইন ছিল না, আর script 1 দিয়ে শেষ হয়েছে। দ্বিতীয়বারে limit-এর জন্য--setflag দেওয়া হয়েছে, তাই তিনটা check-ই পার হয়েছে, আর script 0 দিয়ে শেষ হয়েছে। - script
helm templateব্যবহার করে, তাই তার আছেhelm template-এর সীমা। যে মান cluster-এর ভেতর থেকে খোঁজা হতো, তা নকল করা হয়, আর chart ঠিক আছে কি না তা server-এর দিক থেকে পরীক্ষা করার কিছুই করা হয় না Source 11সোর্স 11। - একটা release-এর Helm test অন্য জিনিস। সেটা
templates/-এর নিচে একটা workload definition হিসেবে থাকে Source 17সোর্স 17, আরhelm testসেটা একটা deployed release-এর জন্য চালায় Source 16সোর্স 16। টিউটোরিয়ালhelm testচালায়নি, কারণ তার কোনো deployed release নেই।
৬. chart package করুন। চালান:
helm package qa-demo
helm show chart qa-demo-0.1.0.tgz
helm lint qa-demo-0.1.0.tgz
tar tzf qa-demo-0.1.0.tgz | sortটিউটোরিয়ালের run-এর output:
Successfully packaged chart and saved it to: /work/qa-demo-0.1.0.tgz
apiVersion: v2
appVersion: 1.16.0
description: A Helm chart for Kubernetes
name: qa-demo
type: application
version: 0.1.0
==> Linting qa-demo-0.1.0.tgz
[INFO] Chart.yaml: icon is recommended
1 chart(s) linted, 0 chart(s) failed
qa-demo/.helmignore
qa-demo/Chart.yaml
qa-demo/templates/NOTES.txt
qa-demo/templates/_helpers.tpl
qa-demo/templates/deployment.yaml
qa-demo/templates/hpa.yaml
qa-demo/templates/httproute.yaml
qa-demo/templates/ingress.yaml
qa-demo/templates/service.yaml
qa-demo/templates/serviceaccount.yaml
qa-demo/templates/tests/test-connection.yaml
qa-demo/values.schema.json
qa-demo/values.yamlhelm packageqa-demo-0.1.0.tgzলিখেছে। docs বলে, এই command একটা chart-কে একটা version-যুক্ত chart archive file-এ package করে Source 13সোর্স 13। run-এ file-এর নামে আছে chart-এর নাম আর সেই version, যাhelm show chartছাপিয়েছে (name: qa-demoআরversion: 0.1.0)।- chart archive হলো একটা tar আর gzip করা (আর ইচ্ছে হলে signed) chart Source 7সোর্স 7।
tar tzfতার তালিকা দিয়েছে। run-এর archive-এ আছে ২ নম্বর ধাপের ১২টা file আরqa-demo/values.schema.json, তাই schema chart-এর সঙ্গেই যায়। helm lintarchive-টাকেও argument হিসেবে নিয়েছে, আর সেটা পার হয়েছে।- টিউটোরিয়াল
--signব্যবহার করেনি, আরhelm verifyচালায়নি। docs বলে, provenance file তৈরি হয় package করার সময়, আর একাধিক command তা যাচাই করতে পারে, বিশেষ করেhelm install --verifySource 22সোর্স 22।
৭. Backstage catalog file যাচাই করুন। এই তিনটা file catalog নামের একটা folder-এ save করুন। good.yaml একটা Component, তার তিনটা দরকারি field সহ। bad-owner.yaml-এ spec.owner নেই। bad-name.yaml-এর metadata.name-এ একটা space আছে:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa-demo
description: The demo service of the QA team
tags: [qa, demo]
spec:
type: service
lifecycle: experimental
owner: group:default/qa-teamapiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa-demo
spec:
type: service
lifecycle: experimentalapiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: qa demo
spec:
type: service
lifecycle: experimental
owner: group:default/qa-teamএটা validate.mjs নামে save করুন। script-টা টিউটোরিয়ালের নিজের। সে প্রতিটা file-কে @backstage/catalog-model package-এর Component validator দিয়ে দেখে, আর নামটা একই package-এর name validator দিয়ে দেখে:
// validate.mjs FILE...: check each Component descriptor with the validators of @backstage/catalog-model.
// It is the tutorial's own script.
import { readFileSync } from 'node:fs';
import { parseAllDocuments } from 'yaml';
import { componentEntityV1alpha1Validator, makeValidator } from '@backstage/catalog-model';
const names = makeValidator();
let failed = 0;
for (const file of process.argv.slice(2)) {
for (const doc of parseAllDocuments(readFileSync(file, 'utf8'))) {
const entity = doc.toJS();
const problems = [];
try {
const applies = await componentEntityV1alpha1Validator.check(entity);
if (!applies) problems.push('the Component validator does not apply to this entity');
} catch (error) {
problems.push(`kind check: ${error.message}`);
}
const name = entity?.metadata?.name;
if (!names.isValidEntityName(name)) problems.push(`metadata.name ${JSON.stringify(name)} is not a valid entity name`);
if (problems.length) failed++;
console.log(`${problems.length ? 'FAIL' : 'PASS'} ${file}${problems.map((p) => `\n ${p}`).join('')}`);
}
}
process.exit(failed ? 1 : 0);চালান:
npm init -y > /dev/null
npm install --no-audit --no-fund @backstage/catalog-model yaml
node -e "console.log('catalog-model', require('@backstage/catalog-model/package.json').version, '| yaml', require('yaml/package.json').version)"
node validate.mjs catalog/good.yaml catalog/bad-owner.yaml catalog/bad-name.yaml; echo "exit status: $?"টিউটোরিয়ালের run-এর output:
added 14 packages in 15s
catalog-model 1.10.3 | yaml 2.9.1
PASS catalog/good.yaml
FAIL catalog/bad-owner.yaml
kind check: /spec must have required property 'owner' - missingProperty: owner
FAIL catalog/bad-name.yaml
metadata.name "qa demo" is not a valid entity name
exit status: 1npm install15 সেকেন্ডে ১৪টা package যোগ করেছে। সময় প্রতিটা run-এ আলাদা হয়।good.yamlপার হয়েছে। তাতে আছে সেই তিনটা field, যা docs একটা Component-এর জন্য বাধ্যতামূলক বলে:spec.type,spec.lifecycleআরspec.ownerSource 28সোর্স 28। তার ownergroup:default/qa-teamএকটা string reference, যাতে তিনটা অংশই আছে, একটা kind, একটা namespace আর একটা name, যেখানে docs kind আর namespace ঐচ্ছিক রাখে Source 31সোর্স 31।bad-owner.yamlব্যর্থ হয়েছে/spec must have required property 'owner'বলে। তাতেspec.ownerনেই, আর docs বলে field-টা বাধ্যতামূলক Source 28সোর্স 28।bad-name.yamlব্যর্থ হয়েছে, কারণqa demoএকটা বৈধ entity name নয়। ডিফল্টভাবে docs অনুমতি দেয় অক্ষর আর অঙ্কের ক্রম, যাদের আলাদা করতে পারে-,_বা.Source 28সোর্স 28। space এগুলোর কোনোটাই নয়।- script ছাপিয়েছে
exit status: 1, কারণ তিনটা file-এর দুটো ব্যর্থ হয়েছে। - script প্রতিটা file-এর আকার দেখে। catalog backend আরও কিছু করে: তার processor কাঁচা entity data যাচাই করে, বিশ্লেষণ করে আর বদলে Source 30সোর্স 30। একটা entity catalog API দিয়ে দেখা যায় না, যতক্ষণ না সে শেষ ধাপ পেরিয়ে আসে Source 30সোর্স 30। টিউটোরিয়াল backend চালায়নি।
৮. হাতে একটা buildpack লিখুন। hello-app নামে একটা folder বানান, তাতে একটাই file, hello.txt:
Hello from the QA buildpack.এই দুটো script তার পাশে save করুন, buildpack-detect.sh আর buildpack-build.sh নামে। এগুলো টিউটোরিয়ালের নিজের:
#!/usr/bin/env bash
set -euo pipefail
# The tutorial's own detect script: this buildpack applies only to an app that has a file named hello.txt.
if [[ ! -f hello.txt ]]; then
exit 100
fi
exit 0#!/usr/bin/env bash
set -euo pipefail
echo "---> Hello buildpack"
mkdir -p "${CNB_LAYERS_DIR}/greeting"
cp hello.txt "${CNB_LAYERS_DIR}/greeting/hello.txt"
cat > "${CNB_LAYERS_DIR}/greeting.toml" <<TOML
[types]
launch = true
TOML
cat > "${CNB_LAYERS_DIR}/launch.toml" <<TOML
[[processes]]
type = "web"
command = ["cat", "/layers/qa_hello-buildpack/greeting/hello.txt"]
default = true
TOMLচালান:
pack buildpack new qa/hello-buildpack --path hello-buildpack --api 0.10
cat hello-buildpack/buildpack.toml
cat hello-buildpack/bin/build
cp buildpack-detect.sh hello-buildpack/bin/detect
cp buildpack-build.sh hello-buildpack/bin/build
chmod +x hello-buildpack/bin/detect hello-buildpack/bin/build
mkdir -p empty-app layers
(cd empty-app && ../hello-buildpack/bin/detect; echo "detect in an app without hello.txt: exit status $?")
(cd hello-app && ../hello-buildpack/bin/detect; echo "detect in hello-app: exit status $?")
(cd hello-app && CNB_LAYERS_DIR=../layers ../hello-buildpack/bin/build; echo "build in hello-app: exit status $?")
find layers -type f | sort
cat layers/greeting.toml layers/launch.tomlটিউটোরিয়ালের run-এর output:
'create' buildpack.toml
'create' bin/build
'create' bin/detect
Successfully created 'qa/hello-buildpack'
api = "0.10"
WithWindowsBuild = false
WithLinuxBuild = false
[buildpack]
id = "qa/hello-buildpack"
version = "1.0.0"
[[targets]]
os = "linux"
arch = "amd64"
#!/usr/bin/env bash
set -euo pipefail
layers_dir="$1"
env_dir="$2/env"
plan_path="$3"
exit 0
detect in an app without hello.txt: exit status 100
detect in hello-app: exit status 0
---> Hello buildpack
build in hello-app: exit status 0
layers/greeting.toml
layers/greeting/hello.txt
layers/launch.toml
[types]
launch = true
[[processes]]
type = "web"
command = ["cat", "/layers/qa_hello-buildpack/greeting/hello.txt"]
default = truepack buildpack newএকটাbuildpack.tomlআর দুটো script,bin/detectওbin/build, বানিয়েছে Source 42সোর্স 42। run-এরbuildpack.toml-এ আছেapi = "0.10", idqa/hello-buildpackআর version1.0.0।- scaffold-এর বানানো
bin/buildতার layers directory পড়ে$1থেকে। সেটা একটা positional argument। spec বলে, detect আর build executable-এর positional argument Buildpack API 0.8-এ deprecated হয়েছে, আর lifecycle এই মানগুলো environment variable হিসেবে দেয় Source 41সোর্স 41। টিউটোরিয়ালের script তার বদলেCNB_LAYERS_DIRপড়ে Source 41সোর্স 41। hello.txt-বিহীন folder-এ detect script 100 দিয়ে শেষ হয়েছে, আরhello-app-এ 0 দিয়ে। spec/bin/detect-এর exit status দেয় এভাবে: pass (0) বা fail (100) Source 41সোর্স 41।- build script চলেছে
CNB_LAYERS_DIR=../layersদিয়ে। সে ছাপিয়েছে---> Hello buildpack, 0 দিয়ে শেষ হয়েছে, আর তিনটা file রেখে গেছে:layers/greeting.toml,layers/greeting/hello.txtআরlayers/launch.toml। - একটা নির্দিষ্ট layer-এর জন্য buildpack বলতে পারে layer-টা cache করা হবে কি না, build-এর জন্য কি না, আর launch-এর জন্য কি না Source 41সোর্স 41। টিউটোরিয়ালের
greeting.toml-এ আছেlaunch = true। - run-এর
launch.toml-এ একটাwebprocess আছে, যা default। Buildpacks tutorial বলে, একটা app চালানো যায় এমন করতে একটা default start command ঠিক করতে হয় Source 49সোর্স 49। টিউটোরিয়ালের command হলোcat, সঙ্গে layer-এর ভেতরের file-এর path। path-টা docs-এর উদাহরণের ধরন মেনে চলে, যেখানেexample/node-enginebuildpack-এর directory/layers/example_node-engineSource 47সোর্স 47।
৯. pack দিয়ে একটা image বানান, আর চালান। এই ধাপে Docker daemon লাগে। প্রথমবারে সে builder image আর run image download করে। চালান:
pack build p7a-qa-hello --builder paketobuildpacks/builder-jammy-buildpackless-base --buildpack ./hello-buildpack --path ./hello-app --no-color
docker run --rm --pull never --network none --memory 64m p7a-qa-hello
pack inspect p7a-qa-hello --no-color
pack build p7a-qa-hello --builder paketobuildpacks/builder-jammy-buildpackless-base --buildpack ./hello-buildpack --path ./hello-app --no-color 2>&1 | grep -E 'Previous image|Reusing|Adding layer|Images|Successfully'টিউটোরিয়ালের run-এর output:
Warning: Exporting to docker daemon (building without --publish) and daemon uses containerd storage; performance may be significantly degraded.
For more information, see https://github.com/buildpacks/pack/issues/2272.
Warning: Builder is trusted but additional modules were added; using the untrusted (5 phases) build flow
===> ANALYZING
[analyzer] Image with name "p7a-qa-hello" not found
===> DETECTING
[detector] target distro name/version labels not found, reading /etc/os-release file
[detector] qa/hello-buildpack 1.0.0
===> RESTORING
[restorer] No run metadata found at path "/cnb/run.toml"
===> BUILDING
[builder] target distro name/version labels not found, reading /etc/os-release file
[builder] ---> Hello buildpack
===> EXPORTING
[exporter] Adding layer 'qa/hello-buildpack:greeting'
[exporter] Adding layer 'buildpacksio/lifecycle:launch.sbom'
[exporter] Added 1/1 app layer(s)
[exporter] Adding layer 'buildpacksio/lifecycle:launcher'
[exporter] Adding layer 'buildpacksio/lifecycle:config'
[exporter] Adding layer 'buildpacksio/lifecycle:process-types'
[exporter] Adding label 'io.buildpacks.lifecycle.metadata'
[exporter] Adding label 'io.buildpacks.build.metadata'
[exporter] Adding label 'io.buildpacks.project.metadata'
[exporter] Adding label 'io.buildpacks.exec-env'
[exporter] Setting default process type 'web'
[exporter] Saving p7a-qa-hello...
[exporter] *** Images (772b48ce2926):
[exporter] p7a-qa-hello
Successfully built image 'p7a-qa-hello'
Hello from the QA buildpack.
Inspecting image: 'p7a-qa-hello'
REMOTE:
(not present)
LOCAL:
Stack: io.buildpacks.stacks.jammy
Base Image:
Reference: 286fc9d6cd814cd9085f50b075aa3da0262dc408b5a5ce4c85b2d6a60a9288a7
Top Layer: sha256:04c34e27609db21d521b68522b534d45f9e67837d5c82d634342aa5197a3aea3
Run Images:
docker.io/paketobuildpacks/run-jammy-base:latest
Rebasable: true
Buildpacks:
ID VERSION HOMEPAGE
qa/hello-buildpack 1.0.0 -
Processes:
TYPE SHELL COMMAND ARGS WORK DIR
web (default) cat /layers/qa_hello-buildpack/greeting/hello.txt /workspace
[exporter] Reusing layer 'qa/hello-buildpack:greeting'
[exporter] Reusing layer 'buildpacksio/lifecycle:launch.sbom'
[exporter] Reusing layer 'buildpacksio/lifecycle:launcher'
[exporter] Reusing layer 'buildpacksio/lifecycle:config'
[exporter] Reusing layer 'buildpacksio/lifecycle:process-types'
[exporter] *** Images (772b48ce2926):
Successfully built image 'p7a-qa-hello'- টিউটোরিয়াল বেছে নিয়েছে
paketobuildpacks/builder-jammy-buildpackless-basebuilder, আর buildpack-টা--buildpackদিয়ে একটা path হিসেবে দিয়েছে। docs বলে,pack build-এর একটা image name লাগে Source 43সোর্স 43, আপনি--pathদিয়ে অন্য একটা source code directory দিতে পারেন Source 43সোর্স 43, আর তার একটা builder লাগে, যা--builderদিয়ে দেওয়া যায় বাset-default-buildercommand দিয়ে ঠিক করা যায় Source 43সোর্স 43।--buildpackflag একটা buildpack directory-র path নেয় Source 43সোর্স 43। packশুরুতে দুটো warning ছাপিয়েছে। একটা বলে, Docker daemon containerd storage ব্যবহার করে, আর performance উল্লেখযোগ্যভাবে কমে যেতে পারে। অন্যটা বলেBuilder is trusted but additional modules were added; using the untrusted (5 phases) build flow। docs বলে,packকোনো builder-কে বিশ্বাস না করলে সে পাঁচটা আলাদা lifecycle binary চালায় Source 45সোর্স 45। output-এ পাঁচটা শিরোনাম আছে:ANALYZING,DETECTING,RESTORING,BUILDINGআরEXPORTING।- detector ছাপিয়েছে
qa/hello-buildpack 1.0.0।---> Hello buildpackলাইনটা টিউটোরিয়ালেরbin/build-এরecho। exporterqa/hello-buildpack:greetinglayer যোগ করেছে, আর default process typewebঠিক করেছে। run-এ image ID ছিল772b48ce2926। docker runছাপিয়েছেHello from the QA buildpack., অর্থাৎhello.txt-এর বিষয়বস্তু, যাwebprocess layer থেকে পড়েছে।--pull never,--network noneআর--memory 64mflag টিউটোরিয়ালের নিজের সিদ্ধান্ত।pack inspectএকটা বানানো app image-এর তথ্য দেখায় Source 44সোর্স 44। run-এ সে দেখিয়েছে stackio.buildpacks.stacks.jammy, run imagedocker.io/paketobuildpacks/run-jammy-base:latest,Rebasable: true,qa/hello-buildpackbuildpack, version1.0.0, আর processweb (default), commandcatআর work dir/workspaceসহ।- দ্বিতীয়
pack buildপাঁচটা layer-এর সবকটার জন্যReusing layerছাপিয়েছে, আর একই image ID,772b48ce2926। spec বলে, একটা launch layer পরের build-এ আবার ব্যবহার করা যায়, যদি যে buildpack সেটা বানিয়েছে তার চাহিদা একই থাকে Source 41সোর্স 41। Buildpacks docs বলে, একই input পেলে দুটো build-এর একই output দেওয়া উচিত Source 40সোর্স 40। এই run-এ দুটো build একই image ID ছাপিয়েছে।
How a tester uses it
Chart changes before any cluster. helm lint runs a series of tests to verify that a chart is well-formed Source 10সোর্স 10. In step 4 of the tutorial's run, it ended with exit status 1 when a value broke the schema. helm template renders chart templates locally and displays the output Source 11সোর্স 11. In step 3, the output showed replicas: 1 with the default values, and replicas: 3 with --set replicaCount=3. The rendered manifests are text, and the tutorial's render_test.sh reads them with grep in step 5. The schema in values.schema.json is checked when helm lint or helm template runs Source 8সোর্স 8. These checks have limits. helm template does none of the server-side testing of chart validity, for example whether an API is supported Source 11সোর্স 11.
Values. The order of specificity of values is this: values.yaml is the default, a parent chart's values.yaml can override it, a user-supplied values file can override that, and --set parameters can override that Source 19সোর্স 19. If you give the -f flag more than once, the last, right-most file gets the priority Source 12সোর্স 12. In step 3, one --set changed the replica count of the Deployment from 1 to 3. To delete a key from the default values, you can override the value of the key with null, and Helm then removes the key from the merged values Source 19সোর্স 19. The chart best practices say that in most cases flat should be favored over nested Source 20সোর্স 20. They also say that for optimal safety a nested value must be checked at every level Source 20সোর্স 20.
Releases in a test environment. To see the revision numbers of a release, run helm history RELEASE Source 14সোর্স 14. The command prints the historical release set as a formatted table Source 15সোর্স 15. The status of a release has its state, its revision, the list of resources that it consists of, and details on the last test suite run, if applicable Source 48সোর্স 48. A rolled back release receives a new release number Source 7সোর্স 7. By default, release information is stored in Secrets in the namespace of the release Source 21সোর্স 21. helm test runs the tests for a deployed release Source 16সোর্স 16. The container of a test should exit with 0 for the test to be considered a success Source 17সোর্স 17.
What you deploy. A chart repository is an HTTP server that houses an index.yaml file and optionally some packaged charts Source 24সোর্স 24. An OCI-based registry can contain zero or more Helm repositories, and each of those repositories can contain zero or more packaged Helm charts Source 23সোর্স 23. Integrity is established by comparing a chart to a provenance record Source 22সোর্স 22. A provenance contains a cryptographic hash of the chart archive file, the Chart.yaml data, and a signature block Source 7সোর্স 7. Provenance records are stored in provenance files, alongside a packaged chart Source 22সোর্স 22. For a chart named myapp-1.2.3.tgz, the provenance file is myapp-1.2.3.tgz.prov Source 22সোর্স 22. The tutorial did not sign a chart.
Who owns a service. The Backstage Software Catalog keeps track of ownership and metadata for all the software in your ecosystem Source 27সোর্স 27. It makes all the software in your company, and who owns it, discoverable Source 27সোর্স 27. The owner of a component is the point of contact if something goes wrong Source 28সোর্স 28. The docs list experimental, production, and deprecated among the well-known lifecycle values Source 28সোর্স 28. Each entity is uniquely identified by its kind, namespace, and name Source 31সোর্স 31. An entity is not visible through the catalog API until it has passed through the last process Source 30সোর্স 30. In step 7, the tutorial's script rejected a file with no owner and a file with a bad name.
Images that a buildpack made. pack inspect shows information about a built app image Source 44সোর্স 44. In step 9 it listed the stack, the run image, the buildpack qa/hello-buildpack with the version 1.0.0, and the default web process. The rebaser places application layers atop a new version of the runtime base image Source 39সোর্স 39. The output of the run said Rebasable: true. A Software Bill-of-Materials (SBOM) lists all the software components included in an image Source 46সোর্স 46. The pack sbom download command downloads the app layer containing the SBOM files Source 46সোর্স 46. The formats that are supported are CycloneDX, Syft, and Spdx Source 46সোর্স 46. The tutorial did not run pack sbom download or pack rebase. The project aims to create reproducible builds of container images Source 40সোর্স 40. In step 9, the second build reused every layer and printed the same image ID as the first build. If pack does not trust a builder, it runs the more privileged phases using a published lifecycle image, if one is available Source 45সোর্স 45.
সহজ English
Chart changes before any cluster. helm lint runs a series of tests to verify that a chart is well-formed Source 10সোর্স 10. In step 4 of the tutorial's run, it ended with exit status 1 when a value broke the schema. helm template renders chart templates locally and displays the output Source 11সোর্স 11. In step 3, the output showed replicas: 1 with the default values, and replicas: 3 with --set replicaCount=3. The rendered manifests are text, and the tutorial's render_test.sh reads them with grep in step 5. The schema in values.schema.json is checked when helm lint or helm template runs Source 8সোর্স 8. These checks have limits. helm template does none of the server-side testing of chart validity, for example whether an API is supported Source 11সোর্স 11.
Values. The order of specificity of values is this: values.yaml is the default, a parent chart's values.yaml can override it, a user-supplied values file can override that, and --set parameters can override that Source 19সোর্স 19. If you give the -f flag more than once, the last, right-most file gets the priority Source 12সোর্স 12. In step 3, one --set changed the replica count of the Deployment from 1 to 3. To delete a key from the default values, you can override the value of the key with null, and Helm then removes the key from the merged values Source 19সোর্স 19. The chart best practices say that in most cases flat should be favored over nested Source 20সোর্স 20. They also say that for optimal safety a nested value must be checked at every level Source 20সোর্স 20.
Releases in a test environment. To see the revision numbers of a release, run helm history RELEASE Source 14সোর্স 14. The command prints the historical release set as a formatted table Source 15সোর্স 15. The status of a release has its state, its revision, the list of resources that it consists of, and details on the last test suite run, if applicable Source 48সোর্স 48. A rolled back release receives a new release number Source 7সোর্স 7. By default, release information is stored in Secrets in the namespace of the release Source 21সোর্স 21. helm test runs the tests for a deployed release Source 16সোর্স 16. The container of a test should exit with 0 for the test to be considered a success Source 17সোর্স 17.
What you deploy. A chart repository is an HTTP server that houses an index.yaml file and optionally some packaged charts Source 24সোর্স 24. An OCI-based registry can contain zero or more Helm repositories, and each of those repositories can contain zero or more packaged Helm charts Source 23সোর্স 23. Integrity is established by comparing a chart to a provenance record Source 22সোর্স 22. A provenance contains a cryptographic hash of the chart archive file, the Chart.yaml data, and a signature block Source 7সোর্স 7. Provenance records are stored in provenance files, alongside a packaged chart Source 22সোর্স 22. For a chart named myapp-1.2.3.tgz, the provenance file is myapp-1.2.3.tgz.prov Source 22সোর্স 22. The tutorial did not sign a chart.
Who owns a service. The Backstage Software Catalog keeps track of ownership and metadata for all the software in your ecosystem Source 27সোর্স 27. It makes all the software in your company, and who owns it, discoverable Source 27সোর্স 27. The owner of a component is the point of contact if something goes wrong Source 28সোর্স 28. The docs list experimental, production, and deprecated among the well-known lifecycle values Source 28সোর্স 28. Each entity is uniquely identified by its kind, namespace, and name Source 31সোর্স 31. An entity is not visible through the catalog API until it has passed through the last process Source 30সোর্স 30. In step 7, the tutorial's script rejected a file with no owner and a file with a bad name.
Images that a buildpack made. pack inspect shows information about a built app image Source 44সোর্স 44. In step 9 it listed the stack, the run image, the buildpack qa/hello-buildpack with the version 1.0.0, and the default web process. The rebaser places application layers atop a new version of the runtime base image Source 39সোর্স 39. The output of the run said Rebasable: true. A Software Bill-of-Materials (SBOM) lists all the software components included in an image Source 46সোর্স 46. The pack sbom download command downloads the app layer containing the SBOM files Source 46সোর্স 46. The formats that are supported are CycloneDX, Syft, and Spdx Source 46সোর্স 46. The tutorial did not run pack sbom download or pack rebase. The project aims to create reproducible builds of container images Source 40সোর্স 40. In step 9, the second build reused every layer and printed the same image ID as the first build. If pack does not trust a builder, it runs the more privileged phases using a published lifecycle image, if one is available Source 45সোর্স 45.
বাংলা ব্যাখ্যা
cluster-এর আগে chart-এর পরিবর্তন। helm lint কয়েকটা test চালিয়ে দেখে একটা chart ঠিকঠাক গড়া কি না Source 10সোর্স 10। টিউটোরিয়ালের run-এর ৪ নম্বর ধাপে একটা মান schema ভাঙলে সে exit status 1 দিয়ে শেষ হয়েছে। helm template chart-এর template স্থানীয়ভাবে render করে আর output দেখায় Source 11সোর্স 11। ৩ নম্বর ধাপে output-এ default value দিয়ে ছিল replicas: 1, আর --set replicaCount=3 দিয়ে replicas: 3। render করা manifest হলো text, আর টিউটোরিয়ালের render_test.sh ৫ নম্বর ধাপে grep দিয়ে তা পড়ে। values.schema.json-এর schema যাচাই হয় যখন helm lint বা helm template চলে Source 8সোর্স 8। এই যাচাইয়ের সীমা আছে। helm template chart ঠিক আছে কি না তা server-এর দিক থেকে পরীক্ষা করার কিছুই করে না, যেমন কোনো API সমর্থিত কি না Source 11সোর্স 11।
value। value-র অগ্রাধিকারের ক্রম এই: values.yaml হলো default, parent chart-এর values.yaml তাকে বদলাতে পারে, user-এর দেওয়া values file সেটাকে বদলাতে পারে, আর --set parameter সেটাকেও বদলাতে পারে Source 19সোর্স 19। -f flag একাধিকবার দিলে শেষের, ডানদিকের file-টা অগ্রাধিকার পায় Source 12সোর্স 12। ৩ নম্বর ধাপে একটা --set Deployment-এর replica-সংখ্যা 1 থেকে 3 করে দিয়েছে। default value থেকে একটা key মুছতে চাইলে আপনি সেই key-র মান null দিয়ে বদলে দিতে পারেন, আর তখন Helm মিলিত value থেকে key-টা সরিয়ে দেয় Source 19সোর্স 19। chart best practice বলে, বেশির ভাগ ক্ষেত্রে nested-এর চেয়ে flat বেছে নেওয়া উচিত Source 20সোর্স 20। তারা আরও বলে, সবচেয়ে নিরাপদ হতে একটা nested value-র প্রতিটা স্তরে যাচাই করতে হয় Source 20সোর্স 20।
test environment-এর release। একটা release-এর revision number দেখতে চালান helm history RELEASE Source 14সোর্স 14। command-টা ইতিহাসের release-সেট একটা সাজানো সারণি (table) হিসেবে ছাপে Source 15সোর্স 15। একটা release-এর status-এ থাকে তার অবস্থা, তার revision, সে যেসব resource দিয়ে গড়া তার তালিকা, আর শেষ test suite চালানোর বিবরণ, যদি প্রযোজ্য হয় Source 48সোর্স 48। rollback করা release একটা নতুন release number পায় Source 7সোর্স 7। ডিফল্টভাবে release-এর তথ্য রাখা হয় release-এর namespace-এর Secret-এ Source 21সোর্স 21। helm test একটা deployed release-এর test চালায় Source 16সোর্স 16। একটা test সফল ধরা হতে হলে তার container-এর 0 দিয়ে শেষ হওয়া উচিত Source 17সোর্স 17।
আপনি কী deploy করছেন। chart repository হলো একটা HTTP server, যাতে থাকে একটা index.yaml file আর ইচ্ছে হলে কিছু packaged chart Source 24সোর্স 24। একটা OCI-ভিত্তিক registry-তে শূন্য বা তার বেশি Helm repository থাকতে পারে, আর সেই repository-গুলোর প্রতিটায় শূন্য বা তার বেশি packaged Helm chart থাকতে পারে Source 23সোর্স 23। অখণ্ডতা (integrity) প্রতিষ্ঠিত হয় একটা chart-কে একটা provenance record-এর সঙ্গে মিলিয়ে Source 22সোর্স 22। provenance-এ থাকে chart archive file-এর একটা ক্রিপ্টোগ্রাফিক hash, Chart.yaml-এর data আর একটা signature block Source 7সোর্স 7। provenance record রাখা হয় provenance file-এ, একটা packaged chart-এর পাশে Source 22সোর্স 22। myapp-1.2.3.tgz নামের chart-এর provenance file হলো myapp-1.2.3.tgz.prov Source 22সোর্স 22। টিউটোরিয়াল কোনো chart-এ signature দেয়নি।
একটা service-এর মালিক কে। Backstage Software Catalog আপনার ecosystem-এর সব software-এর মালিকানা আর metadata-র হিসাব রাখে Source 27সোর্স 27। সে আপনার কোম্পানির সব software, আর তার মালিক কে, তা খুঁজে পাওয়ার মতো করে Source 27সোর্স 27। কিছু ভুল হলে একটা component-এর owner-ই যোগাযোগের মানুষ Source 28সোর্স 28। docs পরিচিত lifecycle মানের মধ্যে experimental, production আর deprecated-এর নাম দেয় Source 28সোর্স 28। প্রতিটা entity অনন্যভাবে চেনা যায় তার kind, namespace আর name দিয়ে Source 31সোর্স 31। একটা entity catalog API দিয়ে দেখা যায় না, যতক্ষণ না সে শেষ ধাপ পেরিয়ে আসে Source 30সোর্স 30। ৭ নম্বর ধাপে টিউটোরিয়ালের script owner-বিহীন একটা file আর খারাপ নামের একটা file বাতিল করেছে।
buildpack-এর বানানো image। pack inspect একটা বানানো app image-এর তথ্য দেখায় Source 44সোর্স 44। ৯ নম্বর ধাপে সে stack, run image, qa/hello-buildpack buildpack-এর version 1.0.0, আর default web process দেখিয়েছে। rebaser application layer-গুলোকে runtime base image-এর একটা নতুন version-এর ওপর বসায় Source 39সোর্স 39। run-এর output বলেছে Rebasable: true। Software Bill-of-Materials (SBOM) একটা image-এ থাকা সব software component-এর তালিকা Source 46সোর্স 46। pack sbom download command SBOM file সহ app layer download করে Source 46সোর্স 46। সমর্থিত format হলো CycloneDX, Syft আর Spdx Source 46সোর্স 46। টিউটোরিয়াল pack sbom download বা pack rebase চালায়নি। project container image-এর পুনরাবৃত্তিযোগ্য (reproducible) build বানানোর লক্ষ্য রাখে Source 40সোর্স 40। ৯ নম্বর ধাপে দ্বিতীয় build প্রতিটা layer আবার ব্যবহার করেছে আর প্রথম build-এর মতো একই image ID ছাপিয়েছে। pack কোনো builder-কে বিশ্বাস না করলে সে বেশি সুবিধাপ্রাপ্ত phase-গুলো চালায় একটা প্রকাশিত lifecycle image দিয়ে, যদি তেমন একটা পাওয়া যায় Source 45সোর্স 45।
Common mistakes
- Reading a passing
helm templateas a test of the cluster.helm templatefakes any value that it would normally look up in a cluster Source 11সোর্স 11. It does none of the server-side testing of chart validity Source 11সোর্স 11. A server-side dry run needs cluster connectivity Source 11সোর্স 11. The tutorial's run had no cluster, so it ran only the client-side dry run. - Ignoring the level of a lint message.
helm lintemits[ERROR]messages for things that will cause the chart to fail installation Source 10সোর্স 10. It emits[WARNING]messages for issues that break with convention or recommendation Source 10সোর্স 10. In step 2, the run printed an[INFO]line, and the chart passed with0 chart(s) failed. In step 4, an[ERROR]madehelm lintfail with exit status 1. - Mixing up a chart, a release, and a revision. A single chart may be installed many times into the same cluster, and create many different releases Source 7সোর্স 7. Each time a release is upgraded or rolled back, the release number is incremented Source 7সোর্স 7. A rolled back release receives a new release number, and not the old one Source 7সোর্স 7.
- Setting a value in the wrong layer. A
--setparameter can override a user-supplied values file. That file can override thevalues.yamlof a parent chart. That one can override the defaultvalues.yamlSource 19সোর্স 19. If you give-fmore than once, the right-most file gets the priority Source 12সোর্স 12. To force a string value, use--set-stringSource 12সোর্স 12. In step 4, the schema rejectedreplicaCount=abcwithgot string, want integer. - Installing a binary or an image without checking where it came from. The Helm docs say that you should always verify the authenticity of Helm binaries before installing Source 25সোর্স 25. Helm has provenance tools which help chart users verify the integrity and origin of a package Source 22সোর্স 22. Suppose
packused the creator with an untrusted builder Source 45সোর্স 45. Then thebin/detectandbin/buildof each buildpack would run within a container that has heightened privileges or access to registry credentials Source 45সোর্স 45. The checksum check of the tutorial'spackinstall shows that the archive is whole. It does not show who built it. - Expecting a catalog entity at once, or with any name. An entity is not visible through the catalog API until it has passed through the last process Source 30সোর্স 30. By default, a name is a string of 1 to 63 characters Source 28সোর্স 28. By default, it is made of sequences of letters and digits, possibly separated by
-,_, or.Source 28সোর্স 28. In step 7, the nameqa demofailed this check. - Copying a buildpack scaffold without reading its API level. The
bin/buildthatpack buildpack newwrote in the run reads its layers directory from$1. The spec deprecated the positional arguments to the detect and build executables in Buildpack API 0.8 Source 41সোর্স 41. The exit status of/bin/detectis pass (0), fail (100), or error (1-99, 101+) Source 41সোর্স 41. So a detect script that exits with 1 reports an error. It does not report a failed detection.
সহজ English
- Reading a passing
helm templateas a test of the cluster.helm templatefakes any value that it would normally look up in a cluster Source 11সোর্স 11. It does none of the server-side testing of chart validity Source 11সোর্স 11. A server-side dry run needs cluster connectivity Source 11সোর্স 11. The tutorial's run had no cluster, so it ran only the client-side dry run. - Ignoring the level of a lint message.
helm lintemits[ERROR]messages for things that will cause the chart to fail installation Source 10সোর্স 10. It emits[WARNING]messages for issues that break with convention or recommendation Source 10সোর্স 10. In step 2, the run printed an[INFO]line, and the chart passed with0 chart(s) failed. In step 4, an[ERROR]madehelm lintfail with exit status 1. - Mixing up a chart, a release, and a revision. A single chart may be installed many times into the same cluster, and create many different releases Source 7সোর্স 7. Each time a release is upgraded or rolled back, the release number is incremented Source 7সোর্স 7. A rolled back release receives a new release number, and not the old one Source 7সোর্স 7.
- Setting a value in the wrong layer. A
--setparameter can override a user-supplied values file. That file can override thevalues.yamlof a parent chart. That one can override the defaultvalues.yamlSource 19সোর্স 19. If you give-fmore than once, the right-most file gets the priority Source 12সোর্স 12. To force a string value, use--set-stringSource 12সোর্স 12. In step 4, the schema rejectedreplicaCount=abcwithgot string, want integer. - Installing a binary or an image without checking where it came from. The Helm docs say that you should always verify the authenticity of Helm binaries before installing Source 25সোর্স 25. Helm has provenance tools which help chart users verify the integrity and origin of a package Source 22সোর্স 22. Suppose
packused the creator with an untrusted builder Source 45সোর্স 45. Then thebin/detectandbin/buildof each buildpack would run within a container that has heightened privileges or access to registry credentials Source 45সোর্স 45. The checksum check of the tutorial'spackinstall shows that the archive is whole. It does not show who built it. - Expecting a catalog entity at once, or with any name. An entity is not visible through the catalog API until it has passed through the last process Source 30সোর্স 30. By default, a name is a string of 1 to 63 characters Source 28সোর্স 28. By default, it is made of sequences of letters and digits, possibly separated by
-,_, or.Source 28সোর্স 28. In step 7, the nameqa demofailed this check. - Copying a buildpack scaffold without reading its API level. The
bin/buildthatpack buildpack newwrote in the run reads its layers directory from$1. The spec deprecated the positional arguments to the detect and build executables in Buildpack API 0.8 Source 41সোর্স 41. The exit status of/bin/detectis pass (0), fail (100), or error (1-99, 101+) Source 41সোর্স 41. So a detect script that exits with 1 reports an error. It does not report a failed detection.
বাংলা ব্যাখ্যা
- একটা সফল
helm template-কে cluster-এর test ভাবা।helm templateযে মান cluster-এর ভেতর থেকে খুঁজে নেওয়া হতো তা নকল করে Source 11সোর্স 11। chart ঠিক আছে কি না তার server-এর দিকের কোনো পরীক্ষা সে করে না Source 11সোর্স 11। server-এর দিকের dry run-এ cluster-এর সঙ্গে যোগাযোগ লাগে Source 11সোর্স 11। টিউটোরিয়ালের run-এ কোনো cluster ছিল না, তাই সে শুধু client-এর দিকের dry run চালিয়েছে। - lint-এর বার্তার স্তর উপেক্ষা করা। যা chart-কে install-এ ব্যর্থ করবে তার জন্য
helm lint[ERROR]বার্তা দেয় Source 10সোর্স 10। যা রীতি বা সুপারিশ ভাঙে তার জন্য সে[WARNING]বার্তা দেয় Source 10সোর্স 10। ২ নম্বর ধাপে run একটা[INFO]লাইন ছাপিয়েছে, আর chart0 chart(s) failedনিয়ে পার হয়েছে। ৪ নম্বর ধাপে একটা[ERROR]helm lint-কে exit status 1 দিয়ে ব্যর্থ করেছে। - chart, release আর revision গুলিয়ে ফেলা। একই chart একই cluster-এ অনেকবার install করা যেতে পারে, আর তাতে অনেক আলাদা release তৈরি হয় Source 7সোর্স 7। একটা release upgrade বা rollback হলে প্রতিবার release number একটা করে বাড়ে Source 7সোর্স 7। rollback করা release একটা নতুন release number পায়, পুরনোটা নয় Source 7সোর্স 7।
- একটা value ভুল স্তরে বসানো। একটা
--setparameter user-এর দেওয়া values file-কে বদলাতে পারে। সেই file parent chart-এরvalues.yaml-কে বদলাতে পারে। সেটা defaultvalues.yaml-কে বদলাতে পারে Source 19সোর্স 19।-fএকাধিকবার দিলে ডানদিকের file-টা অগ্রাধিকার পায় Source 12সোর্স 12। একটা মানকে string করতে চাইলে--set-stringব্যবহার করুন Source 12সোর্স 12। ৪ নম্বর ধাপে schemareplicaCount=abcবাতিল করেছেgot string, want integerবলে। - কোথা থেকে এসেছে তা না দেখেই binary বা image install করা। Helm docs বলে, install করার আগে আপনার সবসময় Helm binary-র খাঁটিত্ব যাচাই করা উচিত Source 25সোর্স 25। Helm-এর provenance tool আছে, যা chart-এর ব্যবহারকারীকে package-এর অখণ্ডতা আর উৎস যাচাই করতে সাহায্য করে Source 22সোর্স 22। ধরুন
packএকটা অবিশ্বস্ত builder-এর সঙ্গে creator ব্যবহার করল Source 45সোর্স 45। তাহলে প্রতিটা buildpack-এরbin/detectআরbin/buildচলত এমন একটা container-এ, যেখানে বাড়তি সুবিধা বা registry credential-এ ঢোকার সুযোগ আছে Source 45সোর্স 45। টিউটোরিয়ালেরpackinstall-এর checksum যাচাই দেখায় archive-টা অক্ষত। কে সেটা বানিয়েছে তা সে দেখায় না। - একটা catalog entity সঙ্গে সঙ্গে আশা করা, বা যেকোনো নাম দেওয়া। একটা entity catalog API দিয়ে দেখা যায় না, যতক্ষণ না সে শেষ ধাপ পেরিয়ে আসে Source 30সোর্স 30। ডিফল্টভাবে একটা নাম হলো ১ থেকে ৬৩ অক্ষরের একটা string Source 28সোর্স 28। ডিফল্টভাবে সেটা গড়া অক্ষর আর অঙ্কের ক্রম দিয়ে, যাদের আলাদা করতে পারে
-,_বা.Source 28সোর্স 28। ৭ নম্বর ধাপেqa demoনামটা এই যাচাইয়ে ব্যর্থ হয়েছে। - API স্তর না পড়েই buildpack scaffold কপি করা। run-এ
pack buildpack new-এর লেখাbin/buildতার layers directory পড়ে$1থেকে। spec বলে, detect আর build executable-এর positional argument Buildpack API 0.8-এ deprecated হয়েছে Source 41সোর্স 41।/bin/detect-এর exit status হলো pass (0), fail (100) বা error (1-99, 101+) Source 41সোর্স 41। তাই যে detect script 1 দিয়ে শেষ হয়, সে error জানায়। সে ব্যর্থ detection জানায় না।
What a tester can check
Tutorial advice
This list is the tutorial's own advice for a tester who works with Helm, Backstage, and buildpacks.
- Run
helm lintandhelm templateon every change to a chart, and fail the build on a non-zero exit status. - Give the chart a
values.schema.json, and test it with one good and one bad set of values. - Write render tests for the things that your team must never ship, such as a
latesttag or a missing resource limit, and run them on the output ofhelm template. - Say in the test report that
helm templateand a client-side dry run did not talk to a cluster, and runhelm testagainst a deployed release as well. - Keep the output of
helm historyandhelm statusin the report of a test run, so that the revision under test is on record. - Verify the signature of a downloaded
helmbinary, and say in the report when you could check only a checksum. - Check every catalog descriptor in the pull request with a script such as
validate.mjs, so that a missing owner or a bad name fails before the merge. - Look at the owner and the lifecycle of a service in the catalog first when you triage a defect.
- Build the image in CI with the same builder every time, and compare the image IDs of two builds of the same commit.
- Download the SBOM of an image that you test, and keep it with the report.
সহজ English
Tutorial advice
This list is the tutorial's own advice for a tester who works with Helm, Backstage, and buildpacks.
- Run
helm lintandhelm templateon every change to a chart, and fail the build on a non-zero exit status. - Give the chart a
values.schema.json, and test it with one good and one bad set of values. - Write render tests for the things that your team must never ship, such as a
latesttag or a missing resource limit, and run them on the output ofhelm template. - Say in the test report that
helm templateand a client-side dry run did not talk to a cluster, and runhelm testagainst a deployed release as well. - Keep the output of
helm historyandhelm statusin the report of a test run, so that the revision under test is on record. - Verify the signature of a downloaded
helmbinary, and say in the report when you could check only a checksum. - Check every catalog descriptor in the pull request with a script such as
validate.mjs, so that a missing owner or a bad name fails before the merge. - Look at the owner and the lifecycle of a service in the catalog first when you triage a defect.
- Build the image in CI with the same builder every time, and compare the image IDs of two builds of the same commit.
- Download the SBOM of an image that you test, and keep it with the report.
বাংলা ব্যাখ্যা
Tutorial advice
এই তালিকা টিউটোরিয়ালের নিজের পরামর্শ, এমন একজন tester-এর জন্য যিনি Helm, Backstage আর buildpack নিয়ে কাজ করেন।
- chart-এর প্রতিটা পরিবর্তনে
helm lintআরhelm templateচালান, আর শূন্য নয় এমন exit status হলে build ব্যর্থ করুন। - chart-কে একটা
values.schema.jsonদিন, আর একটা ভালো ও একটা খারাপ value-সেট দিয়ে সেটা test করুন। - যেসব জিনিস আপনার team কখনো পাঠাবে না, যেমন
latesttag বা resource limit না থাকা, তার জন্য render test লিখুন, আরhelm template-এর output-এ সেগুলো চালান। - test report-এ লিখুন যে
helm templateআর client-এর দিকের dry run কোনো cluster-এর সঙ্গে কথা বলেনি, আর একটা deployed release-এর বিরুদ্ধেওhelm testচালান। - test run-এর report-এ
helm historyআরhelm status-এর output রাখুন, যাতে কোন revision test হয়েছে তার রেকর্ড থাকে। - download করা
helmbinary-র signature যাচাই করুন, আর শুধু checksum যাচাই করতে পারলে সেটা report-এ লিখুন। - pull request-এ প্রতিটা catalog descriptor
validate.mjs-এর মতো একটা script দিয়ে যাচাই করুন, যাতে owner না থাকা বা খারাপ নাম merge-এর আগেই ব্যর্থ হয়। - কোনো defect triage করার সময় আগে catalog-এ service-টার owner আর lifecycle দেখুন।
- CI-তে প্রতিবার একই builder দিয়ে image বানান, আর একই commit-এর দুটো build-এর image ID মিলিয়ে দেখুন।
- আপনি যে image test করছেন তার SBOM download করুন, আর report-এর সঙ্গে রাখুন।
Key words
| Term | Meaning |
|---|---|
| Graduated | Graduated projects are highly mature, robust projects whose adopters have demonstrated their production-readiness by deploying them to production environments |
| Chart | A chart is a Helm package that contains information sufficient for installing a set of Kubernetes resources into a Kubernetes cluster |
| Release | When a chart is installed, the Helm library creates a release to track that installation |
| Values | Values provide a way to override template defaults with your own information |
| Lint | To lint a chart is to validate that it follows the conventions and requirements of the Helm chart standard |
| Chart archive | A chart archive is a tarred and gzipped (and optionally signed) chart |
| Hook | Hooks work like regular templates, but they have special annotations that cause Helm to use them differently |
| Provenance | Helm has provenance tools which help chart users verify the integrity and origin of a package |
| OCI-based registry | An OCI-based registry can contain zero or more Helm repositories, and each of those repositories can contain zero or more packaged Helm charts |
| Software Catalog | The Backstage Software Catalog is a centralized system that keeps track of ownership and metadata for all the software in your ecosystem |
| Entity | Each entity in the catalog is uniquely identified by the triplet of its kind, namespace, and name |
| Owner | the owner of a component is the singular entity, commonly a team, that bears ultimate responsibility for the component and has the authority and capability to develop and maintain it |
| Buildpack | A buildpack is software that transforms application source code into runnable artifacts by analyzing the code and determining the best way to build it |
| Builder | A builder is an OCI image that contains an ordered combination of buildpacks, a build-time base image, a lifecycle binary, and a reference to a runtime base image |
| Platform | A platform orchestrates builds by invoking the lifecycle binary together with buildpacks and app source code to produce a runnable OCI image |
| Lifecycle | The lifecycle orchestrates buildpacks, then assembles the resulting artifacts into an OCI image |
| Layer | A layer is a set of filesystem changes packaged according to the OCI Image Specification |
| Rebase | The rebaser places application layers atop a new version of the runtime base image |
| SBOM | A Software Bill-of-Materials (SBOM) lists all the software components included in an image |