/*
 * Copyright 2019 Google, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package com.netflix.spinnaker.clouddriver.kubernetes.config;

import com.netflix.spinnaker.clouddriver.security.ProviderVersion;
import com.netflix.spinnaker.fiat.model.resources.Permissions;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;

@Data
public class KubernetesConfigurationProperties {
  private static final int DEFAULT_CACHE_THREADS = 1;
  private List<ManagedAccount> accounts = new ArrayList<>();

  @Data
  public static class ManagedAccount {
    private String name;
    private ProviderVersion providerVersion = ProviderVersion.v2;
    private String environment;
    private String accountType;
    private String context;
    private String cluster;
    private String oAuthServiceAccount;
    private List<String> oAuthScopes;
    private String user;
    private String kubeconfigFile;
    private String kubeconfigContents;
    private String kubectlExecutable;
    private Integer kubectlRequestTimeoutSeconds;
    private boolean serviceAccount = false;
    private boolean configureImagePullSecrets = true;
    private List<String> namespaces = new ArrayList<>();
    private List<String> omitNamespaces = new ArrayList<>();
    private int cacheThreads = DEFAULT_CACHE_THREADS;
    private List<LinkedDockerRegistryConfiguration> dockerRegistries;
    private List<String> requiredGroupMembership = new ArrayList<>();
    private Permissions.Builder permissions = new Permissions.Builder();
    private String namingStrategy = "kubernetesAnnotations";
    private boolean debug = false;
    private boolean metrics = true;
    private boolean checkPermissionsOnStartup = true;
    private List<CustomKubernetesResource> customResources = new ArrayList<>();
    private List<KubernetesCachingPolicy> cachingPolicies = new ArrayList<>();
    private List<String> kinds = new ArrayList<>();
    private List<String> omitKinds = new ArrayList<>();
    private boolean onlySpinnakerManaged = false;
    private boolean liveManifestCalls = false;
    private Long cacheIntervalSeconds;
  }
}

@@ -1259,36 +1259,8 @@
 xt;%0A
-    private String cluster;%0A
     
@@ -1291,24 +1291,24 @@
 iceAccount;%0A
+
     private 
@@ -1337,33 +1337,8 @@
 es;%0A
-    private String user;%0A
     
@@ -1543,62 +1543,8 @@
 se;%0A
-    private boolean configureImagePullSecrets = true;%0A
     
@@ -1649,32 +1649,32 @@
  ArrayList%3C%3E();%0A
+
     private int 
@@ -1715,78 +1715,8 @@
 DS;%0A
-    private List%3CLinkedDockerRegistryConfiguration%3E dockerRegistries;%0A
     

Remove unused fields (#4684)