class_docstr: Builds a docker image for a project using Kaniko.
class_docstr_tok: ["Builds","a","docker","image","for","a","project","using","Kaniko","."]
docstr: Initialize a KanikoBuilder.
  
  Arguments:
      environment (AbstractEnvironment): The environment to use.
      registry (AbstractRegistry): The registry to use.
      build_job_name (str, optional): The name of the build job.
      build_context_store (str, optional): The name of the build context store.
      secret_name (str, optional): The name of the secret to use for the registry.
      secret_key (str, optional): The key of the secret to use for the registry.
      verify (bool, optional): Whether to verify the functionality of the builder.
          Defaults to True.
docstr_tok: ["Initialize","a","KanikoBuilder",".","Arguments",":","environment","(","AbstractEnvironment",")",":","The","environment","to","use",".","registry","(","AbstractRegistry",")",":","The","registry","to","use",".","build_job_name","(","str",",","optional",")",":","The","name","of","the","build","job",".","build_context_store","(","str",",","optional",")",":","The","name","of","the","build","context","store",".","secret_name","(","str",",","optional",")",":","The","name","of","the","secret","to","use","for","the","registry",".","secret_key","(","str",",","optional",")",":","The","key","of","the","secret","to","use","for","the","registry",".","verify","(","bool",",","optional",")",":","Whether","to","verify","the","functionality","of","the","builder",".","Defaults","to","True","."]
code: def __init__(
      self,
      environment: AbstractEnvironment,
      registry: AbstractRegistry,
      build_job_name: str = "wandb-launch-container-build",
      build_context_store: str = "",
      secret_name: str = "",
      secret_key: str = "",
      image: str = "gcr.io/kaniko-project/executor:v1.11.0",
  ):
      """Initialize a KanikoBuilder.
  
      Arguments:
          environment (AbstractEnvironment): The environment to use.
          registry (AbstractRegistry): The registry to use.
          build_job_name (str, optional): The name of the build job.
          build_context_store (str, optional): The name of the build context store.
          secret_name (str, optional): The name of the secret to use for the registry.
          secret_key (str, optional): The key of the secret to use for the registry.
          verify (bool, optional): Whether to verify the functionality of the builder.
              Defaults to True.
      """
      if build_context_store is None:
          raise LaunchError(
              "You are required to specify an external build "
              "context store for Kaniko builds. Please specify a  storage url "
              "in the 'build-context-store' field of your builder config."
          )
      self.environment = environment
      self.registry = registry
      self.build_job_name = build_job_name
      self.build_context_store = build_context_store.rstrip("/")
      self.secret_name = secret_name
      self.secret_key = secret_key
      self.image = image
  
imports: import asyncio
  import base64
  import json
  import logging
  import os
  import tarfile
  import tempfile
  import time
  import traceback
  from typing import Optional
  import wandb
  from wandb.sdk.launch.agent.job_status_tracker import JobAndRunStatusTracker
  from wandb.sdk.launch.builder.abstract import AbstractBuilder
  from wandb.sdk.launch.builder.build import registry_from_uri
  from wandb.sdk.launch.environment.abstract import AbstractEnvironment
  from wandb.sdk.launch.environment.azure_environment import AzureEnvironment
  from wandb.sdk.launch.registry.abstract import AbstractRegistry
  from wandb.sdk.launch.registry.azure_container_registry import AzureContainerRegistry
  from wandb.sdk.launch.registry.elastic_container_registry import ElasticContainerRegistry
  from wandb.sdk.launch.registry.google_artifact_registry import GoogleArtifactRegistry
  from wandb.util import get_module
  from .._project_spec import EntryPoint, LaunchProject, create_metadata_file, get_entry_point_command
  from ..errors import LaunchError
  from ..utils import LOG_PREFIX, get_kube_context_and_api_client, sanitize_wandb_api_key, warn_failed_packages_from_build_logs
  from .build import _create_docker_build_ctx, generate_dockerfile, image_tag_from_dockerfile_and_source
  import kubernetes_asyncio
  from kubernetes_asyncio import client
label_desc: Use image node_id 1 to create a new KanikoBuilder object from inherited base classes: AbstractBuilder with example: obj = KanikoBuilder(environment, registry, build_job_name, build_context_store, secret_name, secret_key, image)