Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
05da851e
Unverified
Commit
05da851e
authored
6 years ago
by
Adam Reese
Browse files
Options
Download
Patches
Plain Diff
fix(hapi): typo in struct json tags
parent
19398a2e
main
Release
add-codeql
dependabot/go_modules/github.com/docker/distribution-2.8.2incompatible
dependabot/go_modules/github.com/lib/pq-1.10.9
dependabot/go_modules/github.com/rubenv/sql-migrate-1.4.0
dependabot/go_modules/golang.org/x/crypto-0.9.0
dependabot/go_modules/golang.org/x/term-0.8.0
dependabot/go_modules/k8s.io/klog/v2-2.100.1
feat-v3/event-emitter-lua
release-3.0
release-3.1
release-3.10
release-3.11
release-3.12
release-3.2
release-3.3
release-3.4
release-3.5
release-3.6
release-3.6.1
release-3.6.2
release-3.7
release-3.8
release-3.9
release-v3.0.0-beta.4
v3.12.0
v3.12.0-rc.1
v3.12.0-dev.1
v3.11.3
v3.11.2
v3.11.1
v3.11.0
v3.11.0-rc.2
v3.11.0-rc.1
v3.10.3
v3.10.2
v3.10.1
v3.10.0
v3.10.0-rc.1
v3.9.4
v3.9.3
v3.9.2
v3.9.1
v3.9.0
v3.9.0-rc.1
v3.8.2
v3.8.1
v3.8.0
v3.8.0-rc.2
v3.8.0-rc.1
v3.7.2
v3.7.1
v3.7.0
v3.7.0-rc.3
v3.7.0-rc.2
v3.7.0-rc.1
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.6.0-rc.1
v3.5.4
v3.5.3
v3.5.2
v3.5.1
v3.5.0
v3.5.0-rc.2
v3.5.0-rc.1
v3.4.2
v3.4.1
v3.4.0
v3.4.0-rc.1
v3.3.4
v3.3.3
v3.3.2
v3.3.1
v3.3.0
v3.3.0-rc.2
v3.3.0-rc.1
v3.2.4
v3.2.3
v3.2.2
v3.2.1
v3.2.0
v3.2.0-rc.1
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.1.0-rc.3
v3.1.0-rc.2
v3.1.0-rc.1
v3.0.3
v3.0.2
v3.0.1
v3.0.0
v3.0.0-rc.4
v3.0.0-rc.3
v3.0.0-rc.2
v3.0.0-rc.1
v3.0.0-beta.5
v3.0.0-beta.4
v3.0.0-beta.3
v3.0.0-beta.2
v3.0.0-beta.1
v3.0.0-alpha.2
v3.0.0-alpha.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/hapi/tiller.go
+53
-53
pkg/hapi/tiller.go
with
53 additions
and
53 deletions
+53
-53
pkg/hapi/tiller.go
+
53
−
53
View file @
05da851e
...
@@ -59,35 +59,35 @@ func (x ListSortOrder) String() string { return sortOrderNames[x] }
...
@@ -59,35 +59,35 @@ func (x ListSortOrder) String() string { return sortOrderNames[x] }
// Releases can be sorted according to a few pre-determined sort stategies.
// Releases can be sorted according to a few pre-determined sort stategies.
type
ListReleasesRequest
struct
{
type
ListReleasesRequest
struct
{
// Limit is the maximum number of releases to be returned.
// Limit is the maximum number of releases to be returned.
Limit
int64
`json:"limit,omit
y
empty"`
Limit
int64
`json:"limit,omitempty"`
// Offset is the last release name that was seen. The next listing
// Offset is the last release name that was seen. The next listing
// operation will start with the name after this one.
// operation will start with the name after this one.
// Example: If list one returns albert, bernie, carl, and sets 'next: dennis'.
// Example: If list one returns albert, bernie, carl, and sets 'next: dennis'.
// dennis is the offset. Supplying 'dennis' for the next request should
// dennis is the offset. Supplying 'dennis' for the next request should
// cause the next batch to return a set of results starting with 'dennis'.
// cause the next batch to return a set of results starting with 'dennis'.
Offset
string
`json:"offset,omit
y
empty"`
Offset
string
`json:"offset,omitempty"`
// SortBy is the sort field that the ListReleases server should sort data before returning.
// SortBy is the sort field that the ListReleases server should sort data before returning.
SortBy
ListSortBy
`json:"sort_by,omit
y
empty"`
SortBy
ListSortBy
`json:"sort_by,omitempty"`
// Filter is a regular expression used to filter which releases should be listed.
// Filter is a regular expression used to filter which releases should be listed.
//
//
// Anything that matches the regexp will be included in the results.
// Anything that matches the regexp will be included in the results.
Filter
string
`json:"filter,omit
y
empty"`
Filter
string
`json:"filter,omitempty"`
// SortOrder is the ordering directive used for sorting.
// SortOrder is the ordering directive used for sorting.
SortOrder
ListSortOrder
`json:"sort_order,omit
y
empty"`
SortOrder
ListSortOrder
`json:"sort_order,omitempty"`
StatusCodes
[]
release
.
StatusCode
`json:"status_codes,omit
y
empty"`
StatusCodes
[]
release
.
StatusCode
`json:"status_codes,omitempty"`
}
}
// ListReleasesResponse is a list of releases.
// ListReleasesResponse is a list of releases.
type
ListReleasesResponse
struct
{
type
ListReleasesResponse
struct
{
// Count is the expected total number of releases to be returned.
// Count is the expected total number of releases to be returned.
Count
int64
`json:"count,omit
y
empty"`
Count
int64
`json:"count,omitempty"`
// Next is the name of the next release. If this is other than an empty
// Next is the name of the next release. If this is other than an empty
// string, it means there are more results.
// string, it means there are more results.
Next
string
`json:"next,omit
y
empty"`
Next
string
`json:"next,omitempty"`
// Total is the total number of queryable releases.
// Total is the total number of queryable releases.
Total
int64
`json:"total,omit
y
empty"`
Total
int64
`json:"total,omitempty"`
// Releases is the list of found release objects.
// Releases is the list of found release objects.
Releases
[]
*
release
.
Release
`json:"releases,omit
y
empty"`
Releases
[]
*
release
.
Release
`json:"releases,omitempty"`
}
}
// GetReleaseStatusRequest is a request to get the status of a release.
// GetReleaseStatusRequest is a request to get the status of a release.
...
@@ -111,126 +111,126 @@ type GetReleaseStatusResponse struct {
...
@@ -111,126 +111,126 @@ type GetReleaseStatusResponse struct {
// GetReleaseContentRequest is a request to get the contents of a release.
// GetReleaseContentRequest is a request to get the contents of a release.
type
GetReleaseContentRequest
struct
{
type
GetReleaseContentRequest
struct
{
// The name of the release
// The name of the release
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// Version is the version of the release
// Version is the version of the release
Version
int
`json:"version,omit
y
empty"`
Version
int
`json:"version,omitempty"`
}
}
// UpdateReleaseRequest updates a release.
// UpdateReleaseRequest updates a release.
type
UpdateReleaseRequest
struct
{
type
UpdateReleaseRequest
struct
{
// The name of the release
// The name of the release
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// Chart is the protobuf representation of a chart.
// Chart is the protobuf representation of a chart.
Chart
*
chart
.
Chart
`json:"chart,omit
y
empty"`
Chart
*
chart
.
Chart
`json:"chart,omitempty"`
// Values is a string containing (unparsed) YAML values.
// Values is a string containing (unparsed) YAML values.
Values
[]
byte
`json:"values,omit
y
empty"`
Values
[]
byte
`json:"values,omitempty"`
// dry_run, if true, will run through the release logic, but neither create
// dry_run, if true, will run through the release logic, but neither create
DryRun
bool
`json:"dry_run,omit
y
empty"`
DryRun
bool
`json:"dry_run,omitempty"`
// DisableHooks causes the server to skip running any hooks for the upgrade.
// DisableHooks causes the server to skip running any hooks for the upgrade.
DisableHooks
bool
`json:"disable_hooks,omit
y
empty"`
DisableHooks
bool
`json:"disable_hooks,omitempty"`
// Performs pods restart for resources if applicable
// Performs pods restart for resources if applicable
Recreate
bool
`json:"recreate,omit
y
empty"`
Recreate
bool
`json:"recreate,omitempty"`
// timeout specifies the max amount of time any kubernetes client command can run.
// timeout specifies the max amount of time any kubernetes client command can run.
Timeout
int64
`json:"timeout,omit
y
empty"`
Timeout
int64
`json:"timeout,omitempty"`
// ResetValues will cause Tiller to ignore stored values, resetting to default values.
// ResetValues will cause Tiller to ignore stored values, resetting to default values.
ResetValues
bool
`json:"reset_values,omit
y
empty"`
ResetValues
bool
`json:"reset_values,omitempty"`
// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
// before marking the release as successful. It will wait for as long as timeout
// before marking the release as successful. It will wait for as long as timeout
Wait
bool
`json:"wait,omit
y
empty"`
Wait
bool
`json:"wait,omitempty"`
// ReuseValues will cause Tiller to reuse the values from the last release.
// ReuseValues will cause Tiller to reuse the values from the last release.
// This is ignored if reset_values is set.
// This is ignored if reset_values is set.
ReuseValues
bool
`json:"reuse_values,omit
y
empty"`
ReuseValues
bool
`json:"reuse_values,omitempty"`
// Force resource update through delete/recreate if needed.
// Force resource update through delete/recreate if needed.
Force
bool
`json:"force,omit
y
empty"`
Force
bool
`json:"force,omitempty"`
}
}
type
RollbackReleaseRequest
struct
{
type
RollbackReleaseRequest
struct
{
// The name of the release
// The name of the release
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// dry_run, if true, will run through the release logic but no create
// dry_run, if true, will run through the release logic but no create
DryRun
bool
`json:"dry_run,omit
y
empty"`
DryRun
bool
`json:"dry_run,omitempty"`
// DisableHooks causes the server to skip running any hooks for the rollback
// DisableHooks causes the server to skip running any hooks for the rollback
DisableHooks
bool
`json:"disable_hooks,omit
y
empty"`
DisableHooks
bool
`json:"disable_hooks,omitempty"`
// Version is the version of the release to deploy.
// Version is the version of the release to deploy.
Version
int
`json:"version,omit
y
empty"`
Version
int
`json:"version,omitempty"`
// Performs pods restart for resources if applicable
// Performs pods restart for resources if applicable
Recreate
bool
`json:"recreate,omit
y
empty"`
Recreate
bool
`json:"recreate,omitempty"`
// timeout specifies the max amount of time any kubernetes client command can run.
// timeout specifies the max amount of time any kubernetes client command can run.
Timeout
int64
`json:"timeout,omit
y
empty"`
Timeout
int64
`json:"timeout,omitempty"`
// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
// before marking the release as successful. It will wait for as long as timeout
// before marking the release as successful. It will wait for as long as timeout
Wait
bool
`json:"wait,omit
y
empty"`
Wait
bool
`json:"wait,omitempty"`
// Force resource update through delete/recreate if needed.
// Force resource update through delete/recreate if needed.
Force
bool
`json:"force,omit
y
empty"`
Force
bool
`json:"force,omitempty"`
}
}
// InstallReleaseRequest is the request for an installation of a chart.
// InstallReleaseRequest is the request for an installation of a chart.
type
InstallReleaseRequest
struct
{
type
InstallReleaseRequest
struct
{
// Chart is the protobuf representation of a chart.
// Chart is the protobuf representation of a chart.
Chart
*
chart
.
Chart
`json:"chart,omit
y
empty"`
Chart
*
chart
.
Chart
`json:"chart,omitempty"`
// Values is a string containing (unparsed) YAML values.
// Values is a string containing (unparsed) YAML values.
Values
[]
byte
`json:"values,omit
y
empty"`
Values
[]
byte
`json:"values,omitempty"`
// DryRun, if true, will run through the release logic, but neither create
// DryRun, if true, will run through the release logic, but neither create
// a release object nor deploy to Kubernetes. The release object returned
// a release object nor deploy to Kubernetes. The release object returned
// in the response will be fake.
// in the response will be fake.
DryRun
bool
`json:"dry_run,omit
y
empty"`
DryRun
bool
`json:"dry_run,omitempty"`
// Name is the candidate release name. This must be unique to the
// Name is the candidate release name. This must be unique to the
// namespace, otherwise the server will return an error. If it is not
// namespace, otherwise the server will return an error. If it is not
// supplied, the server will autogenerate one.
// supplied, the server will autogenerate one.
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// DisableHooks causes the server to skip running any hooks for the install.
// DisableHooks causes the server to skip running any hooks for the install.
DisableHooks
bool
`json:"disable_hooks,omit
y
empty"`
DisableHooks
bool
`json:"disable_hooks,omitempty"`
// Namepace is the kubernetes namespace of the release.
// Namepace is the kubernetes namespace of the release.
Namespace
string
`json:"namespace,omit
y
empty"`
Namespace
string
`json:"namespace,omitempty"`
// ReuseName requests that Tiller re-uses a name, instead of erroring out.
// ReuseName requests that Tiller re-uses a name, instead of erroring out.
ReuseName
bool
`json:"reuse_name,omit
y
empty"`
ReuseName
bool
`json:"reuse_name,omitempty"`
// timeout specifies the max amount of time any kubernetes client command can run.
// timeout specifies the max amount of time any kubernetes client command can run.
Timeout
int64
`json:"timeout,omit
y
empty"`
Timeout
int64
`json:"timeout,omitempty"`
// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
// wait, if true, will wait until all Pods, PVCs, and Services are in a ready state
// before marking the release as successful. It will wait for as long as timeout
// before marking the release as successful. It will wait for as long as timeout
Wait
bool
`json:"wait,omit
y
empty"`
Wait
bool
`json:"wait,omitempty"`
}
}
// UninstallReleaseRequest represents a request to uninstall a named release.
// UninstallReleaseRequest represents a request to uninstall a named release.
type
UninstallReleaseRequest
struct
{
type
UninstallReleaseRequest
struct
{
// Name is the name of the release to delete.
// Name is the name of the release to delete.
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// DisableHooks causes the server to skip running any hooks for the uninstall.
// DisableHooks causes the server to skip running any hooks for the uninstall.
DisableHooks
bool
`json:"disable_hooks,omit
y
empty"`
DisableHooks
bool
`json:"disable_hooks,omitempty"`
// Purge removes the release from the store and make its name free for later use.
// Purge removes the release from the store and make its name free for later use.
Purge
bool
`json:"purge,omit
y
empty"`
Purge
bool
`json:"purge,omitempty"`
// timeout specifies the max amount of time any kubernetes client command can run.
// timeout specifies the max amount of time any kubernetes client command can run.
Timeout
int64
`json:"timeout,omit
y
empty"`
Timeout
int64
`json:"timeout,omitempty"`
}
}
// UninstallReleaseResponse represents a successful response to an uninstall request.
// UninstallReleaseResponse represents a successful response to an uninstall request.
type
UninstallReleaseResponse
struct
{
type
UninstallReleaseResponse
struct
{
// Release is the release that was marked deleted.
// Release is the release that was marked deleted.
Release
*
release
.
Release
`json:"release,omit
y
empty"`
Release
*
release
.
Release
`json:"release,omitempty"`
// Info is an uninstall message
// Info is an uninstall message
Info
string
`json:"info,omit
y
empty"`
Info
string
`json:"info,omitempty"`
}
}
// GetHistoryRequest requests a release's history.
// GetHistoryRequest requests a release's history.
type
GetHistoryRequest
struct
{
type
GetHistoryRequest
struct
{
// The name of the release.
// The name of the release.
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// The maximum number of releases to include.
// The maximum number of releases to include.
Max
int
`json:"max,omit
y
empty"`
Max
int
`json:"max,omitempty"`
}
}
// TestReleaseRequest is a request to get the status of a release.
// TestReleaseRequest is a request to get the status of a release.
type
TestReleaseRequest
struct
{
type
TestReleaseRequest
struct
{
// Name is the name of the release
// Name is the name of the release
Name
string
`json:"name,omit
y
empty"`
Name
string
`json:"name,omitempty"`
// timeout specifies the max amount of time any kubernetes client command can run.
// timeout specifies the max amount of time any kubernetes client command can run.
Timeout
int64
`json:"timeout,omit
y
empty"`
Timeout
int64
`json:"timeout,omitempty"`
// cleanup specifies whether or not to attempt pod deletion after test completes
// cleanup specifies whether or not to attempt pod deletion after test completes
Cleanup
bool
`json:"cleanup,omit
y
empty"`
Cleanup
bool
`json:"cleanup,omitempty"`
}
}
// TestReleaseResponse represents a message from executing a test
// TestReleaseResponse represents a message from executing a test
type
TestReleaseResponse
struct
{
type
TestReleaseResponse
struct
{
Msg
string
`json:"msg,omit
y
empty"`
Msg
string
`json:"msg,omitempty"`
Status
release
.
TestRunStatus
`json:"status,omit
y
empty"`
Status
release
.
TestRunStatus
`json:"status,omitempty"`
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets