You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: plugin.rb
    path of file: ./repos/kuby-core/lib/kuby/plugins/rails_app/crdb
    
    the code of the file until where you have to start completion: # typed: ignore

require 'fileutils'
require 'k
    
          def ca_cert
            crdb = self

            @ca_cert ||= Kuby::CertManager.certificate do
              api_version 'cert-manager.io/v1'

              metadata do
                name "#{crdb.base_name}-crdb-ca-cert"
                namespace crdb.kubernetes.namespace.metadata.name
              end

              spec do
                is_ca true
                common_name 'ca'
                secret_name "#{crdb.base_name}-crdb-ca-cert"

                subject do
                  organizations ['Kuby']
                end

                usages ['digital signature', 'key encipherment', 'cert sign', 'crl sign']
                duration "#{5 * 365 * 24}h"  # 5 years validity (in hours)

                private_key do
                  algorithm 'RSA'
                  size 2048
                end

                issuer_ref do
                  name crdb.cluster_issuer.metadata.name
                  kind 'ClusterIssuer'
                  group 'cert-manager.io'
                end
              end
            end
          end