n.put("nodeName", spec.getNodeName()); n.put("schedulerName", spec.getSchedulerName()); n.put("serviceAccount", spec.getServiceAccount()); n.put("serviceAccountName", spec.getServiceAccountName()); n.put("subdomain", spec.getSubdomain());
String serviceAccount = Strings.isNullOrEmpty(template.getSpec().getServiceAccount()) ? parent.getSpec().getServiceAccount() : template.getSpec().getServiceAccount();
public PodSpecFluentImpl(PodSpec instance){ this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withContainers(instance.getContainers()); this.withDnsPolicy(instance.getDnsPolicy()); this.withHost(instance.getHost()); this.withHostIPC(instance.getHostIPC()); this.withHostNetwork(instance.getHostNetwork()); this.withHostPID(instance.getHostPID()); this.withHostname(instance.getHostname()); this.withImagePullSecrets(instance.getImagePullSecrets()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withRestartPolicy(instance.getRestartPolicy()); this.withSecurityContext(instance.getSecurityContext()); this.withServiceAccount(instance.getServiceAccount()); this.withServiceAccountName(instance.getServiceAccountName()); this.withSubdomain(instance.getSubdomain()); this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); this.withVolumes(instance.getVolumes()); }
public PodSpecBuilder( PodSpecFluent<?> fluent , PodSpec instance ){ this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); fluent.withContainers(instance.getContainers()); fluent.withDnsPolicy(instance.getDnsPolicy()); fluent.withHost(instance.getHost()); fluent.withHostNetwork(instance.getHostNetwork()); fluent.withImagePullSecrets(instance.getImagePullSecrets()); fluent.withNodeSelector(instance.getNodeSelector()); fluent.withRestartPolicy(instance.getRestartPolicy()); fluent.withServiceAccount(instance.getServiceAccount()); fluent.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); fluent.withVolumes(instance.getVolumes()); } public PodSpecBuilder( PodSpec instance ){
public PodSpecBuilder(PodSpec instance,Boolean validationEnabled){ this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withContainers(instance.getContainers()); this.withDnsPolicy(instance.getDnsPolicy()); this.withHost(instance.getHost()); this.withHostIPC(instance.getHostIPC()); this.withHostNetwork(instance.getHostNetwork()); this.withHostPID(instance.getHostPID()); this.withHostname(instance.getHostname()); this.withImagePullSecrets(instance.getImagePullSecrets()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withRestartPolicy(instance.getRestartPolicy()); this.withSecurityContext(instance.getSecurityContext()); this.withServiceAccount(instance.getServiceAccount()); this.withServiceAccountName(instance.getServiceAccountName()); this.withSubdomain(instance.getSubdomain()); this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); this.withVolumes(instance.getVolumes()); this.validationEnabled = validationEnabled; }
public PodSpecBuilder( PodSpecFluent<?> fluent , PodSpec instance ){ this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); fluent.withContainers(instance.getContainers()); fluent.withDnsPolicy(instance.getDnsPolicy()); fluent.withHost(instance.getHost()); fluent.withHostNetwork(instance.getHostNetwork()); fluent.withImagePullSecrets(instance.getImagePullSecrets()); fluent.withNodeSelector(instance.getNodeSelector()); fluent.withRestartPolicy(instance.getRestartPolicy()); fluent.withServiceAccount(instance.getServiceAccount()); fluent.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); fluent.withVolumes(instance.getVolumes()); } public PodSpecBuilder( PodSpec instance ){
public PodSpecBuilder(PodSpecFluent<?> fluent,PodSpec instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); fluent.withContainers(instance.getContainers()); fluent.withDnsPolicy(instance.getDnsPolicy()); fluent.withHost(instance.getHost()); fluent.withHostIPC(instance.getHostIPC()); fluent.withHostNetwork(instance.getHostNetwork()); fluent.withHostPID(instance.getHostPID()); fluent.withHostname(instance.getHostname()); fluent.withImagePullSecrets(instance.getImagePullSecrets()); fluent.withNodeName(instance.getNodeName()); fluent.withNodeSelector(instance.getNodeSelector()); fluent.withRestartPolicy(instance.getRestartPolicy()); fluent.withSecurityContext(instance.getSecurityContext()); fluent.withServiceAccount(instance.getServiceAccount()); fluent.withServiceAccountName(instance.getServiceAccountName()); fluent.withSubdomain(instance.getSubdomain()); fluent.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); fluent.withVolumes(instance.getVolumes()); this.validationEnabled = validationEnabled; } public PodSpecBuilder(PodSpec instance){
public PodSpecBuilder( PodSpec instance ){ this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withContainers(instance.getContainers()); this.withDnsPolicy(instance.getDnsPolicy()); this.withHost(instance.getHost()); this.withHostNetwork(instance.getHostNetwork()); this.withImagePullSecrets(instance.getImagePullSecrets()); this.withNodeSelector(instance.getNodeSelector()); this.withRestartPolicy(instance.getRestartPolicy()); this.withServiceAccount(instance.getServiceAccount()); this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); this.withVolumes(instance.getVolumes()); }
public PodSpecBuilder( PodSpec instance ){ this.fluent = this; this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); this.withContainers(instance.getContainers()); this.withDnsPolicy(instance.getDnsPolicy()); this.withHost(instance.getHost()); this.withHostNetwork(instance.getHostNetwork()); this.withImagePullSecrets(instance.getImagePullSecrets()); this.withNodeSelector(instance.getNodeSelector()); this.withRestartPolicy(instance.getRestartPolicy()); this.withServiceAccount(instance.getServiceAccount()); this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); this.withVolumes(instance.getVolumes()); }