add substitution into k8 and fix loading token

This commit is contained in:
Maidul Islam
2022-12-15 22:25:44 -05:00
parent 72bf160f2e
commit 7fe2e15a98
6 changed files with 122 additions and 13 deletions
@@ -11,7 +11,7 @@ type KubeSecretReference struct {
// The name space where the Kubernetes Secret is located
// +kubebuilder:validation:Required
SecretNamespace string `json:"secretNamespace,omitempty"`
SecretNamespace string `json:"secretNamespace"`
}
// InfisicalSecretSpec defines the desired state of InfisicalSecret
@@ -21,11 +21,11 @@ type InfisicalSecretSpec struct {
// The Infisical project id
// +kubebuilder:validation:Required
ProjectId string `json:"projectId,omitempty"`
ProjectId string `json:"projectId"`
// The Infisical environment such as dev, prod, testing
// +kubebuilder:validation:Required
Environment string `json:"environment,omitempty"`
Environment string `json:"environment"`
}
// InfisicalSecretStatus defines the observed state of InfisicalSecret