Documentation ¶
Index ¶
- func InjectIntoDeployEnv(cmd *model.Cmd, imageMapNames []string, ...) error
- func InjectIntoLocalEnv(cmd *v1alpha1.Cmd, imageMapNames []string, ...) (*v1alpha1.Cmd, error)
- func NamesToObjects(ctx context.Context, client ctrlclient.Client, names []string) (map[types.NamespacedName]*v1alpha1.ImageMap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectIntoDeployEnv ¶
func InjectIntoDeployEnv(cmd *model.Cmd, imageMapNames []string, imageMaps map[types.NamespacedName]*v1alpha1.ImageMap) error
Inject completed ImageMaps into the environment of a local process that wants to deploy to a cluster.
Current env vars: TILT_IMAGE_i - The reference to the image #i from the point of view of the cluster container runtime. TILT_IMAGE_MAP_i - The name of the image map #i with the current status of the image.
where an env may depend on arbitrarily many image maps.
func InjectIntoLocalEnv ¶ added in v0.23.5
func InjectIntoLocalEnv(cmd *v1alpha1.Cmd, imageMapNames []string, imageMaps map[types.NamespacedName]*v1alpha1.ImageMap) (*v1alpha1.Cmd, error)
Inject completed ImageMaps into the environment of a local process that wants to build images locally.
Current env vars: TILT_IMAGE_i - The reference to the image #i from the point of view of the local host. TILT_IMAGE_MAP_i - The name of the image map #i with the current status of the image.
where an env may depend on arbitrarily many image maps.
func NamesToObjects ¶ added in v0.26.0
func NamesToObjects(ctx context.Context, client ctrlclient.Client, names []string) (map[types.NamespacedName]*v1alpha1.ImageMap, error)
Populate a map with all the given imagemaps, skipping any that don't exist
Types ¶
This section is empty.