mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-27 01:56:03 +08:00
Another comments adjustment.
This commit is contained in:
@@ -209,11 +209,11 @@ type ArtifactRepositoryGCSProvider struct {
|
||||
ServiceAccountJSON string `yaml:"omitempty"`
|
||||
}
|
||||
|
||||
// ArtifactRepositoryProvider is used to setup access into AWS Cloud Storage
|
||||
// or Google Cloud storage.
|
||||
// - The relevant sub-struct (S3, GCS) is unmarshalled into from the cluster configmap.
|
||||
// Right now, either the S3 or GCS struct will be filled in. Multiple cloud
|
||||
// providers are not supported at the same time in params.yaml (manifests deployment).
|
||||
// ArtifactRepositoryProvider is used to setup access into AWS Cloud Storage
|
||||
// or Google Cloud storage.
|
||||
// - The relevant sub-struct (S3, GCS) is unmarshalled into from the cluster configmap.
|
||||
// Right now, either the S3 or GCS struct will be filled in. Multiple cloud
|
||||
// providers are not supported at the same time in params.yaml (manifests deployment).
|
||||
type ArtifactRepositoryProvider struct {
|
||||
S3 *ArtifactRepositoryS3Provider `yaml:"s3,omitempty"`
|
||||
GCS *ArtifactRepositoryGCSProvider `yaml:"gcs,omitempty"`
|
||||
@@ -228,10 +228,8 @@ type ArtifactRepositorySecret struct {
|
||||
Name string `yaml:"name"`
|
||||
}
|
||||
|
||||
/*
|
||||
MarshalToYaml is used by the CLI to generate configmaps during deployment
|
||||
or build operations.
|
||||
*/
|
||||
// MarshalToYaml is used by the CLI to generate configmaps during deployment
|
||||
// or build operations.
|
||||
func (a *ArtifactRepositoryS3Provider) MarshalToYaml() (string, error) {
|
||||
builder := &strings.Builder{}
|
||||
encoder := yaml.NewEncoder(builder)
|
||||
|
Reference in New Issue
Block a user