Skip to content

Commit

Permalink
Remove superfluous dash in exec name
Browse files Browse the repository at this point in the history
  • Loading branch information
ananace committed Apr 12, 2023
1 parent 2aa8c65 commit 49118e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions manifests/server/wait_online.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @summary Creates a dummy exec to allow deferring applies until the Kubernetes API server has started
class k8s::server::wait_online {
# Wait up to 30 seconds for kube-apiserver to start
exec { 'k8s-apiserver wait online':
exec { 'k8s apiserver wait online':
command => 'kubectl --kubeconfig /root/.kube/config version',
path => $facts['path'],
refreshonly => true,
Expand All @@ -10,7 +10,7 @@
}

# Require possibly managed components before checking online state
Kubeconfig <| title == '/root/.kube/config' |> -> Exec['k8s-apiserver wait online']
K8s::Binary <| title == 'kubectl' |> -> Exec['k8s-apiserver wait online']
Service <| title == 'kube-apiserver' |> ~> Exec['k8s-apiserver wait online']
Kubeconfig <| title == '/root/.kube/config' |> -> Exec['k8s apiserver wait online']
K8s::Binary <| title == 'kubectl' |> -> Exec['k8s apiserver wait online']
Service <| title == 'kube-apiserver' |> ~> Exec['k8s apiserver wait online']
}
2 changes: 1 addition & 1 deletion spec/classes/server/wait_online_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class { '::k8s::server::apiserver':
it { is_expected.to compile }

it do
is_expected.to contain_exec('k8s-apiserver wait online').
is_expected.to contain_exec('k8s apiserver wait online').
that_requires('Kubeconfig[/root/.kube/config]').
that_requires('K8s::Binary[kubectl]').
that_requires('Service[kube-apiserver]')
Expand Down

0 comments on commit 49118e1

Please sign in to comment.