mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
make hostAPI optional
This commit is contained in:
@@ -4,13 +4,6 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Authentication struct {
|
|
||||||
// +kubebuilder:validation:Optional
|
|
||||||
ServiceAccount ServiceAccountDetails `json:"serviceAccount"`
|
|
||||||
// +kubebuilder:validation:Optional
|
|
||||||
ServiceToken ServiceTokenDetails `json:"serviceToken"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type ServiceTokenDetails struct {
|
type ServiceTokenDetails struct {
|
||||||
ServiceTokenSecretReference KubeSecretReference `json:"serviceTokenSecretReference"`
|
ServiceTokenSecretReference KubeSecretReference `json:"serviceTokenSecretReference"`
|
||||||
}
|
}
|
||||||
@@ -21,6 +14,13 @@ type ServiceAccountDetails struct {
|
|||||||
EnvironmentName string `json:"environmentName"`
|
EnvironmentName string `json:"environmentName"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Authentication struct {
|
||||||
|
// +kubebuilder:validation:Optional
|
||||||
|
ServiceAccount ServiceAccountDetails `json:"serviceAccount"`
|
||||||
|
// +kubebuilder:validation:Optional
|
||||||
|
ServiceToken ServiceTokenDetails `json:"serviceToken"`
|
||||||
|
}
|
||||||
|
|
||||||
type KubeSecretReference struct {
|
type KubeSecretReference struct {
|
||||||
// The name of the Kubernetes Secret
|
// The name of the Kubernetes Secret
|
||||||
// +kubebuilder:validation:Required
|
// +kubebuilder:validation:Required
|
||||||
@@ -43,7 +43,8 @@ type InfisicalSecretSpec struct {
|
|||||||
ManagedSecretReference KubeSecretReference `json:"managedSecretReference"`
|
ManagedSecretReference KubeSecretReference `json:"managedSecretReference"`
|
||||||
|
|
||||||
// Infisical host to pull secrets from
|
// Infisical host to pull secrets from
|
||||||
HostAPI string `json:"hostAPI,omitempty"`
|
// +kubebuilder:validation:Optional
|
||||||
|
HostAPI string `json:"hostAPI"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InfisicalSecretStatus defines the observed state of InfisicalSecret
|
// InfisicalSecretStatus defines the observed state of InfisicalSecret
|
||||||
|
|||||||
Reference in New Issue
Block a user