1
00:00:00,000 --> 00:00:09,633
Hi, Now, I do have the GitHub repository with the chart package and index.yaml file

2
00:00:09,633 --> 00:00:12,499
And that is committed and it is visible over here.

3
00:00:12,500 --> 00:00:18,166
Now, I am going to use this specific GitHub repository and create a chart package, install them and

4
00:00:18,166 --> 00:00:23,699
test it out. If I get into the readme.md file

5
00:00:23,700 --> 00:00:30,000
I do have an option to visualize this as a raw format and without that specific file I can get

6
00:00:30,000 --> 00:00:36,366
the raw folder location. This is what I'm going to use it as a repo

7
00:00:36,366 --> 00:00:44,466
url. Now, I'm going to add the repo.

8
00:00:44,466 --> 00:00:51,332
Let me list the repos available helm repo list.
I do have two repo

9
00:00:51,333 --> 00:00:54,333
Now, I'm going to add this specific repo as well

10
00:00:54,333 --> 00:00:59,133
Let me go ahead and add the repo. I'll use the command helm repo add

11
00:00:59,133 --> 00:01:01,333
And I can pass the username and password.

12
00:01:01,333 --> 00:01:06,799
with the options --username and --password

13
00:01:06,800 --> 00:01:09,566
repo add and I'll provide the user name.

14
00:01:09,566 --> 00:01:13,866
I'll add the user name over here --password.

15
00:01:13,866 --> 00:01:25,799
I'll mention the access token then name of the repository and the repo link. So repo link will get added.

16
00:01:25,800 --> 00:01:31,200
I can list the repos and the new repo that got added that will also be visible.

17
00:01:31,200 --> 00:01:37,766
Now, I can search the charts available within this specific repo using the common helm search repo

18
00:01:37,766 --> 00:01:45,932
And then name of the repo. yes, I do have one chart that we created and added as a part of the Github repository.

19
00:01:45,933 --> 00:01:51,899
Now I can go ahead and add any number of charts into the repository and every time whenever I am

20
00:01:51,900 --> 00:02:00,433
adding it, I need to update the index.yaml file. So for quick demo

21
00:02:00,433 --> 00:02:07,599
Let me go ahead and create another chart with the name getrepotest2

22
00:02:07,600 --> 00:02:22,200
So this is the folder location. I'm going to do the package.

23
00:02:22,200 --> 00:02:30,366
Here I am going to do the package, helm package and then the repository path.

24
00:02:30,366 --> 00:02:37,066
So a new file will get created. So this is what the new file that got created.

25
00:02:37,066 --> 00:02:44,099
Now I need to update the index file so I'll use the command helm repo index dot

26
00:02:44,100 --> 00:02:52,100
So the index file will get updated. Here I do have two entries for the two repositories.

27
00:02:52,100 --> 00:02:56,133
Now these two files needs to added into the github repository.

28
00:02:56,133 --> 00:03:01,899
I can use the command git add so that it will get added to the local repository.

29
00:03:01,900 --> 00:03:10,833
commit them with the message. So two files got added and I'm going to push this into the master.

30
00:03:10,833 --> 00:03:15,899
If I push it the new changed charts will also get added.

31
00:03:15,900 --> 00:03:20,333
Let me provide the user name and the token.

32
00:03:20,333 --> 00:03:25,133
Now let me go ahead and verify the github page.

33
00:03:25,133 --> 00:03:29,499
I do have 2 charts and the index.yaml file should have 2 entries.

34
00:03:29,500 --> 00:03:35,966
Now I can go ahead and do the update of the repository over here helm repo update

35
00:03:35,966 --> 00:03:38,332
So it's going to connect to the repositories and check

36
00:03:38,333 --> 00:03:44,966
Is there any update if yes, it's going to keep itself up to date with the local cache after update

37
00:03:44,966 --> 00:03:49,966
I can search the repository and I should have 2 charts within it.

38
00:03:49,966 --> 00:03:57,599
Yes, I do have 2 charts gitrepotest and gitrepotest2, now I can make use of any of this charts and

39
00:03:57,600 --> 00:04:01,500
do the deployment of kubernetes resources.

40
00:04:01,500 --> 00:04:04,166
Now, let me go ahead and clean up the

41
00:04:04,166 --> 00:04:11,599
GitHub repository. As a part of the GitHub repository if you get into the settings

42
00:04:11,600 --> 00:04:19,266
developer settings personal access token. I do have 2 access token in case if you feel the access

43
00:04:19,266 --> 00:04:24,699
token was compromised for some reason you can go ahead and regenerate the token. A new token

44
00:04:24,700 --> 00:04:28,033
will be issued and we can start using the new token.

45
00:04:28,033 --> 00:04:34,633
And if the purpose of that specific token is done, we can go ahead and delete them as well

46
00:04:34,633 --> 00:04:40,999
If you remember within the demo I used the token of this particular access token as well

47
00:04:41,000 --> 00:04:46,466
So I will be regenerating it for my future use. So in a quick summary

48
00:04:46,466 --> 00:04:49,099
We have seen how to add the repository

49
00:04:49,100 --> 00:04:57,000
url from the GitHub and do the update as well as add more charts into the existing repository

50
00:04:57,000 --> 00:05:00,333
and search for the repository after doing the update.

