1
00:00:00,000 --> 00:00:09,733
Hi, Let us understand how to create different versions of charts and add it as a part of the repository.

2
00:00:09,733 --> 00:00:14,633
Let me get into the chart that we had created.

3
00:00:14,633 --> 00:00:19,633
So within the chart folder I will be having chart.yaml

4
00:00:19,633 --> 00:00:22,399
I'm going to open the chart.yaml file. Here

5
00:00:22,400 --> 00:00:25,566
I do have a field called version.

6
00:00:25,566 --> 00:00:30,132
This is going to define what version of the chart that we are working on

7
00:00:30,133 --> 00:00:34,099
And the same version will get updated within the repository as well.

8
00:00:34,100 --> 00:00:40,066
And the version syntax will be followed using the semver.org that is semantic versioning

9
00:00:40,066 --> 00:00:45,232
And more details about semantic versioning can be found over here. This is very simple.

10
00:00:45,233 --> 00:00:51,066
Almost all the packages and softwares follow the same logic of major version, minor version

11
00:00:51,066 --> 00:00:56,299
And the patch. Now for understanding purpose

12
00:00:56,300 --> 00:01:03,300
I'm going to update the patch from zero to one and there will be another version

13
00:01:03,300 --> 00:01:09,033
This is for the application what version of application getting deployed

14
00:01:09,033 --> 00:01:13,966
And whenever I'm making changes to the application, I will be making the incremental changes to this

15
00:01:13,966 --> 00:01:17,266
particular app version. And these are all the mandatory fields.

16
00:01:17,266 --> 00:01:23,399
Now, I am going to update the description as well.

17
00:01:23,400 --> 00:01:30,900
So that we will have clear information when we are listing that chart versions within the repository.

18
00:01:30,900 --> 00:01:39,366
Let me save the changes. Now I am going to package this particular chart.

19
00:01:39,366 --> 00:01:45,599
I will use the command helm package and then the folder where we do have the charts.

20
00:01:45,600 --> 00:01:50,900
Now, if I look into the directory it will create another package with the version appended to that

21
00:01:50,900 --> 00:01:55,200
particular chart name and this is the latest tar file.

22
00:01:55,200 --> 00:02:01,233
Now, I can add this particular chart file into the repository using curl command.

23
00:02:01,233 --> 00:02:09,333
curl command it's going to leverage the rest API and it'll trigger the /API/charts and add the charts into it or manually

24
00:02:09,333 --> 00:02:15,366
I can go ahead and copy this particular charts into the storage location.

25
00:02:15,366 --> 00:02:17,766
So the chart is added using the curl command

26
00:02:17,766 --> 00:02:22,832
data binary and name of the chart and the location where we do have the repository.

27
00:02:22,833 --> 00:02:26,933
Now, let me go ahead and list the repositories.

28
00:02:26,933 --> 00:02:32,499
So if I search the repository only the latest version would get listed. The latest version

29
00:02:32,500 --> 00:02:39,433
It is still 0.1 because it's going to search from the local cache and it needs to update from

30
00:02:39,433 --> 00:02:46,366
the server. Let me go ahead and do an update. So I'll provide the command

31
00:02:46,366 --> 00:02:51,632
helm repo update. So it's going to connect to the server and check

32
00:02:51,633 --> 00:02:54,299
Is there any new charts available

33
00:02:54,300 --> 00:02:58,200
And if it is available, it is going to refresh the local repository.

34
00:02:58,200 --> 00:03:05,066
Now let me go ahead and search the repository.

35
00:03:05,066 --> 00:03:11,632
Here we do have the new version that we had uploaded as a part of the repository and the description

36
00:03:11,633 --> 00:03:19,099
also got updated. In case if I wanted more information about this particular chart that is in terms of what are all the

37
00:03:19,100 --> 00:03:22,133
list or versions that is the older version as well

38
00:03:22,133 --> 00:03:35,433
I can use the option -l, helm search repo -l and name of the repository.

39
00:03:35,433 --> 00:03:43,433
So I do have two versions. The first version is 0.1.0 and the next version is 0.1.1

40
00:03:43,433 --> 00:03:46,799
And I do have the corresponding description as well.

41
00:03:46,800 --> 00:03:49,600
So now it should give better clarity where

42
00:03:49,600 --> 00:03:53,933
I can have a repository and I can add more charts into it.

43
00:03:53,933 --> 00:03:56,499
Now I can add another chart as well.

44
00:03:56,500 --> 00:04:02,366
Let me go ahead and create a new chart added to it so that we can have much better clarity where

45
00:04:02,366 --> 00:04:08,666
the repository can have a collection of charts that we will be doing it in another lecture where

46
00:04:08,666 --> 00:04:16,399
I will create another chart and add it into the repository and verify how a repository can manage multiple charts.

