agent/api/container/container.go
func (c *Container) ShouldCreateWithASMSecret() bool {
	c.lock.RLock()
	defer c.lock.RUnlock()

	// Secrets field will be nil if there is no secrets for container
	if c.Secrets == nil {
		return false
	}

	for _, secret := range c.Secrets {
		if secret.Provider == SecretProviderASM {
			return true
		}
	}
	return false
}
func (c *Container) ShouldCreateWithASMSecret() bool {
	c.lock.RLock()
	defer c.lock.RUnlock()

	// Secrets field will be nil if there is no secrets for container
	if c.Secrets == nil {
		return false
	}

	for _, secret := range c.Secrets {
		if secret.Provider == SecretProviderASM {
			return true
		}
	}
	return false
}
func ( c * Container ) ShouldCreateWithASMSecret ( ) bool { c . lock . RLock ( ) defer c . lock . RUnlock ( ) // Secrets field will be nil if there is no secrets for container if c . Secrets == nil { return false } for _ , secret := range c . Secrets { if secret . Provider == SecretProviderASM { return true } } return false }
// ShouldCreateWithASMSecret returns true if this container needs to get secret
// value from AWS Secrets Manager
ShouldCreateWithASMSecret returns true if this container needs to get secret value from AWS Secrets Manager