Exemplo n.º 1
0
 public ArgoApplicationSyncOperation(
     List <ArgoApplicationRelatedResource> resources,
     string revision,
     ApplicationSource source
     ) : base(resources, revision, source)
 {
 }
 public ArgoApplicationSyncResult(
     List <ArgoApplicationRelatedResource> resources,
     string revision,
     ApplicationSource source
     )
 {
     Resources = resources;
     Revision  = revision;
     Source    = source;
 }
Exemplo n.º 3
0
 protected bool Equals(ApplicationSource other)
 {
     return(Chart == other.Chart &&
            Equals(Directory, other.Directory) &&
            Equals(Helm, other.Helm) &&
            // Equals(Ksonnet, other.Ksonnet) &&
            // Equals(Kustomize, other.Kustomize) &&
            // Equals(Plugin, other.Plugin) &&
            Path == other.Path &&
            RepoUrl == other.RepoUrl &&
            TargetRevision == other.TargetRevision);
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ApplicationDestination != null ? ApplicationDestination.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IgnoreDifferences != null ? IgnoreDifferences.GetCollectionHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Info != null ? Info.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Project != null ? Project.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ApplicationSource != null ? ApplicationSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ArgoApplicationSyncPolicy != null ? ArgoApplicationSyncPolicy.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 5
0
 public ApplicationSpec(
     ApplicationDestination applicationDestination,
     List <object> ignoreDifferences,
     List <BaseNameValueModel> info,
     string project,
     ApplicationSource applicationSource,
     ArgoApplicationSyncPolicy argoApplicationSyncPolicy
     )
 {
     ApplicationDestination = applicationDestination;
     IgnoreDifferences      = ignoreDifferences;
     Info                      = info;
     Project                   = project;
     ApplicationSource         = applicationSource;
     ArgoApplicationSyncPolicy = argoApplicationSyncPolicy;
 }