Skip to content

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

@kavita1205

Description

@kavita1205

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions