-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Manabu Mccloskey <[email protected]>
- Loading branch information
Showing
15 changed files
with
692 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package v1alpha1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
// +kubebuilder:object:root=true | ||
// +kubebuilder:subresource:status | ||
type CustomPackage struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec CustomPackageSpec `json:"spec,omitempty"` | ||
Status CustomPackageStatus `json:"status,omitempty"` | ||
} | ||
|
||
// +kubebuilder:object:root=true | ||
type CustomPackageList struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ListMeta `json:"metadata,omitempty"` | ||
Items []CustomPackage `json:"items"` | ||
} | ||
|
||
// CustomPackageSpec controls the installation of the custom applications. | ||
type CustomPackageSpec struct { | ||
//// Type specifies what kind of package this is. local means local files specified in the Directory field must be synced to a Git Repository | ||
//Type string `json:"type"` | ||
// Replicate specifies whether to replicate remote or local contents to the local gitea server. | ||
Replicate bool `json:"replicate"` | ||
// GitServerURL specifies the base URL for the git server for API calls. for example, http://gitea.cnoe.localtest.me:8880 | ||
GitServerURL string `json:"gitServerURL"` | ||
GitServerAuthSecretRef SecretReference `json:"gitServerAuthSecretRef"` | ||
|
||
ArgoCD ArgoCDPackageSpec `json:"argoCD,omitempty"` | ||
} | ||
|
||
type ArgoCDPackageSpec struct { | ||
// ApplicationFile specifies the absolute path to the ArgoCD application file | ||
ApplicationFile string `json:"applicationFile"` | ||
Name string `json:"name"` | ||
Namespace string `json:"namespace"` | ||
} | ||
|
||
type CustomPackageStatus struct { | ||
Synced bool `json:"synced,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.