// Code generated by applyconfiguration-gen. DO NOT EDIT.

package v1

// ImageLookupPolicyApplyConfiguration represents a declarative configuration of the ImageLookupPolicy type for use
// with apply.
//
// ImageLookupPolicy describes how an image stream can be used to override the image references
// used by pods, builds, and other resources in a namespace.
type ImageLookupPolicyApplyConfiguration struct {
	// local will change the docker short image references (like "mysql" or
	// "php:latest") on objects in this namespace to the image ID whenever they match
	// this image stream, instead of reaching out to a remote registry. The name will
	// be fully qualified to an image ID if found. The tag's referencePolicy is taken
	// into account on the replaced value. Only works within the current namespace.
	Local *bool `json:"local,omitempty"`
}

// ImageLookupPolicyApplyConfiguration constructs a declarative configuration of the ImageLookupPolicy type for use with
// apply.
func ImageLookupPolicy() *ImageLookupPolicyApplyConfiguration {
	return &ImageLookupPolicyApplyConfiguration{}
}

// WithLocal sets the Local field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Local field is set to the value of the last call.
func (b *ImageLookupPolicyApplyConfiguration) WithLocal(value bool) *ImageLookupPolicyApplyConfiguration {
	b.Local = &value
	return b
}
