@Override protected Account buildAccount(String accountName) { DCOSAccount account = (DCOSAccount) new DCOSAccount().setName(accountName); dockerRegistries.forEach(registryName -> account.getDockerRegistries().add(new DockerRegistryReference().setAccountName(registryName))); if (!isNull(serviceKeyFile) && !isNull(password)) { throw new IllegalArgumentException("Only one of --service-key-file or --password may be set"); } account.setClusters(Lists.newArrayList(new ClusterCredential(cluster, uid, password, serviceKeyFile))); return account; }
@Override protected Account buildAccount(String accountName) { DCOSAccount account = (DCOSAccount) new DCOSAccount().setName(accountName); dockerRegistries.forEach(registryName -> account.getDockerRegistries().add(new DockerRegistryReference().setAccountName(registryName))); if (!isNull(serviceKeyFile) && !isNull(password)) { throw new IllegalArgumentException("Only one of --service-key-file or --password may be set"); } account.setClusters(Lists.newArrayList(new ClusterCredential(cluster, uid, password, serviceKeyFile))); return account; }
removeDockerRegistry) .stream() .map(s -> new DockerRegistryReference().setAccountName(s)) .collect(Collectors.toList());
removeDockerRegistry) .stream() .map(s -> new DockerRegistryReference().setAccountName(s)) .collect(Collectors.toList());
.map(s -> new DockerRegistryReference().setAccountName(s)) .collect(Collectors.toList());
@Override protected Account buildAccount(String accountName) { KubernetesAccount account = (KubernetesAccount) new KubernetesAccount().setName(accountName); account.setContext(context); account.setKubeconfigFile(kubeconfigFile); account.setNamespaces(namespaces); account.setOmitNamespaces(omitNamespaces); account.setKinds(kinds); account.setOmitKinds(omitKinds); account.setConfigureImagePullSecrets(configureImagePullSecrets); account.setServiceAccount(serviceAccount); dockerRegistries.forEach(registryName -> account.getDockerRegistries().add(new DockerRegistryReference().setAccountName(registryName))); account.setOAuthServiceAccount(oAuthServiceAccount); account.setOAuthScopes(oAuthScopes); account.setNamingStrategy(namingStrategy); account.setSkin(skin); return account; }
.map(s -> new DockerRegistryReference().setAccountName(s)) .collect(Collectors.toList());
@Override protected Account buildAccount(String accountName) { KubernetesAccount account = (KubernetesAccount) new KubernetesAccount().setName(accountName); account.setContext(context); account.setKubeconfigFile(kubeconfigFile); account.setNamespaces(namespaces); account.setOmitNamespaces(omitNamespaces); account.setKinds(kinds); account.setOmitKinds(omitKinds); account.setConfigureImagePullSecrets(configureImagePullSecrets); account.setServiceAccount(serviceAccount); dockerRegistries.forEach(registryName -> account.getDockerRegistries().add(new DockerRegistryReference().setAccountName(registryName))); account.setOAuthServiceAccount(oAuthServiceAccount); account.setOAuthScopes(oAuthScopes); account.setNamingStrategy(namingStrategy); account.setSkin(skin); account.setOnlySpinnakerManaged(onlySpinnakerManaged); account.setCheckPermissionsOnStartup(checkPermissionsOnStartup); return account; }