Class NamespaceCloud.DescriptorImpl
- Enclosing class:
NamespaceCloud
@Extension
@Symbol("namespace")
public static class NamespaceCloud.DescriptorImpl
extends Descriptor<Cloud>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckRegistryPrefix(String value, String credentialsId) Validates the Project ID, including against the registry itself.doFillCredentialsIdItems(Item item, String credentialsId) doTestConnection(String region, String computeEndpointOverride, String registryPrefix, String credentialsId) Verifies the token can actually reach Namespace, and reports precisely which grants are missing when it cannot.Shown on the configuration page so the operator can mint the right token.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<Cloud>
-
doFillCredentialsIdItems
@POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId) -
doCheckRegistryPrefix
public FormValidation doCheckRegistryPrefix(@QueryParameter String value, @QueryParameter String credentialsId) Validates the Project ID, including against the registry itself.Format errors are caught locally; correctness is checked by asking the registry for a repository known to exist, because the gRPC API is tenant-scoped by the token and cannot reveal a wrong prefix.
-
doFillRegionItems
-
doCheckComputeEndpointOverride
-
doTestConnection
public FormValidation doTestConnection(@QueryParameter String region, @QueryParameter String computeEndpointOverride, @QueryParameter String registryPrefix, @QueryParameter String credentialsId) Verifies the token can actually reach Namespace, and reports precisely which grants are missing when it cannot.The probe is
ListInstances: it is read-only, creates nothing, and needs onlyinstance:list.DescribePolicieswould be the obvious call but it requires an admin-scoped token, so a correctly least-privileged Jenkins token would fail it. -
getNscTokenCommand
Shown on the configuration page so the operator can mint the right token. -
getRequiredGrants
-