Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to generate certificates - undefined method `match' for nil:NilClass (NoMethodError) #675

Open
kavita1205 opened this issue Mar 11, 2024 · 1 comment
Labels

Comments

@kavita1205
Copy link

kavita1205 commented Mar 11, 2024

Describe the Bug

A clear and concise description of what the bug is.

We are trying to use puppetlabs kubernetes module 6.3.0 for below env file but when we are running docker command we are getting below error message:

env file
`
OS=ubuntu
VERSION=1.27.11
CONTAINER_RUNTIME=cri_containerd
CNI_PROVIDER=calico
CNI_PROVIDER_VERSION=3.25
ETCD_INITIAL_CLUSTER=lv1-ml****-l06:10.150..,lv1-ml*-l07:10.150.,lv1-mlk*-l08:10.150..
ETCD_IP="%{networking.ip}"
KUBE_API_ADVERTISE_ADDRESS="10.150.
.*"
INSTALL_DASHBOARD=true

`

Error message
sudo docker run --rm -v $(pwd):/mnt --env-file env puppet/kubetool:6.3.0 /etc/k8s/kube_tool/other_params.rb:9:increate': undefined method match' for nil:NilClass (NoMethodError) from /etc/k8s/kube_tool.rb:67:in build_hiera'
from /etc/k8s/kube_tool.rb:82:in `

'

`

Expected Behavior

A clear and concise description of what you expected to happen.

It should able to generate certificate for kubetool version 6.3.0

Steps to Reproduce

Steps to reproduce the behavior:

  1. Download https://forge.puppet.com/v3/files/puppetlabs-kubernetes-6.3.0.tar.gz
  2. goto dir~/puppetlabs-kubernetes-6.3.0
  3. run docker run --rm -v $(pwd):/mnt --env-file env puppet/kubetool:{$module_version}
    regret to have executed the command:
  4. /etc/k8s/kube_tool/other_params.rb:9:in create': undefined method match' for nil:NilClass (NoMethodError)
    from /etc/k8s/kube_tool.rb:67:in build_hiera' from /etc/k8s/kube_tool.rb:82:in '

Environment

  • Version [e.g. 1.27.0]-
  • Platform [e.g. Ubuntu 18.04]- Ubuntu22.04

Additional Context

Add any other context about the problem here.

@kavita1205 kavita1205 added the bug label Mar 11, 2024
@kavita1205
Copy link
Author

Hi @carabasdaniel can you please help me here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant