Another comments adjustment.

This commit is contained in:
Aleksandr Melnikov
2020-07-22 16:57:19 -07:00
parent fc7cdb5681
commit 8da35695de
3 changed files with 10 additions and 16 deletions

View File

@@ -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)