Skip to content

Commit

Permalink
Use the correct NoExternalUse restricted class
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossg committed Aug 10, 2017
1 parent fe27d7f commit ec238be
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.csanchez.jenkins.plugins.kubernetes;

import hudson.tools.ToolLocationNodeProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -17,7 +15,7 @@
import org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume;
import org.csanchez.jenkins.plugins.kubernetes.volumes.workspace.WorkspaceVolume;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.DoNotUse;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;

Expand All @@ -28,8 +26,9 @@
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor;
import hudson.model.Label;
import hudson.model.labels.LabelAtom;
import hudson.model.Node;
import hudson.model.labels.LabelAtom;
import hudson.tools.ToolLocationNodeProperty;

/**
* Kubernetes Pod Template
Expand Down Expand Up @@ -135,7 +134,7 @@ public PodTemplate(String image, List<? extends PodVolume> volumes) {
}
}

@Restricted(DoNotUse.class) // testing only
@Restricted(NoExternalUse.class) // testing only
PodTemplate(String name, List<? extends PodVolume> volumes, List<? extends ContainerTemplate> containers) {
this.name = name;
this.volumes.addAll(volumes);
Expand Down

0 comments on commit ec238be

Please sign in to comment.