Skip to content

Commit 0e3623c

Browse files
admontscotty-c
authored andcommitted
Update gpg key fingerprint used by K8s Ubuntu repo (#90)
1 parent 970891b commit 0e3623c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

manifests/repos.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
repos => 'main',
1212
release => 'kubernetes-xenial',
1313
key => {
14-
'id' => 'D0BC747FD8CAF7117500D6FA3746C208A7317B0F',
14+
'id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB',
1515
'source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg',
1616
},
1717
}

spec/classes/repos_spec.rb

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,21 @@
1818

1919
let(:params) { { 'container_runtime' => 'docker' } }
2020

21-
it { should contain_apt__source('kubernetes') }
21+
it { should contain_apt__source('kubernetes').with(
22+
:ensure => 'present',
23+
:location => 'http://apt.kubernetes.io',
24+
:repos => 'main',
25+
:release => 'kubernetes-xenial',
26+
:key => { 'id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB', 'source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg' }
27+
) }
28+
2229
it { should contain_apt__source('docker').with(
23-
:ensure => 'present',
24-
:location => 'https://apt.dockerproject.org/repo',
25-
:repos => 'main',
26-
:release => 'ubuntu-xenial',
27-
:key => { 'id' => '58118E89F3A912897C070ADBF76221572C52609D', 'source' => 'https://apt.dockerproject.org/gpg' }
28-
) }
30+
:ensure => 'present',
31+
:location => 'https://apt.dockerproject.org/repo',
32+
:repos => 'main',
33+
:release => 'ubuntu-xenial',
34+
:key => { 'id' => '58118E89F3A912897C070ADBF76221572C52609D', 'source' => 'https://apt.dockerproject.org/gpg' }
35+
) }
2936

3037
end
3138

0 commit comments

Comments
 (0)