@@ -24,22 +24,28 @@ import (
2424// GitRepositorySpec defines the desired state of a Git repository source.
2525type GitRepositorySpec struct {
2626 // URL is the git repository URL.
27+ // If the Repository is private,
28+ // the URL needs to be provided in the form of '[email protected] :...' 2729 // +kubebuilder:validation:Required
2830 URL string `json:"url"`
2931
3032 // Reference is the git reference (branch, tag, or commit).
3133 // +kubebuilder:validation:Required
3234 Reference string `json:"reference"`
3335
34- // ReferencePollInterval polls the defined git repository for changes.
35- // Defaults to 5 min.
36- // +kubebuilder:validation:optional
37- ReferencePollInterval * metav1.Duration `json:"referencePollInterval,omitempty"`
38-
3936 // Path is the path within the repository where the cdk8s application is located.
4037 // Defaults to the root of the repository.
4138 // +kubebuilder:validation:Required
4239 Path string `json:"path"`
40+
41+ // SecretRef references to a secret with the
42+ // needed token, used to pull from a private repository.
43+ // +kubebuilder:validation:optional
44+ SecretRef string `json:"secretRef,omitempty"`
45+
46+ // SecretKey is the key within the SecretRef secret.
47+ // +kubebuilder:validation:optional
48+ SecretKey string `json:"secretKey,omitempty"`
4349}
4450
4551// Cdk8sAppProxySpec defines the desired state of Cdk8sAppProxy.
0 commit comments