INNER CODE UNIT · Go

resolveOutputsConfig

GalleyBytes/terraform-operator · pkg/controllers/terraform_controller.go:499

func resolveOutputsConfig(tf *tfv1beta1.Terraform, versionedName string) outputsConfig {
	config := outputsConfig{
		secretName:       versionedName + "-outputs",
		outputsToInclude: tf.Spec.OutputsToInclude,
		outputsToOmit:    tf.Spec.OutputsToOmit,
	}

	if tf.Spec.OutputsSecret != "" {
		config.secretName = tf.Spec.OutputsSecret
		config.saveOutputs = true
		config.stripGenerationLabelOnSecret = true
	} else if tf.Spec.WriteOutputsToStatus {
		config.saveOutputs = true
	}

	return config
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…