models

package
v0.0.0-...-1e14730 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

View Source
const (

	// QuantityFormatDecimalExponent captures enum value "DecimalExponent"
	QuantityFormatDecimalExponent string = "DecimalExponent"

	// QuantityFormatBinarySI captures enum value "BinarySI"
	QuantityFormatBinarySI string = "BinarySI"

	// QuantityFormatDecimalSI captures enum value "DecimalSI"
	QuantityFormatDecimalSI string = "DecimalSI"
)

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type AdminLoginResponse ¶

type AdminLoginResponse struct {

	// id token
	IDToken string `json:"idToken,omitempty"`
}

AdminLoginResponse admin login response

swagger:model AdminLoginResponse

func (*AdminLoginResponse) ContextValidate ¶

func (m *AdminLoginResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this admin login response based on context it is used

func (*AdminLoginResponse) MarshalBinary ¶

func (m *AdminLoginResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AdminLoginResponse) UnmarshalBinary ¶

func (m *AdminLoginResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AdminLoginResponse) Validate ¶

func (m *AdminLoginResponse) Validate(formats strfmt.Registry) error

Validate validates this admin login response

type AnalysisRunArgument ¶

type AnalysisRunArgument struct {

	// Name is the name of the argument.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Name *string `json:"name"`

	// Value is the value of the argument.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Value *string `json:"value"`
}

AnalysisRunArgument analysis run argument

swagger:model AnalysisRunArgument

func (*AnalysisRunArgument) ContextValidate ¶

func (m *AnalysisRunArgument) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this analysis run argument based on context it is used

func (*AnalysisRunArgument) MarshalBinary ¶

func (m *AnalysisRunArgument) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnalysisRunArgument) UnmarshalBinary ¶

func (m *AnalysisRunArgument) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnalysisRunArgument) Validate ¶

func (m *AnalysisRunArgument) Validate(formats strfmt.Registry) error

Validate validates this analysis run argument

type AnalysisRunMetadata ¶

type AnalysisRunMetadata struct {

	// Additional annotations to apply to an AnalysisRun.
	Annotations map[string]string `json:"annotations,omitempty"`

	// Additional labels to apply to an AnalysisRun.
	Labels map[string]string `json:"labels,omitempty"`
}

AnalysisRunMetadata analysis run metadata

swagger:model AnalysisRunMetadata

func (*AnalysisRunMetadata) ContextValidate ¶

func (m *AnalysisRunMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this analysis run metadata based on context it is used

func (*AnalysisRunMetadata) MarshalBinary ¶

func (m *AnalysisRunMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnalysisRunMetadata) UnmarshalBinary ¶

func (m *AnalysisRunMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnalysisRunMetadata) Validate ¶

func (m *AnalysisRunMetadata) Validate(formats strfmt.Registry) error

Validate validates this analysis run metadata

type AnalysisRunReference ¶

type AnalysisRunReference struct {

	// Name is the name of the AnalysisRun.
	Name string `json:"name,omitempty"`

	// Namespace is the namespace of the AnalysisRun.
	Namespace string `json:"namespace,omitempty"`

	// Phase is the last observed phase of the AnalysisRun referenced by Name.
	Phase string `json:"phase,omitempty"`
}

AnalysisRunReference analysis run reference

swagger:model AnalysisRunReference

func (*AnalysisRunReference) ContextValidate ¶

func (m *AnalysisRunReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this analysis run reference based on context it is used

func (*AnalysisRunReference) MarshalBinary ¶

func (m *AnalysisRunReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnalysisRunReference) UnmarshalBinary ¶

func (m *AnalysisRunReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnalysisRunReference) Validate ¶

func (m *AnalysisRunReference) Validate(formats strfmt.Registry) error

Validate validates this analysis run reference

type AnalysisTemplateReference ¶

type AnalysisTemplateReference struct {

	// Kind is the type of the AnalysisTemplate. Can be either AnalysisTemplate or
	// ClusterAnalysisTemplate, default is AnalysisTemplate.
	//
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=AnalysisTemplate;ClusterAnalysisTemplate
	Kind string `json:"kind,omitempty"`

	// Name is the name of the AnalysisTemplate in the same project/namespace as
	// the Stage.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Name *string `json:"name"`
}

AnalysisTemplateReference analysis template reference

swagger:model AnalysisTemplateReference

func (*AnalysisTemplateReference) ContextValidate ¶

func (m *AnalysisTemplateReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this analysis template reference based on context it is used

func (*AnalysisTemplateReference) MarshalBinary ¶

func (m *AnalysisTemplateReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AnalysisTemplateReference) UnmarshalBinary ¶

func (m *AnalysisTemplateReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AnalysisTemplateReference) Validate ¶

func (m *AnalysisTemplateReference) Validate(formats strfmt.Registry) error

Validate validates this analysis template reference

type ApprovedStage ¶

type ApprovedStage struct {

	// ApprovedAt is the time at which the Freight was approved for the Stage.
	ApprovedAt string `json:"approvedAt,omitempty"`
}

ApprovedStage approved stage

swagger:model ApprovedStage

func (*ApprovedStage) ContextValidate ¶

func (m *ApprovedStage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this approved stage based on context it is used

func (*ApprovedStage) MarshalBinary ¶

func (m *ApprovedStage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ApprovedStage) UnmarshalBinary ¶

func (m *ApprovedStage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ApprovedStage) Validate ¶

func (m *ApprovedStage) Validate(formats strfmt.Registry) error

Validate validates this approved stage

type ArgoCDShard ¶

type ArgoCDShard struct {

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

ArgoCDShard argo c d shard

swagger:model ArgoCDShard

func (*ArgoCDShard) ContextValidate ¶

func (m *ArgoCDShard) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this argo c d shard based on context it is used

func (*ArgoCDShard) MarshalBinary ¶

func (m *ArgoCDShard) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArgoCDShard) UnmarshalBinary ¶

func (m *ArgoCDShard) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArgoCDShard) Validate ¶

func (m *ArgoCDShard) Validate(formats strfmt.Registry) error

Validate validates this argo c d shard

type ArtifactReference ¶

type ArtifactReference struct {

	// ArtifactType specifies the type of artifact this is. Often, but not always,
	// it will be the media type (MIME type) of the artifact referenced by this
	// ArtifactReference.
	//
	// +kubebuilder:validation:MinLength=1
	ArtifactType string `json:"artifactType,omitempty"`

	// Metadata is a JSON object containing a mostly opaque collection of artifact
	// attributes. (It must be an object. It may not be a list or a scalar value.)
	// "Mostly" because Kargo may understand how to interpret some documented,
	// well-known, top-level keys. Those aside, this metadata is only understood
	// by a corresponding Subscriber implementation that created it.
	//
	// +optional
	Metadata any `json:"metadata,omitempty"`

	// SubscriptionName is the name of the Subscription that discovered this
	// artifact.
	//
	// +kubebuilder:validation:MinLength=1
	SubscriptionName string `json:"subscriptionName,omitempty"`

	// Version identifies a specific revision of this artifact.
	//
	// +kubebuilder:validation:MinLength=1
	Version string `json:"version,omitempty"`
}

ArtifactReference artifact reference

swagger:model ArtifactReference

func (*ArtifactReference) ContextValidate ¶

func (m *ArtifactReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this artifact reference based on context it is used

func (*ArtifactReference) MarshalBinary ¶

func (m *ArtifactReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArtifactReference) UnmarshalBinary ¶

func (m *ArtifactReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArtifactReference) Validate ¶

func (m *ArtifactReference) Validate(formats strfmt.Registry) error

Validate validates this artifact reference

type ArtifactoryWebhookReceiverConfig ¶

type ArtifactoryWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret-token` key whose
	// value is the shared secret used to authenticate the webhook requests sent
	// by JFrog Artifactory. For more information please refer to the JFrog
	// Artifactory documentation:
	//   https://jfrog.com/help/r/jfrog-platform-administration-documentation/webhooks
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`

	// VirtualRepoName is the name of an Artifactory virtual repository.
	//
	// When unspecified, the Artifactory webhook receiver depends on the value of
	// the webhook payload's `data.repo_key` field when inferring the URL of the
	// repository from which the webhook originated, which will always be an
	// Artifactory "local repository." In cases where a Warehouse subscribes to
	// such a repository indirectly via a "virtual repository," there will be a
	// discrepancy between the inferred (local) repository URL and the URL
	// actually used by the subscription, which can prevent the receiver from
	// identifying such a Warehouse as one in need of refreshing. When specified,
	// the value of the VirtualRepoName field supersedes the value of the webhook
	// payload's `data.repo_key` field to compensate for that discrepancy.
	//
	// In practice, when using virtual repositories, a separate Artifactory
	// webhook receiver should be configured for each, but one such receiver can
	// handle inbound webhooks from any number of local repositories that are
	// aggregated by that virtual repository. For example, if a virtual repository
	// `proj-virtual` aggregates container images from all of the `proj`
	// Artifactory project's local image repositories, with a single webhook
	// configured to post to a single receiver configured for the `proj-virtual`
	// virtual repository, an image pushed to
	// `example.frog.io/proj-<local-repo-name>/<path>/image`, will cause that
	// receiver to refresh all Warehouses subscribed to
	// `example.frog.io/proj-virtual/<path>/image`.
	//
	// +optional
	VirtualRepoName string `json:"virtualRepoName,omitempty"`
}

ArtifactoryWebhookReceiverConfig artifactory webhook receiver config

swagger:model ArtifactoryWebhookReceiverConfig

func (*ArtifactoryWebhookReceiverConfig) ContextValidate ¶

func (m *ArtifactoryWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this artifactory webhook receiver config based on the context it is used

func (*ArtifactoryWebhookReceiverConfig) MarshalBinary ¶

func (m *ArtifactoryWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ArtifactoryWebhookReceiverConfig) UnmarshalBinary ¶

func (m *ArtifactoryWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ArtifactoryWebhookReceiverConfig) Validate ¶

Validate validates this artifactory webhook receiver config

type AutoPromotionOptions ¶

type AutoPromotionOptions struct {

	// SelectionPolicy specifies the rules for identifying new Freight that is
	// eligible for auto-promotion to this Stage. This field is optional. When
	// left unspecified, the field is implicitly treated as if its value were
	// "NewestFreight".
	//
	// Accepted Values:
	//
	// - "NewestFreight": The newest Freight that is available to the Stage is
	//   eligible for auto-promotion.
	//
	// - "MatchUpstream": Only the Freight currently used immediately upstream
	//   from this Stage is eligible for auto-promotion. This policy may only
	//   be applied when the Stage has exactly one upstream Stage.
	SelectionPolicy string `json:"selectionPolicy,omitempty"`
}

AutoPromotionOptions auto promotion options

swagger:model AutoPromotionOptions

func (*AutoPromotionOptions) ContextValidate ¶

func (m *AutoPromotionOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this auto promotion options based on context it is used

func (*AutoPromotionOptions) MarshalBinary ¶

func (m *AutoPromotionOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AutoPromotionOptions) UnmarshalBinary ¶

func (m *AutoPromotionOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AutoPromotionOptions) Validate ¶

func (m *AutoPromotionOptions) Validate(formats strfmt.Registry) error

Validate validates this auto promotion options

type AzureWebhookReceiverConfig ¶

type AzureWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret` key whose value
	// does NOT need to be shared directly with Azure when registering a webhook.
	// It is used only by Kargo to create a complex, hard-to-guess URL,
	// which implicitly serves as a shared secret. For more information about
	// Azure webhooks, please refer to the Azure documentation:
	//
	//  Azure Container Registry:
	// 	https://learn.microsoft.com/en-us/azure/container-registry/container-registry-repositories
	//
	//  Azure DevOps:
	// 	http://learn.microsoft.com/en-us/azure/devops/service-hooks/services/webhooks?view=azure-devops
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

AzureWebhookReceiverConfig azure webhook receiver config

swagger:model AzureWebhookReceiverConfig

func (*AzureWebhookReceiverConfig) ContextValidate ¶

func (m *AzureWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this azure webhook receiver config based on the context it is used

func (*AzureWebhookReceiverConfig) MarshalBinary ¶

func (m *AzureWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AzureWebhookReceiverConfig) UnmarshalBinary ¶

func (m *AzureWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AzureWebhookReceiverConfig) Validate ¶

func (m *AzureWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this azure webhook receiver config

type BitbucketWebhookReceiverConfig ¶

type BitbucketWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret` key whose
	// value is the shared secret used to authenticate the webhook requests sent
	// by Bitbucket. For more information please refer to the Bitbucket
	// documentation:
	//   https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

BitbucketWebhookReceiverConfig bitbucket webhook receiver config

swagger:model BitbucketWebhookReceiverConfig

func (*BitbucketWebhookReceiverConfig) ContextValidate ¶

func (m *BitbucketWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bitbucket webhook receiver config based on the context it is used

func (*BitbucketWebhookReceiverConfig) MarshalBinary ¶

func (m *BitbucketWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BitbucketWebhookReceiverConfig) UnmarshalBinary ¶

func (m *BitbucketWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BitbucketWebhookReceiverConfig) Validate ¶

func (m *BitbucketWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this bitbucket webhook receiver config

type Chart ¶

type Chart struct {

	// Name specifies the name of the chart.
	Name string `json:"name,omitempty"`

	// RepoURL specifies the URL of a Helm chart repository. Classic chart
	// repositories (using HTTP/S) can contain differently named charts. When this
	// field points to such a repository, the Name field will specify the name of
	// the chart within the repository. In the case of a repository within an OCI
	// registry, the URL implicitly points to a specific chart and the Name field
	// will be empty.
	RepoURL string `json:"repoURL,omitempty"`

	// Version specifies a particular version of the chart.
	Version string `json:"version,omitempty"`
}

Chart chart

swagger:model Chart

func (*Chart) ContextValidate ¶

func (m *Chart) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this chart based on context it is used

func (*Chart) MarshalBinary ¶

func (m *Chart) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Chart) UnmarshalBinary ¶

func (m *Chart) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Chart) Validate ¶

func (m *Chart) Validate(formats strfmt.Registry) error

Validate validates this chart

type ChartDiscoveryResult ¶

type ChartDiscoveryResult struct {

	// Name is the name of the Helm chart, as specified in the ChartSubscription.
	Name string `json:"name,omitempty"`

	// RepoURL is the repository URL of the Helm chart, as specified in the
	// ChartSubscription.
	//
	// +kubebuilder:validation:MinLength=1
	RepoURL string `json:"repoURL,omitempty"`

	// SemverConstraint is the constraint for which versions were discovered.
	// This field is optional, and only populated if the ChartSubscription
	// specifies a SemverConstraint.
	SemverConstraint string `json:"semverConstraint,omitempty"`

	// Versions is a list of versions discovered by the Warehouse for the
	// ChartSubscription. An empty list indicates that the discovery operation was
	// successful, but no versions matching the ChartSubscription criteria were
	// found.
	//
	// +optional
	Versions []string `json:"versions"`
}

ChartDiscoveryResult chart discovery result

swagger:model ChartDiscoveryResult

func (*ChartDiscoveryResult) ContextValidate ¶

func (m *ChartDiscoveryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this chart discovery result based on context it is used

func (*ChartDiscoveryResult) MarshalBinary ¶

func (m *ChartDiscoveryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChartDiscoveryResult) UnmarshalBinary ¶

func (m *ChartDiscoveryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChartDiscoveryResult) Validate ¶

func (m *ChartDiscoveryResult) Validate(formats strfmt.Registry) error

Validate validates this chart discovery result

type Claim ¶

type Claim struct {

	// name
	Name string `json:"name,omitempty"`

	// values
	Values []string `json:"values"`
}

Claim claim

swagger:model Claim

func (*Claim) ContextValidate ¶

func (m *Claim) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this claim based on context it is used

func (*Claim) MarshalBinary ¶

func (m *Claim) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Claim) UnmarshalBinary ¶

func (m *Claim) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Claim) Validate ¶

func (m *Claim) Validate(formats strfmt.Registry) error

Validate validates this claim

type ClusterConfig ¶

type ClusterConfig struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the configuration of a cluster.
	Spec struct {
		ClusterConfigSpec
	} `json:"spec,omitempty"`

	// Status describes the current status of a ClusterConfig.
	Status struct {
		ClusterConfigStatus
	} `json:"status,omitempty"`
}

ClusterConfig cluster config

swagger:model ClusterConfig

func (*ClusterConfig) ContextValidate ¶

func (m *ClusterConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster config based on the context it is used

func (*ClusterConfig) MarshalBinary ¶

func (m *ClusterConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterConfig) UnmarshalBinary ¶

func (m *ClusterConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterConfig) Validate ¶

func (m *ClusterConfig) Validate(formats strfmt.Registry) error

Validate validates this cluster config

type ClusterConfigSpec ¶

type ClusterConfigSpec struct {

	// GitClient describes cluster-level configuration for Kargo's Git client,
	// including committer identity and an optional signing key. If set, these
	// values take precedence over any configuration provided at install time
	// via the Helm chart.
	// +optional
	GitClient struct {
		GitClientConfig
	} `json:"gitClient,omitempty"`

	// WebhookReceivers describes cluster-scoped webhook receivers used for
	// processing events from various external platforms
	WebhookReceivers []*WebhookReceiverConfig `json:"webhookReceivers"`
}

ClusterConfigSpec cluster config spec

swagger:model ClusterConfigSpec

func (*ClusterConfigSpec) ContextValidate ¶

func (m *ClusterConfigSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster config spec based on the context it is used

func (*ClusterConfigSpec) MarshalBinary ¶

func (m *ClusterConfigSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterConfigSpec) UnmarshalBinary ¶

func (m *ClusterConfigSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterConfigSpec) Validate ¶

func (m *ClusterConfigSpec) Validate(formats strfmt.Registry) error

Validate validates this cluster config spec

type ClusterConfigStatus ¶

type ClusterConfigStatus struct {

	// Conditions contains the last observations of the ClusterConfig's current
	// state.
	//
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []*V1Condition `json:"conditions"`

	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty"`

	// ObservedGeneration represents the .metadata.generation that this
	// ClusterConfig was reconciled against.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// WebhookReceivers describes the status of cluster-scoped webhook receivers.
	WebhookReceivers []*WebhookReceiverDetails `json:"webhookReceivers"`
}

ClusterConfigStatus cluster config status

swagger:model ClusterConfigStatus

func (*ClusterConfigStatus) ContextValidate ¶

func (m *ClusterConfigStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster config status based on the context it is used

func (*ClusterConfigStatus) MarshalBinary ¶

func (m *ClusterConfigStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterConfigStatus) UnmarshalBinary ¶

func (m *ClusterConfigStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterConfigStatus) Validate ¶

func (m *ClusterConfigStatus) Validate(formats strfmt.Registry) error

Validate validates this cluster config status

type ClusterPromotionTask ¶

type ClusterPromotionTask struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired transition of a specific Stage into a specific
	// Freight.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Spec struct {
		PromotionTaskSpec
	} `json:"spec"`
}

ClusterPromotionTask cluster promotion task

swagger:model ClusterPromotionTask

func (*ClusterPromotionTask) ContextValidate ¶

func (m *ClusterPromotionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster promotion task based on the context it is used

func (*ClusterPromotionTask) MarshalBinary ¶

func (m *ClusterPromotionTask) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterPromotionTask) UnmarshalBinary ¶

func (m *ClusterPromotionTask) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterPromotionTask) Validate ¶

func (m *ClusterPromotionTask) Validate(formats strfmt.Registry) error

Validate validates this cluster promotion task

type ClusterPromotionTaskList ¶

type ClusterPromotionTaskList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*ClusterPromotionTask `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

ClusterPromotionTaskList cluster promotion task list

swagger:model ClusterPromotionTaskList

func (*ClusterPromotionTaskList) ContextValidate ¶

func (m *ClusterPromotionTaskList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cluster promotion task list based on the context it is used

func (*ClusterPromotionTaskList) MarshalBinary ¶

func (m *ClusterPromotionTaskList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterPromotionTaskList) UnmarshalBinary ¶

func (m *ClusterPromotionTaskList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterPromotionTaskList) Validate ¶

func (m *ClusterPromotionTaskList) Validate(formats strfmt.Registry) error

Validate validates this cluster promotion task list

type CreateAPITokenRequest ¶

type CreateAPITokenRequest struct {

	// name
	Name string `json:"name,omitempty"`
}

CreateAPITokenRequest create API token request

swagger:model CreateAPITokenRequest

func (*CreateAPITokenRequest) ContextValidate ¶

func (m *CreateAPITokenRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create API token request based on context it is used

func (*CreateAPITokenRequest) MarshalBinary ¶

func (m *CreateAPITokenRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateAPITokenRequest) UnmarshalBinary ¶

func (m *CreateAPITokenRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateAPITokenRequest) Validate ¶

func (m *CreateAPITokenRequest) Validate(formats strfmt.Registry) error

Validate validates this create API token request

type CreateConfigMapRequest ¶

type CreateConfigMapRequest struct {

	// data
	Data map[string]string `json:"data,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// replicate
	Replicate bool `json:"replicate,omitempty"`
}

CreateConfigMapRequest create config map request

swagger:model CreateConfigMapRequest

func (*CreateConfigMapRequest) ContextValidate ¶

func (m *CreateConfigMapRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create config map request based on context it is used

func (*CreateConfigMapRequest) MarshalBinary ¶

func (m *CreateConfigMapRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateConfigMapRequest) UnmarshalBinary ¶

func (m *CreateConfigMapRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateConfigMapRequest) Validate ¶

func (m *CreateConfigMapRequest) Validate(formats strfmt.Registry) error

Validate validates this create config map request

type CreateGenericCredentialsRequest ¶

type CreateGenericCredentialsRequest struct {

	// data
	Data map[string]string `json:"data,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// replicate
	Replicate bool `json:"replicate,omitempty"`
}

CreateGenericCredentialsRequest create generic credentials request

swagger:model CreateGenericCredentialsRequest

func (*CreateGenericCredentialsRequest) ContextValidate ¶

func (m *CreateGenericCredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create generic credentials request based on context it is used

func (*CreateGenericCredentialsRequest) MarshalBinary ¶

func (m *CreateGenericCredentialsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateGenericCredentialsRequest) UnmarshalBinary ¶

func (m *CreateGenericCredentialsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateGenericCredentialsRequest) Validate ¶

Validate validates this create generic credentials request

type CreateOrUpdateResourceResponse ¶

type CreateOrUpdateResourceResponse struct {

	// results
	Results []*CreateOrUpdateResourceResult `json:"results"`
}

CreateOrUpdateResourceResponse create or update resource response

swagger:model CreateOrUpdateResourceResponse

func (*CreateOrUpdateResourceResponse) ContextValidate ¶

func (m *CreateOrUpdateResourceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create or update resource response based on the context it is used

func (*CreateOrUpdateResourceResponse) MarshalBinary ¶

func (m *CreateOrUpdateResourceResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrUpdateResourceResponse) UnmarshalBinary ¶

func (m *CreateOrUpdateResourceResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrUpdateResourceResponse) Validate ¶

func (m *CreateOrUpdateResourceResponse) Validate(formats strfmt.Registry) error

Validate validates this create or update resource response

type CreateOrUpdateResourceResult ¶

type CreateOrUpdateResourceResult struct {

	// created resource manifest
	CreatedResourceManifest map[string]any `json:"createdResourceManifest,omitempty"`

	// error
	Error string `json:"error,omitempty"`

	// updated resource manifest
	UpdatedResourceManifest map[string]any `json:"updatedResourceManifest,omitempty"`
}

CreateOrUpdateResourceResult create or update resource result

swagger:model CreateOrUpdateResourceResult

func (*CreateOrUpdateResourceResult) ContextValidate ¶

func (m *CreateOrUpdateResourceResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create or update resource result based on context it is used

func (*CreateOrUpdateResourceResult) MarshalBinary ¶

func (m *CreateOrUpdateResourceResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrUpdateResourceResult) UnmarshalBinary ¶

func (m *CreateOrUpdateResourceResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrUpdateResourceResult) Validate ¶

func (m *CreateOrUpdateResourceResult) Validate(formats strfmt.Registry) error

Validate validates this create or update resource result

type CreateRepoCredentialsRequest ¶

type CreateRepoCredentialsRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// #nosec G117 -- Request data is unmarshaled into this struct, but the struct
	// is never marshaled and transmitted to anywhere.
	Password string `json:"password,omitempty"`

	// repo Url
	RepoURL string `json:"repoUrl,omitempty"`

	// repo Url is regex
	RepoURLIsRegex bool `json:"repoUrlIsRegex,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

CreateRepoCredentialsRequest create repo credentials request

swagger:model CreateRepoCredentialsRequest

func (*CreateRepoCredentialsRequest) ContextValidate ¶

func (m *CreateRepoCredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create repo credentials request based on context it is used

func (*CreateRepoCredentialsRequest) MarshalBinary ¶

func (m *CreateRepoCredentialsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateRepoCredentialsRequest) UnmarshalBinary ¶

func (m *CreateRepoCredentialsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateRepoCredentialsRequest) Validate ¶

func (m *CreateRepoCredentialsRequest) Validate(formats strfmt.Registry) error

Validate validates this create repo credentials request

type CreateResourceResponse ¶

type CreateResourceResponse struct {

	// results
	Results []*CreateResourceResult `json:"results"`
}

CreateResourceResponse create resource response

swagger:model CreateResourceResponse

func (*CreateResourceResponse) ContextValidate ¶

func (m *CreateResourceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create resource response based on the context it is used

func (*CreateResourceResponse) MarshalBinary ¶

func (m *CreateResourceResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateResourceResponse) UnmarshalBinary ¶

func (m *CreateResourceResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateResourceResponse) Validate ¶

func (m *CreateResourceResponse) Validate(formats strfmt.Registry) error

Validate validates this create resource response

type CreateResourceResult ¶

type CreateResourceResult struct {

	// created resource manifest
	CreatedResourceManifest map[string]any `json:"createdResourceManifest,omitempty"`

	// error
	Error string `json:"error,omitempty"`
}

CreateResourceResult create resource result

swagger:model CreateResourceResult

func (*CreateResourceResult) ContextValidate ¶

func (m *CreateResourceResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create resource result based on context it is used

func (*CreateResourceResult) MarshalBinary ¶

func (m *CreateResourceResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateResourceResult) UnmarshalBinary ¶

func (m *CreateResourceResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateResourceResult) Validate ¶

func (m *CreateResourceResult) Validate(formats strfmt.Registry) error

Validate validates this create resource result

type CurrentStage ¶

type CurrentStage struct {

	// Since is the time at which the Stage most recently started using the
	// Freight. This can be used to calculate how long the Freight has been in use
	// by the Stage.
	Since string `json:"since,omitempty"`
}

CurrentStage current stage

swagger:model CurrentStage

func (*CurrentStage) ContextValidate ¶

func (m *CurrentStage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this current stage based on context it is used

func (*CurrentStage) MarshalBinary ¶

func (m *CurrentStage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CurrentStage) UnmarshalBinary ¶

func (m *CurrentStage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CurrentStage) Validate ¶

func (m *CurrentStage) Validate(formats strfmt.Registry) error

Validate validates this current stage

type DeleteResourceResponse ¶

type DeleteResourceResponse struct {

	// results
	Results []*DeleteResourceResult `json:"results"`
}

DeleteResourceResponse delete resource response

swagger:model DeleteResourceResponse

func (*DeleteResourceResponse) ContextValidate ¶

func (m *DeleteResourceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this delete resource response based on the context it is used

func (*DeleteResourceResponse) MarshalBinary ¶

func (m *DeleteResourceResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteResourceResponse) UnmarshalBinary ¶

func (m *DeleteResourceResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteResourceResponse) Validate ¶

func (m *DeleteResourceResponse) Validate(formats strfmt.Registry) error

Validate validates this delete resource response

type DeleteResourceResult ¶

type DeleteResourceResult struct {

	// deleted resource manifest
	DeletedResourceManifest map[string]any `json:"deletedResourceManifest,omitempty"`

	// error
	Error string `json:"error,omitempty"`
}

DeleteResourceResult delete resource result

swagger:model DeleteResourceResult

func (*DeleteResourceResult) ContextValidate ¶

func (m *DeleteResourceResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this delete resource result based on context it is used

func (*DeleteResourceResult) MarshalBinary ¶

func (m *DeleteResourceResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteResourceResult) UnmarshalBinary ¶

func (m *DeleteResourceResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteResourceResult) Validate ¶

func (m *DeleteResourceResult) Validate(formats strfmt.Registry) error

Validate validates this delete resource result

type DiscoveredArtifacts ¶

type DiscoveredArtifacts struct {

	// Charts holds the charts discovered by the Warehouse for the chart
	// subscriptions.
	//
	// +optional
	Charts []*ChartDiscoveryResult `json:"charts"`

	// DiscoveredAt is the time at which the Warehouse discovered the artifacts.
	//
	// +optional
	DiscoveredAt string `json:"discoveredAt,omitempty"`

	// Git holds the commits discovered by the Warehouse for the Git
	// subscriptions.
	//
	// +optional
	Git []*GitDiscoveryResult `json:"git"`

	// Images holds the image references discovered by the Warehouse for the
	// image subscriptions.
	//
	// +optional
	Images []*ImageDiscoveryResult `json:"images"`

	// Results holds the artifact references discovered by the Warehouse.
	//
	// +optional
	Results []*DiscoveryResult `json:"results"`
}

DiscoveredArtifacts discovered artifacts

swagger:model DiscoveredArtifacts

func (*DiscoveredArtifacts) ContextValidate ¶

func (m *DiscoveredArtifacts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this discovered artifacts based on the context it is used

func (*DiscoveredArtifacts) MarshalBinary ¶

func (m *DiscoveredArtifacts) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoveredArtifacts) UnmarshalBinary ¶

func (m *DiscoveredArtifacts) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoveredArtifacts) Validate ¶

func (m *DiscoveredArtifacts) Validate(formats strfmt.Registry) error

Validate validates this discovered artifacts

type DiscoveredCommit ¶

type DiscoveredCommit struct {

	// Author is the author of the commit.
	Author string `json:"author,omitempty"`

	// Branch is the branch in which the commit was found. This field is
	// optional, and populated based on the CommitSelectionStrategy of the
	// GitSubscription.
	Branch string `json:"branch,omitempty"`

	// Committer is the person who committed the commit.
	Committer string `json:"committer,omitempty"`

	// CreatorDate is the commit creation date as specified by the commit, or
	// the tagger date if the commit belongs to an annotated tag.
	CreatorDate string `json:"creatorDate,omitempty"`

	// ID is the identifier of the commit. This typically is a SHA-1 hash.
	//
	// +kubebuilder:validation:MinLength=1
	ID string `json:"id,omitempty"`

	// Subject is the subject of the commit (i.e. the first line of the commit
	// message).
	Subject string `json:"subject,omitempty"`

	// Tag is the tag that resolved to this commit. This field is optional, and
	// populated based on the CommitSelectionStrategy of the GitSubscription.
	Tag string `json:"tag,omitempty"`
}

DiscoveredCommit discovered commit

swagger:model DiscoveredCommit

func (*DiscoveredCommit) ContextValidate ¶

func (m *DiscoveredCommit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this discovered commit based on context it is used

func (*DiscoveredCommit) MarshalBinary ¶

func (m *DiscoveredCommit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoveredCommit) UnmarshalBinary ¶

func (m *DiscoveredCommit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoveredCommit) Validate ¶

func (m *DiscoveredCommit) Validate(formats strfmt.Registry) error

Validate validates this discovered commit

type DiscoveredImageReference ¶

type DiscoveredImageReference struct {

	// Annotations is a map of key-value pairs that provide additional
	// information about the image.
	Annotations map[string]string `json:"annotations,omitempty"`

	// CreatedAt is the time the image was created. This field is optional, and
	// not populated for every ImageSelectionStrategy.
	CreatedAt string `json:"createdAt,omitempty"`

	// Digest is the digest of the image.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^[a-z0-9]+:[a-f0-9]+$`
	// +akuity:test-kubebuilder-pattern=Digest
	Digest string `json:"digest,omitempty"`

	// Tag is the tag of the image.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=128
	// +kubebuilder:validation:Pattern=`^[\w.\-\_]+$`
	// +akuity:test-kubebuilder-pattern=Tag
	Tag string `json:"tag,omitempty"`
}

DiscoveredImageReference discovered image reference

swagger:model DiscoveredImageReference

func (*DiscoveredImageReference) ContextValidate ¶

func (m *DiscoveredImageReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this discovered image reference based on context it is used

func (*DiscoveredImageReference) MarshalBinary ¶

func (m *DiscoveredImageReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoveredImageReference) UnmarshalBinary ¶

func (m *DiscoveredImageReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoveredImageReference) Validate ¶

func (m *DiscoveredImageReference) Validate(formats strfmt.Registry) error

Validate validates this discovered image reference

type DiscoveryResult ¶

type DiscoveryResult struct {

	// ArtifactReferences is a list of references to specific versions of an
	// artifact.
	//
	// +optional
	ArtifactReferences []*ArtifactReference `json:"artifactReferences"`

	// SubscriptionName is the name of the Subscription that discovered these
	// results.
	//
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name,omitempty"`
}

DiscoveryResult discovery result

swagger:model DiscoveryResult

func (*DiscoveryResult) ContextValidate ¶

func (m *DiscoveryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this discovery result based on the context it is used

func (*DiscoveryResult) MarshalBinary ¶

func (m *DiscoveryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoveryResult) UnmarshalBinary ¶

func (m *DiscoveryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoveryResult) Validate ¶

func (m *DiscoveryResult) Validate(formats strfmt.Registry) error

Validate validates this discovery result

type DockerHubWebhookReceiverConfig ¶

type DockerHubWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// The Secret's data map is expected to contain a `secret` key whose value
	// does NOT need to be shared directly with Docker Hub when registering a
	// webhook. It is used only by Kargo to create a complex, hard-to-guess URL,
	// which implicitly serves as a shared secret. For more information about
	// Docker Hub webhooks, please refer to the Docker documentation:
	//   https://docs.docker.com/docker-hub/webhooks/
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

DockerHubWebhookReceiverConfig docker hub webhook receiver config

swagger:model DockerHubWebhookReceiverConfig

func (*DockerHubWebhookReceiverConfig) ContextValidate ¶

func (m *DockerHubWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this docker hub webhook receiver config based on the context it is used

func (*DockerHubWebhookReceiverConfig) MarshalBinary ¶

func (m *DockerHubWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DockerHubWebhookReceiverConfig) UnmarshalBinary ¶

func (m *DockerHubWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DockerHubWebhookReceiverConfig) Validate ¶

func (m *DockerHubWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this docker hub webhook receiver config

type ExpressionVariable ¶

type ExpressionVariable struct {

	// Name is the name of the variable.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=^[a-zA-Z_]\w*$
	Name string `json:"name,omitempty"`

	// Value is the value of the variable. It is allowed to utilize expressions
	// in the value.
	// See https://docs.kargo.io/user-guide/reference-docs/expressions for details.
	Value string `json:"value,omitempty"`
}

ExpressionVariable expression variable

swagger:model ExpressionVariable

func (*ExpressionVariable) ContextValidate ¶

func (m *ExpressionVariable) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this expression variable based on context it is used

func (*ExpressionVariable) MarshalBinary ¶

func (m *ExpressionVariable) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ExpressionVariable) UnmarshalBinary ¶

func (m *ExpressionVariable) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ExpressionVariable) Validate ¶

func (m *ExpressionVariable) Validate(formats strfmt.Registry) error

Validate validates this expression variable

type Freight ¶

type Freight struct {

	// Alias is a human-friendly alias for a piece of Freight. This is an optional
	// field. A defaulting webhook will sync this field with the value of the
	// kargo.akuity.io/alias label. When the alias label is not present or differs
	// from the value of this field, the defaulting webhook will set the label to
	// the value of this field. If the alias label is present and this field is
	// empty, the defaulting webhook will set the value of this field to the value
	// of the alias label. If this field is empty and the alias label is not
	// present, the defaulting webhook will choose an available alias and assign
	// it to both the field and label.
	Alias string `json:"alias,omitempty"`

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Artifacts describes specific versions of artifacts other
	// than Git repository commits, container images, and Helm charts.
	Artifacts []*ArtifactReference `json:"artifacts"`

	// Charts describes specific versions of specific Helm charts.
	Charts []*Chart `json:"charts"`

	// Commits describes specific Git repository commits.
	Commits []*GitCommit `json:"commits"`

	// Images describes specific versions of specific container images.
	Images []*Image `json:"images"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Origin describes a kind of Freight in terms of its origin.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Origin struct {
		FreightOrigin
	} `json:"origin"`

	// Status describes the current status of this Freight.
	Status struct {
		FreightStatus
	} `json:"status,omitempty"`
}

Freight freight

swagger:model Freight

func (*Freight) ContextValidate ¶

func (m *Freight) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this freight based on the context it is used

func (*Freight) MarshalBinary ¶

func (m *Freight) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Freight) UnmarshalBinary ¶

func (m *Freight) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Freight) Validate ¶

func (m *Freight) Validate(formats strfmt.Registry) error

Validate validates this freight

type FreightCollection ¶

type FreightCollection struct {

	// ID is a unique and deterministically calculated identifier for the
	// FreightCollection. It is updated on each use of the UpdateOrPush method.
	ID string `json:"id,omitempty"`

	// Freight is a map of FreightReference objects, indexed by their Warehouse
	// origin.
	Items map[string]FreightReference `json:"items,omitempty"`

	// VerificationHistory is a stack of recent VerificationInfo. By default,
	// the last ten VerificationInfo are stored.
	VerificationHistory []*VerificationInfo `json:"verificationHistory"`
}

FreightCollection freight collection

swagger:model FreightCollection

func (*FreightCollection) ContextValidate ¶

func (m *FreightCollection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this freight collection based on the context it is used

func (*FreightCollection) MarshalBinary ¶

func (m *FreightCollection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightCollection) UnmarshalBinary ¶

func (m *FreightCollection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightCollection) Validate ¶

func (m *FreightCollection) Validate(formats strfmt.Registry) error

Validate validates this freight collection

type FreightCreationCriteria ¶

type FreightCreationCriteria struct {

	// Expression is an expr-lang expression that must evaluate to true for
	// Freight to be created automatically from new artifacts following discovery.
	Expression string `json:"expression,omitempty"`
}

FreightCreationCriteria freight creation criteria

swagger:model FreightCreationCriteria

func (*FreightCreationCriteria) ContextValidate ¶

func (m *FreightCreationCriteria) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this freight creation criteria based on context it is used

func (*FreightCreationCriteria) MarshalBinary ¶

func (m *FreightCreationCriteria) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightCreationCriteria) UnmarshalBinary ¶

func (m *FreightCreationCriteria) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightCreationCriteria) Validate ¶

func (m *FreightCreationCriteria) Validate(formats strfmt.Registry) error

Validate validates this freight creation criteria

type FreightOrigin ¶

type FreightOrigin struct {

	// Kind is the kind of resource from which Freight may have originated. At
	// present, this can only be "Warehouse".
	//
	// +kubebuilder:validation:Required
	// Required: true
	Kind *string `json:"kind"`

	// Name is the name of the resource of the kind indicated by the Kind field
	// from which Freight may originate.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Name *string `json:"name"`
}

FreightOrigin freight origin

swagger:model FreightOrigin

func (*FreightOrigin) ContextValidate ¶

func (m *FreightOrigin) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this freight origin based on context it is used

func (*FreightOrigin) MarshalBinary ¶

func (m *FreightOrigin) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightOrigin) UnmarshalBinary ¶

func (m *FreightOrigin) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightOrigin) Validate ¶

func (m *FreightOrigin) Validate(formats strfmt.Registry) error

Validate validates this freight origin

type FreightReference ¶

type FreightReference struct {

	// Artifacts describes specific versions of artifacts other
	// than Git repository commits, container images, and Helm charts.
	Artifacts []*ArtifactReference `json:"artifacts"`

	// Charts describes specific versions of specific Helm charts.
	Charts []*Chart `json:"charts"`

	// Commits describes specific Git repository commits.
	Commits []*GitCommit `json:"commits"`

	// Images describes specific versions of specific container images.
	Images []*Image `json:"images"`

	// Name is a system-assigned identifier derived deterministically from
	// the contents of the Freight. I.e., two pieces of Freight can be compared
	// for equality by comparing their Names.
	Name string `json:"name,omitempty"`

	// Origin describes a kind of Freight in terms of its origin.
	Origin struct {
		FreightOrigin
	} `json:"origin,omitempty"`
}

FreightReference freight reference

swagger:model FreightReference

func (*FreightReference) ContextValidate ¶

func (m *FreightReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this freight reference based on the context it is used

func (*FreightReference) MarshalBinary ¶

func (m *FreightReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightReference) UnmarshalBinary ¶

func (m *FreightReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightReference) Validate ¶

func (m *FreightReference) Validate(formats strfmt.Registry) error

Validate validates this freight reference

type FreightRequest ¶

type FreightRequest struct {

	// Origin specifies from where the requested Freight must have originated.
	// This is a required field.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Origin struct {
		FreightOrigin
	} `json:"origin"`

	// Sources describes where the requested Freight may be obtained from. This is
	// a required field.
	Sources struct {
		FreightSources
	} `json:"sources,omitempty"`
}

FreightRequest freight request

swagger:model FreightRequest

func (*FreightRequest) ContextValidate ¶

func (m *FreightRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this freight request based on the context it is used

func (*FreightRequest) MarshalBinary ¶

func (m *FreightRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightRequest) UnmarshalBinary ¶

func (m *FreightRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightRequest) Validate ¶

func (m *FreightRequest) Validate(formats strfmt.Registry) error

Validate validates this freight request

type FreightSources ¶

type FreightSources struct {

	// AutoPromotionOptions specifies options pertaining to auto-promotion. These
	// settings have no effect if auto-promotion is not enabled for this Stage at
	// the ProjectConfig level.
	AutoPromotionOptions struct {
		AutoPromotionOptions
	} `json:"autoPromotionOptions,omitempty"`

	// AvailabilityStrategy specifies the semantics for how requested Freight is
	// made available to the Stage. This field is optional. When left unspecified,
	// the field is implicitly treated as if its value were "OneOf".
	//
	// Accepted Values:
	//
	// - "All": Freight must be verified and, if applicable, soaked in all
	//   upstream Stages to be considered available for promotion.
	// - "OneOf": Freight must be verified and, if applicable, soaked in at least
	//    one upstream Stage to be considered available for promotion.
	// - "": Treated the same as "OneOf".
	//
	// +kubebuilder:validation:Optional
	AvailabilityStrategy string `json:"availabilityStrategy,omitempty"`

	// Direct indicates the requested Freight may be obtained directly from the
	// Warehouse from which it originated. If this field's value is false, then
	// the value of the Stages field must be non-empty. i.e. Between the two
	// fields, at least one source must be specified.
	Direct bool `json:"direct,omitempty"`

	// RequiredSoakTime specifies a minimum duration for which the requested
	// Freight must have continuously occupied ("soaked in") in an upstream Stage
	// before becoming available for promotion to this Stage. This is an optional
	// field. If nil or zero, no soak time is required. Any soak time requirement
	// is in ADDITION to the requirement that Freight be verified in an upstream
	// Stage to become available for promotion to this Stage, although a manual
	// approval for promotion to this Stage will supersede any soak time
	// requirement.
	//
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern=`^([0-9]+(\.[0-9]+)?(s|m|h))+$`
	// +akuity:test-kubebuilder-pattern=Duration
	RequiredSoakTime string `json:"requiredSoakTime,omitempty"`

	// Stages identifies other "upstream" Stages as potential sources of the
	// requested Freight. If this field's value is empty, then the value of the
	// Direct field must be true. i.e. Between the two fields, at least on source
	// must be specified.
	Stages []string `json:"stages"`
}

FreightSources freight sources

swagger:model FreightSources

func (*FreightSources) ContextValidate ¶

func (m *FreightSources) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this freight sources based on the context it is used

func (*FreightSources) MarshalBinary ¶

func (m *FreightSources) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightSources) UnmarshalBinary ¶

func (m *FreightSources) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightSources) Validate ¶

func (m *FreightSources) Validate(formats strfmt.Registry) error

Validate validates this freight sources

type FreightStatus ¶

type FreightStatus struct {

	// ApprovedFor describes the Stages for which this Freight has been approved
	// preemptively/manually by a user. This is useful for hotfixes, where one
	// might wish to promote a piece of Freight to a given Stage without
	// transiting the entire pipeline.
	ApprovedFor map[string]ApprovedStage `json:"approvedFor,omitempty"`

	// CurrentlyIn describes the Stages in which this Freight is currently in use.
	CurrentlyIn map[string]CurrentStage `json:"currentlyIn,omitempty"`

	// Metadata is a map of arbitrary metadata associated with the Freight.
	// This is useful for storing additional information about the Freight
	// or Promotion that can be shared across steps or stages.
	Metadata map[string]any `json:"metadata,omitempty"`

	// VerifiedIn describes the Stages in which this Freight has been verified
	// through promotion and subsequent health checks.
	VerifiedIn map[string]VerifiedStage `json:"verifiedIn,omitempty"`
}

FreightStatus freight status

swagger:model FreightStatus

func (*FreightStatus) ContextValidate ¶

func (m *FreightStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this freight status based on the context it is used

func (*FreightStatus) MarshalBinary ¶

func (m *FreightStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FreightStatus) UnmarshalBinary ¶

func (m *FreightStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FreightStatus) Validate ¶

func (m *FreightStatus) Validate(formats strfmt.Registry) error

Validate validates this freight status

type GenericWebhookAction ¶

type GenericWebhookAction struct {

	// ActionType indicates the type of action to be performed. `Refresh` is the
	// only currently supported action.
	//
	// +kubebuilder:validation:Enum=Refresh;
	Action string `json:"action,omitempty"`

	// Parameters contains additional, action-specific parameters. Values may be
	// static or extracted from the request using expressions.
	//
	// +optional
	Parameters map[string]string `json:"parameters,omitempty"`

	// TargetSelectionCriteria is a list of selection criteria for the resources on which the
	// action should be performed.
	//
	// +kubebuilder:validation:MinItems=1
	TargetSelectionCriteria []*GenericWebhookTargetSelectionCriteria `json:"targetSelectionCriteria"`

	// WhenExpression defines criteria that a request must meet to run this
	// action.
	//
	// +optional
	WhenExpression string `json:"whenExpression,omitempty"`
}

GenericWebhookAction generic webhook action

swagger:model GenericWebhookAction

func (*GenericWebhookAction) ContextValidate ¶

func (m *GenericWebhookAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this generic webhook action based on the context it is used

func (*GenericWebhookAction) MarshalBinary ¶

func (m *GenericWebhookAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericWebhookAction) UnmarshalBinary ¶

func (m *GenericWebhookAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericWebhookAction) Validate ¶

func (m *GenericWebhookAction) Validate(formats strfmt.Registry) error

Validate validates this generic webhook action

type GenericWebhookReceiverConfig ¶

type GenericWebhookReceiverConfig struct {

	// Actions is a list of actions to be performed when a webhook event is received.
	//
	// +kubebuilder:validation:MinItems=1
	Actions []*GenericWebhookAction `json:"actions"`

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret` key whose value
	// does NOT need to be shared directly with the sender. It is used only by
	// Kargo to create a complex, hard-to-guess URL, which implicitly serves as a
	// shared secret.
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

GenericWebhookReceiverConfig generic webhook receiver config

swagger:model GenericWebhookReceiverConfig

func (*GenericWebhookReceiverConfig) ContextValidate ¶

func (m *GenericWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this generic webhook receiver config based on the context it is used

func (*GenericWebhookReceiverConfig) MarshalBinary ¶

func (m *GenericWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericWebhookReceiverConfig) UnmarshalBinary ¶

func (m *GenericWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericWebhookReceiverConfig) Validate ¶

func (m *GenericWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this generic webhook receiver config

type GenericWebhookTargetSelectionCriteria ¶

type GenericWebhookTargetSelectionCriteria struct {

	// IndexSelector is a selector used to identify cached target resources by cache key.
	// If used with LabelSelector and/or Name, the results are the combined (logical AND) of all the criteria.
	//
	// +optional
	IndexSelector struct {
		IndexSelector
	} `json:"indexSelector,omitempty"`

	// Kind is the kind of the target resource.
	//
	// +kubebuilder:validation:Enum=Warehouse;
	Kind string `json:"kind,omitempty"`

	// LabelSelector is a label selector to identify the target resources.
	// If used with IndexSelector and/or Name, the results are the combined (logical AND) of all the criteria.
	//
	// +optional
	LabelSelector struct {
		V1LabelSelector
	} `json:"labelSelector,omitempty"`

	// Name is the name of the target resource. If LabelSelector and/or IndexSelectors
	// are also specified, the results are the combined (logical AND) of the criteria.
	//
	// +optional
	Name string `json:"name,omitempty"`
}

GenericWebhookTargetSelectionCriteria generic webhook target selection criteria

swagger:model GenericWebhookTargetSelectionCriteria

func (*GenericWebhookTargetSelectionCriteria) ContextValidate ¶

func (m *GenericWebhookTargetSelectionCriteria) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this generic webhook target selection criteria based on the context it is used

func (*GenericWebhookTargetSelectionCriteria) MarshalBinary ¶

func (m *GenericWebhookTargetSelectionCriteria) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericWebhookTargetSelectionCriteria) UnmarshalBinary ¶

func (m *GenericWebhookTargetSelectionCriteria) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericWebhookTargetSelectionCriteria) Validate ¶

Validate validates this generic webhook target selection criteria

type GetConfigResponse ¶

type GetConfigResponse struct {

	// argocd shards
	ArgocdShards map[string]ArgoCDShard `json:"argocdShards,omitempty"`

	// has analysis run logs Url template
	HasAnalysisRunLogsURLTemplate bool `json:"hasAnalysisRunLogsUrlTemplate,omitempty"`

	// kargo namespace
	KargoNamespace string `json:"kargoNamespace,omitempty"`

	// secret management enabled
	SecretManagementEnabled bool `json:"secretManagementEnabled,omitempty"`

	// shared resources namespace
	SharedResourcesNamespace string `json:"sharedResourcesNamespace,omitempty"`

	// system resources namespace
	SystemResourcesNamespace string `json:"systemResourcesNamespace,omitempty"`
}

GetConfigResponse get config response

swagger:model GetConfigResponse

func (*GetConfigResponse) ContextValidate ¶

func (m *GetConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get config response based on the context it is used

func (*GetConfigResponse) MarshalBinary ¶

func (m *GetConfigResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetConfigResponse) UnmarshalBinary ¶

func (m *GetConfigResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetConfigResponse) Validate ¶

func (m *GetConfigResponse) Validate(formats strfmt.Registry) error

Validate validates this get config response

type GitClientConfig ¶

type GitClientConfig struct {

	// Email is the email address used for Git commits made by Kargo.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Format="email"
	// Required: true
	Email *string `json:"email"`

	// Name is the name used for Git commits made by Kargo.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// Required: true
	Name *string `json:"name"`

	// SigningKeySecret references a Secret in the system namespace containing
	// a GPG signing key for commit signing. The Secret must contain a data
	// key named "signingKey" with the GPG private key material.
	// +optional
	SigningKeySecret struct {
		V1LocalObjectReference
	} `json:"signingKeySecret,omitempty"`
}

GitClientConfig git client config

swagger:model GitClientConfig

func (*GitClientConfig) ContextValidate ¶

func (m *GitClientConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this git client config based on the context it is used

func (*GitClientConfig) MarshalBinary ¶

func (m *GitClientConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitClientConfig) UnmarshalBinary ¶

func (m *GitClientConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitClientConfig) Validate ¶

func (m *GitClientConfig) Validate(formats strfmt.Registry) error

Validate validates this git client config

type GitCommit ¶

type GitCommit struct {

	// Author is the author of the commit.
	Author string `json:"author,omitempty"`

	// Branch denotes the branch of the repository where this commit was found.
	Branch string `json:"branch,omitempty"`

	// Committer is the person who committed the commit.
	Committer string `json:"committer,omitempty"`

	// ID is the ID of a specific commit in the Git repository specified by
	// RepoURL.
	ID string `json:"id,omitempty"`

	// Message is the message associated with the commit. At present, this only
	// contains the first line (subject) of the commit message.
	Message string `json:"message,omitempty"`

	// RepoURL is the URL of a Git repository.
	RepoURL string `json:"repoURL,omitempty"`

	// Tag denotes a tag in the repository that matched selection criteria and
	// resolved to this commit.
	Tag string `json:"tag,omitempty"`
}

GitCommit git commit

swagger:model GitCommit

func (*GitCommit) ContextValidate ¶

func (m *GitCommit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this git commit based on context it is used

func (*GitCommit) MarshalBinary ¶

func (m *GitCommit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitCommit) UnmarshalBinary ¶

func (m *GitCommit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitCommit) Validate ¶

func (m *GitCommit) Validate(formats strfmt.Registry) error

Validate validates this git commit

type GitDiscoveryResult ¶

type GitDiscoveryResult struct {

	// Commits is a list of commits discovered by the Warehouse for the
	// GitSubscription. An empty list indicates that the discovery operation was
	// successful, but no commits matching the GitSubscription criteria were found.
	//
	// +optional
	Commits []*DiscoveredCommit `json:"commits"`

	// RepoURL is the repository URL of the GitSubscription.
	//
	// TODO(v1.13.0): Remove SSH/SCP-style URL support from this pattern.
	//
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`(?:^(ssh|https?)://(?:([\w-]+)(:(.+))?@)?([\w-]+(?:\.[\w-]+)*)(?::(\d{1,5}))?(/.*)$)|(?:^([\w-]+)@([\w+]+(?:\.[\w-]+)*):(/?.*))`
	// +akuity:test-kubebuilder-pattern=GitRepoURLPattern
	RepoURL string `json:"repoURL,omitempty"`
}

GitDiscoveryResult git discovery result

swagger:model GitDiscoveryResult

func (*GitDiscoveryResult) ContextValidate ¶

func (m *GitDiscoveryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this git discovery result based on the context it is used

func (*GitDiscoveryResult) MarshalBinary ¶

func (m *GitDiscoveryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitDiscoveryResult) UnmarshalBinary ¶

func (m *GitDiscoveryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitDiscoveryResult) Validate ¶

func (m *GitDiscoveryResult) Validate(formats strfmt.Registry) error

Validate validates this git discovery result

type GitHubWebhookReceiverConfig ¶

type GitHubWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret` key whose value is
	// the shared secret used to authenticate the webhook requests sent by GitHub.
	// For more information please refer to GitHub documentation:
	//   https://docs.github.com/en/webhooks/using-webhooks/validating-webhook-deliveries
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

GitHubWebhookReceiverConfig git hub webhook receiver config

swagger:model GitHubWebhookReceiverConfig

func (*GitHubWebhookReceiverConfig) ContextValidate ¶

func (m *GitHubWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this git hub webhook receiver config based on the context it is used

func (*GitHubWebhookReceiverConfig) MarshalBinary ¶

func (m *GitHubWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitHubWebhookReceiverConfig) UnmarshalBinary ¶

func (m *GitHubWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitHubWebhookReceiverConfig) Validate ¶

func (m *GitHubWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this git hub webhook receiver config

type GitLabWebhookReceiverConfig ¶

type GitLabWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The secret is expected to contain a `secret-token` key containing the
	// shared secret specified when registering the webhook in GitLab. For more
	// information about this token, please refer to the GitLab documentation:
	//   https://docs.gitlab.com/user/project/integrations/webhooks/
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

GitLabWebhookReceiverConfig git lab webhook receiver config

swagger:model GitLabWebhookReceiverConfig

func (*GitLabWebhookReceiverConfig) ContextValidate ¶

func (m *GitLabWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this git lab webhook receiver config based on the context it is used

func (*GitLabWebhookReceiverConfig) MarshalBinary ¶

func (m *GitLabWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GitLabWebhookReceiverConfig) UnmarshalBinary ¶

func (m *GitLabWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GitLabWebhookReceiverConfig) Validate ¶

func (m *GitLabWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this git lab webhook receiver config

type GiteaWebhookReceiverConfig ¶

type GiteaWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret` key whose value is
	// the shared secret used to authenticate the webhook requests sent by Gitea.
	// For more information please refer to the Gitea documentation:
	//   https://docs.gitea.io/en-us/webhooks/
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

GiteaWebhookReceiverConfig gitea webhook receiver config

swagger:model GiteaWebhookReceiverConfig

func (*GiteaWebhookReceiverConfig) ContextValidate ¶

func (m *GiteaWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this gitea webhook receiver config based on the context it is used

func (*GiteaWebhookReceiverConfig) MarshalBinary ¶

func (m *GiteaWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GiteaWebhookReceiverConfig) UnmarshalBinary ¶

func (m *GiteaWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GiteaWebhookReceiverConfig) Validate ¶

func (m *GiteaWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this gitea webhook receiver config

type GrantRequest ¶

type GrantRequest struct {

	// resource details
	ResourceDetails *ResourceDetails `json:"resourceDetails,omitempty"`

	// role
	Role string `json:"role,omitempty"`

	// user claims
	UserClaims *UserClaims `json:"userClaims,omitempty"`
}

GrantRequest grant request

swagger:model GrantRequest

func (*GrantRequest) ContextValidate ¶

func (m *GrantRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this grant request based on the context it is used

func (*GrantRequest) MarshalBinary ¶

func (m *GrantRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GrantRequest) UnmarshalBinary ¶

func (m *GrantRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GrantRequest) Validate ¶

func (m *GrantRequest) Validate(formats strfmt.Registry) error

Validate validates this grant request

type HarborWebhookReceiverConfig ¶

type HarborWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The secret is expected to contain an `auth-header` key containing the "auth
	// header" specified when registering the webhook in Harbor. For more
	// information, please refer to the Harbor documentation:
	//   https://goharbor.io/docs/main/working-with-projects/project-configuration/configure-webhooks/
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

HarborWebhookReceiverConfig harbor webhook receiver config

swagger:model HarborWebhookReceiverConfig

func (*HarborWebhookReceiverConfig) ContextValidate ¶

func (m *HarborWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this harbor webhook receiver config based on the context it is used

func (*HarborWebhookReceiverConfig) MarshalBinary ¶

func (m *HarborWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HarborWebhookReceiverConfig) UnmarshalBinary ¶

func (m *HarborWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HarborWebhookReceiverConfig) Validate ¶

func (m *HarborWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this harbor webhook receiver config

type Health ¶

type Health struct {

	// Config is the opaque configuration of all health checks performed on this
	// Stage.
	Config any `json:"config,omitempty"`

	// Issues clarifies why a Stage in any state other than Healthy is in that
	// state. This field will always be the empty when a Stage is Healthy.
	Issues []string `json:"issues"`

	// Output is the opaque output of all health checks performed on this Stage.
	Output any `json:"output,omitempty"`

	// Status describes the health of the Stage.
	Status string `json:"status,omitempty"`
}

Health health

swagger:model Health

func (*Health) ContextValidate ¶

func (m *Health) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this health based on context it is used

func (*Health) MarshalBinary ¶

func (m *Health) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Health) UnmarshalBinary ¶

func (m *Health) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Health) Validate ¶

func (m *Health) Validate(formats strfmt.Registry) error

Validate validates this health

type HealthCheckStep ¶

type HealthCheckStep struct {

	// Config is the configuration for the directive.
	Config any `json:"config,omitempty"`

	// Uses identifies a runner that can execute this step.
	//
	// +kubebuilder:validation:MinLength=1
	Uses string `json:"uses,omitempty"`
}

HealthCheckStep health check step

swagger:model HealthCheckStep

func (*HealthCheckStep) ContextValidate ¶

func (m *HealthCheckStep) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this health check step based on context it is used

func (*HealthCheckStep) MarshalBinary ¶

func (m *HealthCheckStep) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HealthCheckStep) UnmarshalBinary ¶

func (m *HealthCheckStep) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HealthCheckStep) Validate ¶

func (m *HealthCheckStep) Validate(formats strfmt.Registry) error

Validate validates this health check step

type HealthStats ¶

type HealthStats struct {

	// Healthy contains the number of resources that are explicitly healthy.
	Healthy int64 `json:"healthy,omitempty"`
}

HealthStats health stats

swagger:model HealthStats

func (*HealthStats) ContextValidate ¶

func (m *HealthStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this health stats based on context it is used

func (*HealthStats) MarshalBinary ¶

func (m *HealthStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HealthStats) UnmarshalBinary ¶

func (m *HealthStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HealthStats) Validate ¶

func (m *HealthStats) Validate(formats strfmt.Registry) error

Validate validates this health stats

type Image ¶

type Image struct {

	// Annotations is a map of arbitrary metadata for the image.
	Annotations map[string]string `json:"annotations,omitempty"`

	// Digest identifies a specific version of the image in the repository
	// specified by RepoURL. This is a more precise identifier than Tag.
	Digest string `json:"digest,omitempty"`

	// RepoURL describes the repository in which the image can be found.
	RepoURL string `json:"repoURL,omitempty"`

	// Tag identifies a specific version of the image in the repository specified
	// by RepoURL.
	Tag string `json:"tag,omitempty"`
}

Image image

swagger:model Image

func (*Image) ContextValidate ¶

func (m *Image) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image based on context it is used

func (*Image) MarshalBinary ¶

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Image) UnmarshalBinary ¶

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) Validate ¶

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this image

type ImageDiscoveryResult ¶

type ImageDiscoveryResult struct {

	// Platform is the target platform constraint of the ImageSubscription
	// for which references were discovered. This field is optional, and
	// only populated if the ImageSubscription specifies a Platform.
	Platform string `json:"platform,omitempty"`

	// References is a list of image references discovered by the Warehouse for
	// the ImageSubscription. An empty list indicates that the discovery
	// operation was successful, but no images matching the ImageSubscription
	// criteria were found.
	//
	// +optional
	References []*DiscoveredImageReference `json:"references"`

	// RepoURL is the repository URL of the image, as specified in the
	// ImageSubscription.
	//
	// +kubebuilder:validation:MinLength=1
	RepoURL string `json:"repoURL,omitempty"`
}

ImageDiscoveryResult image discovery result

swagger:model ImageDiscoveryResult

func (*ImageDiscoveryResult) ContextValidate ¶

func (m *ImageDiscoveryResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image discovery result based on the context it is used

func (*ImageDiscoveryResult) MarshalBinary ¶

func (m *ImageDiscoveryResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageDiscoveryResult) UnmarshalBinary ¶

func (m *ImageDiscoveryResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageDiscoveryResult) Validate ¶

func (m *ImageDiscoveryResult) Validate(formats strfmt.Registry) error

Validate validates this image discovery result

type ImageStageMap ¶

type ImageStageMap struct {

	// stages
	Stages map[string]int32 `json:"stages,omitempty"`
}

ImageStageMap image stage map

swagger:model ImageStageMap

func (*ImageStageMap) ContextValidate ¶

func (m *ImageStageMap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image stage map based on context it is used

func (*ImageStageMap) MarshalBinary ¶

func (m *ImageStageMap) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageStageMap) UnmarshalBinary ¶

func (m *ImageStageMap) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageStageMap) Validate ¶

func (m *ImageStageMap) Validate(formats strfmt.Registry) error

Validate validates this image stage map

type IndexSelector ¶

type IndexSelector struct {

	// MatchIndices is a list of index selector requirements.
	//
	// +kubebuilder:validation:MinItems=1
	MatchIndices []*IndexSelectorRequirement `json:"matchIndices"`
}

IndexSelector index selector

swagger:model IndexSelector

func (*IndexSelector) ContextValidate ¶

func (m *IndexSelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this index selector based on the context it is used

func (*IndexSelector) MarshalBinary ¶

func (m *IndexSelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IndexSelector) UnmarshalBinary ¶

func (m *IndexSelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IndexSelector) Validate ¶

func (m *IndexSelector) Validate(formats strfmt.Registry) error

Validate validates this index selector

type IndexSelectorRequirement ¶

type IndexSelectorRequirement struct {

	// Key is the key of the index.
	//
	// +kubebuilder:validation:Enum=subscribedURLs;receiverPaths
	Key string `json:"key,omitempty"`

	// Operator indicates the operation that should be used to evaluate
	// whether the selection requirement is satisfied.
	//
	// kubebuilder:validation:Enum=Equal;NotEqual;
	Operator string `json:"operator,omitempty"`

	// Value can be a static string or an expression that will be evaluated.
	//
	// kubebuilder:validation:Required
	Value string `json:"value,omitempty"`
}

IndexSelectorRequirement index selector requirement

swagger:model IndexSelectorRequirement

func (*IndexSelectorRequirement) ContextValidate ¶

func (m *IndexSelectorRequirement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this index selector requirement based on context it is used

func (*IndexSelectorRequirement) MarshalBinary ¶

func (m *IndexSelectorRequirement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IndexSelectorRequirement) UnmarshalBinary ¶

func (m *IndexSelectorRequirement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IndexSelectorRequirement) Validate ¶

func (m *IndexSelectorRequirement) Validate(formats strfmt.Registry) error

Validate validates this index selector requirement

type IntOrString ¶

type IntOrString struct {

	// int val
	IntVal int64 `json:"intVal,omitempty"`

	// str val
	StrVal string `json:"strVal,omitempty"`

	// type
	Type int64 `json:"type,omitempty"`
}

IntOrString int or string

swagger:model IntOrString

func (*IntOrString) ContextValidate ¶

func (m *IntOrString) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this int or string based on context it is used

func (*IntOrString) MarshalBinary ¶

func (m *IntOrString) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IntOrString) UnmarshalBinary ¶

func (m *IntOrString) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IntOrString) Validate ¶

func (m *IntOrString) Validate(formats strfmt.Registry) error

Validate validates this int or string

type OIDCConfig ¶

type OIDCConfig struct {

	// cli client Id
	CliClientID string `json:"cliClientId,omitempty"`

	// client Id
	ClientID string `json:"clientId,omitempty"`

	// issuer Url
	IssuerURL string `json:"issuerUrl,omitempty"`

	// scopes
	Scopes []string `json:"scopes"`
}

OIDCConfig o ID c config

swagger:model OIDCConfig

func (*OIDCConfig) ContextValidate ¶

func (m *OIDCConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this o ID c config based on context it is used

func (*OIDCConfig) MarshalBinary ¶

func (m *OIDCConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OIDCConfig) UnmarshalBinary ¶

func (m *OIDCConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OIDCConfig) Validate ¶

func (m *OIDCConfig) Validate(formats strfmt.Registry) error

Validate validates this o ID c config

type PatchConfigMapRequest ¶

type PatchConfigMapRequest struct {

	// data
	Data map[string]string `json:"data,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// remove keys
	RemoveKeys []string `json:"removeKeys"`
}

PatchConfigMapRequest patch config map request

swagger:model PatchConfigMapRequest

func (*PatchConfigMapRequest) ContextValidate ¶

func (m *PatchConfigMapRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this patch config map request based on context it is used

func (*PatchConfigMapRequest) MarshalBinary ¶

func (m *PatchConfigMapRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchConfigMapRequest) UnmarshalBinary ¶

func (m *PatchConfigMapRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchConfigMapRequest) Validate ¶

func (m *PatchConfigMapRequest) Validate(formats strfmt.Registry) error

Validate validates this patch config map request

type PatchGenericCredentialsRequest ¶

type PatchGenericCredentialsRequest struct {

	// data
	Data map[string]string `json:"data,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// remove keys
	RemoveKeys []string `json:"removeKeys"`
}

PatchGenericCredentialsRequest patch generic credentials request

swagger:model PatchGenericCredentialsRequest

func (*PatchGenericCredentialsRequest) ContextValidate ¶

func (m *PatchGenericCredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this patch generic credentials request based on context it is used

func (*PatchGenericCredentialsRequest) MarshalBinary ¶

func (m *PatchGenericCredentialsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchGenericCredentialsRequest) UnmarshalBinary ¶

func (m *PatchGenericCredentialsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchGenericCredentialsRequest) Validate ¶

func (m *PatchGenericCredentialsRequest) Validate(formats strfmt.Registry) error

Validate validates this patch generic credentials request

type PatchRepoCredentialsRequest ¶

type PatchRepoCredentialsRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// #nosec G117 -- Request data is unmarshaled into this struct, but the struct
	// is never marshaled and transmitted to anywhere.
	Password string `json:"password,omitempty"`

	// repo Url
	RepoURL string `json:"repoUrl,omitempty"`

	// repo Url is regex
	RepoURLIsRegex bool `json:"repoUrlIsRegex,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

PatchRepoCredentialsRequest patch repo credentials request

swagger:model PatchRepoCredentialsRequest

func (*PatchRepoCredentialsRequest) ContextValidate ¶

func (m *PatchRepoCredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this patch repo credentials request based on context it is used

func (*PatchRepoCredentialsRequest) MarshalBinary ¶

func (m *PatchRepoCredentialsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchRepoCredentialsRequest) UnmarshalBinary ¶

func (m *PatchRepoCredentialsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchRepoCredentialsRequest) Validate ¶

func (m *PatchRepoCredentialsRequest) Validate(formats strfmt.Registry) error

Validate validates this patch repo credentials request

type Project ¶

type Project struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Status describes the Project's current status.
	Status struct {
		ProjectStatus
	} `json:"status,omitempty"`
}

Project project

swagger:model Project

func (*Project) ContextValidate ¶

func (m *Project) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project based on the context it is used

func (*Project) MarshalBinary ¶

func (m *Project) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Project) UnmarshalBinary ¶

func (m *Project) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Project) Validate ¶

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

type ProjectConfig ¶

type ProjectConfig struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the configuration of a Project.
	Spec struct {
		ProjectConfigSpec
	} `json:"spec,omitempty"`

	// Status describes the current status of a ProjectConfig.
	Status struct {
		ProjectConfigStatus
	} `json:"status,omitempty"`
}

ProjectConfig project config

swagger:model ProjectConfig

func (*ProjectConfig) ContextValidate ¶

func (m *ProjectConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project config based on the context it is used

func (*ProjectConfig) MarshalBinary ¶

func (m *ProjectConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectConfig) UnmarshalBinary ¶

func (m *ProjectConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectConfig) Validate ¶

func (m *ProjectConfig) Validate(formats strfmt.Registry) error

Validate validates this project config

type ProjectConfigSpec ¶

type ProjectConfigSpec struct {

	// PromotionPolicies defines policies governing the promotion of Freight to
	// specific Stages within the Project.
	PromotionPolicies []*PromotionPolicy `json:"promotionPolicies"`

	// WebhookReceivers describes Project-specific webhook receivers used for
	// processing events from various external platforms
	WebhookReceivers []*WebhookReceiverConfig `json:"webhookReceivers"`
}

ProjectConfigSpec project config spec

swagger:model ProjectConfigSpec

func (*ProjectConfigSpec) ContextValidate ¶

func (m *ProjectConfigSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project config spec based on the context it is used

func (*ProjectConfigSpec) MarshalBinary ¶

func (m *ProjectConfigSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectConfigSpec) UnmarshalBinary ¶

func (m *ProjectConfigSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectConfigSpec) Validate ¶

func (m *ProjectConfigSpec) Validate(formats strfmt.Registry) error

Validate validates this project config spec

type ProjectConfigStatus ¶

type ProjectConfigStatus struct {

	// Conditions contains the last observations of the Project Config's current
	// state.
	//
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []*V1Condition `json:"conditions"`

	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty"`

	// ObservedGeneration represents the .metadata.generation that this
	// ProjectConfig was reconciled against.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// WebhookReceivers describes the status of Project-specific webhook
	// receivers.
	WebhookReceivers []*WebhookReceiverDetails `json:"webhookReceivers"`
}

ProjectConfigStatus project config status

swagger:model ProjectConfigStatus

func (*ProjectConfigStatus) ContextValidate ¶

func (m *ProjectConfigStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project config status based on the context it is used

func (*ProjectConfigStatus) MarshalBinary ¶

func (m *ProjectConfigStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectConfigStatus) UnmarshalBinary ¶

func (m *ProjectConfigStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectConfigStatus) Validate ¶

func (m *ProjectConfigStatus) Validate(formats strfmt.Registry) error

Validate validates this project config status

type ProjectList ¶

type ProjectList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*Project `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

ProjectList project list

swagger:model ProjectList

func (*ProjectList) ContextValidate ¶

func (m *ProjectList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project list based on the context it is used

func (*ProjectList) MarshalBinary ¶

func (m *ProjectList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectList) UnmarshalBinary ¶

func (m *ProjectList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectList) Validate ¶

func (m *ProjectList) Validate(formats strfmt.Registry) error

Validate validates this project list

type ProjectStats ¶

type ProjectStats struct {

	// Stages contains a summary of the collective state of the Project's Stages.
	Stages struct {
		StageStats
	} `json:"stages,omitempty"`

	// Warehouses contains a summary of the collective state of the Project's
	// Warehouses.
	Warehouses struct {
		WarehouseStats
	} `json:"warehouses,omitempty"`
}

ProjectStats project stats

swagger:model ProjectStats

func (*ProjectStats) ContextValidate ¶

func (m *ProjectStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project stats based on the context it is used

func (*ProjectStats) MarshalBinary ¶

func (m *ProjectStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectStats) UnmarshalBinary ¶

func (m *ProjectStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectStats) Validate ¶

func (m *ProjectStats) Validate(formats strfmt.Registry) error

Validate validates this project stats

type ProjectStatus ¶

type ProjectStatus struct {

	// Conditions contains the last observations of the Project's current
	// state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []*V1Condition `json:"conditions"`

	// Stats contains a summary of the collective state of a Project's
	// constituent resources.
	Stats struct {
		ProjectStats
	} `json:"stats,omitempty"`
}

ProjectStatus project status

swagger:model ProjectStatus

func (*ProjectStatus) ContextValidate ¶

func (m *ProjectStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project status based on the context it is used

func (*ProjectStatus) MarshalBinary ¶

func (m *ProjectStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectStatus) UnmarshalBinary ¶

func (m *ProjectStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectStatus) Validate ¶

func (m *ProjectStatus) Validate(formats strfmt.Registry) error

Validate validates this project status

type PromoteDownstreamRequest ¶

type PromoteDownstreamRequest struct {

	// freight
	Freight string `json:"freight,omitempty"`

	// freight alias
	FreightAlias string `json:"freightAlias,omitempty"`
}

PromoteDownstreamRequest promote downstream request

swagger:model PromoteDownstreamRequest

func (*PromoteDownstreamRequest) ContextValidate ¶

func (m *PromoteDownstreamRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this promote downstream request based on context it is used

func (*PromoteDownstreamRequest) MarshalBinary ¶

func (m *PromoteDownstreamRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromoteDownstreamRequest) UnmarshalBinary ¶

func (m *PromoteDownstreamRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromoteDownstreamRequest) Validate ¶

func (m *PromoteDownstreamRequest) Validate(formats strfmt.Registry) error

Validate validates this promote downstream request

type PromoteToStageRequest ¶

type PromoteToStageRequest struct {

	// freight
	Freight string `json:"freight,omitempty"`

	// freight alias
	FreightAlias string `json:"freightAlias,omitempty"`
}

PromoteToStageRequest promote to stage request

swagger:model PromoteToStageRequest

func (*PromoteToStageRequest) ContextValidate ¶

func (m *PromoteToStageRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this promote to stage request based on context it is used

func (*PromoteToStageRequest) MarshalBinary ¶

func (m *PromoteToStageRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromoteToStageRequest) UnmarshalBinary ¶

func (m *PromoteToStageRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromoteToStageRequest) Validate ¶

func (m *PromoteToStageRequest) Validate(formats strfmt.Registry) error

Validate validates this promote to stage request

type Promotion ¶

type Promotion struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the desired transition of a specific Stage into a specific
	// Freight.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Spec struct {
		PromotionSpec
	} `json:"spec"`

	// Status describes the current state of the transition represented by this
	// Promotion.
	Status struct {
		PromotionStatus
	} `json:"status,omitempty"`
}

Promotion promotion

swagger:model Promotion

func (*Promotion) ContextValidate ¶

func (m *Promotion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion based on the context it is used

func (*Promotion) MarshalBinary ¶

func (m *Promotion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Promotion) UnmarshalBinary ¶

func (m *Promotion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Promotion) Validate ¶

func (m *Promotion) Validate(formats strfmt.Registry) error

Validate validates this promotion

type PromotionList ¶

type PromotionList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*Promotion `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

PromotionList promotion list

swagger:model PromotionList

func (*PromotionList) ContextValidate ¶

func (m *PromotionList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion list based on the context it is used

func (*PromotionList) MarshalBinary ¶

func (m *PromotionList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionList) UnmarshalBinary ¶

func (m *PromotionList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionList) Validate ¶

func (m *PromotionList) Validate(formats strfmt.Registry) error

Validate validates this promotion list

type PromotionPolicy ¶

type PromotionPolicy struct {

	// AutoPromotionEnabled indicates whether new Freight can automatically be
	// promoted into the Stage referenced by the Stage field. Note: There are may
	// be other conditions also required for an auto-promotion to occur. This
	// field defaults to false, but is commonly set to true for Stages that
	// subscribe to Warehouses instead of other, upstream Stages. This allows
	// users to define Stages that are automatically updated as soon as new
	// artifacts are detected.
	AutoPromotionEnabled bool `json:"autoPromotionEnabled,omitempty"`

	// Stage is the name of the Stage to which this policy applies.
	//
	// Deprecated: Use StageSelector instead.
	//
	// +kubebuilder:validation:Pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
	Stage string `json:"stage,omitempty"`

	// StageSelector is a selector that matches the Stage resource to which
	// this policy applies.
	StageSelector struct {
		PromotionPolicySelector
	} `json:"stageSelector,omitempty"`
}

PromotionPolicy promotion policy

swagger:model PromotionPolicy

func (*PromotionPolicy) ContextValidate ¶

func (m *PromotionPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion policy based on the context it is used

func (*PromotionPolicy) MarshalBinary ¶

func (m *PromotionPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionPolicy) UnmarshalBinary ¶

func (m *PromotionPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionPolicy) Validate ¶

func (m *PromotionPolicy) Validate(formats strfmt.Registry) error

Validate validates this promotion policy

type PromotionPolicySelector ¶

type PromotionPolicySelector struct {

	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	// +optional
	// +listType=atomic
	MatchExpressions []*V1LabelSelectorRequirement `json:"matchExpressions"`

	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is "key", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// +optional
	MatchLabels map[string]string `json:"matchLabels,omitempty"`

	// Name is the name of the resource to which this policy applies.
	//
	// It can be an exact name, a regex pattern (with prefix "regex:"), or a
	// glob pattern (with prefix "glob:").
	//
	// When both Name and LabelSelector are specified, the Name is ANDed with
	// the LabelSelector. I.e., the resource must match both the Name and
	// LabelSelector to be selected by this policy.
	//
	// NOTE: Using a specific exact name is the most secure option. Pattern
	// matching via regex or glob can be exploited by users with permissions to
	// match promotion policies that weren't intended to apply to their
	// resources. For example, a user could create a resource with a name
	// deliberately crafted to match the pattern, potentially bypassing intended
	// promotion controls.
	//
	// +optional
	Name string `json:"name,omitempty"`
}

PromotionPolicySelector promotion policy selector

swagger:model PromotionPolicySelector

func (*PromotionPolicySelector) ContextValidate ¶

func (m *PromotionPolicySelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion policy selector based on the context it is used

func (*PromotionPolicySelector) MarshalBinary ¶

func (m *PromotionPolicySelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionPolicySelector) UnmarshalBinary ¶

func (m *PromotionPolicySelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionPolicySelector) Validate ¶

func (m *PromotionPolicySelector) Validate(formats strfmt.Registry) error

Validate validates this promotion policy selector

type PromotionReference ¶

type PromotionReference struct {

	// FinishedAt is the time at which the Promotion was completed.
	FinishedAt string `json:"finishedAt,omitempty"`

	// Freight is the freight being promoted.
	Freight struct {
		FreightReference
	} `json:"freight,omitempty"`

	// Name is the name of the Promotion.
	Name string `json:"name,omitempty"`

	// Status is the (optional) status of the Promotion.
	Status struct {
		PromotionStatus
	} `json:"status,omitempty"`
}

PromotionReference promotion reference

swagger:model PromotionReference

func (*PromotionReference) ContextValidate ¶

func (m *PromotionReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion reference based on the context it is used

func (*PromotionReference) MarshalBinary ¶

func (m *PromotionReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionReference) UnmarshalBinary ¶

func (m *PromotionReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionReference) Validate ¶

func (m *PromotionReference) Validate(formats strfmt.Registry) error

Validate validates this promotion reference

type PromotionSpec ¶

type PromotionSpec struct {

	// Freight specifies the piece of Freight to be promoted into the Stage
	// referenced by the Stage field.
	//
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
	// +akuity:test-kubebuilder-pattern=KubernetesName
	// Required: true
	Freight *string `json:"freight"`

	// Stage specifies the name of the Stage to which this Promotion
	// applies. The Stage referenced by this field MUST be in the same
	// namespace as the Promotion.
	//
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
	// +akuity:test-kubebuilder-pattern=KubernetesName
	// Required: true
	Stage *string `json:"stage"`

	// Steps specifies the directives to be executed as part of this Promotion.
	// The order in which the directives are executed is the order in which they
	// are listed in this field.
	//
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:items:XValidation:message="Promotion step must have uses set and must not reference a task",rule="has(self.uses) && !has(self.task)"
	// Required: true
	Steps []*PromotionStep `json:"steps"`

	// Vars is a list of variables that can be referenced by expressions in
	// promotion steps.
	Vars []*ExpressionVariable `json:"vars"`
}

PromotionSpec promotion spec

swagger:model PromotionSpec

func (*PromotionSpec) ContextValidate ¶

func (m *PromotionSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion spec based on the context it is used

func (*PromotionSpec) MarshalBinary ¶

func (m *PromotionSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionSpec) UnmarshalBinary ¶

func (m *PromotionSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionSpec) Validate ¶

func (m *PromotionSpec) Validate(formats strfmt.Registry) error

Validate validates this promotion spec

type PromotionStatus ¶

type PromotionStatus struct {

	// CurrentStep is the index of the current promotion step being executed. This
	// permits steps that have already run successfully to be skipped on
	// subsequent reconciliations attempts.
	CurrentStep int64 `json:"currentStep,omitempty"`

	// FinishedAt is the time when the promotion was completed.
	FinishedAt string `json:"finishedAt,omitempty"`

	// Freight is the detail of the piece of freight that was referenced by this promotion.
	Freight struct {
		FreightReference
	} `json:"freight,omitempty"`

	// FreightCollection contains the details of the piece of Freight referenced
	// by this Promotion as well as any additional Freight that is carried over
	// from the target Stage's current state.
	FreightCollection struct {
		FreightCollection
	} `json:"freightCollection,omitempty"`

	// HealthChecks contains the health check directives to be executed after
	// the Promotion has completed.
	HealthChecks []*HealthCheckStep `json:"healthChecks"`

	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty"`

	// Message is a display message about the promotion, including any errors
	// preventing the Promotion controller from executing this Promotion.
	// i.e. If the Phase field has a value of Failed, this field can be expected
	// to explain why.
	Message string `json:"message,omitempty"`

	// Phase describes where the Promotion currently is in its lifecycle.
	Phase string `json:"phase,omitempty"`

	// StartedAt is the time when the promotion started.
	StartedAt string `json:"startedAt,omitempty"`

	// State stores the state of the promotion process between reconciliation
	// attempts.
	State any `json:"state,omitempty"`

	// StepExecutionMetadata tracks metadata pertaining to the execution
	// of individual promotion steps.
	StepExecutionMetadata []*StepExecutionMetadata `json:"stepExecutionMetadata"`
}

PromotionStatus promotion status

swagger:model PromotionStatus

func (*PromotionStatus) ContextValidate ¶

func (m *PromotionStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion status based on the context it is used

func (*PromotionStatus) MarshalBinary ¶

func (m *PromotionStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionStatus) UnmarshalBinary ¶

func (m *PromotionStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionStatus) Validate ¶

func (m *PromotionStatus) Validate(formats strfmt.Registry) error

Validate validates this promotion status

type PromotionStep ¶

type PromotionStep struct {

	// As is the alias this step can be referred to as.
	As string `json:"as,omitempty"`

	// Config is opaque configuration for the PromotionStep that is understood
	// only by each PromotionStep's implementation. It is legal to utilize
	// expressions in defining values at any level of this block.
	// See https://docs.kargo.io/user-guide/reference-docs/expressions for details.
	Config any `json:"config,omitempty"`

	// ContinueOnError is a boolean value that, if set to true, will cause the
	// Promotion to continue executing the next step even if this step fails. It
	// also will not permit this failure to impact the overall status of the
	// Promotion.
	ContinueOnError bool `json:"continueOnError,omitempty"`

	// If is an optional expression that, if present, must evaluate to a boolean
	// value. If the expression evaluates to false, the step will be skipped.
	// If the expression does not evaluate to a boolean value, the step will be
	// considered to have failed.
	If string `json:"if,omitempty"`

	// Retry is the retry policy for this step.
	Retry struct {
		PromotionStepRetry
	} `json:"retry,omitempty"`

	// Task is a reference to a PromotionTask that should be inflated into a
	// Promotion when it is built from a PromotionTemplate.
	Task struct {
		PromotionTaskReference
	} `json:"task,omitempty"`

	// Uses identifies a runner that can execute this step.
	//
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:MinLength=1
	Uses string `json:"uses,omitempty"`

	// Vars is a list of variables that can be referenced by expressions in
	// the step's Config. The values override the values specified in the
	// PromotionSpec.
	Vars []*ExpressionVariable `json:"vars"`
}

PromotionStep promotion step

swagger:model PromotionStep

func (*PromotionStep) ContextValidate ¶

func (m *PromotionStep) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion step based on the context it is used

func (*PromotionStep) MarshalBinary ¶

func (m *PromotionStep) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionStep) UnmarshalBinary ¶

func (m *PromotionStep) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionStep) Validate ¶

func (m *PromotionStep) Validate(formats strfmt.Registry) error

Validate validates this promotion step

type PromotionStepRetry ¶

type PromotionStepRetry struct {

	// ErrorThreshold is the number of consecutive times the step must fail (for
	// any reason) before retries are abandoned and the entire Promotion is marked
	// as failed.
	//
	// If this field is set to 0, the effective default will be a step-specific
	// one. If no step-specific default exists (i.e. is also 0), the effective
	// default will be the system-wide default of 1.
	//
	// A value of 1 will cause the Promotion to be marked as failed after just
	// a single failure; i.e. no retries will be attempted.
	//
	// There is no option to specify an infinite number of retries using a value
	// such as -1.
	//
	// In a future release, Kargo is likely to become capable of distinguishing
	// between recoverable and non-recoverable step failures. At that time, it is
	// planned that unrecoverable failures will not be subject to this threshold
	// and will immediately cause the Promotion to be marked as failed without
	// further condition.
	ErrorThreshold int64 `json:"errorThreshold,omitempty"`

	// Timeout is the soft maximum interval in which a step that returns a Running
	// status (which typically indicates it's waiting for something to happen)
	// may be retried.
	//
	// The maximum is a soft one because the check for whether the interval has
	// elapsed occurs AFTER the step has run. This effectively means a step may
	// run ONCE beyond the close of the interval.
	//
	// If this field is set to nil, the effective default will be a step-specific
	// one. If no step-specific default exists (i.e. is also nil), the effective
	// default will be the system-wide default of 0.
	//
	// A value of 0 will cause the step to be retried indefinitely unless the
	// ErrorThreshold is reached.
	Timeout string `json:"timeout,omitempty"`
}

PromotionStepRetry promotion step retry

swagger:model PromotionStepRetry

func (*PromotionStepRetry) ContextValidate ¶

func (m *PromotionStepRetry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this promotion step retry based on context it is used

func (*PromotionStepRetry) MarshalBinary ¶

func (m *PromotionStepRetry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionStepRetry) UnmarshalBinary ¶

func (m *PromotionStepRetry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionStepRetry) Validate ¶

func (m *PromotionStepRetry) Validate(formats strfmt.Registry) error

Validate validates this promotion step retry

type PromotionTask ¶

type PromotionTask struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes the composition of a PromotionTask, including the
	// variables available to the task and the steps.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Spec struct {
		PromotionTaskSpec
	} `json:"spec"`
}

PromotionTask promotion task

swagger:model PromotionTask

func (*PromotionTask) ContextValidate ¶

func (m *PromotionTask) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion task based on the context it is used

func (*PromotionTask) MarshalBinary ¶

func (m *PromotionTask) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionTask) UnmarshalBinary ¶

func (m *PromotionTask) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionTask) Validate ¶

func (m *PromotionTask) Validate(formats strfmt.Registry) error

Validate validates this promotion task

type PromotionTaskList ¶

type PromotionTaskList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*PromotionTask `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

PromotionTaskList promotion task list

swagger:model PromotionTaskList

func (*PromotionTaskList) ContextValidate ¶

func (m *PromotionTaskList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion task list based on the context it is used

func (*PromotionTaskList) MarshalBinary ¶

func (m *PromotionTaskList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionTaskList) UnmarshalBinary ¶

func (m *PromotionTaskList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionTaskList) Validate ¶

func (m *PromotionTaskList) Validate(formats strfmt.Registry) error

Validate validates this promotion task list

type PromotionTaskReference ¶

type PromotionTaskReference struct {

	// Kind is the type of the PromotionTask. Can be either PromotionTask or
	// ClusterPromotionTask, default is PromotionTask.
	//
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Enum=PromotionTask;ClusterPromotionTask
	Kind string `json:"kind,omitempty"`

	// Name is the name of the (Cluster)PromotionTask.
	//
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
	// +akuity:test-kubebuilder-pattern=KubernetesName
	// Required: true
	Name *string `json:"name"`
}

PromotionTaskReference promotion task reference

swagger:model PromotionTaskReference

func (*PromotionTaskReference) ContextValidate ¶

func (m *PromotionTaskReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this promotion task reference based on context it is used

func (*PromotionTaskReference) MarshalBinary ¶

func (m *PromotionTaskReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionTaskReference) UnmarshalBinary ¶

func (m *PromotionTaskReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionTaskReference) Validate ¶

func (m *PromotionTaskReference) Validate(formats strfmt.Registry) error

Validate validates this promotion task reference

type PromotionTaskSpec ¶

type PromotionTaskSpec struct {

	// Steps specifies the directives to be executed as part of this
	// PromotionTask. The steps as defined here are inflated into a
	// Promotion when it is built from a PromotionTemplate.
	//
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:items:XValidation:message="PromotionTask step must have uses set and must not reference another task",rule="has(self.uses) && !has(self.task)"
	// Required: true
	Steps []*PromotionStep `json:"steps"`

	// Vars specifies the variables available to the PromotionTask. The
	// values of these variables are the default values that can be
	// overridden by the step referencing the task.
	Vars []*ExpressionVariable `json:"vars"`
}

PromotionTaskSpec promotion task spec

swagger:model PromotionTaskSpec

func (*PromotionTaskSpec) ContextValidate ¶

func (m *PromotionTaskSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion task spec based on the context it is used

func (*PromotionTaskSpec) MarshalBinary ¶

func (m *PromotionTaskSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionTaskSpec) UnmarshalBinary ¶

func (m *PromotionTaskSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionTaskSpec) Validate ¶

func (m *PromotionTaskSpec) Validate(formats strfmt.Registry) error

Validate validates this promotion task spec

type PromotionTemplate ¶

type PromotionTemplate struct {

	// spec
	Spec *PromotionTemplateSpec `json:"spec,omitempty"`
}

PromotionTemplate promotion template

swagger:model PromotionTemplate

func (*PromotionTemplate) ContextValidate ¶

func (m *PromotionTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion template based on the context it is used

func (*PromotionTemplate) MarshalBinary ¶

func (m *PromotionTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionTemplate) UnmarshalBinary ¶

func (m *PromotionTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionTemplate) Validate ¶

func (m *PromotionTemplate) Validate(formats strfmt.Registry) error

Validate validates this promotion template

type PromotionTemplateSpec ¶

type PromotionTemplateSpec struct {

	// Steps specifies the directives to be executed as part of a Promotion.
	// The order in which the directives are executed is the order in which they
	// are listed in this field.
	//
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:items:XValidation:message="PromotionTemplate step must have exactly one of uses or task set",rule="(has(self.uses) ? !has(self.task) : has(self.task))"
	// +kubebuilder:validation:items:XValidation:message="PromotionTemplate step referencing a task cannot set continueOnError",rule="!has(self.task) || !has(self.continueOnError)"
	// +kubebuilder:validation:items:XValidation:message="PromotionTemplate step referencing a task cannot set retry",rule="!has(self.task) || !has(self.retry)"
	Steps []*PromotionStep `json:"steps"`

	// Vars is a list of variables that can be referenced by expressions in
	// promotion steps.
	Vars []*ExpressionVariable `json:"vars"`
}

PromotionTemplateSpec promotion template spec

swagger:model PromotionTemplateSpec

func (*PromotionTemplateSpec) ContextValidate ¶

func (m *PromotionTemplateSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this promotion template spec based on the context it is used

func (*PromotionTemplateSpec) MarshalBinary ¶

func (m *PromotionTemplateSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PromotionTemplateSpec) UnmarshalBinary ¶

func (m *PromotionTemplateSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PromotionTemplateSpec) Validate ¶

func (m *PromotionTemplateSpec) Validate(formats strfmt.Registry) error

Validate validates this promotion template spec

type PublicConfig ¶

type PublicConfig struct {

	// admin account enabled
	AdminAccountEnabled bool `json:"adminAccountEnabled,omitempty"`

	// oidc config
	OidcConfig *OIDCConfig `json:"oidcConfig,omitempty"`

	// skip auth
	SkipAuth bool `json:"skipAuth,omitempty"`
}

PublicConfig public config

swagger:model PublicConfig

func (*PublicConfig) ContextValidate ¶

func (m *PublicConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public config based on the context it is used

func (*PublicConfig) MarshalBinary ¶

func (m *PublicConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicConfig) UnmarshalBinary ¶

func (m *PublicConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicConfig) Validate ¶

func (m *PublicConfig) Validate(formats strfmt.Registry) error

Validate validates this public config

type Quantity ¶

type Quantity struct {

	// format
	// Enum: ["DecimalExponent","BinarySI","DecimalSI"]
	Format string `json:"Format,omitempty"`
}

Quantity quantity

swagger:model Quantity

func (*Quantity) ContextValidate ¶

func (m *Quantity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this quantity based on context it is used

func (*Quantity) MarshalBinary ¶

func (m *Quantity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Quantity) UnmarshalBinary ¶

func (m *Quantity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Quantity) Validate ¶

func (m *Quantity) Validate(formats strfmt.Registry) error

Validate validates this quantity

type QuayWebhookReceiverConfig ¶

type QuayWebhookReceiverConfig struct {

	// SecretRef contains a reference to a Secret. For Project-scoped webhook
	// receivers, the referenced Secret must be in the same namespace as the
	// ProjectConfig.
	//
	// For cluster-scoped webhook receivers, the referenced Secret must be in the
	// designated "system resources" namespace.
	//
	// The Secret's data map is expected to contain a `secret` key whose value
	// does NOT need to be shared directly with Quay when registering a
	// webhook. It is used only by Kargo to create a complex, hard-to-guess URL,
	// which implicitly serves as a shared secret. For more information about
	// Quay webhooks, please refer to the Quay documentation:
	//   https://docs.quay.io/guides/notifications.html
	//
	// +kubebuilder:validation:Required
	// Required: true
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef"`
}

QuayWebhookReceiverConfig quay webhook receiver config

swagger:model QuayWebhookReceiverConfig

func (*QuayWebhookReceiverConfig) ContextValidate ¶

func (m *QuayWebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this quay webhook receiver config based on the context it is used

func (*QuayWebhookReceiverConfig) MarshalBinary ¶

func (m *QuayWebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QuayWebhookReceiverConfig) UnmarshalBinary ¶

func (m *QuayWebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QuayWebhookReceiverConfig) Validate ¶

func (m *QuayWebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this quay webhook receiver config

type RbacRole ¶

type RbacRole struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// claims
	Claims []*Claim `json:"claims"`

	// kargo managed
	KargoManaged bool `json:"kargoManaged,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// rules
	Rules []*V1PolicyRule `json:"rules"`
}

RbacRole rbac role

swagger:model RbacRole

func (*RbacRole) ContextValidate ¶

func (m *RbacRole) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rbac role based on the context it is used

func (*RbacRole) MarshalBinary ¶

func (m *RbacRole) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RbacRole) UnmarshalBinary ¶

func (m *RbacRole) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RbacRole) Validate ¶

func (m *RbacRole) Validate(formats strfmt.Registry) error

Validate validates this rbac role

type ResourceDetails ¶

type ResourceDetails struct {

	// resource name
	ResourceName string `json:"resourceName,omitempty"`

	// resource type
	ResourceType string `json:"resourceType,omitempty"`

	// verbs
	Verbs []string `json:"verbs"`
}

ResourceDetails resource details

swagger:model ResourceDetails

func (*ResourceDetails) ContextValidate ¶

func (m *ResourceDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource details based on context it is used

func (*ResourceDetails) MarshalBinary ¶

func (m *ResourceDetails) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourceDetails) UnmarshalBinary ¶

func (m *ResourceDetails) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourceDetails) Validate ¶

func (m *ResourceDetails) Validate(formats strfmt.Registry) error

Validate validates this resource details

type RevokeRequest ¶

type RevokeRequest struct {

	// resource details
	ResourceDetails *ResourceDetails `json:"resourceDetails,omitempty"`

	// role
	Role string `json:"role,omitempty"`

	// user claims
	UserClaims *UserClaims `json:"userClaims,omitempty"`
}

RevokeRequest revoke request

swagger:model RevokeRequest

func (*RevokeRequest) ContextValidate ¶

func (m *RevokeRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this revoke request based on the context it is used

func (*RevokeRequest) MarshalBinary ¶

func (m *RevokeRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RevokeRequest) UnmarshalBinary ¶

func (m *RevokeRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RevokeRequest) Validate ¶

func (m *RevokeRequest) Validate(formats strfmt.Registry) error

Validate validates this revoke request

type RolloutsAnalysisRun ¶

type RolloutsAnalysisRun struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// spec
	Spec *RolloutsAnalysisRunSpec `json:"spec,omitempty"`

	// status
	Status *RolloutsAnalysisRunStatus `json:"status,omitempty"`
}

RolloutsAnalysisRun rollouts analysis run

swagger:model RolloutsAnalysisRun

func (*RolloutsAnalysisRun) ContextValidate ¶

func (m *RolloutsAnalysisRun) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts analysis run based on the context it is used

func (*RolloutsAnalysisRun) MarshalBinary ¶

func (m *RolloutsAnalysisRun) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAnalysisRun) UnmarshalBinary ¶

func (m *RolloutsAnalysisRun) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAnalysisRun) Validate ¶

func (m *RolloutsAnalysisRun) Validate(formats strfmt.Registry) error

Validate validates this rollouts analysis run

type RolloutsAnalysisRunSpec ¶

type RolloutsAnalysisRunSpec struct {

	// args
	Args []*RolloutsArgument `json:"args"`

	// dry run
	DryRun []*RolloutsDryRun `json:"dryRun"`

	// measurement retention
	MeasurementRetention []*RolloutsMeasurementRetention `json:"measurementRetention"`

	// metrics
	Metrics []*RolloutsMetric `json:"metrics"`

	// terminate
	Terminate bool `json:"terminate,omitempty"`
}

RolloutsAnalysisRunSpec rollouts analysis run spec

swagger:model RolloutsAnalysisRunSpec

func (*RolloutsAnalysisRunSpec) ContextValidate ¶

func (m *RolloutsAnalysisRunSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts analysis run spec based on the context it is used

func (*RolloutsAnalysisRunSpec) MarshalBinary ¶

func (m *RolloutsAnalysisRunSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAnalysisRunSpec) UnmarshalBinary ¶

func (m *RolloutsAnalysisRunSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAnalysisRunSpec) Validate ¶

func (m *RolloutsAnalysisRunSpec) Validate(formats strfmt.Registry) error

Validate validates this rollouts analysis run spec

type RolloutsAnalysisRunStatus ¶

type RolloutsAnalysisRunStatus struct {

	// dry run summary
	DryRunSummary *RolloutsRunSummary `json:"dryRunSummary,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// metric results
	MetricResults []*RolloutsMetricResult `json:"metricResults"`

	// phase
	Phase string `json:"phase,omitempty"`

	// run summary
	RunSummary *RolloutsRunSummary `json:"runSummary,omitempty"`

	// started at
	StartedAt string `json:"startedAt,omitempty"`
}

RolloutsAnalysisRunStatus rollouts analysis run status

swagger:model RolloutsAnalysisRunStatus

func (*RolloutsAnalysisRunStatus) ContextValidate ¶

func (m *RolloutsAnalysisRunStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts analysis run status based on the context it is used

func (*RolloutsAnalysisRunStatus) MarshalBinary ¶

func (m *RolloutsAnalysisRunStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAnalysisRunStatus) UnmarshalBinary ¶

func (m *RolloutsAnalysisRunStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAnalysisRunStatus) Validate ¶

func (m *RolloutsAnalysisRunStatus) Validate(formats strfmt.Registry) error

Validate validates this rollouts analysis run status

type RolloutsAnalysisTemplate ¶

type RolloutsAnalysisTemplate struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// spec
	Spec *RolloutsAnalysisTemplateSpec `json:"spec,omitempty"`
}

RolloutsAnalysisTemplate rollouts analysis template

swagger:model RolloutsAnalysisTemplate

func (*RolloutsAnalysisTemplate) ContextValidate ¶

func (m *RolloutsAnalysisTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts analysis template based on the context it is used

func (*RolloutsAnalysisTemplate) MarshalBinary ¶

func (m *RolloutsAnalysisTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAnalysisTemplate) UnmarshalBinary ¶

func (m *RolloutsAnalysisTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAnalysisTemplate) Validate ¶

func (m *RolloutsAnalysisTemplate) Validate(formats strfmt.Registry) error

Validate validates this rollouts analysis template

type RolloutsAnalysisTemplateList ¶

type RolloutsAnalysisTemplateList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*RolloutsAnalysisTemplate `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

RolloutsAnalysisTemplateList rollouts analysis template list

swagger:model RolloutsAnalysisTemplateList

func (*RolloutsAnalysisTemplateList) ContextValidate ¶

func (m *RolloutsAnalysisTemplateList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts analysis template list based on the context it is used

func (*RolloutsAnalysisTemplateList) MarshalBinary ¶

func (m *RolloutsAnalysisTemplateList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAnalysisTemplateList) UnmarshalBinary ¶

func (m *RolloutsAnalysisTemplateList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAnalysisTemplateList) Validate ¶

func (m *RolloutsAnalysisTemplateList) Validate(formats strfmt.Registry) error

Validate validates this rollouts analysis template list

type RolloutsAnalysisTemplateSpec ¶

type RolloutsAnalysisTemplateSpec struct {

	// args
	Args []*RolloutsArgument `json:"args"`

	// dry run
	DryRun []*RolloutsDryRun `json:"dryRun"`

	// measurement retention
	MeasurementRetention []*RolloutsMeasurementRetention `json:"measurementRetention"`

	// metrics
	Metrics []*RolloutsMetric `json:"metrics"`
}

RolloutsAnalysisTemplateSpec rollouts analysis template spec

swagger:model RolloutsAnalysisTemplateSpec

func (*RolloutsAnalysisTemplateSpec) ContextValidate ¶

func (m *RolloutsAnalysisTemplateSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts analysis template spec based on the context it is used

func (*RolloutsAnalysisTemplateSpec) MarshalBinary ¶

func (m *RolloutsAnalysisTemplateSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAnalysisTemplateSpec) UnmarshalBinary ¶

func (m *RolloutsAnalysisTemplateSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAnalysisTemplateSpec) Validate ¶

func (m *RolloutsAnalysisTemplateSpec) Validate(formats strfmt.Registry) error

Validate validates this rollouts analysis template spec

type RolloutsArgument ¶

type RolloutsArgument struct {

	// name
	Name string `json:"name,omitempty"`

	// value
	Value string `json:"value,omitempty"`

	// value from
	ValueFrom *RolloutsValueFrom `json:"valueFrom,omitempty"`
}

RolloutsArgument rollouts argument

swagger:model RolloutsArgument

func (*RolloutsArgument) ContextValidate ¶

func (m *RolloutsArgument) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts argument based on the context it is used

func (*RolloutsArgument) MarshalBinary ¶

func (m *RolloutsArgument) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsArgument) UnmarshalBinary ¶

func (m *RolloutsArgument) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsArgument) Validate ¶

func (m *RolloutsArgument) Validate(formats strfmt.Registry) error

Validate validates this rollouts argument

type RolloutsAuthentication ¶

type RolloutsAuthentication struct {

	// oauth2
	Oauth2 *RolloutsOAuth2Config `json:"oauth2,omitempty"`

	// sigv4
	Sigv4 *RolloutsSigv4Config `json:"sigv4,omitempty"`
}

RolloutsAuthentication rollouts authentication

swagger:model RolloutsAuthentication

func (*RolloutsAuthentication) ContextValidate ¶

func (m *RolloutsAuthentication) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts authentication based on the context it is used

func (*RolloutsAuthentication) MarshalBinary ¶

func (m *RolloutsAuthentication) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsAuthentication) UnmarshalBinary ¶

func (m *RolloutsAuthentication) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsAuthentication) Validate ¶

func (m *RolloutsAuthentication) Validate(formats strfmt.Registry) error

Validate validates this rollouts authentication

type RolloutsCloudWatchMetric ¶

type RolloutsCloudWatchMetric struct {

	// interval
	Interval string `json:"interval,omitempty"`

	// metric data queries
	MetricDataQueries []*RolloutsCloudWatchMetricDataQuery `json:"metricDataQueries"`
}

RolloutsCloudWatchMetric rollouts cloud watch metric

swagger:model RolloutsCloudWatchMetric

func (*RolloutsCloudWatchMetric) ContextValidate ¶

func (m *RolloutsCloudWatchMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts cloud watch metric based on the context it is used

func (*RolloutsCloudWatchMetric) MarshalBinary ¶

func (m *RolloutsCloudWatchMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsCloudWatchMetric) UnmarshalBinary ¶

func (m *RolloutsCloudWatchMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsCloudWatchMetric) Validate ¶

func (m *RolloutsCloudWatchMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts cloud watch metric

type RolloutsCloudWatchMetricDataQuery ¶

type RolloutsCloudWatchMetricDataQuery struct {

	// expression
	Expression string `json:"expression,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// label
	Label string `json:"label,omitempty"`

	// metric stat
	MetricStat *RolloutsCloudWatchMetricStat `json:"metricStat,omitempty"`

	// period
	Period *IntOrString `json:"period,omitempty"`

	// return data
	ReturnData bool `json:"returnData,omitempty"`
}

RolloutsCloudWatchMetricDataQuery rollouts cloud watch metric data query

swagger:model RolloutsCloudWatchMetricDataQuery

func (*RolloutsCloudWatchMetricDataQuery) ContextValidate ¶

func (m *RolloutsCloudWatchMetricDataQuery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts cloud watch metric data query based on the context it is used

func (*RolloutsCloudWatchMetricDataQuery) MarshalBinary ¶

func (m *RolloutsCloudWatchMetricDataQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsCloudWatchMetricDataQuery) UnmarshalBinary ¶

func (m *RolloutsCloudWatchMetricDataQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsCloudWatchMetricDataQuery) Validate ¶

Validate validates this rollouts cloud watch metric data query

type RolloutsCloudWatchMetricStat ¶

type RolloutsCloudWatchMetricStat struct {

	// metric
	Metric *RolloutsCloudWatchMetricStatMetric `json:"metric,omitempty"`

	// period
	Period *IntOrString `json:"period,omitempty"`

	// stat
	Stat string `json:"stat,omitempty"`

	// unit
	Unit string `json:"unit,omitempty"`
}

RolloutsCloudWatchMetricStat rollouts cloud watch metric stat

swagger:model RolloutsCloudWatchMetricStat

func (*RolloutsCloudWatchMetricStat) ContextValidate ¶

func (m *RolloutsCloudWatchMetricStat) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts cloud watch metric stat based on the context it is used

func (*RolloutsCloudWatchMetricStat) MarshalBinary ¶

func (m *RolloutsCloudWatchMetricStat) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsCloudWatchMetricStat) UnmarshalBinary ¶

func (m *RolloutsCloudWatchMetricStat) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsCloudWatchMetricStat) Validate ¶

func (m *RolloutsCloudWatchMetricStat) Validate(formats strfmt.Registry) error

Validate validates this rollouts cloud watch metric stat

type RolloutsCloudWatchMetricStatMetric ¶

type RolloutsCloudWatchMetricStatMetric struct {

	// dimensions
	Dimensions []*RolloutsCloudWatchMetricStatMetricDimension `json:"dimensions"`

	// metric name
	MetricName string `json:"metricName,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`
}

RolloutsCloudWatchMetricStatMetric rollouts cloud watch metric stat metric

swagger:model RolloutsCloudWatchMetricStatMetric

func (*RolloutsCloudWatchMetricStatMetric) ContextValidate ¶

func (m *RolloutsCloudWatchMetricStatMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts cloud watch metric stat metric based on the context it is used

func (*RolloutsCloudWatchMetricStatMetric) MarshalBinary ¶

func (m *RolloutsCloudWatchMetricStatMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsCloudWatchMetricStatMetric) UnmarshalBinary ¶

func (m *RolloutsCloudWatchMetricStatMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsCloudWatchMetricStatMetric) Validate ¶

Validate validates this rollouts cloud watch metric stat metric

type RolloutsCloudWatchMetricStatMetricDimension ¶

type RolloutsCloudWatchMetricStatMetricDimension struct {

	// name
	Name string `json:"name,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

RolloutsCloudWatchMetricStatMetricDimension rollouts cloud watch metric stat metric dimension

swagger:model RolloutsCloudWatchMetricStatMetricDimension

func (*RolloutsCloudWatchMetricStatMetricDimension) ContextValidate ¶

ContextValidate validates this rollouts cloud watch metric stat metric dimension based on context it is used

func (*RolloutsCloudWatchMetricStatMetricDimension) MarshalBinary ¶

func (m *RolloutsCloudWatchMetricStatMetricDimension) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsCloudWatchMetricStatMetricDimension) UnmarshalBinary ¶

func (m *RolloutsCloudWatchMetricStatMetricDimension) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsCloudWatchMetricStatMetricDimension) Validate ¶

Validate validates this rollouts cloud watch metric stat metric dimension

type RolloutsClusterAnalysisTemplate ¶

type RolloutsClusterAnalysisTemplate struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// spec
	Spec *RolloutsAnalysisTemplateSpec `json:"spec,omitempty"`
}

RolloutsClusterAnalysisTemplate rollouts cluster analysis template

swagger:model RolloutsClusterAnalysisTemplate

func (*RolloutsClusterAnalysisTemplate) ContextValidate ¶

func (m *RolloutsClusterAnalysisTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts cluster analysis template based on the context it is used

func (*RolloutsClusterAnalysisTemplate) MarshalBinary ¶

func (m *RolloutsClusterAnalysisTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsClusterAnalysisTemplate) UnmarshalBinary ¶

func (m *RolloutsClusterAnalysisTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsClusterAnalysisTemplate) Validate ¶

Validate validates this rollouts cluster analysis template

type RolloutsClusterAnalysisTemplateList ¶

type RolloutsClusterAnalysisTemplateList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*RolloutsClusterAnalysisTemplate `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

RolloutsClusterAnalysisTemplateList rollouts cluster analysis template list

swagger:model RolloutsClusterAnalysisTemplateList

func (*RolloutsClusterAnalysisTemplateList) ContextValidate ¶

func (m *RolloutsClusterAnalysisTemplateList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts cluster analysis template list based on the context it is used

func (*RolloutsClusterAnalysisTemplateList) MarshalBinary ¶

func (m *RolloutsClusterAnalysisTemplateList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsClusterAnalysisTemplateList) UnmarshalBinary ¶

func (m *RolloutsClusterAnalysisTemplateList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsClusterAnalysisTemplateList) Validate ¶

Validate validates this rollouts cluster analysis template list

type RolloutsDatadogMetric ¶

type RolloutsDatadogMetric struct {

	// aggregator
	Aggregator string `json:"aggregator,omitempty"`

	// api version
	APIVersion string `json:"apiVersion,omitempty"`

	// formula
	Formula string `json:"formula,omitempty"`

	// interval
	Interval string `json:"interval,omitempty"`

	// queries
	Queries map[string]string `json:"queries,omitempty"`

	// query
	Query string `json:"query,omitempty"`
}

RolloutsDatadogMetric rollouts datadog metric

swagger:model RolloutsDatadogMetric

func (*RolloutsDatadogMetric) ContextValidate ¶

func (m *RolloutsDatadogMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts datadog metric based on context it is used

func (*RolloutsDatadogMetric) MarshalBinary ¶

func (m *RolloutsDatadogMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsDatadogMetric) UnmarshalBinary ¶

func (m *RolloutsDatadogMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsDatadogMetric) Validate ¶

func (m *RolloutsDatadogMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts datadog metric

type RolloutsDryRun ¶

type RolloutsDryRun struct {

	// metric name
	MetricName string `json:"metricName,omitempty"`
}

RolloutsDryRun rollouts dry run

swagger:model RolloutsDryRun

func (*RolloutsDryRun) ContextValidate ¶

func (m *RolloutsDryRun) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts dry run based on context it is used

func (*RolloutsDryRun) MarshalBinary ¶

func (m *RolloutsDryRun) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsDryRun) UnmarshalBinary ¶

func (m *RolloutsDryRun) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsDryRun) Validate ¶

func (m *RolloutsDryRun) Validate(formats strfmt.Registry) error

Validate validates this rollouts dry run

type RolloutsFieldRef ¶

type RolloutsFieldRef struct {

	// Required: Path of the field to select in the specified API version
	FieldPath string `json:"fieldPath,omitempty"`
}

RolloutsFieldRef rollouts field ref

swagger:model RolloutsFieldRef

func (*RolloutsFieldRef) ContextValidate ¶

func (m *RolloutsFieldRef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts field ref based on context it is used

func (*RolloutsFieldRef) MarshalBinary ¶

func (m *RolloutsFieldRef) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsFieldRef) UnmarshalBinary ¶

func (m *RolloutsFieldRef) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsFieldRef) Validate ¶

func (m *RolloutsFieldRef) Validate(formats strfmt.Registry) error

Validate validates this rollouts field ref

type RolloutsGraphiteMetric ¶

type RolloutsGraphiteMetric struct {

	// address
	Address string `json:"address,omitempty"`

	// query
	Query string `json:"query,omitempty"`
}

RolloutsGraphiteMetric rollouts graphite metric

swagger:model RolloutsGraphiteMetric

func (*RolloutsGraphiteMetric) ContextValidate ¶

func (m *RolloutsGraphiteMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts graphite metric based on context it is used

func (*RolloutsGraphiteMetric) MarshalBinary ¶

func (m *RolloutsGraphiteMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsGraphiteMetric) UnmarshalBinary ¶

func (m *RolloutsGraphiteMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsGraphiteMetric) Validate ¶

func (m *RolloutsGraphiteMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts graphite metric

type RolloutsInfluxdbMetric ¶

type RolloutsInfluxdbMetric struct {

	// profile
	Profile string `json:"profile,omitempty"`

	// query
	Query string `json:"query,omitempty"`
}

RolloutsInfluxdbMetric rollouts influxdb metric

swagger:model RolloutsInfluxdbMetric

func (*RolloutsInfluxdbMetric) ContextValidate ¶

func (m *RolloutsInfluxdbMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts influxdb metric based on context it is used

func (*RolloutsInfluxdbMetric) MarshalBinary ¶

func (m *RolloutsInfluxdbMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsInfluxdbMetric) UnmarshalBinary ¶

func (m *RolloutsInfluxdbMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsInfluxdbMetric) Validate ¶

func (m *RolloutsInfluxdbMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts influxdb metric

type RolloutsJobMetric ¶

type RolloutsJobMetric struct {

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// spec
	Spec *V1JobSpec `json:"spec,omitempty"`
}

RolloutsJobMetric rollouts job metric

swagger:model RolloutsJobMetric

func (*RolloutsJobMetric) ContextValidate ¶

func (m *RolloutsJobMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts job metric based on the context it is used

func (*RolloutsJobMetric) MarshalBinary ¶

func (m *RolloutsJobMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsJobMetric) UnmarshalBinary ¶

func (m *RolloutsJobMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsJobMetric) Validate ¶

func (m *RolloutsJobMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts job metric

type RolloutsKayentaMetric ¶

type RolloutsKayentaMetric struct {

	// address
	Address string `json:"address,omitempty"`

	// application
	Application string `json:"application,omitempty"`

	// canary config name
	CanaryConfigName string `json:"canaryConfigName,omitempty"`

	// configuration account name
	ConfigurationAccountName string `json:"configurationAccountName,omitempty"`

	// metrics account name
	MetricsAccountName string `json:"metricsAccountName,omitempty"`

	// scopes
	Scopes []*RolloutsKayentaScope `json:"scopes"`

	// storage account name
	StorageAccountName string `json:"storageAccountName,omitempty"`

	// threshold
	Threshold *RolloutsKayentaThreshold `json:"threshold,omitempty"`
}

RolloutsKayentaMetric rollouts kayenta metric

swagger:model RolloutsKayentaMetric

func (*RolloutsKayentaMetric) ContextValidate ¶

func (m *RolloutsKayentaMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts kayenta metric based on the context it is used

func (*RolloutsKayentaMetric) MarshalBinary ¶

func (m *RolloutsKayentaMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsKayentaMetric) UnmarshalBinary ¶

func (m *RolloutsKayentaMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsKayentaMetric) Validate ¶

func (m *RolloutsKayentaMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts kayenta metric

type RolloutsKayentaScope ¶

type RolloutsKayentaScope struct {

	// control scope
	ControlScope *RolloutsScopeDetail `json:"controlScope,omitempty"`

	// experiment scope
	ExperimentScope *RolloutsScopeDetail `json:"experimentScope,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

RolloutsKayentaScope rollouts kayenta scope

swagger:model RolloutsKayentaScope

func (*RolloutsKayentaScope) ContextValidate ¶

func (m *RolloutsKayentaScope) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts kayenta scope based on the context it is used

func (*RolloutsKayentaScope) MarshalBinary ¶

func (m *RolloutsKayentaScope) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsKayentaScope) UnmarshalBinary ¶

func (m *RolloutsKayentaScope) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsKayentaScope) Validate ¶

func (m *RolloutsKayentaScope) Validate(formats strfmt.Registry) error

Validate validates this rollouts kayenta scope

type RolloutsKayentaThreshold ¶

type RolloutsKayentaThreshold struct {

	// marginal
	Marginal int64 `json:"marginal,omitempty"`

	// pass
	Pass int64 `json:"pass,omitempty"`
}

RolloutsKayentaThreshold rollouts kayenta threshold

swagger:model RolloutsKayentaThreshold

func (*RolloutsKayentaThreshold) ContextValidate ¶

func (m *RolloutsKayentaThreshold) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts kayenta threshold based on context it is used

func (*RolloutsKayentaThreshold) MarshalBinary ¶

func (m *RolloutsKayentaThreshold) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsKayentaThreshold) UnmarshalBinary ¶

func (m *RolloutsKayentaThreshold) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsKayentaThreshold) Validate ¶

func (m *RolloutsKayentaThreshold) Validate(formats strfmt.Registry) error

Validate validates this rollouts kayenta threshold

type RolloutsMeasurement ¶

type RolloutsMeasurement struct {

	// finished at
	FinishedAt string `json:"finishedAt,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// metadata
	Metadata map[string]string `json:"metadata,omitempty"`

	// phase
	Phase string `json:"phase,omitempty"`

	// resume at
	ResumeAt string `json:"resumeAt,omitempty"`

	// started at
	StartedAt string `json:"startedAt,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

RolloutsMeasurement rollouts measurement

swagger:model RolloutsMeasurement

func (*RolloutsMeasurement) ContextValidate ¶

func (m *RolloutsMeasurement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts measurement based on context it is used

func (*RolloutsMeasurement) MarshalBinary ¶

func (m *RolloutsMeasurement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsMeasurement) UnmarshalBinary ¶

func (m *RolloutsMeasurement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsMeasurement) Validate ¶

func (m *RolloutsMeasurement) Validate(formats strfmt.Registry) error

Validate validates this rollouts measurement

type RolloutsMeasurementRetention ¶

type RolloutsMeasurementRetention struct {

	// limit
	Limit int64 `json:"limit,omitempty"`

	// metric name
	MetricName string `json:"metricName,omitempty"`
}

RolloutsMeasurementRetention rollouts measurement retention

swagger:model RolloutsMeasurementRetention

func (*RolloutsMeasurementRetention) ContextValidate ¶

func (m *RolloutsMeasurementRetention) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts measurement retention based on context it is used

func (*RolloutsMeasurementRetention) MarshalBinary ¶

func (m *RolloutsMeasurementRetention) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsMeasurementRetention) UnmarshalBinary ¶

func (m *RolloutsMeasurementRetention) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsMeasurementRetention) Validate ¶

func (m *RolloutsMeasurementRetention) Validate(formats strfmt.Registry) error

Validate validates this rollouts measurement retention

type RolloutsMetric ¶

type RolloutsMetric struct {

	// consecutive error limit
	ConsecutiveErrorLimit *IntOrString `json:"consecutiveErrorLimit,omitempty"`

	// consecutive success limit
	ConsecutiveSuccessLimit *IntOrString `json:"consecutiveSuccessLimit,omitempty"`

	// count
	Count *IntOrString `json:"count,omitempty"`

	// failure condition
	FailureCondition string `json:"failureCondition,omitempty"`

	// failure limit
	FailureLimit *IntOrString `json:"failureLimit,omitempty"`

	// inconclusive limit
	InconclusiveLimit *IntOrString `json:"inconclusiveLimit,omitempty"`

	// initial delay
	InitialDelay string `json:"initialDelay,omitempty"`

	// interval
	Interval string `json:"interval,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// provider
	Provider *RolloutsMetricProvider `json:"provider,omitempty"`

	// success condition
	SuccessCondition string `json:"successCondition,omitempty"`
}

RolloutsMetric rollouts metric

swagger:model RolloutsMetric

func (*RolloutsMetric) ContextValidate ¶

func (m *RolloutsMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts metric based on the context it is used

func (*RolloutsMetric) MarshalBinary ¶

func (m *RolloutsMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsMetric) UnmarshalBinary ¶

func (m *RolloutsMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsMetric) Validate ¶

func (m *RolloutsMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts metric

type RolloutsMetricProvider ¶

type RolloutsMetricProvider struct {

	// cloud watch
	CloudWatch *RolloutsCloudWatchMetric `json:"cloudWatch,omitempty"`

	// datadog
	Datadog *RolloutsDatadogMetric `json:"datadog,omitempty"`

	// graphite
	Graphite *RolloutsGraphiteMetric `json:"graphite,omitempty"`

	// influxdb
	Influxdb *RolloutsInfluxdbMetric `json:"influxdb,omitempty"`

	// job
	Job *RolloutsJobMetric `json:"job,omitempty"`

	// kayenta
	Kayenta *RolloutsKayentaMetric `json:"kayenta,omitempty"`

	// new relic
	NewRelic *RolloutsNewRelicMetric `json:"newRelic,omitempty"`

	// plugin
	Plugin map[string]strfmt.Base64 `json:"plugin,omitempty"`

	// prometheus
	Prometheus *RolloutsPrometheusMetric `json:"prometheus,omitempty"`

	// skywalking
	Skywalking *RolloutsSkyWalkingMetric `json:"skywalking,omitempty"`

	// wavefront
	Wavefront *RolloutsWavefrontMetric `json:"wavefront,omitempty"`

	// web
	Web *RolloutsWebMetric `json:"web,omitempty"`
}

RolloutsMetricProvider rollouts metric provider

swagger:model RolloutsMetricProvider

func (*RolloutsMetricProvider) ContextValidate ¶

func (m *RolloutsMetricProvider) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts metric provider based on the context it is used

func (*RolloutsMetricProvider) MarshalBinary ¶

func (m *RolloutsMetricProvider) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsMetricProvider) UnmarshalBinary ¶

func (m *RolloutsMetricProvider) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsMetricProvider) Validate ¶

func (m *RolloutsMetricProvider) Validate(formats strfmt.Registry) error

Validate validates this rollouts metric provider

type RolloutsMetricResult ¶

type RolloutsMetricResult struct {

	// consecutive error
	ConsecutiveError int64 `json:"consecutiveError,omitempty"`

	// count
	Count int64 `json:"count,omitempty"`

	// dry run
	DryRun bool `json:"dryRun,omitempty"`

	// error
	Error int64 `json:"error,omitempty"`

	// failed
	Failed int64 `json:"failed,omitempty"`

	// inconclusive
	Inconclusive int64 `json:"inconclusive,omitempty"`

	// measurements
	Measurements []*RolloutsMeasurement `json:"measurements"`

	// message
	Message string `json:"message,omitempty"`

	// metadata
	Metadata map[string]string `json:"metadata,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// phase
	Phase string `json:"phase,omitempty"`

	// successful
	Successful int64 `json:"successful,omitempty"`
}

RolloutsMetricResult rollouts metric result

swagger:model RolloutsMetricResult

func (*RolloutsMetricResult) ContextValidate ¶

func (m *RolloutsMetricResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts metric result based on the context it is used

func (*RolloutsMetricResult) MarshalBinary ¶

func (m *RolloutsMetricResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsMetricResult) UnmarshalBinary ¶

func (m *RolloutsMetricResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsMetricResult) Validate ¶

func (m *RolloutsMetricResult) Validate(formats strfmt.Registry) error

Validate validates this rollouts metric result

type RolloutsNewRelicMetric ¶

type RolloutsNewRelicMetric struct {

	// profile
	Profile string `json:"profile,omitempty"`

	// query
	Query string `json:"query,omitempty"`
}

RolloutsNewRelicMetric rollouts new relic metric

swagger:model RolloutsNewRelicMetric

func (*RolloutsNewRelicMetric) ContextValidate ¶

func (m *RolloutsNewRelicMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts new relic metric based on context it is used

func (*RolloutsNewRelicMetric) MarshalBinary ¶

func (m *RolloutsNewRelicMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsNewRelicMetric) UnmarshalBinary ¶

func (m *RolloutsNewRelicMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsNewRelicMetric) Validate ¶

func (m *RolloutsNewRelicMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts new relic metric

type RolloutsOAuth2Config ¶

type RolloutsOAuth2Config struct {

	// client Id
	ClientID string `json:"clientId,omitempty"`

	// client secret
	ClientSecret string `json:"clientSecret,omitempty"`

	// scopes
	Scopes []string `json:"scopes"`

	// token Url
	TokenURL string `json:"tokenUrl,omitempty"`
}

RolloutsOAuth2Config rollouts o auth2 config

swagger:model RolloutsOAuth2Config

func (*RolloutsOAuth2Config) ContextValidate ¶

func (m *RolloutsOAuth2Config) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts o auth2 config based on context it is used

func (*RolloutsOAuth2Config) MarshalBinary ¶

func (m *RolloutsOAuth2Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsOAuth2Config) UnmarshalBinary ¶

func (m *RolloutsOAuth2Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsOAuth2Config) Validate ¶

func (m *RolloutsOAuth2Config) Validate(formats strfmt.Registry) error

Validate validates this rollouts o auth2 config

type RolloutsPrometheusMetric ¶

type RolloutsPrometheusMetric struct {

	// address
	Address string `json:"address,omitempty"`

	// authentication
	Authentication *RolloutsAuthentication `json:"authentication,omitempty"`

	// headers
	Headers []*RolloutsWebMetricHeader `json:"headers"`

	// insecure
	Insecure bool `json:"insecure,omitempty"`

	// query
	Query string `json:"query,omitempty"`

	// timeout
	Timeout int64 `json:"timeout,omitempty"`
}

RolloutsPrometheusMetric rollouts prometheus metric

swagger:model RolloutsPrometheusMetric

func (*RolloutsPrometheusMetric) ContextValidate ¶

func (m *RolloutsPrometheusMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts prometheus metric based on the context it is used

func (*RolloutsPrometheusMetric) MarshalBinary ¶

func (m *RolloutsPrometheusMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsPrometheusMetric) UnmarshalBinary ¶

func (m *RolloutsPrometheusMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsPrometheusMetric) Validate ¶

func (m *RolloutsPrometheusMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts prometheus metric

type RolloutsRunSummary ¶

type RolloutsRunSummary struct {

	// count
	Count int64 `json:"count,omitempty"`

	// error
	Error int64 `json:"error,omitempty"`

	// failed
	Failed int64 `json:"failed,omitempty"`

	// inconclusive
	Inconclusive int64 `json:"inconclusive,omitempty"`

	// successful
	Successful int64 `json:"successful,omitempty"`
}

RolloutsRunSummary rollouts run summary

swagger:model RolloutsRunSummary

func (*RolloutsRunSummary) ContextValidate ¶

func (m *RolloutsRunSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts run summary based on context it is used

func (*RolloutsRunSummary) MarshalBinary ¶

func (m *RolloutsRunSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsRunSummary) UnmarshalBinary ¶

func (m *RolloutsRunSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsRunSummary) Validate ¶

func (m *RolloutsRunSummary) Validate(formats strfmt.Registry) error

Validate validates this rollouts run summary

type RolloutsScopeDetail ¶

type RolloutsScopeDetail struct {

	// end
	End string `json:"end,omitempty"`

	// region
	Region string `json:"region,omitempty"`

	// scope
	Scope string `json:"scope,omitempty"`

	// start
	Start string `json:"start,omitempty"`

	// step
	Step int64 `json:"step,omitempty"`
}

RolloutsScopeDetail rollouts scope detail

swagger:model RolloutsScopeDetail

func (*RolloutsScopeDetail) ContextValidate ¶

func (m *RolloutsScopeDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts scope detail based on context it is used

func (*RolloutsScopeDetail) MarshalBinary ¶

func (m *RolloutsScopeDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsScopeDetail) UnmarshalBinary ¶

func (m *RolloutsScopeDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsScopeDetail) Validate ¶

func (m *RolloutsScopeDetail) Validate(formats strfmt.Registry) error

Validate validates this rollouts scope detail

type RolloutsSecretKeyRef ¶

type RolloutsSecretKeyRef struct {

	// key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

RolloutsSecretKeyRef rollouts secret key ref

swagger:model RolloutsSecretKeyRef

func (*RolloutsSecretKeyRef) ContextValidate ¶

func (m *RolloutsSecretKeyRef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts secret key ref based on context it is used

func (*RolloutsSecretKeyRef) MarshalBinary ¶

func (m *RolloutsSecretKeyRef) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsSecretKeyRef) UnmarshalBinary ¶

func (m *RolloutsSecretKeyRef) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsSecretKeyRef) Validate ¶

func (m *RolloutsSecretKeyRef) Validate(formats strfmt.Registry) error

Validate validates this rollouts secret key ref

type RolloutsSigv4Config ¶

type RolloutsSigv4Config struct {

	// profile
	Profile string `json:"profile,omitempty"`

	// region
	Region string `json:"region,omitempty"`

	// role arn
	RoleArn string `json:"roleArn,omitempty"`
}

RolloutsSigv4Config rollouts sigv4 config

swagger:model RolloutsSigv4Config

func (*RolloutsSigv4Config) ContextValidate ¶

func (m *RolloutsSigv4Config) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts sigv4 config based on context it is used

func (*RolloutsSigv4Config) MarshalBinary ¶

func (m *RolloutsSigv4Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsSigv4Config) UnmarshalBinary ¶

func (m *RolloutsSigv4Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsSigv4Config) Validate ¶

func (m *RolloutsSigv4Config) Validate(formats strfmt.Registry) error

Validate validates this rollouts sigv4 config

type RolloutsSkyWalkingMetric ¶

type RolloutsSkyWalkingMetric struct {

	// address
	Address string `json:"address,omitempty"`

	// interval
	Interval string `json:"interval,omitempty"`

	// query
	Query string `json:"query,omitempty"`
}

RolloutsSkyWalkingMetric rollouts sky walking metric

swagger:model RolloutsSkyWalkingMetric

func (*RolloutsSkyWalkingMetric) ContextValidate ¶

func (m *RolloutsSkyWalkingMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts sky walking metric based on context it is used

func (*RolloutsSkyWalkingMetric) MarshalBinary ¶

func (m *RolloutsSkyWalkingMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsSkyWalkingMetric) UnmarshalBinary ¶

func (m *RolloutsSkyWalkingMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsSkyWalkingMetric) Validate ¶

func (m *RolloutsSkyWalkingMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts sky walking metric

type RolloutsValueFrom ¶

type RolloutsValueFrom struct {

	// field ref
	FieldRef *RolloutsFieldRef `json:"fieldRef,omitempty"`

	// secret key ref
	SecretKeyRef *RolloutsSecretKeyRef `json:"secretKeyRef,omitempty"`
}

RolloutsValueFrom rollouts value from

swagger:model RolloutsValueFrom

func (*RolloutsValueFrom) ContextValidate ¶

func (m *RolloutsValueFrom) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts value from based on the context it is used

func (*RolloutsValueFrom) MarshalBinary ¶

func (m *RolloutsValueFrom) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsValueFrom) UnmarshalBinary ¶

func (m *RolloutsValueFrom) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsValueFrom) Validate ¶

func (m *RolloutsValueFrom) Validate(formats strfmt.Registry) error

Validate validates this rollouts value from

type RolloutsWavefrontMetric ¶

type RolloutsWavefrontMetric struct {

	// address
	Address string `json:"address,omitempty"`

	// query
	Query string `json:"query,omitempty"`
}

RolloutsWavefrontMetric rollouts wavefront metric

swagger:model RolloutsWavefrontMetric

func (*RolloutsWavefrontMetric) ContextValidate ¶

func (m *RolloutsWavefrontMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts wavefront metric based on context it is used

func (*RolloutsWavefrontMetric) MarshalBinary ¶

func (m *RolloutsWavefrontMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsWavefrontMetric) UnmarshalBinary ¶

func (m *RolloutsWavefrontMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsWavefrontMetric) Validate ¶

func (m *RolloutsWavefrontMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts wavefront metric

type RolloutsWebMetric ¶

type RolloutsWebMetric struct {

	// authentication
	Authentication *RolloutsAuthentication `json:"authentication,omitempty"`

	// body
	Body string `json:"body,omitempty"`

	// headers
	Headers []*RolloutsWebMetricHeader `json:"headers"`

	// insecure
	Insecure bool `json:"insecure,omitempty"`

	// json body
	JSONBody []int64 `json:"jsonBody"`

	// json path
	JSONPath string `json:"jsonPath,omitempty"`

	// method
	Method string `json:"method,omitempty"`

	// timeout seconds
	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`

	// URL is the address of the web metric
	URL string `json:"url,omitempty"`
}

RolloutsWebMetric rollouts web metric

swagger:model RolloutsWebMetric

func (*RolloutsWebMetric) ContextValidate ¶

func (m *RolloutsWebMetric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rollouts web metric based on the context it is used

func (*RolloutsWebMetric) MarshalBinary ¶

func (m *RolloutsWebMetric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsWebMetric) UnmarshalBinary ¶

func (m *RolloutsWebMetric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsWebMetric) Validate ¶

func (m *RolloutsWebMetric) Validate(formats strfmt.Registry) error

Validate validates this rollouts web metric

type RolloutsWebMetricHeader ¶

type RolloutsWebMetricHeader struct {

	// key
	Key string `json:"key,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

RolloutsWebMetricHeader rollouts web metric header

swagger:model RolloutsWebMetricHeader

func (*RolloutsWebMetricHeader) ContextValidate ¶

func (m *RolloutsWebMetricHeader) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this rollouts web metric header based on context it is used

func (*RolloutsWebMetricHeader) MarshalBinary ¶

func (m *RolloutsWebMetricHeader) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RolloutsWebMetricHeader) UnmarshalBinary ¶

func (m *RolloutsWebMetricHeader) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RolloutsWebMetricHeader) Validate ¶

func (m *RolloutsWebMetricHeader) Validate(formats strfmt.Registry) error

Validate validates this rollouts web metric header

type Stage ¶

type Stage struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes sources of Freight used by the Stage and how to incorporate
	// Freight into the Stage.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Spec struct {
		StageSpec
	} `json:"spec"`

	// Status describes the Stage's current and recent Freight, health, and more.
	Status struct {
		StageStatus
	} `json:"status,omitempty"`
}

Stage stage

swagger:model Stage

func (*Stage) ContextValidate ¶

func (m *Stage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stage based on the context it is used

func (*Stage) MarshalBinary ¶

func (m *Stage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Stage) UnmarshalBinary ¶

func (m *Stage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Stage) Validate ¶

func (m *Stage) Validate(formats strfmt.Registry) error

Validate validates this stage

type StageList ¶

type StageList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*Stage `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

StageList stage list

swagger:model StageList

func (*StageList) ContextValidate ¶

func (m *StageList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stage list based on the context it is used

func (*StageList) MarshalBinary ¶

func (m *StageList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StageList) UnmarshalBinary ¶

func (m *StageList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StageList) Validate ¶

func (m *StageList) Validate(formats strfmt.Registry) error

Validate validates this stage list

type StageSpec ¶

type StageSpec struct {

	// PromotionTemplate describes how to incorporate Freight into the Stage
	// using a Promotion.
	PromotionTemplate struct {
		PromotionTemplate
	} `json:"promotionTemplate,omitempty"`

	// RequestedFreight expresses the Stage's need for certain pieces of Freight,
	// each having originated from a particular Warehouse. This list must be
	// non-empty. In the common case, a Stage will request Freight having
	// originated from just one specific Warehouse. In advanced cases, requesting
	// Freight from multiple Warehouses provides a method of advancing new
	// artifacts of different types through parallel pipelines at different
	// speeds. This can be useful, for instance, if a Stage is home to multiple
	// microservices that are independently versioned.
	//
	// +kubebuilder:validation:MinItems=1
	RequestedFreight []*FreightRequest `json:"requestedFreight"`

	// Shard is the name of the shard that this Stage belongs to. This is an
	// optional field. If not specified, the Stage will belong to the default
	// shard. A defaulting webhook will sync the value of the
	// kargo.akuity.io/shard label with the value of this field. When this field
	// is empty, the webhook will ensure that label is absent.
	Shard string `json:"shard,omitempty"`

	// Vars is a list of variables that can be referenced anywhere in the
	// StageSpec that supports expressions. For example, the PromotionTemplate
	// and arguments of the Verification.
	Vars []*ExpressionVariable `json:"vars"`

	// Verification describes how to verify a Stage's current Freight is fit for
	// promotion downstream.
	Verification struct {
		Verification
	} `json:"verification,omitempty"`
}

StageSpec stage spec

swagger:model StageSpec

func (*StageSpec) ContextValidate ¶

func (m *StageSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stage spec based on the context it is used

func (*StageSpec) MarshalBinary ¶

func (m *StageSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StageSpec) UnmarshalBinary ¶

func (m *StageSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StageSpec) Validate ¶

func (m *StageSpec) Validate(formats strfmt.Registry) error

Validate validates this stage spec

type StageStats ¶

type StageStats struct {

	// Count contains the total number of Stages in the Project.
	Count int64 `json:"count,omitempty"`

	// Health contains a summary of the collective health of a Project's Stages.
	Health struct {
		HealthStats
	} `json:"health,omitempty"`
}

StageStats stage stats

swagger:model StageStats

func (*StageStats) ContextValidate ¶

func (m *StageStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stage stats based on the context it is used

func (*StageStats) MarshalBinary ¶

func (m *StageStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StageStats) UnmarshalBinary ¶

func (m *StageStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StageStats) Validate ¶

func (m *StageStats) Validate(formats strfmt.Registry) error

Validate validates this stage stats

type StageStatus ¶

type StageStatus struct {

	// AutoPromotionEnabled indicates whether automatic promotion is enabled
	// for the Stage based on the ProjectConfig.
	AutoPromotionEnabled bool `json:"autoPromotionEnabled,omitempty"`

	// Conditions contains the last observations of the Stage's current
	// state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []*V1Condition `json:"conditions"`

	// CurrentPromotion is a reference to the currently Running promotion.
	CurrentPromotion struct {
		PromotionReference
	} `json:"currentPromotion,omitempty"`

	// FreightHistory is a list of recent Freight selections that were deployed
	// to the Stage. By default, the last ten Freight selections are stored.
	// The first item in the list is the most recent Freight selection and
	// currently deployed to the Stage, subsequent items are older selections.
	FreightHistory []*FreightCollection `json:"freightHistory"`

	// FreightSummary is human-readable text maintained by the controller that
	// summarizes what Freight is currently deployed to the Stage. For Stages that
	// request a single piece of Freight AND the request has been fulfilled, this
	// field will simply contain the name of the Freight. For Stages that request
	// a single piece of Freight AND the request has NOT been fulfilled, or for
	// Stages that request multiple pieces of Freight, this field will contain a
	// summary of fulfilled/requested Freight. The existence of this field is a
	// workaround for kubectl limitations so that this complex but valuable
	// information can be displayed in a column in response to `kubectl get
	// stages`.
	FreightSummary string `json:"freightSummary,omitempty"`

	// Health is the Stage's last observed health.
	Health struct {
		Health
	} `json:"health,omitempty"`

	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty"`

	// LastPromotion is a reference to the last completed promotion.
	LastPromotion struct {
		PromotionReference
	} `json:"lastPromotion,omitempty"`

	// Metadata is a map of arbitrary metadata associated with the Stage.
	// This is useful for storing additional information about the Stage
	// that can be shared across promotions, verifications, or other processes.
	Metadata map[string]any `json:"metadata,omitempty"`

	// ObservedGeneration represents the .metadata.generation that this Stage
	// status was reconciled against.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

StageStatus stage status

swagger:model StageStatus

func (*StageStatus) ContextValidate ¶

func (m *StageStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stage status based on the context it is used

func (*StageStatus) MarshalBinary ¶

func (m *StageStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StageStatus) UnmarshalBinary ¶

func (m *StageStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StageStatus) Validate ¶

func (m *StageStatus) Validate(formats strfmt.Registry) error

Validate validates this stage status

type StepExecutionMetadata ¶

type StepExecutionMetadata struct {

	// Alias is the alias of the step.
	Alias string `json:"alias,omitempty"`

	// ContinueOnError is a boolean value that, if set to true, will cause the
	// Promotion to continue executing the next step even if this step fails. It
	// also will not permit this failure to impact the overall status of the
	// Promotion.
	ContinueOnError bool `json:"continueOnError,omitempty"`

	// ErrorCount tracks consecutive failed attempts to execute the step.
	ErrorCount int64 `json:"errorCount,omitempty"`

	// FinishedAt is the time at which the final attempt to execute the step
	// completed.
	FinishedAt string `json:"finishedAt,omitempty"`

	// Message is a display message about the step, including any errors.
	Message string `json:"message,omitempty"`

	// StartedAt is the time at which the first attempt to execute the step
	// began.
	StartedAt string `json:"startedAt,omitempty"`

	// Status is the high-level outcome of the step.
	Status string `json:"status,omitempty"`
}

StepExecutionMetadata step execution metadata

swagger:model StepExecutionMetadata

func (*StepExecutionMetadata) ContextValidate ¶

func (m *StepExecutionMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this step execution metadata based on context it is used

func (*StepExecutionMetadata) MarshalBinary ¶

func (m *StepExecutionMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StepExecutionMetadata) UnmarshalBinary ¶

func (m *StepExecutionMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StepExecutionMetadata) Validate ¶

func (m *StepExecutionMetadata) Validate(formats strfmt.Registry) error

Validate validates this step execution metadata

type TagMap ¶

type TagMap struct {

	// tags
	Tags map[string]ImageStageMap `json:"tags,omitempty"`
}

TagMap tag map

swagger:model TagMap

func (*TagMap) ContextValidate ¶

func (m *TagMap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tag map based on the context it is used

func (*TagMap) MarshalBinary ¶

func (m *TagMap) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TagMap) UnmarshalBinary ¶

func (m *TagMap) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TagMap) Validate ¶

func (m *TagMap) Validate(formats strfmt.Registry) error

Validate validates this tag map

type UpdateConfigMapRequest ¶

type UpdateConfigMapRequest struct {

	// data
	Data map[string]string `json:"data,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// replicate
	Replicate bool `json:"replicate,omitempty"`
}

UpdateConfigMapRequest update config map request

swagger:model UpdateConfigMapRequest

func (*UpdateConfigMapRequest) ContextValidate ¶

func (m *UpdateConfigMapRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update config map request based on context it is used

func (*UpdateConfigMapRequest) MarshalBinary ¶

func (m *UpdateConfigMapRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateConfigMapRequest) UnmarshalBinary ¶

func (m *UpdateConfigMapRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateConfigMapRequest) Validate ¶

func (m *UpdateConfigMapRequest) Validate(formats strfmt.Registry) error

Validate validates this update config map request

type UpdateGenericCredentialsRequest ¶

type UpdateGenericCredentialsRequest struct {

	// data
	Data map[string]string `json:"data,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// replicate
	Replicate bool `json:"replicate,omitempty"`
}

UpdateGenericCredentialsRequest update generic credentials request

swagger:model UpdateGenericCredentialsRequest

func (*UpdateGenericCredentialsRequest) ContextValidate ¶

func (m *UpdateGenericCredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update generic credentials request based on context it is used

func (*UpdateGenericCredentialsRequest) MarshalBinary ¶

func (m *UpdateGenericCredentialsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateGenericCredentialsRequest) UnmarshalBinary ¶

func (m *UpdateGenericCredentialsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateGenericCredentialsRequest) Validate ¶

Validate validates this update generic credentials request

type UpdateRepoCredentialsRequest ¶

type UpdateRepoCredentialsRequest struct {

	// description
	Description string `json:"description,omitempty"`

	// #nosec G117 -- Request data is unmarshaled into this struct, but the struct
	// is never marshaled and transmitted to anywhere.
	Password string `json:"password,omitempty"`

	// repo Url
	RepoURL string `json:"repoUrl,omitempty"`

	// repo Url is regex
	RepoURLIsRegex bool `json:"repoUrlIsRegex,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

UpdateRepoCredentialsRequest update repo credentials request

swagger:model UpdateRepoCredentialsRequest

func (*UpdateRepoCredentialsRequest) ContextValidate ¶

func (m *UpdateRepoCredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update repo credentials request based on context it is used

func (*UpdateRepoCredentialsRequest) MarshalBinary ¶

func (m *UpdateRepoCredentialsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateRepoCredentialsRequest) UnmarshalBinary ¶

func (m *UpdateRepoCredentialsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateRepoCredentialsRequest) Validate ¶

func (m *UpdateRepoCredentialsRequest) Validate(formats strfmt.Registry) error

Validate validates this update repo credentials request

type UserClaims ¶

type UserClaims struct {

	// claims
	Claims []*Claim `json:"claims"`
}

UserClaims user claims

swagger:model UserClaims

func (*UserClaims) ContextValidate ¶

func (m *UserClaims) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user claims based on the context it is used

func (*UserClaims) MarshalBinary ¶

func (m *UserClaims) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserClaims) UnmarshalBinary ¶

func (m *UserClaims) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserClaims) Validate ¶

func (m *UserClaims) Validate(formats strfmt.Registry) error

Validate validates this user claims

type V1AWSElasticBlockStoreVolumeSource ¶

type V1AWSElasticBlockStoreVolumeSource struct {

	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	// +optional
	FsType string `json:"fsType,omitempty"`

	// partition is the partition in the volume that you want to mount.
	// If omitted, the default is to mount by volume name.
	// Examples: For volume /dev/sda1, you specify the partition as "1".
	// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
	// +optional
	Partition int64 `json:"partition,omitempty"`

	// readOnly value true will force the readOnly setting in VolumeMounts.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	VolumeID string `json:"volumeID,omitempty"`
}

V1AWSElasticBlockStoreVolumeSource v1 a w s elastic block store volume source

swagger:model V1AWSElasticBlockStoreVolumeSource

func (*V1AWSElasticBlockStoreVolumeSource) ContextValidate ¶

func (m *V1AWSElasticBlockStoreVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 a w s elastic block store volume source based on context it is used

func (*V1AWSElasticBlockStoreVolumeSource) MarshalBinary ¶

func (m *V1AWSElasticBlockStoreVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1AWSElasticBlockStoreVolumeSource) UnmarshalBinary ¶

func (m *V1AWSElasticBlockStoreVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1AWSElasticBlockStoreVolumeSource) Validate ¶

Validate validates this v1 a w s elastic block store volume source

type V1Affinity ¶

type V1Affinity struct {

	// Describes node affinity scheduling rules for the pod.
	// +optional
	NodeAffinity struct {
		V1NodeAffinity
	} `json:"nodeAffinity,omitempty"`

	// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
	// +optional
	PodAffinity struct {
		V1PodAffinity
	} `json:"podAffinity,omitempty"`

	// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
	// +optional
	PodAntiAffinity struct {
		V1PodAntiAffinity
	} `json:"podAntiAffinity,omitempty"`
}

V1Affinity v1 affinity

swagger:model V1Affinity

func (*V1Affinity) ContextValidate ¶

func (m *V1Affinity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 affinity based on the context it is used

func (*V1Affinity) MarshalBinary ¶

func (m *V1Affinity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Affinity) UnmarshalBinary ¶

func (m *V1Affinity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Affinity) Validate ¶

func (m *V1Affinity) Validate(formats strfmt.Registry) error

Validate validates this v1 affinity

type V1AppArmorProfile ¶

type V1AppArmorProfile struct {

	// localhostProfile indicates a profile loaded on the node that should be used.
	// The profile must be preconfigured on the node to work.
	// Must match the loaded name of the profile.
	// Must be set if and only if type is "Localhost".
	// +optional
	LocalhostProfile string `json:"localhostProfile,omitempty"`

	// type indicates which kind of AppArmor profile will be applied.
	// Valid options are:
	//   Localhost - a profile pre-loaded on the node.
	//   RuntimeDefault - the container runtime's default profile.
	//   Unconfined - no AppArmor enforcement.
	// +unionDiscriminator
	Type string `json:"type,omitempty"`
}

V1AppArmorProfile v1 app armor profile

swagger:model V1AppArmorProfile

func (*V1AppArmorProfile) ContextValidate ¶

func (m *V1AppArmorProfile) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 app armor profile based on context it is used

func (*V1AppArmorProfile) MarshalBinary ¶

func (m *V1AppArmorProfile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1AppArmorProfile) UnmarshalBinary ¶

func (m *V1AppArmorProfile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1AppArmorProfile) Validate ¶

func (m *V1AppArmorProfile) Validate(formats strfmt.Registry) error

Validate validates this v1 app armor profile

type V1AzureDiskVolumeSource ¶

type V1AzureDiskVolumeSource struct {

	// cachingMode is the Host Caching mode: None, Read Only, Read Write.
	// +optional
	// +default=ref(AzureDataDiskCachingReadWrite)
	CachingMode string `json:"cachingMode,omitempty"`

	// diskName is the Name of the data disk in the blob storage
	DiskName string `json:"diskName,omitempty"`

	// diskURI is the URI of data disk in the blob storage
	DiskURI string `json:"diskURI,omitempty"`

	// fsType is Filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// +optional
	// +default="ext4"
	FsType string `json:"fsType,omitempty"`

	// kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
	// +default=ref(AzureSharedBlobDisk)
	Kind string `json:"kind,omitempty"`

	// readOnly Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	// +default=false
	ReadOnly bool `json:"readOnly,omitempty"`
}

V1AzureDiskVolumeSource v1 azure disk volume source

swagger:model V1AzureDiskVolumeSource

func (*V1AzureDiskVolumeSource) ContextValidate ¶

func (m *V1AzureDiskVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 azure disk volume source based on context it is used

func (*V1AzureDiskVolumeSource) MarshalBinary ¶

func (m *V1AzureDiskVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1AzureDiskVolumeSource) UnmarshalBinary ¶

func (m *V1AzureDiskVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1AzureDiskVolumeSource) Validate ¶

func (m *V1AzureDiskVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 azure disk volume source

type V1AzureFileVolumeSource ¶

type V1AzureFileVolumeSource struct {

	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretName is the  name of secret that contains Azure Storage Account Name and Key
	SecretName string `json:"secretName,omitempty"`

	// shareName is the azure share Name
	ShareName string `json:"shareName,omitempty"`
}

V1AzureFileVolumeSource v1 azure file volume source

swagger:model V1AzureFileVolumeSource

func (*V1AzureFileVolumeSource) ContextValidate ¶

func (m *V1AzureFileVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 azure file volume source based on context it is used

func (*V1AzureFileVolumeSource) MarshalBinary ¶

func (m *V1AzureFileVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1AzureFileVolumeSource) UnmarshalBinary ¶

func (m *V1AzureFileVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1AzureFileVolumeSource) Validate ¶

func (m *V1AzureFileVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 azure file volume source

type V1CSIVolumeSource ¶

type V1CSIVolumeSource struct {

	// driver is the name of the CSI driver that handles this volume.
	// Consult with your admin for the correct name as registered in the cluster.
	Driver string `json:"driver,omitempty"`

	// fsType to mount. Ex. "ext4", "xfs", "ntfs".
	// If not provided, the empty value is passed to the associated CSI driver
	// which will determine the default filesystem to apply.
	// +optional
	FsType string `json:"fsType,omitempty"`

	// nodePublishSecretRef is a reference to the secret object containing
	// sensitive information to pass to the CSI driver to complete the CSI
	// NodePublishVolume and NodeUnpublishVolume calls.
	// This field is optional, and  may be empty if no secret is required. If the
	// secret object contains more than one secret, all secret references are passed.
	// +optional
	NodePublishSecretRef struct {
		V1LocalObjectReference
	} `json:"nodePublishSecretRef,omitempty"`

	// readOnly specifies a read-only configuration for the volume.
	// Defaults to false (read/write).
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// volumeAttributes stores driver-specific properties that are passed to the CSI
	// driver. Consult your driver's documentation for supported values.
	// +optional
	VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"`
}

V1CSIVolumeSource v1 c s i volume source

swagger:model V1CSIVolumeSource

func (*V1CSIVolumeSource) ContextValidate ¶

func (m *V1CSIVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 c s i volume source based on the context it is used

func (*V1CSIVolumeSource) MarshalBinary ¶

func (m *V1CSIVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1CSIVolumeSource) UnmarshalBinary ¶

func (m *V1CSIVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1CSIVolumeSource) Validate ¶

func (m *V1CSIVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 c s i volume source

type V1Capabilities ¶

type V1Capabilities struct {

	// Added capabilities
	// +optional
	// +listType=atomic
	Add []string `json:"add"`

	// Removed capabilities
	// +optional
	// +listType=atomic
	Drop []string `json:"drop"`
}

V1Capabilities v1 capabilities

swagger:model V1Capabilities

func (*V1Capabilities) ContextValidate ¶

func (m *V1Capabilities) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 capabilities based on context it is used

func (*V1Capabilities) MarshalBinary ¶

func (m *V1Capabilities) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Capabilities) UnmarshalBinary ¶

func (m *V1Capabilities) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Capabilities) Validate ¶

func (m *V1Capabilities) Validate(formats strfmt.Registry) error

Validate validates this v1 capabilities

type V1CephFSVolumeSource ¶

type V1CephFSVolumeSource struct {

	// monitors is Required: Monitors is a collection of Ceph monitors
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	// +listType=atomic
	Monitors []string `json:"monitors"`

	// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
	// +optional
	Path string `json:"path,omitempty"`

	// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	// +optional
	SecretFile string `json:"secretFile,omitempty"`

	// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	// +optional
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`

	// user is optional: User is the rados user name, default is admin
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	// +optional
	User string `json:"user,omitempty"`
}

V1CephFSVolumeSource v1 ceph f s volume source

swagger:model V1CephFSVolumeSource

func (*V1CephFSVolumeSource) ContextValidate ¶

func (m *V1CephFSVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 ceph f s volume source based on the context it is used

func (*V1CephFSVolumeSource) MarshalBinary ¶

func (m *V1CephFSVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1CephFSVolumeSource) UnmarshalBinary ¶

func (m *V1CephFSVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1CephFSVolumeSource) Validate ¶

func (m *V1CephFSVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 ceph f s volume source

type V1CinderVolumeSource ¶

type V1CinderVolumeSource struct {

	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	// +optional
	FsType string `json:"fsType,omitempty"`

	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretRef is optional: points to a secret object containing parameters used to connect
	// to OpenStack.
	// +optional
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`

	// volumeID used to identify the volume in cinder.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	VolumeID string `json:"volumeID,omitempty"`
}

V1CinderVolumeSource v1 cinder volume source

swagger:model V1CinderVolumeSource

func (*V1CinderVolumeSource) ContextValidate ¶

func (m *V1CinderVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 cinder volume source based on the context it is used

func (*V1CinderVolumeSource) MarshalBinary ¶

func (m *V1CinderVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1CinderVolumeSource) UnmarshalBinary ¶

func (m *V1CinderVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1CinderVolumeSource) Validate ¶

func (m *V1CinderVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 cinder volume source

type V1ClusterTrustBundleProjection ¶

type V1ClusterTrustBundleProjection struct {

	// Select all ClusterTrustBundles that match this label selector.  Only has
	// effect if signerName is set.  Mutually-exclusive with name.  If unset,
	// interpreted as "match nothing".  If set but empty, interpreted as "match
	// everything".
	// +optional
	LabelSelector struct {
		V1LabelSelector
	} `json:"labelSelector,omitempty"`

	// Select a single ClusterTrustBundle by object name.  Mutually-exclusive
	// with signerName and labelSelector.
	// +optional
	Name string `json:"name,omitempty"`

	// If true, don't block pod startup if the referenced ClusterTrustBundle(s)
	// aren't available.  If using name, then the named ClusterTrustBundle is
	// allowed not to exist.  If using signerName, then the combination of
	// signerName and labelSelector is allowed to match zero
	// ClusterTrustBundles.
	// +optional
	Optional bool `json:"optional,omitempty"`

	// Relative path from the volume root to write the bundle.
	Path string `json:"path,omitempty"`

	// Select all ClusterTrustBundles that match this signer name.
	// Mutually-exclusive with name.  The contents of all selected
	// ClusterTrustBundles will be unified and deduplicated.
	// +optional
	SignerName string `json:"signerName,omitempty"`
}

V1ClusterTrustBundleProjection v1 cluster trust bundle projection

swagger:model V1ClusterTrustBundleProjection

func (*V1ClusterTrustBundleProjection) ContextValidate ¶

func (m *V1ClusterTrustBundleProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 cluster trust bundle projection based on the context it is used

func (*V1ClusterTrustBundleProjection) MarshalBinary ¶

func (m *V1ClusterTrustBundleProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ClusterTrustBundleProjection) UnmarshalBinary ¶

func (m *V1ClusterTrustBundleProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ClusterTrustBundleProjection) Validate ¶

func (m *V1ClusterTrustBundleProjection) Validate(formats strfmt.Registry) error

Validate validates this v1 cluster trust bundle projection

type V1CompletionMode ¶

type V1CompletionMode string

V1CompletionMode v1 completion mode

swagger:model V1CompletionMode

const (

	// V1CompletionModeNonIndexed captures enum value "NonIndexed"
	V1CompletionModeNonIndexed V1CompletionMode = "NonIndexed"

	// V1CompletionModeIndexed captures enum value "Indexed"
	V1CompletionModeIndexed V1CompletionMode = "Indexed"
)

func NewV1CompletionMode ¶

func NewV1CompletionMode(value V1CompletionMode) *V1CompletionMode

func (V1CompletionMode) ContextValidate ¶

func (m V1CompletionMode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 completion mode based on context it is used

func (V1CompletionMode) Pointer ¶

func (m V1CompletionMode) Pointer() *V1CompletionMode

Pointer returns a pointer to a freshly-allocated V1CompletionMode.

func (V1CompletionMode) Validate ¶

func (m V1CompletionMode) Validate(formats strfmt.Registry) error

Validate validates this v1 completion mode

type V1Condition ¶

type V1Condition struct {

	// lastTransitionTime is the last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	// Required: true
	LastTransitionTime *string `json:"lastTransitionTime"`

	// message is a human readable message indicating details about the transition.
	// This may be an empty string.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=32768
	// Required: true
	Message *string `json:"message"`

	// observedGeneration represents the .metadata.generation that the condition was set based upon.
	// For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
	// with respect to the current state of the instance.
	// +optional
	// +kubebuilder:validation:Minimum=0
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// reason contains a programmatic identifier indicating the reason for the condition's last transition.
	// Producers of specific condition types may define expected values and meanings for this field,
	// and whether the values are considered a guaranteed API.
	// The value should be a CamelCase string.
	// This field may not be empty.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=1024
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
	// Required: true
	Reason *string `json:"reason"`

	// status of the condition, one of True, False, Unknown.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=True;False;Unknown
	// Required: true
	Status *string `json:"status"`

	// type of condition in CamelCase or in foo.example.com/CamelCase.
	// ---
	// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
	// useful (see .node.status.conditions), the ability to deconflict is important.
	// The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
	// +kubebuilder:validation:MaxLength=316
	// Required: true
	Type *string `json:"type"`
}

V1Condition v1 condition

swagger:model V1Condition

func (*V1Condition) ContextValidate ¶

func (m *V1Condition) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 condition based on context it is used

func (*V1Condition) MarshalBinary ¶

func (m *V1Condition) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Condition) UnmarshalBinary ¶

func (m *V1Condition) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Condition) Validate ¶

func (m *V1Condition) Validate(formats strfmt.Registry) error

Validate validates this v1 condition

type V1ConfigMap ¶

type V1ConfigMap struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// BinaryData contains the binary data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// BinaryData can contain byte sequences that are not in the UTF-8 range.
	// The keys stored in BinaryData must not overlap with the ones in
	// the Data field, this is enforced during validation process.
	// Using this field will require 1.10+ apiserver and
	// kubelet.
	// +optional
	BinaryData map[string]strfmt.Base64 `json:"binaryData,omitempty"`

	// Data contains the configuration data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// Values with non-UTF-8 byte sequences must use the BinaryData field.
	// The keys stored in Data must not overlap with the keys in
	// the BinaryData field, this is enforced during validation process.
	// +optional
	Data map[string]string `json:"data,omitempty"`

	// Immutable, if set to true, ensures that data stored in the ConfigMap cannot
	// be updated (only object metadata can be modified).
	// If not set to true, the field can be modified at any time.
	// Defaulted to nil.
	// +optional
	Immutable bool `json:"immutable,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	Metadata struct {
		V1ObjectMeta
	} `json:"metadata,omitempty"`
}

V1ConfigMap v1 config map

swagger:model V1ConfigMap

func (*V1ConfigMap) ContextValidate ¶

func (m *V1ConfigMap) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 config map based on the context it is used

func (*V1ConfigMap) MarshalBinary ¶

func (m *V1ConfigMap) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ConfigMap) UnmarshalBinary ¶

func (m *V1ConfigMap) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ConfigMap) Validate ¶

func (m *V1ConfigMap) Validate(formats strfmt.Registry) error

Validate validates this v1 config map

type V1ConfigMapEnvSource ¶

type V1ConfigMapEnvSource struct {

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// Specify whether the ConfigMap must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1ConfigMapEnvSource v1 config map env source

swagger:model V1ConfigMapEnvSource

func (*V1ConfigMapEnvSource) ContextValidate ¶

func (m *V1ConfigMapEnvSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 config map env source based on context it is used

func (*V1ConfigMapEnvSource) MarshalBinary ¶

func (m *V1ConfigMapEnvSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ConfigMapEnvSource) UnmarshalBinary ¶

func (m *V1ConfigMapEnvSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ConfigMapEnvSource) Validate ¶

func (m *V1ConfigMapEnvSource) Validate(formats strfmt.Registry) error

Validate validates this v1 config map env source

type V1ConfigMapKeySelector ¶

type V1ConfigMapKeySelector struct {

	// The key to select.
	Key string `json:"key,omitempty"`

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// Specify whether the ConfigMap or its key must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1ConfigMapKeySelector v1 config map key selector

swagger:model V1ConfigMapKeySelector

func (*V1ConfigMapKeySelector) ContextValidate ¶

func (m *V1ConfigMapKeySelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 config map key selector based on context it is used

func (*V1ConfigMapKeySelector) MarshalBinary ¶

func (m *V1ConfigMapKeySelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ConfigMapKeySelector) UnmarshalBinary ¶

func (m *V1ConfigMapKeySelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ConfigMapKeySelector) Validate ¶

func (m *V1ConfigMapKeySelector) Validate(formats strfmt.Registry) error

Validate validates this v1 config map key selector

type V1ConfigMapList ¶

type V1ConfigMapList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Items is the list of ConfigMaps.
	Items []*V1ConfigMap `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	Metadata struct {
		V1ListMeta
	} `json:"metadata,omitempty"`
}

V1ConfigMapList v1 config map list

swagger:model V1ConfigMapList

func (*V1ConfigMapList) ContextValidate ¶

func (m *V1ConfigMapList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 config map list based on the context it is used

func (*V1ConfigMapList) MarshalBinary ¶

func (m *V1ConfigMapList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ConfigMapList) UnmarshalBinary ¶

func (m *V1ConfigMapList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ConfigMapList) Validate ¶

func (m *V1ConfigMapList) Validate(formats strfmt.Registry) error

Validate validates this v1 config map list

type V1ConfigMapProjection ¶

type V1ConfigMapProjection struct {

	// items if unspecified, each key-value pair in the Data field of the referenced
	// ConfigMap will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the ConfigMap,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	// +optional
	// +listType=atomic
	Items []*V1KeyToPath `json:"items"`

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// optional specify whether the ConfigMap or its keys must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1ConfigMapProjection v1 config map projection

swagger:model V1ConfigMapProjection

func (*V1ConfigMapProjection) ContextValidate ¶

func (m *V1ConfigMapProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 config map projection based on the context it is used

func (*V1ConfigMapProjection) MarshalBinary ¶

func (m *V1ConfigMapProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ConfigMapProjection) UnmarshalBinary ¶

func (m *V1ConfigMapProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ConfigMapProjection) Validate ¶

func (m *V1ConfigMapProjection) Validate(formats strfmt.Registry) error

Validate validates this v1 config map projection

type V1ConfigMapVolumeSource ¶

type V1ConfigMapVolumeSource struct {

	// defaultMode is optional: mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// Defaults to 0644.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	// +optional
	DefaultMode int64 `json:"defaultMode,omitempty"`

	// items if unspecified, each key-value pair in the Data field of the referenced
	// ConfigMap will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the ConfigMap,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	// +optional
	// +listType=atomic
	Items []*V1KeyToPath `json:"items"`

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// optional specify whether the ConfigMap or its keys must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1ConfigMapVolumeSource v1 config map volume source

swagger:model V1ConfigMapVolumeSource

func (*V1ConfigMapVolumeSource) ContextValidate ¶

func (m *V1ConfigMapVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 config map volume source based on the context it is used

func (*V1ConfigMapVolumeSource) MarshalBinary ¶

func (m *V1ConfigMapVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ConfigMapVolumeSource) UnmarshalBinary ¶

func (m *V1ConfigMapVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ConfigMapVolumeSource) Validate ¶

func (m *V1ConfigMapVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 config map volume source

type V1Container ¶

type V1Container struct {

	// Arguments to the entrypoint.
	// The container image's CMD is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	// +listType=atomic
	Args []string `json:"args"`

	// Entrypoint array. Not executed within a shell.
	// The container image's ENTRYPOINT is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	// +listType=atomic
	Command []string `json:"command"`

	// List of environment variables to set in the container.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	Env []*V1EnvVar `json:"env"`

	// List of sources to populate environment variables in the container.
	// The keys defined within a source may consist of any printable ASCII characters except '='.
	// When a key exists in multiple
	// sources, the value associated with the last source will take precedence.
	// Values defined by an Env with a duplicate key will take precedence.
	// Cannot be updated.
	// +optional
	// +listType=atomic
	EnvFrom []*V1EnvFromSource `json:"envFrom"`

	// Container image name.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	// This field is optional to allow higher level config management to default or override
	// container images in workload controllers like Deployments and StatefulSets.
	// +optional
	Image string `json:"image,omitempty"`

	// Image pull policy.
	// One of Always, Never, IfNotPresent.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
	// +optional
	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`

	// Actions that the management system should take in response to container lifecycle events.
	// Cannot be updated.
	// +optional
	Lifecycle struct {
		V1Lifecycle
	} `json:"lifecycle,omitempty"`

	// Periodic probe of container liveness.
	// Container will be restarted if the probe fails.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	LivenessProbe struct {
		V1Probe
	} `json:"livenessProbe,omitempty"`

	// Name of the container specified as a DNS_LABEL.
	// Each container in a pod must have a unique name (DNS_LABEL).
	// Cannot be updated.
	Name string `json:"name,omitempty"`

	// List of ports to expose from the container. Not specifying a port here
	// DOES NOT prevent that port from being exposed. Any port which is
	// listening on the default "0.0.0.0" address inside a container will be
	// accessible from the network.
	// Modifying this array with strategic merge patch may corrupt the data.
	// For more information See https://github.com/kubernetes/kubernetes/issues/108255.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=containerPort
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=containerPort
	// +listMapKey=protocol
	Ports []*V1ContainerPort `json:"ports"`

	// Periodic probe of container service readiness.
	// Container will be removed from service endpoints if the probe fails.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	ReadinessProbe struct {
		V1Probe
	} `json:"readinessProbe,omitempty"`

	// Resources resize policy for the container.
	// +featureGate=InPlacePodVerticalScaling
	// +optional
	// +listType=atomic
	ResizePolicy []*V1ContainerResizePolicy `json:"resizePolicy"`

	// Compute Resources required by this container.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Resources struct {
		V1ResourceRequirements
	} `json:"resources,omitempty"`

	// RestartPolicy defines the restart behavior of individual containers in a pod.
	// This overrides the pod-level restart policy. When this field is not specified,
	// the restart behavior is defined by the Pod's restart policy and the container type.
	// Additionally, setting the RestartPolicy as "Always" for the init container will
	// have the following effect:
	// this init container will be continually restarted on
	// exit until all regular containers have terminated. Once all regular
	// containers have completed, all init containers with restartPolicy "Always"
	// will be shut down. This lifecycle differs from normal init containers and
	// is often referred to as a "sidecar" container. Although this init
	// container still starts in the init container sequence, it does not wait
	// for the container to complete before proceeding to the next init
	// container. Instead, the next init container starts immediately after this
	// init container is started, or after any startupProbe has successfully
	// completed.
	// +featureGate=SidecarContainers
	// +optional
	RestartPolicy string `json:"restartPolicy,omitempty"`

	// Represents a list of rules to be checked to determine if the
	// container should be restarted on exit. The rules are evaluated in
	// order. Once a rule matches a container exit condition, the remaining
	// rules are ignored. If no rule matches the container exit condition,
	// the Container-level restart policy determines the whether the container
	// is restarted or not. Constraints on the rules:
	// - At most 20 rules are allowed.
	// - Rules can have the same action.
	// - Identical rules are not forbidden in validations.
	// When rules are specified, container MUST set RestartPolicy explicitly
	// even it if matches the Pod's RestartPolicy.
	// +featureGate=ContainerRestartRules
	// +optional
	// +listType=atomic
	RestartPolicyRules []*V1ContainerRestartRule `json:"restartPolicyRules"`

	// SecurityContext defines the security options the container should be run with.
	// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
	// +optional
	SecurityContext struct {
		V1SecurityContext
	} `json:"securityContext,omitempty"`

	// StartupProbe indicates that the Pod has successfully initialized.
	// If specified, no other probes are executed until this completes successfully.
	// If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
	// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
	// when it might take a long time to load data or warm a cache, than during steady-state operation.
	// This cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	StartupProbe struct {
		V1Probe
	} `json:"startupProbe,omitempty"`

	// Whether this container should allocate a buffer for stdin in the container runtime. If this
	// is not set, reads from stdin in the container will always result in EOF.
	// Default is false.
	// +optional
	Stdin bool `json:"stdin,omitempty"`

	// Whether the container runtime should close the stdin channel after it has been opened by
	// a single attach. When stdin is true the stdin stream will remain open across multiple attach
	// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
	// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
	// at which time stdin is closed and remains closed until the container is restarted. If this
	// flag is false, a container processes that reads from stdin will never receive an EOF.
	// Default is false
	// +optional
	StdinOnce bool `json:"stdinOnce,omitempty"`

	// Optional: Path at which the file to which the container's termination message
	// will be written is mounted into the container's filesystem.
	// Message written is intended to be brief final status, such as an assertion failure message.
	// Will be truncated by the node if greater than 4096 bytes. The total message length across
	// all containers will be limited to 12kb.
	// Defaults to /dev/termination-log.
	// Cannot be updated.
	// +optional
	TerminationMessagePath string `json:"terminationMessagePath,omitempty"`

	// Indicate how the termination message should be populated. File will use the contents of
	// terminationMessagePath to populate the container status message on both success and failure.
	// FallbackToLogsOnError will use the last chunk of container log output if the termination
	// message file is empty and the container exited with an error.
	// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
	// Defaults to File.
	// Cannot be updated.
	// +optional
	TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"`

	// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
	// Default is false.
	// +optional
	Tty bool `json:"tty,omitempty"`

	// volumeDevices is the list of block devices to be used by the container.
	// +patchMergeKey=devicePath
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=devicePath
	// +optional
	VolumeDevices []*V1VolumeDevice `json:"volumeDevices"`

	// Pod volumes to mount into the container's filesystem.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=mountPath
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=mountPath
	VolumeMounts []*V1VolumeMount `json:"volumeMounts"`

	// Container's working directory.
	// If not specified, the container runtime's default will be used, which
	// might be configured in the container image.
	// Cannot be updated.
	// +optional
	WorkingDir string `json:"workingDir,omitempty"`
}

V1Container v1 container

swagger:model V1Container

func (*V1Container) ContextValidate ¶

func (m *V1Container) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 container based on the context it is used

func (*V1Container) MarshalBinary ¶

func (m *V1Container) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Container) UnmarshalBinary ¶

func (m *V1Container) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Container) Validate ¶

func (m *V1Container) Validate(formats strfmt.Registry) error

Validate validates this v1 container

type V1ContainerPort ¶

type V1ContainerPort struct {

	// Number of port to expose on the pod's IP address.
	// This must be a valid port number, 0 < x < 65536.
	ContainerPort int64 `json:"containerPort,omitempty"`

	// What host IP to bind the external port to.
	// +optional
	HostIP string `json:"hostIP,omitempty"`

	// Number of port to expose on the host.
	// If specified, this must be a valid port number, 0 < x < 65536.
	// If HostNetwork is specified, this must match ContainerPort.
	// Most containers do not need this.
	// +optional
	HostPort int64 `json:"hostPort,omitempty"`

	// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
	// named port in a pod must have a unique name. Name for the port that can be
	// referred to by services.
	// +optional
	Name string `json:"name,omitempty"`

	// Protocol for port. Must be UDP, TCP, or SCTP.
	// Defaults to "TCP".
	// +optional
	// +default="TCP"
	Protocol string `json:"protocol,omitempty"`
}

V1ContainerPort v1 container port

swagger:model V1ContainerPort

func (*V1ContainerPort) ContextValidate ¶

func (m *V1ContainerPort) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 container port based on context it is used

func (*V1ContainerPort) MarshalBinary ¶

func (m *V1ContainerPort) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ContainerPort) UnmarshalBinary ¶

func (m *V1ContainerPort) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ContainerPort) Validate ¶

func (m *V1ContainerPort) Validate(formats strfmt.Registry) error

Validate validates this v1 container port

type V1ContainerResizePolicy ¶

type V1ContainerResizePolicy struct {

	// Name of the resource to which this resource resize policy applies.
	// Supported values: cpu, memory.
	ResourceName string `json:"resourceName,omitempty"`

	// Restart policy to apply when specified resource is resized.
	// If not specified, it defaults to NotRequired.
	RestartPolicy string `json:"restartPolicy,omitempty"`
}

V1ContainerResizePolicy v1 container resize policy

swagger:model V1ContainerResizePolicy

func (*V1ContainerResizePolicy) ContextValidate ¶

func (m *V1ContainerResizePolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 container resize policy based on context it is used

func (*V1ContainerResizePolicy) MarshalBinary ¶

func (m *V1ContainerResizePolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ContainerResizePolicy) UnmarshalBinary ¶

func (m *V1ContainerResizePolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ContainerResizePolicy) Validate ¶

func (m *V1ContainerResizePolicy) Validate(formats strfmt.Registry) error

Validate validates this v1 container resize policy

type V1ContainerRestartRule ¶

type V1ContainerRestartRule struct {

	// Specifies the action taken on a container exit if the requirements
	// are satisfied. The only possible value is "Restart" to restart the
	// container.
	// +required
	Action string `json:"action,omitempty"`

	// Represents the exit codes to check on container exits.
	// +optional
	// +oneOf=when
	ExitCodes struct {
		V1ContainerRestartRuleOnExitCodes
	} `json:"exitCodes,omitempty"`
}

V1ContainerRestartRule v1 container restart rule

swagger:model V1ContainerRestartRule

func (*V1ContainerRestartRule) ContextValidate ¶

func (m *V1ContainerRestartRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 container restart rule based on the context it is used

func (*V1ContainerRestartRule) MarshalBinary ¶

func (m *V1ContainerRestartRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ContainerRestartRule) UnmarshalBinary ¶

func (m *V1ContainerRestartRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ContainerRestartRule) Validate ¶

func (m *V1ContainerRestartRule) Validate(formats strfmt.Registry) error

Validate validates this v1 container restart rule

type V1ContainerRestartRuleOnExitCodes ¶

type V1ContainerRestartRuleOnExitCodes struct {

	// Represents the relationship between the container exit code(s) and the
	// specified values. Possible values are:
	// - In: the requirement is satisfied if the container exit code is in the
	//   set of specified values.
	// - NotIn: the requirement is satisfied if the container exit code is
	//   not in the set of specified values.
	// +required
	Operator string `json:"operator,omitempty"`

	// Specifies the set of values to check for container exit codes.
	// At most 255 elements are allowed.
	// +optional
	// +listType=set
	Values []int64 `json:"values"`
}

V1ContainerRestartRuleOnExitCodes v1 container restart rule on exit codes

swagger:model V1ContainerRestartRuleOnExitCodes

func (*V1ContainerRestartRuleOnExitCodes) ContextValidate ¶

func (m *V1ContainerRestartRuleOnExitCodes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 container restart rule on exit codes based on context it is used

func (*V1ContainerRestartRuleOnExitCodes) MarshalBinary ¶

func (m *V1ContainerRestartRuleOnExitCodes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ContainerRestartRuleOnExitCodes) UnmarshalBinary ¶

func (m *V1ContainerRestartRuleOnExitCodes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ContainerRestartRuleOnExitCodes) Validate ¶

Validate validates this v1 container restart rule on exit codes

type V1DownwardAPIProjection ¶

type V1DownwardAPIProjection struct {

	// Items is a list of DownwardAPIVolume file
	// +optional
	// +listType=atomic
	Items []*V1DownwardAPIVolumeFile `json:"items"`
}

V1DownwardAPIProjection v1 downward API projection

swagger:model V1DownwardAPIProjection

func (*V1DownwardAPIProjection) ContextValidate ¶

func (m *V1DownwardAPIProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 downward API projection based on the context it is used

func (*V1DownwardAPIProjection) MarshalBinary ¶

func (m *V1DownwardAPIProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1DownwardAPIProjection) UnmarshalBinary ¶

func (m *V1DownwardAPIProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1DownwardAPIProjection) Validate ¶

func (m *V1DownwardAPIProjection) Validate(formats strfmt.Registry) error

Validate validates this v1 downward API projection

type V1DownwardAPIVolumeFile ¶

type V1DownwardAPIVolumeFile struct {

	// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
	// +optional
	FieldRef struct {
		V1ObjectFieldSelector
	} `json:"fieldRef,omitempty"`

	// Optional: mode bits used to set permissions on this file, must be an octal value
	// between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// If not specified, the volume defaultMode will be used.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	// +optional
	Mode int64 `json:"mode,omitempty"`

	// Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
	Path string `json:"path,omitempty"`

	// Selects a resource of the container: only resources limits and requests
	// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
	// +optional
	ResourceFieldRef struct {
		V1ResourceFieldSelector
	} `json:"resourceFieldRef,omitempty"`
}

V1DownwardAPIVolumeFile v1 downward API volume file

swagger:model V1DownwardAPIVolumeFile

func (*V1DownwardAPIVolumeFile) ContextValidate ¶

func (m *V1DownwardAPIVolumeFile) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 downward API volume file based on the context it is used

func (*V1DownwardAPIVolumeFile) MarshalBinary ¶

func (m *V1DownwardAPIVolumeFile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1DownwardAPIVolumeFile) UnmarshalBinary ¶

func (m *V1DownwardAPIVolumeFile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1DownwardAPIVolumeFile) Validate ¶

func (m *V1DownwardAPIVolumeFile) Validate(formats strfmt.Registry) error

Validate validates this v1 downward API volume file

type V1DownwardAPIVolumeSource ¶

type V1DownwardAPIVolumeSource struct {

	// Optional: mode bits to use on created files by default. Must be a
	// Optional: mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// Defaults to 0644.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	// +optional
	DefaultMode int64 `json:"defaultMode,omitempty"`

	// Items is a list of downward API volume file
	// +optional
	// +listType=atomic
	Items []*V1DownwardAPIVolumeFile `json:"items"`
}

V1DownwardAPIVolumeSource v1 downward API volume source

swagger:model V1DownwardAPIVolumeSource

func (*V1DownwardAPIVolumeSource) ContextValidate ¶

func (m *V1DownwardAPIVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 downward API volume source based on the context it is used

func (*V1DownwardAPIVolumeSource) MarshalBinary ¶

func (m *V1DownwardAPIVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1DownwardAPIVolumeSource) UnmarshalBinary ¶

func (m *V1DownwardAPIVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1DownwardAPIVolumeSource) Validate ¶

func (m *V1DownwardAPIVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 downward API volume source

type V1EmptyDirVolumeSource ¶

type V1EmptyDirVolumeSource struct {

	// medium represents what type of storage medium should back this directory.
	// The default is "" which means to use the node's default medium.
	// Must be an empty string (default) or Memory.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
	// +optional
	Medium string `json:"medium,omitempty"`

	// sizeLimit is the total amount of local storage required for this EmptyDir volume.
	// The size limit is also applicable for memory medium.
	// The maximum usage on memory medium EmptyDir would be the minimum value between
	// the SizeLimit specified here and the sum of memory limits of all containers in a pod.
	// The default is nil which means that the limit is undefined.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
	// +optional
	SizeLimit struct {
		Quantity
	} `json:"sizeLimit,omitempty"`
}

V1EmptyDirVolumeSource v1 empty dir volume source

swagger:model V1EmptyDirVolumeSource

func (*V1EmptyDirVolumeSource) ContextValidate ¶

func (m *V1EmptyDirVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 empty dir volume source based on the context it is used

func (*V1EmptyDirVolumeSource) MarshalBinary ¶

func (m *V1EmptyDirVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EmptyDirVolumeSource) UnmarshalBinary ¶

func (m *V1EmptyDirVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EmptyDirVolumeSource) Validate ¶

func (m *V1EmptyDirVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 empty dir volume source

type V1EnvFromSource ¶

type V1EnvFromSource struct {

	// The ConfigMap to select from
	// +optional
	ConfigMapRef struct {
		V1ConfigMapEnvSource
	} `json:"configMapRef,omitempty"`

	// Optional text to prepend to the name of each environment variable.
	// May consist of any printable ASCII characters except '='.
	// +optional
	Prefix string `json:"prefix,omitempty"`

	// The Secret to select from
	// +optional
	SecretRef struct {
		V1SecretEnvSource
	} `json:"secretRef,omitempty"`
}

V1EnvFromSource v1 env from source

swagger:model V1EnvFromSource

func (*V1EnvFromSource) ContextValidate ¶

func (m *V1EnvFromSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 env from source based on the context it is used

func (*V1EnvFromSource) MarshalBinary ¶

func (m *V1EnvFromSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EnvFromSource) UnmarshalBinary ¶

func (m *V1EnvFromSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EnvFromSource) Validate ¶

func (m *V1EnvFromSource) Validate(formats strfmt.Registry) error

Validate validates this v1 env from source

type V1EnvVar ¶

type V1EnvVar struct {

	// Name of the environment variable.
	// May consist of any printable ASCII characters except '='.
	Name string `json:"name,omitempty"`

	// Variable references $(VAR_NAME) are expanded
	// using the previously defined environment variables in the container and
	// any service environment variables. If a variable cannot be resolved,
	// the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
	// "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
	// Escaped references will never be expanded, regardless of whether the variable
	// exists or not.
	// Defaults to "".
	// +optional
	Value string `json:"value,omitempty"`

	// Source for the environment variable's value. Cannot be used if value is not empty.
	// +optional
	ValueFrom struct {
		V1EnvVarSource
	} `json:"valueFrom,omitempty"`
}

V1EnvVar v1 env var

swagger:model V1EnvVar

func (*V1EnvVar) ContextValidate ¶

func (m *V1EnvVar) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 env var based on the context it is used

func (*V1EnvVar) MarshalBinary ¶

func (m *V1EnvVar) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EnvVar) UnmarshalBinary ¶

func (m *V1EnvVar) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EnvVar) Validate ¶

func (m *V1EnvVar) Validate(formats strfmt.Registry) error

Validate validates this v1 env var

type V1EnvVarSource ¶

type V1EnvVarSource struct {

	// Selects a key of a ConfigMap.
	// +optional
	ConfigMapKeyRef struct {
		V1ConfigMapKeySelector
	} `json:"configMapKeyRef,omitempty"`

	// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
	// spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
	// +optional
	FieldRef struct {
		V1ObjectFieldSelector
	} `json:"fieldRef,omitempty"`

	// FileKeyRef selects a key of the env file.
	// Requires the EnvFiles feature gate to be enabled.
	//
	// +featureGate=EnvFiles
	// +optional
	FileKeyRef struct {
		V1FileKeySelector
	} `json:"fileKeyRef,omitempty"`

	// Selects a resource of the container: only resources limits and requests
	// (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
	// +optional
	ResourceFieldRef struct {
		V1ResourceFieldSelector
	} `json:"resourceFieldRef,omitempty"`

	// Selects a key of a secret in the pod's namespace
	// +optional
	SecretKeyRef struct {
		V1SecretKeySelector
	} `json:"secretKeyRef,omitempty"`
}

V1EnvVarSource v1 env var source

swagger:model V1EnvVarSource

func (*V1EnvVarSource) ContextValidate ¶

func (m *V1EnvVarSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 env var source based on the context it is used

func (*V1EnvVarSource) MarshalBinary ¶

func (m *V1EnvVarSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EnvVarSource) UnmarshalBinary ¶

func (m *V1EnvVarSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EnvVarSource) Validate ¶

func (m *V1EnvVarSource) Validate(formats strfmt.Registry) error

Validate validates this v1 env var source

type V1EphemeralContainer ¶

type V1EphemeralContainer struct {

	// Arguments to the entrypoint.
	// The image's CMD is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	// +listType=atomic
	Args []string `json:"args"`

	// Entrypoint array. Not executed within a shell.
	// The image's ENTRYPOINT is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	// +optional
	// +listType=atomic
	Command []string `json:"command"`

	// List of environment variables to set in the container.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	Env []*V1EnvVar `json:"env"`

	// List of sources to populate environment variables in the container.
	// The keys defined within a source may consist of any printable ASCII characters except '='.
	// When a key exists in multiple
	// sources, the value associated with the last source will take precedence.
	// Values defined by an Env with a duplicate key will take precedence.
	// Cannot be updated.
	// +optional
	// +listType=atomic
	EnvFrom []*V1EnvFromSource `json:"envFrom"`

	// Container image name.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	Image string `json:"image,omitempty"`

	// Image pull policy.
	// One of Always, Never, IfNotPresent.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
	// +optional
	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`

	// Lifecycle is not allowed for ephemeral containers.
	// +optional
	Lifecycle struct {
		V1Lifecycle
	} `json:"lifecycle,omitempty"`

	// Probes are not allowed for ephemeral containers.
	// +optional
	LivenessProbe struct {
		V1Probe
	} `json:"livenessProbe,omitempty"`

	// Name of the ephemeral container specified as a DNS_LABEL.
	// This name must be unique among all containers, init containers and ephemeral containers.
	Name string `json:"name,omitempty"`

	// Ports are not allowed for ephemeral containers.
	// +optional
	// +patchMergeKey=containerPort
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=containerPort
	// +listMapKey=protocol
	Ports []*V1ContainerPort `json:"ports"`

	// Probes are not allowed for ephemeral containers.
	// +optional
	ReadinessProbe struct {
		V1Probe
	} `json:"readinessProbe,omitempty"`

	// Resources resize policy for the container.
	// +featureGate=InPlacePodVerticalScaling
	// +optional
	// +listType=atomic
	ResizePolicy []*V1ContainerResizePolicy `json:"resizePolicy"`

	// Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
	// already allocated to the pod.
	// +optional
	Resources struct {
		V1ResourceRequirements
	} `json:"resources,omitempty"`

	// Restart policy for the container to manage the restart behavior of each
	// container within a pod.
	// You cannot set this field on ephemeral containers.
	// +featureGate=SidecarContainers
	// +optional
	RestartPolicy string `json:"restartPolicy,omitempty"`

	// Represents a list of rules to be checked to determine if the
	// container should be restarted on exit. You cannot set this field on
	// ephemeral containers.
	// +featureGate=ContainerRestartRules
	// +optional
	// +listType=atomic
	RestartPolicyRules []*V1ContainerRestartRule `json:"restartPolicyRules"`

	// Optional: SecurityContext defines the security options the ephemeral container should be run with.
	// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
	// +optional
	SecurityContext struct {
		V1SecurityContext
	} `json:"securityContext,omitempty"`

	// Probes are not allowed for ephemeral containers.
	// +optional
	StartupProbe struct {
		V1Probe
	} `json:"startupProbe,omitempty"`

	// Whether this container should allocate a buffer for stdin in the container runtime. If this
	// is not set, reads from stdin in the container will always result in EOF.
	// Default is false.
	// +optional
	Stdin bool `json:"stdin,omitempty"`

	// Whether the container runtime should close the stdin channel after it has been opened by
	// a single attach. When stdin is true the stdin stream will remain open across multiple attach
	// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
	// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
	// at which time stdin is closed and remains closed until the container is restarted. If this
	// flag is false, a container processes that reads from stdin will never receive an EOF.
	// Default is false
	// +optional
	StdinOnce bool `json:"stdinOnce,omitempty"`

	// If set, the name of the container from PodSpec that this ephemeral container targets.
	// The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
	// If not set then the ephemeral container uses the namespaces configured in the Pod spec.
	//
	// The container runtime must implement support for this feature. If the runtime does not
	// support namespace targeting then the result of setting this field is undefined.
	// +optional
	TargetContainerName string `json:"targetContainerName,omitempty"`

	// Optional: Path at which the file to which the container's termination message
	// will be written is mounted into the container's filesystem.
	// Message written is intended to be brief final status, such as an assertion failure message.
	// Will be truncated by the node if greater than 4096 bytes. The total message length across
	// all containers will be limited to 12kb.
	// Defaults to /dev/termination-log.
	// Cannot be updated.
	// +optional
	TerminationMessagePath string `json:"terminationMessagePath,omitempty"`

	// Indicate how the termination message should be populated. File will use the contents of
	// terminationMessagePath to populate the container status message on both success and failure.
	// FallbackToLogsOnError will use the last chunk of container log output if the termination
	// message file is empty and the container exited with an error.
	// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
	// Defaults to File.
	// Cannot be updated.
	// +optional
	TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"`

	// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
	// Default is false.
	// +optional
	Tty bool `json:"tty,omitempty"`

	// volumeDevices is the list of block devices to be used by the container.
	// +patchMergeKey=devicePath
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=devicePath
	// +optional
	VolumeDevices []*V1VolumeDevice `json:"volumeDevices"`

	// Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
	// Cannot be updated.
	// +optional
	// +patchMergeKey=mountPath
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=mountPath
	VolumeMounts []*V1VolumeMount `json:"volumeMounts"`

	// Container's working directory.
	// If not specified, the container runtime's default will be used, which
	// might be configured in the container image.
	// Cannot be updated.
	// +optional
	WorkingDir string `json:"workingDir,omitempty"`
}

V1EphemeralContainer v1 ephemeral container

swagger:model V1EphemeralContainer

func (*V1EphemeralContainer) ContextValidate ¶

func (m *V1EphemeralContainer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 ephemeral container based on the context it is used

func (*V1EphemeralContainer) MarshalBinary ¶

func (m *V1EphemeralContainer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EphemeralContainer) UnmarshalBinary ¶

func (m *V1EphemeralContainer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EphemeralContainer) Validate ¶

func (m *V1EphemeralContainer) Validate(formats strfmt.Registry) error

Validate validates this v1 ephemeral container

type V1EphemeralVolumeSource ¶

type V1EphemeralVolumeSource struct {

	// Will be used to create a stand-alone PVC to provision the volume.
	// The pod in which this EphemeralVolumeSource is embedded will be the
	// owner of the PVC, i.e. the PVC will be deleted together with the
	// pod.  The name of the PVC will be `<pod name>-<volume name>` where
	// `<volume name>` is the name from the `PodSpec.Volumes` array
	// entry. Pod validation will reject the pod if the concatenated name
	// is not valid for a PVC (for example, too long).
	//
	// An existing PVC with that name that is not owned by the pod
	// will *not* be used for the pod to avoid using an unrelated
	// volume by mistake. Starting the pod is then blocked until
	// the unrelated PVC is removed. If such a pre-created PVC is
	// meant to be used by the pod, the PVC has to updated with an
	// owner reference to the pod once the pod exists. Normally
	// this should not be necessary, but it may be useful when
	// manually reconstructing a broken cluster.
	//
	// This field is read-only and no changes will be made by Kubernetes
	// to the PVC after it has been created.
	//
	// Required, must not be nil.
	VolumeClaimTemplate struct {
		V1PersistentVolumeClaimTemplate
	} `json:"volumeClaimTemplate,omitempty"`
}

V1EphemeralVolumeSource v1 ephemeral volume source

swagger:model V1EphemeralVolumeSource

func (*V1EphemeralVolumeSource) ContextValidate ¶

func (m *V1EphemeralVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 ephemeral volume source based on the context it is used

func (*V1EphemeralVolumeSource) MarshalBinary ¶

func (m *V1EphemeralVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EphemeralVolumeSource) UnmarshalBinary ¶

func (m *V1EphemeralVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EphemeralVolumeSource) Validate ¶

func (m *V1EphemeralVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 ephemeral volume source

type V1Event ¶

type V1Event struct {

	// What action was taken/failed regarding to the Regarding object.
	// +optional
	Action string `json:"action,omitempty"`

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// The number of times this event has occurred.
	// +optional
	Count int64 `json:"count,omitempty"`

	// Time when this Event was first observed.
	// +optional
	EventTime struct {
		V1MicroTime
	} `json:"eventTime,omitempty"`

	// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
	// +optional
	FirstTimestamp string `json:"firstTimestamp,omitempty"`

	// The object that this event is about.
	InvolvedObject struct {
		V1ObjectReference
	} `json:"involvedObject,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// The time at which the most recent occurrence of this event was recorded.
	// +optional
	LastTimestamp string `json:"lastTimestamp,omitempty"`

	// A human-readable description of the status of this operation.
	// TODO: decide on maximum length.
	// +optional
	Message string `json:"message,omitempty"`

	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata struct {
		V1ObjectMeta
	} `json:"metadata,omitempty"`

	// This should be a short, machine understandable string that gives the reason
	// for the transition into the object's current status.
	// TODO: provide exact specification for format.
	// +optional
	Reason string `json:"reason,omitempty"`

	// Optional secondary object for more complex actions.
	// +optional
	Related struct {
		V1ObjectReference
	} `json:"related,omitempty"`

	// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
	// +optional
	ReportingComponent string `json:"reportingComponent,omitempty"`

	// ID of the controller instance, e.g. `kubelet-xyzf`.
	// +optional
	ReportingInstance string `json:"reportingInstance,omitempty"`

	// Data about the Event series this event represents or nil if it's a singleton Event.
	// +optional
	Series struct {
		V1EventSeries
	} `json:"series,omitempty"`

	// The component reporting this event. Should be a short machine understandable string.
	// +optional
	Source struct {
		V1EventSource
	} `json:"source,omitempty"`

	// Type of this event (Normal, Warning), new types could be added in the future
	// +optional
	Type string `json:"type,omitempty"`
}

V1Event v1 event

swagger:model V1Event

func (*V1Event) ContextValidate ¶

func (m *V1Event) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 event based on the context it is used

func (*V1Event) MarshalBinary ¶

func (m *V1Event) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Event) UnmarshalBinary ¶

func (m *V1Event) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Event) Validate ¶

func (m *V1Event) Validate(formats strfmt.Registry) error

Validate validates this v1 event

type V1EventList ¶

type V1EventList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// List of events
	Items []*V1Event `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Metadata struct {
		V1ListMeta
	} `json:"metadata,omitempty"`
}

V1EventList v1 event list

swagger:model V1EventList

func (*V1EventList) ContextValidate ¶

func (m *V1EventList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 event list based on the context it is used

func (*V1EventList) MarshalBinary ¶

func (m *V1EventList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EventList) UnmarshalBinary ¶

func (m *V1EventList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EventList) Validate ¶

func (m *V1EventList) Validate(formats strfmt.Registry) error

Validate validates this v1 event list

type V1EventSeries ¶

type V1EventSeries struct {

	// Number of occurrences in this series up to the last heartbeat time
	Count int64 `json:"count,omitempty"`

	// Time of the last occurrence observed
	LastObservedTime struct {
		V1MicroTime
	} `json:"lastObservedTime,omitempty"`
}

V1EventSeries v1 event series

swagger:model V1EventSeries

func (*V1EventSeries) ContextValidate ¶

func (m *V1EventSeries) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 event series based on the context it is used

func (*V1EventSeries) MarshalBinary ¶

func (m *V1EventSeries) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EventSeries) UnmarshalBinary ¶

func (m *V1EventSeries) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EventSeries) Validate ¶

func (m *V1EventSeries) Validate(formats strfmt.Registry) error

Validate validates this v1 event series

type V1EventSource ¶

type V1EventSource struct {

	// Component from which the event is generated.
	// +optional
	Component string `json:"component,omitempty"`

	// Node name on which the event is generated.
	// +optional
	Host string `json:"host,omitempty"`
}

V1EventSource v1 event source

swagger:model V1EventSource

func (*V1EventSource) ContextValidate ¶

func (m *V1EventSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 event source based on context it is used

func (*V1EventSource) MarshalBinary ¶

func (m *V1EventSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EventSource) UnmarshalBinary ¶

func (m *V1EventSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EventSource) Validate ¶

func (m *V1EventSource) Validate(formats strfmt.Registry) error

Validate validates this v1 event source

type V1ExecAction ¶

type V1ExecAction struct {

	// Command is the command line to execute inside the container, the working directory for the
	// command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
	// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
	// a shell, you need to explicitly call out to that shell.
	// Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
	// +optional
	// +listType=atomic
	Command []string `json:"command"`
}

V1ExecAction v1 exec action

swagger:model V1ExecAction

func (*V1ExecAction) ContextValidate ¶

func (m *V1ExecAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 exec action based on context it is used

func (*V1ExecAction) MarshalBinary ¶

func (m *V1ExecAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ExecAction) UnmarshalBinary ¶

func (m *V1ExecAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ExecAction) Validate ¶

func (m *V1ExecAction) Validate(formats strfmt.Registry) error

Validate validates this v1 exec action

type V1FCVolumeSource ¶

type V1FCVolumeSource struct {

	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	// +optional
	FsType string `json:"fsType,omitempty"`

	// lun is Optional: FC target lun number
	// +optional
	Lun int64 `json:"lun,omitempty"`

	// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// targetWWNs is Optional: FC target worldwide names (WWNs)
	// +optional
	// +listType=atomic
	TargetWWNs []string `json:"targetWWNs"`

	// wwids Optional: FC volume world wide identifiers (wwids)
	// Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
	// +optional
	// +listType=atomic
	Wwids []string `json:"wwids"`
}

V1FCVolumeSource v1 f c volume source

swagger:model V1FCVolumeSource

func (*V1FCVolumeSource) ContextValidate ¶

func (m *V1FCVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 f c volume source based on context it is used

func (*V1FCVolumeSource) MarshalBinary ¶

func (m *V1FCVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FCVolumeSource) UnmarshalBinary ¶

func (m *V1FCVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FCVolumeSource) Validate ¶

func (m *V1FCVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 f c volume source

type V1FieldsV1 ¶

type V1FieldsV1 any

V1FieldsV1 v1 fields v1

swagger:model V1FieldsV1

type V1FileKeySelector ¶

type V1FileKeySelector struct {

	// The key within the env file. An invalid key will prevent the pod from starting.
	// The keys defined within a source may consist of any printable ASCII characters except '='.
	// During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
	// +required
	Key string `json:"key,omitempty"`

	// Specify whether the file or its key must be defined. If the file or key
	// does not exist, then the env var is not published.
	// If optional is set to true and the specified key does not exist,
	// the environment variable will not be set in the Pod's containers.
	//
	// If optional is set to false and the specified key does not exist,
	// an error will be returned during Pod creation.
	// +optional
	// +default=false
	Optional bool `json:"optional,omitempty"`

	// The path within the volume from which to select the file.
	// Must be relative and may not contain the '..' path or start with '..'.
	// +required
	Path string `json:"path,omitempty"`

	// The name of the volume mount containing the env file.
	// +required
	VolumeName string `json:"volumeName,omitempty"`
}

V1FileKeySelector v1 file key selector

swagger:model V1FileKeySelector

func (*V1FileKeySelector) ContextValidate ¶

func (m *V1FileKeySelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 file key selector based on context it is used

func (*V1FileKeySelector) MarshalBinary ¶

func (m *V1FileKeySelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FileKeySelector) UnmarshalBinary ¶

func (m *V1FileKeySelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FileKeySelector) Validate ¶

func (m *V1FileKeySelector) Validate(formats strfmt.Registry) error

Validate validates this v1 file key selector

type V1FlexVolumeSource ¶

type V1FlexVolumeSource struct {

	// driver is the name of the driver to use for this volume.
	Driver string `json:"driver,omitempty"`

	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
	// +optional
	FsType string `json:"fsType,omitempty"`

	// options is Optional: this field holds extra command options if any.
	// +optional
	Options map[string]string `json:"options,omitempty"`

	// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretRef is Optional: secretRef is reference to the secret object containing
	// sensitive information to pass to the plugin scripts. This may be
	// empty if no secret object is specified. If the secret object
	// contains more than one secret, all secrets are passed to the plugin
	// scripts.
	// +optional
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`
}

V1FlexVolumeSource v1 flex volume source

swagger:model V1FlexVolumeSource

func (*V1FlexVolumeSource) ContextValidate ¶

func (m *V1FlexVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 flex volume source based on the context it is used

func (*V1FlexVolumeSource) MarshalBinary ¶

func (m *V1FlexVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FlexVolumeSource) UnmarshalBinary ¶

func (m *V1FlexVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FlexVolumeSource) Validate ¶

func (m *V1FlexVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 flex volume source

type V1FlockerVolumeSource ¶

type V1FlockerVolumeSource struct {

	// datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker
	// should be considered as deprecated
	// +optional
	DatasetName string `json:"datasetName,omitempty"`

	// datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
	// +optional
	DatasetUUID string `json:"datasetUUID,omitempty"`
}

V1FlockerVolumeSource v1 flocker volume source

swagger:model V1FlockerVolumeSource

func (*V1FlockerVolumeSource) ContextValidate ¶

func (m *V1FlockerVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 flocker volume source based on context it is used

func (*V1FlockerVolumeSource) MarshalBinary ¶

func (m *V1FlockerVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1FlockerVolumeSource) UnmarshalBinary ¶

func (m *V1FlockerVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1FlockerVolumeSource) Validate ¶

func (m *V1FlockerVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 flocker volume source

type V1GCEPersistentDiskVolumeSource ¶

type V1GCEPersistentDiskVolumeSource struct {

	// fsType is filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	// +optional
	FsType string `json:"fsType,omitempty"`

	// partition is the partition in the volume that you want to mount.
	// If omitted, the default is to mount by volume name.
	// Examples: For volume /dev/sda1, you specify the partition as "1".
	// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	// +optional
	Partition int64 `json:"partition,omitempty"`

	// pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	PdName string `json:"pdName,omitempty"`

	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`
}

V1GCEPersistentDiskVolumeSource v1 g c e persistent disk volume source

swagger:model V1GCEPersistentDiskVolumeSource

func (*V1GCEPersistentDiskVolumeSource) ContextValidate ¶

func (m *V1GCEPersistentDiskVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 g c e persistent disk volume source based on context it is used

func (*V1GCEPersistentDiskVolumeSource) MarshalBinary ¶

func (m *V1GCEPersistentDiskVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GCEPersistentDiskVolumeSource) UnmarshalBinary ¶

func (m *V1GCEPersistentDiskVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GCEPersistentDiskVolumeSource) Validate ¶

Validate validates this v1 g c e persistent disk volume source

type V1GRPCAction ¶

type V1GRPCAction struct {

	// Port number of the gRPC service. Number must be in the range 1 to 65535.
	Port int64 `json:"port,omitempty"`

	// Service is the name of the service to place in the gRPC HealthCheckRequest
	// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
	//
	// If this is not specified, the default behavior is defined by gRPC.
	// +optional
	// +default=""
	Service string `json:"service,omitempty"`
}

V1GRPCAction v1 g RPC action

swagger:model V1GRPCAction

func (*V1GRPCAction) ContextValidate ¶

func (m *V1GRPCAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 g RPC action based on context it is used

func (*V1GRPCAction) MarshalBinary ¶

func (m *V1GRPCAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GRPCAction) UnmarshalBinary ¶

func (m *V1GRPCAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GRPCAction) Validate ¶

func (m *V1GRPCAction) Validate(formats strfmt.Registry) error

Validate validates this v1 g RPC action

type V1GitRepoVolumeSource ¶

type V1GitRepoVolumeSource struct {

	// directory is the target directory name.
	// Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
	// git repository.  Otherwise, if specified, the volume will contain the git repository in
	// the subdirectory with the given name.
	// +optional
	Directory string `json:"directory,omitempty"`

	// repository is the URL
	Repository string `json:"repository,omitempty"`

	// revision is the commit hash for the specified revision.
	// +optional
	Revision string `json:"revision,omitempty"`
}

V1GitRepoVolumeSource v1 git repo volume source

swagger:model V1GitRepoVolumeSource

func (*V1GitRepoVolumeSource) ContextValidate ¶

func (m *V1GitRepoVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 git repo volume source based on context it is used

func (*V1GitRepoVolumeSource) MarshalBinary ¶

func (m *V1GitRepoVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GitRepoVolumeSource) UnmarshalBinary ¶

func (m *V1GitRepoVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GitRepoVolumeSource) Validate ¶

func (m *V1GitRepoVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 git repo volume source

type V1GlusterfsVolumeSource ¶

type V1GlusterfsVolumeSource struct {

	// endpoints is the endpoint name that details Glusterfs topology.
	Endpoints string `json:"endpoints,omitempty"`

	// path is the Glusterfs volume path.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	Path string `json:"path,omitempty"`

	// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
	// Defaults to false.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`
}

V1GlusterfsVolumeSource v1 glusterfs volume source

swagger:model V1GlusterfsVolumeSource

func (*V1GlusterfsVolumeSource) ContextValidate ¶

func (m *V1GlusterfsVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 glusterfs volume source based on context it is used

func (*V1GlusterfsVolumeSource) MarshalBinary ¶

func (m *V1GlusterfsVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GlusterfsVolumeSource) UnmarshalBinary ¶

func (m *V1GlusterfsVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GlusterfsVolumeSource) Validate ¶

func (m *V1GlusterfsVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 glusterfs volume source

type V1HTTPGetAction ¶

type V1HTTPGetAction struct {

	// Host name to connect to, defaults to the pod IP. You probably want to set
	// "Host" in httpHeaders instead.
	// +optional
	Host string `json:"host,omitempty"`

	// Custom headers to set in the request. HTTP allows repeated headers.
	// +optional
	// +listType=atomic
	HTTPHeaders []*V1HTTPHeader `json:"httpHeaders"`

	// Path to access on the HTTP server.
	// +optional
	Path string `json:"path,omitempty"`

	// Name or number of the port to access on the container.
	// Number must be in the range 1 to 65535.
	// Name must be an IANA_SVC_NAME.
	Port struct {
		IntOrString
	} `json:"port,omitempty"`

	// Scheme to use for connecting to the host.
	// Defaults to HTTP.
	// +optional
	Scheme string `json:"scheme,omitempty"`
}

V1HTTPGetAction v1 HTTP get action

swagger:model V1HTTPGetAction

func (*V1HTTPGetAction) ContextValidate ¶

func (m *V1HTTPGetAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 HTTP get action based on the context it is used

func (*V1HTTPGetAction) MarshalBinary ¶

func (m *V1HTTPGetAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1HTTPGetAction) UnmarshalBinary ¶

func (m *V1HTTPGetAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1HTTPGetAction) Validate ¶

func (m *V1HTTPGetAction) Validate(formats strfmt.Registry) error

Validate validates this v1 HTTP get action

type V1HTTPHeader ¶

type V1HTTPHeader struct {

	// The header field name.
	// This will be canonicalized upon output, so case-variant names will be understood as the same header.
	Name string `json:"name,omitempty"`

	// The header field value
	Value string `json:"value,omitempty"`
}

V1HTTPHeader v1 HTTP header

swagger:model V1HTTPHeader

func (*V1HTTPHeader) ContextValidate ¶

func (m *V1HTTPHeader) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 HTTP header based on context it is used

func (*V1HTTPHeader) MarshalBinary ¶

func (m *V1HTTPHeader) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1HTTPHeader) UnmarshalBinary ¶

func (m *V1HTTPHeader) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1HTTPHeader) Validate ¶

func (m *V1HTTPHeader) Validate(formats strfmt.Registry) error

Validate validates this v1 HTTP header

type V1HostAlias ¶

type V1HostAlias struct {

	// Hostnames for the above IP address.
	// +listType=atomic
	Hostnames []string `json:"hostnames"`

	// IP address of the host file entry.
	// +required
	IP string `json:"ip,omitempty"`
}

V1HostAlias v1 host alias

swagger:model V1HostAlias

func (*V1HostAlias) ContextValidate ¶

func (m *V1HostAlias) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 host alias based on context it is used

func (*V1HostAlias) MarshalBinary ¶

func (m *V1HostAlias) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1HostAlias) UnmarshalBinary ¶

func (m *V1HostAlias) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1HostAlias) Validate ¶

func (m *V1HostAlias) Validate(formats strfmt.Registry) error

Validate validates this v1 host alias

type V1HostPathVolumeSource ¶

type V1HostPathVolumeSource struct {

	// path of the directory on the host.
	// If the path is a symlink, it will follow the link to the real path.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	Path string `json:"path,omitempty"`

	// type for HostPath Volume
	// Defaults to ""
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	// +optional
	Type string `json:"type,omitempty"`
}

V1HostPathVolumeSource v1 host path volume source

swagger:model V1HostPathVolumeSource

func (*V1HostPathVolumeSource) ContextValidate ¶

func (m *V1HostPathVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 host path volume source based on context it is used

func (*V1HostPathVolumeSource) MarshalBinary ¶

func (m *V1HostPathVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1HostPathVolumeSource) UnmarshalBinary ¶

func (m *V1HostPathVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1HostPathVolumeSource) Validate ¶

func (m *V1HostPathVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 host path volume source

type V1ISCSIVolumeSource ¶

type V1ISCSIVolumeSource struct {

	// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
	// +optional
	ChapAuthDiscovery bool `json:"chapAuthDiscovery,omitempty"`

	// chapAuthSession defines whether support iSCSI Session CHAP authentication
	// +optional
	ChapAuthSession bool `json:"chapAuthSession,omitempty"`

	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	// +optional
	FsType string `json:"fsType,omitempty"`

	// initiatorName is the custom iSCSI Initiator Name.
	// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
	// <target portal>:<volume name> will be created for the connection.
	// +optional
	InitiatorName string `json:"initiatorName,omitempty"`

	// iqn is the target iSCSI Qualified Name.
	Iqn string `json:"iqn,omitempty"`

	// iscsiInterface is the interface Name that uses an iSCSI transport.
	// Defaults to 'default' (tcp).
	// +optional
	// +default="default"
	IscsiInterface string `json:"iscsiInterface,omitempty"`

	// lun represents iSCSI Target Lun number.
	Lun int64 `json:"lun,omitempty"`

	// portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
	// is other than default (typically TCP ports 860 and 3260).
	// +optional
	// +listType=atomic
	Portals []string `json:"portals"`

	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretRef is the CHAP Secret for iSCSI target and initiator authentication
	// +optional
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`

	// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
	// is other than default (typically TCP ports 860 and 3260).
	TargetPortal string `json:"targetPortal,omitempty"`
}

V1ISCSIVolumeSource v1 i s c s i volume source

swagger:model V1ISCSIVolumeSource

func (*V1ISCSIVolumeSource) ContextValidate ¶

func (m *V1ISCSIVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 i s c s i volume source based on the context it is used

func (*V1ISCSIVolumeSource) MarshalBinary ¶

func (m *V1ISCSIVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ISCSIVolumeSource) UnmarshalBinary ¶

func (m *V1ISCSIVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ISCSIVolumeSource) Validate ¶

func (m *V1ISCSIVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 i s c s i volume source

type V1ImageVolumeSource ¶

type V1ImageVolumeSource struct {

	// Policy for pulling OCI objects. Possible values are:
	// Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
	// Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
	// IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	// +optional
	PullPolicy string `json:"pullPolicy,omitempty"`

	// Required: Image or artifact reference to be used.
	// Behaves in the same way as pod.spec.containers[*].image.
	// Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	// This field is optional to allow higher level config management to default or override
	// container images in workload controllers like Deployments and StatefulSets.
	// +optional
	Reference string `json:"reference,omitempty"`
}

V1ImageVolumeSource v1 image volume source

swagger:model V1ImageVolumeSource

func (*V1ImageVolumeSource) ContextValidate ¶

func (m *V1ImageVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 image volume source based on context it is used

func (*V1ImageVolumeSource) MarshalBinary ¶

func (m *V1ImageVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ImageVolumeSource) UnmarshalBinary ¶

func (m *V1ImageVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ImageVolumeSource) Validate ¶

func (m *V1ImageVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 image volume source

type V1JobSpec ¶

type V1JobSpec struct {

	// Specifies the duration in seconds relative to the startTime that the job
	// may be continuously active before the system tries to terminate it; value
	// must be positive integer. If a Job is suspended (at creation or through an
	// update), this timer will effectively be stopped and reset when the Job is
	// resumed again.
	// +optional
	ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty"`

	// Specifies the number of retries before marking this job failed.
	// Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified.
	// When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.
	// +optional
	BackoffLimit int64 `json:"backoffLimit,omitempty"`

	// Specifies the limit for the number of retries within an
	// index before marking this index as failed. When enabled the number of
	// failures per index is kept in the pod's
	// batch.kubernetes.io/job-index-failure-count annotation. It can only
	// be set when Job's completionMode=Indexed, and the Pod's restart
	// policy is Never. The field is immutable.
	// +optional
	BackoffLimitPerIndex int64 `json:"backoffLimitPerIndex,omitempty"`

	// completionMode specifies how Pod completions are tracked. It can be
	// `NonIndexed` (default) or `Indexed`.
	//
	// `NonIndexed` means that the Job is considered complete when there have
	// been .spec.completions successfully completed Pods. Each Pod completion is
	// homologous to each other.
	//
	// `Indexed` means that the Pods of a
	// Job get an associated completion index from 0 to (.spec.completions - 1),
	// available in the annotation batch.kubernetes.io/job-completion-index.
	// The Job is considered complete when there is one successfully completed Pod
	// for each index.
	// When value is `Indexed`, .spec.completions must be specified and
	// `.spec.parallelism` must be less than or equal to 10^5.
	// In addition, The Pod name takes the form
	// `$(job-name)-$(index)-$(random-string)`,
	// the Pod hostname takes the form `$(job-name)-$(index)`.
	//
	// More completion modes can be added in the future.
	// If the Job controller observes a mode that it doesn't recognize, which
	// is possible during upgrades due to version skew, the controller
	// skips updates for the Job.
	// +optional
	CompletionMode struct {
		V1CompletionMode
	} `json:"completionMode,omitempty"`

	// Specifies the desired number of successfully finished pods the
	// job should be run with.  Setting to null means that the success of any
	// pod signals the success of all pods, and allows parallelism to have any positive
	// value.  Setting to 1 means that parallelism is limited to 1 and the success of that
	// pod signals the success of the job.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	// +optional
	Completions int64 `json:"completions,omitempty"`

	// ManagedBy field indicates the controller that manages a Job. The k8s Job
	// controller reconciles jobs which don't have this field at all or the field
	// value is the reserved string `kubernetes.io/job-controller`, but skips
	// reconciling Jobs with a custom value for this field.
	// The value must be a valid domain-prefixed path (e.g. acme.io/foo) -
	// all characters before the first "/" must be a valid subdomain as defined
	// by RFC 1123. All characters trailing the first "/" must be valid HTTP Path
	// characters as defined by RFC 3986. The value cannot exceed 63 characters.
	// This field is immutable.
	//
	// This field is beta-level. The job controller accepts setting the field
	// when the feature gate JobManagedBy is enabled (enabled by default).
	// +optional
	ManagedBy string `json:"managedBy,omitempty"`

	// manualSelector controls generation of pod labels and pod selectors.
	// Leave `manualSelector` unset unless you are certain what you are doing.
	// When false or unset, the system pick labels unique to this job
	// and appends those labels to the pod template.  When true,
	// the user is responsible for picking unique labels and specifying
	// the selector.  Failure to pick a unique label may cause this
	// and other jobs to not function correctly.  However, You may see
	// `manualSelector=true` in jobs that were created with the old `extensions/v1beta1`
	// API.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
	// +optional
	ManualSelector bool `json:"manualSelector,omitempty"`

	// Specifies the maximal number of failed indexes before marking the Job as
	// failed, when backoffLimitPerIndex is set. Once the number of failed
	// indexes exceeds this number the entire Job is marked as Failed and its
	// execution is terminated. When left as null the job continues execution of
	// all of its indexes and is marked with the `Complete` Job condition.
	// It can only be specified when backoffLimitPerIndex is set.
	// It can be null or up to completions. It is required and must be
	// less than or equal to 10^4 when is completions greater than 10^5.
	// +optional
	MaxFailedIndexes int64 `json:"maxFailedIndexes,omitempty"`

	// Specifies the maximum desired number of pods the job should
	// run at any given time. The actual number of pods running in steady state will
	// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
	// i.e. when the work left to do is less than max parallelism.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	// +optional
	Parallelism int64 `json:"parallelism,omitempty"`

	// Specifies the policy of handling failed pods. In particular, it allows to
	// specify the set of actions and conditions which need to be
	// satisfied to take the associated action.
	// If empty, the default behaviour applies - the counter of failed pods,
	// represented by the jobs's .status.failed field, is incremented and it is
	// checked against the backoffLimit. This field cannot be used in combination
	// with restartPolicy=OnFailure.
	//
	// +optional
	PodFailurePolicy struct {
		V1PodFailurePolicy
	} `json:"podFailurePolicy,omitempty"`

	// podReplacementPolicy specifies when to create replacement Pods.
	// Possible values are:
	// - TerminatingOrFailed means that we recreate pods
	//   when they are terminating (has a metadata.deletionTimestamp) or failed.
	// - Failed means to wait until a previously created Pod is fully terminated (has phase
	//   Failed or Succeeded) before creating a replacement Pod.
	//
	// When using podFailurePolicy, Failed is the the only allowed value.
	// TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.
	// +optional
	PodReplacementPolicy struct {
		V1PodReplacementPolicy
	} `json:"podReplacementPolicy,omitempty"`

	// A label query over pods that should match the pod count.
	// Normally, the system sets this field for you.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	// +optional
	Selector struct {
		V1LabelSelector
	} `json:"selector,omitempty"`

	// successPolicy specifies the policy when the Job can be declared as succeeded.
	// If empty, the default behavior applies - the Job is declared as succeeded
	// only when the number of succeeded pods equals to the completions.
	// When the field is specified, it must be immutable and works only for the Indexed Jobs.
	// Once the Job meets the SuccessPolicy, the lingering pods are terminated.
	//
	// +optional
	SuccessPolicy struct {
		V1SuccessPolicy
	} `json:"successPolicy,omitempty"`

	// suspend specifies whether the Job controller should create Pods or not. If
	// a Job is created with suspend set to true, no Pods are created by the Job
	// controller. If a Job is suspended after creation (i.e. the flag goes from
	// false to true), the Job controller will delete all active Pods associated
	// with this Job. Users must design their workload to gracefully handle this.
	// Suspending a Job will reset the StartTime field of the Job, effectively
	// resetting the ActiveDeadlineSeconds timer too. Defaults to false.
	//
	// +optional
	Suspend bool `json:"suspend,omitempty"`

	// Describes the pod that will be created when executing a job.
	// The only allowed template.spec.restartPolicy values are "Never" or "OnFailure".
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
	Template struct {
		V1PodTemplateSpec
	} `json:"template,omitempty"`

	// ttlSecondsAfterFinished limits the lifetime of a Job that has finished
	// execution (either Complete or Failed). If this field is set,
	// ttlSecondsAfterFinished after the Job finishes, it is eligible to be
	// automatically deleted. When the Job is being deleted, its lifecycle
	// guarantees (e.g. finalizers) will be honored. If this field is unset,
	// the Job won't be automatically deleted. If this field is set to zero,
	// the Job becomes eligible to be deleted immediately after it finishes.
	// +optional
	TTLSecondsAfterFinished int64 `json:"ttlSecondsAfterFinished,omitempty"`
}

V1JobSpec v1 job spec

swagger:model V1JobSpec

func (*V1JobSpec) ContextValidate ¶

func (m *V1JobSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 job spec based on the context it is used

func (*V1JobSpec) MarshalBinary ¶

func (m *V1JobSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1JobSpec) UnmarshalBinary ¶

func (m *V1JobSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1JobSpec) Validate ¶

func (m *V1JobSpec) Validate(formats strfmt.Registry) error

Validate validates this v1 job spec

type V1KeyToPath ¶

type V1KeyToPath struct {

	// key is the key to project.
	Key string `json:"key,omitempty"`

	// mode is Optional: mode bits used to set permissions on this file.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// If not specified, the volume defaultMode will be used.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	// +optional
	Mode int64 `json:"mode,omitempty"`

	// path is the relative path of the file to map the key to.
	// May not be an absolute path.
	// May not contain the path element '..'.
	// May not start with the string '..'.
	Path string `json:"path,omitempty"`
}

V1KeyToPath v1 key to path

swagger:model V1KeyToPath

func (*V1KeyToPath) ContextValidate ¶

func (m *V1KeyToPath) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 key to path based on context it is used

func (*V1KeyToPath) MarshalBinary ¶

func (m *V1KeyToPath) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1KeyToPath) UnmarshalBinary ¶

func (m *V1KeyToPath) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1KeyToPath) Validate ¶

func (m *V1KeyToPath) Validate(formats strfmt.Registry) error

Validate validates this v1 key to path

type V1LabelSelector ¶

type V1LabelSelector struct {

	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	// +optional
	// +listType=atomic
	MatchExpressions []*V1LabelSelectorRequirement `json:"matchExpressions"`

	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is "key", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// +optional
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

V1LabelSelector v1 label selector

swagger:model V1LabelSelector

func (*V1LabelSelector) ContextValidate ¶

func (m *V1LabelSelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 label selector based on the context it is used

func (*V1LabelSelector) MarshalBinary ¶

func (m *V1LabelSelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1LabelSelector) UnmarshalBinary ¶

func (m *V1LabelSelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1LabelSelector) Validate ¶

func (m *V1LabelSelector) Validate(formats strfmt.Registry) error

Validate validates this v1 label selector

type V1LabelSelectorRequirement ¶

type V1LabelSelectorRequirement struct {

	// key is the label key that the selector applies to.
	Key string `json:"key,omitempty"`

	// operator represents a key's relationship to a set of values.
	// Valid operators are In, NotIn, Exists and DoesNotExist.
	Operator string `json:"operator,omitempty"`

	// values is an array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty. This array is replaced during a strategic
	// merge patch.
	// +optional
	// +listType=atomic
	Values []string `json:"values"`
}

V1LabelSelectorRequirement v1 label selector requirement

swagger:model V1LabelSelectorRequirement

func (*V1LabelSelectorRequirement) ContextValidate ¶

func (m *V1LabelSelectorRequirement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 label selector requirement based on context it is used

func (*V1LabelSelectorRequirement) MarshalBinary ¶

func (m *V1LabelSelectorRequirement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1LabelSelectorRequirement) UnmarshalBinary ¶

func (m *V1LabelSelectorRequirement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1LabelSelectorRequirement) Validate ¶

func (m *V1LabelSelectorRequirement) Validate(formats strfmt.Registry) error

Validate validates this v1 label selector requirement

type V1Lifecycle ¶

type V1Lifecycle struct {

	// PostStart is called immediately after a container is created. If the handler fails,
	// the container is terminated and restarted according to its restart policy.
	// Other management of the container blocks until the hook completes.
	// More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
	// +optional
	PostStart struct {
		V1LifecycleHandler
	} `json:"postStart,omitempty"`

	// PreStop is called immediately before a container is terminated due to an
	// API request or management event such as liveness/startup probe failure,
	// preemption, resource contention, etc. The handler is not called if the
	// container crashes or exits. The Pod's termination grace period countdown begins before the
	// PreStop hook is executed. Regardless of the outcome of the handler, the
	// container will eventually terminate within the Pod's termination grace
	// period (unless delayed by finalizers). Other management of the container blocks until the hook completes
	// or until the termination grace period is reached.
	// More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
	// +optional
	PreStop struct {
		V1LifecycleHandler
	} `json:"preStop,omitempty"`

	// StopSignal defines which signal will be sent to a container when it is being stopped.
	// If not specified, the default is defined by the container runtime in use.
	// StopSignal can only be set for Pods with a non-empty .spec.os.name
	// +optional
	StopSignal string `json:"stopSignal,omitempty"`
}

V1Lifecycle v1 lifecycle

swagger:model V1Lifecycle

func (*V1Lifecycle) ContextValidate ¶

func (m *V1Lifecycle) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 lifecycle based on the context it is used

func (*V1Lifecycle) MarshalBinary ¶

func (m *V1Lifecycle) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Lifecycle) UnmarshalBinary ¶

func (m *V1Lifecycle) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Lifecycle) Validate ¶

func (m *V1Lifecycle) Validate(formats strfmt.Registry) error

Validate validates this v1 lifecycle

type V1LifecycleHandler ¶

type V1LifecycleHandler struct {

	// Exec specifies a command to execute in the container.
	// +optional
	Exec struct {
		V1ExecAction
	} `json:"exec,omitempty"`

	// HTTPGet specifies an HTTP GET request to perform.
	// +optional
	HTTPGet struct {
		V1HTTPGetAction
	} `json:"httpGet,omitempty"`

	// Sleep represents a duration that the container should sleep.
	// +featureGate=PodLifecycleSleepAction
	// +optional
	Sleep struct {
		V1SleepAction
	} `json:"sleep,omitempty"`

	// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
	// for backward compatibility. There is no validation of this field and
	// lifecycle hooks will fail at runtime when it is specified.
	// +optional
	TCPSocket struct {
		V1TCPSocketAction
	} `json:"tcpSocket,omitempty"`
}

V1LifecycleHandler v1 lifecycle handler

swagger:model V1LifecycleHandler

func (*V1LifecycleHandler) ContextValidate ¶

func (m *V1LifecycleHandler) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 lifecycle handler based on the context it is used

func (*V1LifecycleHandler) MarshalBinary ¶

func (m *V1LifecycleHandler) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1LifecycleHandler) UnmarshalBinary ¶

func (m *V1LifecycleHandler) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1LifecycleHandler) Validate ¶

func (m *V1LifecycleHandler) Validate(formats strfmt.Registry) error

Validate validates this v1 lifecycle handler

type V1ListMeta ¶

type V1ListMeta struct {

	// continue may be set if the user set a limit on the number of items returned, and indicates that
	// the server has more data available. The value is opaque and may be used to issue another request
	// to the endpoint that served this list to retrieve the next set of available objects. Continuing a
	// consistent list may not be possible if the server configuration has changed or more than a few
	// minutes have passed. The resourceVersion field returned when using this continue value will be
	// identical to the value in the first response, unless you have received this token from an error
	// message.
	Continue string `json:"continue,omitempty"`

	// remainingItemCount is the number of subsequent items in the list which are not included in this
	// list response. If the list request contained label or field selectors, then the number of
	// remaining items is unknown and the field will be left unset and omitted during serialization.
	// If the list is complete (either because it is not chunking or because this is the last chunk),
	// then there are no more remaining items and this field will be left unset and omitted during
	// serialization.
	// Servers older than v1.15 do not set this field.
	// The intended use of the remainingItemCount is *estimating* the size of a collection. Clients
	// should not rely on the remainingItemCount to be set or to be exact.
	// +optional
	RemainingItemCount int64 `json:"remainingItemCount,omitempty"`

	// String that identifies the server's internal version of this object that
	// can be used by clients to determine when objects have changed.
	// Value must be treated as opaque by clients and passed unmodified back to the server.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty"`

	// Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
	// +optional
	SelfLink string `json:"selfLink,omitempty"`
}

V1ListMeta v1 list meta

swagger:model V1ListMeta

func (*V1ListMeta) ContextValidate ¶

func (m *V1ListMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 list meta based on context it is used

func (*V1ListMeta) MarshalBinary ¶

func (m *V1ListMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ListMeta) UnmarshalBinary ¶

func (m *V1ListMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ListMeta) Validate ¶

func (m *V1ListMeta) Validate(formats strfmt.Registry) error

Validate validates this v1 list meta

type V1LocalObjectReference ¶

type V1LocalObjectReference struct {

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`
}

V1LocalObjectReference v1 local object reference

swagger:model V1LocalObjectReference

func (*V1LocalObjectReference) ContextValidate ¶

func (m *V1LocalObjectReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 local object reference based on context it is used

func (*V1LocalObjectReference) MarshalBinary ¶

func (m *V1LocalObjectReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1LocalObjectReference) UnmarshalBinary ¶

func (m *V1LocalObjectReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1LocalObjectReference) Validate ¶

func (m *V1LocalObjectReference) Validate(formats strfmt.Registry) error

Validate validates this v1 local object reference

type V1ManagedFieldsEntry ¶

type V1ManagedFieldsEntry struct {

	// APIVersion defines the version of this resource that this field set
	// applies to. The format is "group/version" just like the top-level
	// APIVersion field. It is necessary to track the version of a field
	// set because it cannot be automatically converted.
	APIVersion string `json:"apiVersion,omitempty"`

	// FieldsType is the discriminator for the different fields format and version.
	// There is currently only one possible value: "FieldsV1"
	FieldsType string `json:"fieldsType,omitempty"`

	// FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.
	// +optional
	FieldsV1 struct {
		V1FieldsV1
	} `json:"fieldsV1,omitempty"`

	// Manager is an identifier of the workflow managing these fields.
	Manager string `json:"manager,omitempty"`

	// Operation is the type of operation which lead to this ManagedFieldsEntry being created.
	// The only valid values for this field are 'Apply' and 'Update'.
	Operation string `json:"operation,omitempty"`

	// Subresource is the name of the subresource used to update that object, or
	// empty string if the object was updated through the main resource. The
	// value of this field is used to distinguish between managers, even if they
	// share the same name. For example, a status update will be distinct from a
	// regular update using the same manager name.
	// Note that the APIVersion field is not related to the Subresource field and
	// it always corresponds to the version of the main resource.
	Subresource string `json:"subresource,omitempty"`

	// Time is the timestamp of when the ManagedFields entry was added. The
	// timestamp will also be updated if a field is added, the manager
	// changes any of the owned fields value or removes a field. The
	// timestamp does not update when a field is removed from the entry
	// because another manager took it over.
	// +optional
	Time string `json:"time,omitempty"`
}

V1ManagedFieldsEntry v1 managed fields entry

swagger:model V1ManagedFieldsEntry

func (*V1ManagedFieldsEntry) ContextValidate ¶

func (m *V1ManagedFieldsEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 managed fields entry based on context it is used

func (*V1ManagedFieldsEntry) MarshalBinary ¶

func (m *V1ManagedFieldsEntry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ManagedFieldsEntry) UnmarshalBinary ¶

func (m *V1ManagedFieldsEntry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ManagedFieldsEntry) Validate ¶

func (m *V1ManagedFieldsEntry) Validate(formats strfmt.Registry) error

Validate validates this v1 managed fields entry

type V1MicroTime ¶

type V1MicroTime struct {

	// time time
	TimeTime string `json:"time.Time,omitempty"`
}

V1MicroTime v1 micro time

swagger:model V1MicroTime

func (*V1MicroTime) ContextValidate ¶

func (m *V1MicroTime) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 micro time based on context it is used

func (*V1MicroTime) MarshalBinary ¶

func (m *V1MicroTime) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MicroTime) UnmarshalBinary ¶

func (m *V1MicroTime) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MicroTime) Validate ¶

func (m *V1MicroTime) Validate(formats strfmt.Registry) error

Validate validates this v1 micro time

type V1NFSVolumeSource ¶

type V1NFSVolumeSource struct {

	// path that is exported by the NFS server.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	Path string `json:"path,omitempty"`

	// readOnly here will force the NFS export to be mounted with read-only permissions.
	// Defaults to false.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// server is the hostname or IP address of the NFS server.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	Server string `json:"server,omitempty"`
}

V1NFSVolumeSource v1 n f s volume source

swagger:model V1NFSVolumeSource

func (*V1NFSVolumeSource) ContextValidate ¶

func (m *V1NFSVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 n f s volume source based on context it is used

func (*V1NFSVolumeSource) MarshalBinary ¶

func (m *V1NFSVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NFSVolumeSource) UnmarshalBinary ¶

func (m *V1NFSVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NFSVolumeSource) Validate ¶

func (m *V1NFSVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 n f s volume source

type V1NodeAffinity ¶

type V1NodeAffinity struct {

	// The scheduler will prefer to schedule pods to nodes that satisfy
	// the affinity expressions specified by this field, but it may choose
	// a node that violates one or more of the expressions. The node that is
	// most preferred is the one with the greatest sum of weights, i.e.
	// for each node that meets all of the scheduling requirements (resource
	// request, requiredDuringScheduling affinity expressions, etc.),
	// compute a sum by iterating through the elements of this field and adding
	// "weight" to the sum if the node matches the corresponding matchExpressions; the
	// node(s) with the highest sum are the most preferred.
	// +optional
	// +listType=atomic
	PreferredDuringSchedulingIgnoredDuringExecution []*V1PreferredSchedulingTerm `json:"preferredDuringSchedulingIgnoredDuringExecution"`

	// If the affinity requirements specified by this field are not met at
	// scheduling time, the pod will not be scheduled onto the node.
	// If the affinity requirements specified by this field cease to be met
	// at some point during pod execution (e.g. due to an update), the system
	// may or may not try to eventually evict the pod from its node.
	// +optional
	RequiredDuringSchedulingIgnoredDuringExecution struct {
		V1NodeSelector
	} `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

V1NodeAffinity v1 node affinity

swagger:model V1NodeAffinity

func (*V1NodeAffinity) ContextValidate ¶

func (m *V1NodeAffinity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 node affinity based on the context it is used

func (*V1NodeAffinity) MarshalBinary ¶

func (m *V1NodeAffinity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NodeAffinity) UnmarshalBinary ¶

func (m *V1NodeAffinity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NodeAffinity) Validate ¶

func (m *V1NodeAffinity) Validate(formats strfmt.Registry) error

Validate validates this v1 node affinity

type V1NodeSelector ¶

type V1NodeSelector struct {

	// Required. A list of node selector terms. The terms are ORed.
	// +listType=atomic
	NodeSelectorTerms []*V1NodeSelectorTerm `json:"nodeSelectorTerms"`
}

V1NodeSelector v1 node selector

swagger:model V1NodeSelector

func (*V1NodeSelector) ContextValidate ¶

func (m *V1NodeSelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 node selector based on the context it is used

func (*V1NodeSelector) MarshalBinary ¶

func (m *V1NodeSelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NodeSelector) UnmarshalBinary ¶

func (m *V1NodeSelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NodeSelector) Validate ¶

func (m *V1NodeSelector) Validate(formats strfmt.Registry) error

Validate validates this v1 node selector

type V1NodeSelectorRequirement ¶

type V1NodeSelectorRequirement struct {

	// The label key that the selector applies to.
	Key string `json:"key,omitempty"`

	// Represents a key's relationship to a set of values.
	// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
	Operator string `json:"operator,omitempty"`

	// An array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty. If the operator is Gt or Lt, the values
	// array must have a single element, which will be interpreted as an integer.
	// This array is replaced during a strategic merge patch.
	// +optional
	// +listType=atomic
	Values []string `json:"values"`
}

V1NodeSelectorRequirement v1 node selector requirement

swagger:model V1NodeSelectorRequirement

func (*V1NodeSelectorRequirement) ContextValidate ¶

func (m *V1NodeSelectorRequirement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 node selector requirement based on context it is used

func (*V1NodeSelectorRequirement) MarshalBinary ¶

func (m *V1NodeSelectorRequirement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NodeSelectorRequirement) UnmarshalBinary ¶

func (m *V1NodeSelectorRequirement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NodeSelectorRequirement) Validate ¶

func (m *V1NodeSelectorRequirement) Validate(formats strfmt.Registry) error

Validate validates this v1 node selector requirement

type V1NodeSelectorTerm ¶

type V1NodeSelectorTerm struct {

	// A list of node selector requirements by node's labels.
	// +optional
	// +listType=atomic
	MatchExpressions []*V1NodeSelectorRequirement `json:"matchExpressions"`

	// A list of node selector requirements by node's fields.
	// +optional
	// +listType=atomic
	MatchFields []*V1NodeSelectorRequirement `json:"matchFields"`
}

V1NodeSelectorTerm v1 node selector term

swagger:model V1NodeSelectorTerm

func (*V1NodeSelectorTerm) ContextValidate ¶

func (m *V1NodeSelectorTerm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 node selector term based on the context it is used

func (*V1NodeSelectorTerm) MarshalBinary ¶

func (m *V1NodeSelectorTerm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NodeSelectorTerm) UnmarshalBinary ¶

func (m *V1NodeSelectorTerm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NodeSelectorTerm) Validate ¶

func (m *V1NodeSelectorTerm) Validate(formats strfmt.Registry) error

Validate validates this v1 node selector term

type V1ObjectFieldSelector ¶

type V1ObjectFieldSelector struct {

	// Version of the schema the FieldPath is written in terms of, defaults to "v1".
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Path of the field to select in the specified API version.
	FieldPath string `json:"fieldPath,omitempty"`
}

V1ObjectFieldSelector v1 object field selector

swagger:model V1ObjectFieldSelector

func (*V1ObjectFieldSelector) ContextValidate ¶

func (m *V1ObjectFieldSelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 object field selector based on context it is used

func (*V1ObjectFieldSelector) MarshalBinary ¶

func (m *V1ObjectFieldSelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ObjectFieldSelector) UnmarshalBinary ¶

func (m *V1ObjectFieldSelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ObjectFieldSelector) Validate ¶

func (m *V1ObjectFieldSelector) Validate(formats strfmt.Registry) error

Validate validates this v1 object field selector

type V1ObjectMeta ¶

type V1ObjectMeta struct {

	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty"`

	// CreationTimestamp is a timestamp representing the server time when this object was
	// created. It is not guaranteed to be set in happens-before order across separate operations.
	// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system.
	// Read-only.
	// Null for lists.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	CreationTimestamp string `json:"creationTimestamp,omitempty"`

	// Number of seconds allowed for this object to gracefully terminate before
	// it will be removed from the system. Only set when deletionTimestamp is also set.
	// May only be shortened.
	// Read-only.
	// +optional
	DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"`

	// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
	// field is set by the server when a graceful deletion is requested by the user, and is not
	// directly settable by a client. The resource is expected to be deleted (no longer visible
	// from resource lists, and not reachable by name) after the time in this field, once the
	// finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
	// Once the deletionTimestamp is set, this value may not be unset or be set further into the
	// future, although it may be shortened or the resource may be deleted prior to this time.
	// For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
	// by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
	// the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
	// remove the pod from the API. In the presence of network partitions, this object may still
	// exist after this timestamp, until an administrator or automated process can determine the
	// resource is fully terminated.
	// If not set, graceful deletion of the object has not been requested.
	//
	// Populated by the system when a graceful deletion is requested.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	DeletionTimestamp string `json:"deletionTimestamp,omitempty"`

	// Must be empty before the object is deleted from the registry. Each entry
	// is an identifier for the responsible component that will remove the entry
	// from the list. If the deletionTimestamp of the object is non-nil, entries
	// in this list can only be removed.
	// Finalizers may be processed and removed in any order.  Order is NOT enforced
	// because it introduces significant risk of stuck finalizers.
	// finalizers is a shared field, any actor with permission can reorder it.
	// If the finalizer list is processed in order, then this can lead to a situation
	// in which the component responsible for the first finalizer in the list is
	// waiting for a signal (field value, external system, or other) produced by a
	// component responsible for a finalizer later in the list, resulting in a deadlock.
	// Without enforced ordering finalizers are free to order amongst themselves and
	// are not vulnerable to ordering changes in the list.
	// +optional
	// +patchStrategy=merge
	// +listType=set
	Finalizers []string `json:"finalizers"`

	// GenerateName is an optional prefix, used by the server, to generate a unique
	// name ONLY IF the Name field has not been provided.
	// If this field is used, the name returned to the client will be different
	// than the name passed. This value will also be combined with a unique suffix.
	// The provided value has the same validation rules as the Name field,
	// and may be truncated by the length of the suffix required to make the value
	// unique on the server.
	//
	// If this field is specified and the generated name exists, the server will return a 409.
	//
	// Applied only if Name is not specified.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
	// +optional
	GenerateName string `json:"generateName,omitempty"`

	// A sequence number representing a specific generation of the desired state.
	// Populated by the system. Read-only.
	// +optional
	Generation int64 `json:"generation,omitempty"`

	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// ManagedFields maps workflow-id and version to the set of fields
	// that are managed by that workflow. This is mostly for internal
	// housekeeping, and users typically shouldn't need to set or
	// understand this field. A workflow can be the user's name, a
	// controller's name, or the name of a specific apply path like
	// "ci-cd". The set of fields is always in the version that the
	// workflow used when modifying the object.
	//
	// +optional
	// +listType=atomic
	ManagedFields []*V1ManagedFieldsEntry `json:"managedFields"`

	// Name must be unique within a namespace. Is required when creating resources, although
	// some resources may allow a client to request the generation of an appropriate name
	// automatically. Name is primarily intended for creation idempotence and configuration
	// definition.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
	// +optional
	Name string `json:"name,omitempty"`

	// Namespace defines the space within which each name must be unique. An empty namespace is
	// equivalent to the "default" namespace, but "default" is the canonical representation.
	// Not all objects are required to be scoped to a namespace - the value of this field for
	// those objects will be empty.
	//
	// Must be a DNS_LABEL.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// List of objects depended by this object. If ALL objects in the list have
	// been deleted, this object will be garbage collected. If this object is managed by a controller,
	// then an entry in this list will point to this controller, with the controller field set to true.
	// There cannot be more than one managing controller.
	// +optional
	// +patchMergeKey=uid
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=uid
	OwnerReferences []*V1OwnerReference `json:"ownerReferences"`

	// An opaque value that represents the internal version of this object that can
	// be used by clients to determine when objects have changed. May be used for optimistic
	// concurrency, change detection, and the watch operation on a resource or set of resources.
	// Clients must treat these values as opaque and passed unmodified back to the server.
	// They may only be valid for a particular resource or set of resources.
	//
	// Populated by the system.
	// Read-only.
	// Value must be treated as opaque by clients and .
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty"`

	// Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
	// +optional
	SelfLink string `json:"selfLink,omitempty"`

	// UID is the unique in time and space value for this object. It is typically generated by
	// the server on successful creation of a resource and is not allowed to change on PUT
	// operations.
	//
	// Populated by the system.
	// Read-only.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
	// +optional
	UID string `json:"uid,omitempty"`
}

V1ObjectMeta v1 object meta

swagger:model V1ObjectMeta

func (*V1ObjectMeta) ContextValidate ¶

func (m *V1ObjectMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 object meta based on the context it is used

func (*V1ObjectMeta) MarshalBinary ¶

func (m *V1ObjectMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ObjectMeta) UnmarshalBinary ¶

func (m *V1ObjectMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ObjectMeta) Validate ¶

func (m *V1ObjectMeta) Validate(formats strfmt.Registry) error

Validate validates this v1 object meta

type V1ObjectReference ¶

type V1ObjectReference struct {

	// API version of the referent.
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// If referring to a piece of an object instead of an entire object, this string
	// should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
	// For example, if the object reference is to a container within a pod, this would take on a value like:
	// "spec.containers{name}" (where "name" refers to the name of the container that triggered
	// the event) or if no container name is specified "spec.containers[2]" (container with
	// index 2 in this pod). This syntax is chosen only to have some well-defined way of
	// referencing a part of an object.
	// TODO: this design is not final and this field is subject to change in the future.
	// +optional
	FieldPath string `json:"fieldPath,omitempty"`

	// Kind of the referent.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// Name of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	Name string `json:"name,omitempty"`

	// Namespace of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Specific resourceVersion to which this reference is made, if any.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `json:"resourceVersion,omitempty"`

	// UID of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
	// +optional
	UID string `json:"uid,omitempty"`
}

V1ObjectReference v1 object reference

swagger:model V1ObjectReference

func (*V1ObjectReference) ContextValidate ¶

func (m *V1ObjectReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 object reference based on context it is used

func (*V1ObjectReference) MarshalBinary ¶

func (m *V1ObjectReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ObjectReference) UnmarshalBinary ¶

func (m *V1ObjectReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ObjectReference) Validate ¶

func (m *V1ObjectReference) Validate(formats strfmt.Registry) error

Validate validates this v1 object reference

type V1OwnerReference ¶

type V1OwnerReference struct {

	// API version of the referent.
	APIVersion string `json:"apiVersion,omitempty"`

	// If true, AND if the owner has the "foregroundDeletion" finalizer, then
	// the owner cannot be deleted from the key-value store until this
	// reference is removed.
	// See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
	// for how the garbage collector interacts with this field and enforces the foreground deletion.
	// Defaults to false.
	// To set this field, a user needs "delete" permission of the owner,
	// otherwise 422 (Unprocessable Entity) will be returned.
	// +optional
	BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"`

	// If true, this reference points to the managing controller.
	// +optional
	Controller bool `json:"controller,omitempty"`

	// Kind of the referent.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// Name of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
	Name string `json:"name,omitempty"`

	// UID of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
	UID string `json:"uid,omitempty"`
}

V1OwnerReference v1 owner reference

swagger:model V1OwnerReference

func (*V1OwnerReference) ContextValidate ¶

func (m *V1OwnerReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 owner reference based on context it is used

func (*V1OwnerReference) MarshalBinary ¶

func (m *V1OwnerReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1OwnerReference) UnmarshalBinary ¶

func (m *V1OwnerReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1OwnerReference) Validate ¶

func (m *V1OwnerReference) Validate(formats strfmt.Registry) error

Validate validates this v1 owner reference

type V1PersistentVolumeClaimSpec ¶

type V1PersistentVolumeClaimSpec struct {

	// accessModes contains the desired access modes the volume should have.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
	// +optional
	// +listType=atomic
	AccessModes []string `json:"accessModes"`

	// dataSource field can be used to specify either:
	// * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
	// * An existing PVC (PersistentVolumeClaim)
	// If the provisioner or an external controller can support the specified data source,
	// it will create a new volume based on the contents of the specified data source.
	// When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
	// and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
	// If the namespace is specified, then dataSourceRef will not be copied to dataSource.
	// +optional
	DataSource struct {
		V1TypedLocalObjectReference
	} `json:"dataSource,omitempty"`

	// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
	// volume is desired. This may be any object from a non-empty API group (non
	// core object) or a PersistentVolumeClaim object.
	// When this field is specified, volume binding will only succeed if the type of
	// the specified object matches some installed volume populator or dynamic
	// provisioner.
	// This field will replace the functionality of the dataSource field and as such
	// if both fields are non-empty, they must have the same value. For backwards
	// compatibility, when namespace isn't specified in dataSourceRef,
	// both fields (dataSource and dataSourceRef) will be set to the same
	// value automatically if one of them is empty and the other is non-empty.
	// When namespace is specified in dataSourceRef,
	// dataSource isn't set to the same value and must be empty.
	// There are three important differences between dataSource and dataSourceRef:
	// * While dataSource only allows two specific types of objects, dataSourceRef
	//   allows any non-core object, as well as PersistentVolumeClaim objects.
	// * While dataSource ignores disallowed values (dropping them), dataSourceRef
	//   preserves all values, and generates an error if a disallowed value is
	//   specified.
	// * While dataSource only allows local objects, dataSourceRef allows objects
	//   in any namespaces.
	// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
	// (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
	// +optional
	DataSourceRef struct {
		V1TypedObjectReference
	} `json:"dataSourceRef,omitempty"`

	// resources represents the minimum resources the volume should have.
	// If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements
	// that are lower than previous value but must still be higher than capacity recorded in the
	// status field of the claim.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
	// +optional
	Resources struct {
		V1VolumeResourceRequirements
	} `json:"resources,omitempty"`

	// selector is a label query over volumes to consider for binding.
	// +optional
	Selector struct {
		V1LabelSelector
	} `json:"selector,omitempty"`

	// storageClassName is the name of the StorageClass required by the claim.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
	// +optional
	StorageClassName string `json:"storageClassName,omitempty"`

	// volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
	// If specified, the CSI driver will create or update the volume with the attributes defined
	// in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
	// it can be changed after the claim is created. An empty string or nil value indicates that no
	// VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state,
	// this field can be reset to its previous value (including nil) to cancel the modification.
	// If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
	// set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
	// exists.
	// More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
	// +featureGate=VolumeAttributesClass
	// +optional
	VolumeAttributesClassName string `json:"volumeAttributesClassName,omitempty"`

	// volumeMode defines what type of volume is required by the claim.
	// Value of Filesystem is implied when not included in claim spec.
	// +optional
	VolumeMode string `json:"volumeMode,omitempty"`

	// volumeName is the binding reference to the PersistentVolume backing this claim.
	// +optional
	VolumeName string `json:"volumeName,omitempty"`
}

V1PersistentVolumeClaimSpec v1 persistent volume claim spec

swagger:model V1PersistentVolumeClaimSpec

func (*V1PersistentVolumeClaimSpec) ContextValidate ¶

func (m *V1PersistentVolumeClaimSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 persistent volume claim spec based on the context it is used

func (*V1PersistentVolumeClaimSpec) MarshalBinary ¶

func (m *V1PersistentVolumeClaimSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PersistentVolumeClaimSpec) UnmarshalBinary ¶

func (m *V1PersistentVolumeClaimSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PersistentVolumeClaimSpec) Validate ¶

func (m *V1PersistentVolumeClaimSpec) Validate(formats strfmt.Registry) error

Validate validates this v1 persistent volume claim spec

type V1PersistentVolumeClaimTemplate ¶

type V1PersistentVolumeClaimTemplate struct {

	// May contain labels and annotations that will be copied into the PVC
	// when creating it. No other fields are allowed and will be rejected during
	// validation.
	//
	// +optional
	Metadata struct {
		V1ObjectMeta
	} `json:"metadata,omitempty"`

	// The specification for the PersistentVolumeClaim. The entire content is
	// copied unchanged into the PVC that gets created from this
	// template. The same fields as in a PersistentVolumeClaim
	// are also valid here.
	Spec struct {
		V1PersistentVolumeClaimSpec
	} `json:"spec,omitempty"`
}

V1PersistentVolumeClaimTemplate v1 persistent volume claim template

swagger:model V1PersistentVolumeClaimTemplate

func (*V1PersistentVolumeClaimTemplate) ContextValidate ¶

func (m *V1PersistentVolumeClaimTemplate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 persistent volume claim template based on the context it is used

func (*V1PersistentVolumeClaimTemplate) MarshalBinary ¶

func (m *V1PersistentVolumeClaimTemplate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PersistentVolumeClaimTemplate) UnmarshalBinary ¶

func (m *V1PersistentVolumeClaimTemplate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PersistentVolumeClaimTemplate) Validate ¶

Validate validates this v1 persistent volume claim template

type V1PersistentVolumeClaimVolumeSource ¶

type V1PersistentVolumeClaimVolumeSource struct {

	// claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
	ClaimName string `json:"claimName,omitempty"`

	// readOnly Will force the ReadOnly setting in VolumeMounts.
	// Default false.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`
}

V1PersistentVolumeClaimVolumeSource v1 persistent volume claim volume source

swagger:model V1PersistentVolumeClaimVolumeSource

func (*V1PersistentVolumeClaimVolumeSource) ContextValidate ¶

func (m *V1PersistentVolumeClaimVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 persistent volume claim volume source based on context it is used

func (*V1PersistentVolumeClaimVolumeSource) MarshalBinary ¶

func (m *V1PersistentVolumeClaimVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PersistentVolumeClaimVolumeSource) UnmarshalBinary ¶

func (m *V1PersistentVolumeClaimVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PersistentVolumeClaimVolumeSource) Validate ¶

Validate validates this v1 persistent volume claim volume source

type V1PhotonPersistentDiskVolumeSource ¶

type V1PhotonPersistentDiskVolumeSource struct {

	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	FsType string `json:"fsType,omitempty"`

	// pdID is the ID that identifies Photon Controller persistent disk
	PdID string `json:"pdID,omitempty"`
}

V1PhotonPersistentDiskVolumeSource v1 photon persistent disk volume source

swagger:model V1PhotonPersistentDiskVolumeSource

func (*V1PhotonPersistentDiskVolumeSource) ContextValidate ¶

func (m *V1PhotonPersistentDiskVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 photon persistent disk volume source based on context it is used

func (*V1PhotonPersistentDiskVolumeSource) MarshalBinary ¶

func (m *V1PhotonPersistentDiskVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PhotonPersistentDiskVolumeSource) UnmarshalBinary ¶

func (m *V1PhotonPersistentDiskVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PhotonPersistentDiskVolumeSource) Validate ¶

Validate validates this v1 photon persistent disk volume source

type V1PodAffinity ¶

type V1PodAffinity struct {

	// The scheduler will prefer to schedule pods to nodes that satisfy
	// the affinity expressions specified by this field, but it may choose
	// a node that violates one or more of the expressions. The node that is
	// most preferred is the one with the greatest sum of weights, i.e.
	// for each node that meets all of the scheduling requirements (resource
	// request, requiredDuringScheduling affinity expressions, etc.),
	// compute a sum by iterating through the elements of this field and adding
	// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
	// node(s) with the highest sum are the most preferred.
	// +optional
	// +listType=atomic
	PreferredDuringSchedulingIgnoredDuringExecution []*V1WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution"`

	// If the affinity requirements specified by this field are not met at
	// scheduling time, the pod will not be scheduled onto the node.
	// If the affinity requirements specified by this field cease to be met
	// at some point during pod execution (e.g. due to a pod label update), the
	// system may or may not try to eventually evict the pod from its node.
	// When there are multiple elements, the lists of nodes corresponding to each
	// podAffinityTerm are intersected, i.e. all terms must be satisfied.
	// +optional
	// +listType=atomic
	RequiredDuringSchedulingIgnoredDuringExecution []*V1PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution"`
}

V1PodAffinity v1 pod affinity

swagger:model V1PodAffinity

func (*V1PodAffinity) ContextValidate ¶

func (m *V1PodAffinity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod affinity based on the context it is used

func (*V1PodAffinity) MarshalBinary ¶

func (m *V1PodAffinity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodAffinity) UnmarshalBinary ¶

func (m *V1PodAffinity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodAffinity) Validate ¶

func (m *V1PodAffinity) Validate(formats strfmt.Registry) error

Validate validates this v1 pod affinity

type V1PodAffinityTerm ¶

type V1PodAffinityTerm struct {

	// A label query over a set of resources, in this case pods.
	// If it's null, this PodAffinityTerm matches with no Pods.
	// +optional
	LabelSelector struct {
		V1LabelSelector
	} `json:"labelSelector,omitempty"`

	// MatchLabelKeys is a set of pod label keys to select which pods will
	// be taken into consideration. The keys are used to lookup values from the
	// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
	// to select the group of existing pods which pods will be taken into consideration
	// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
	// pod labels will be ignored. The default value is empty.
	// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
	// Also, matchLabelKeys cannot be set when labelSelector isn't set.
	//
	// +listType=atomic
	// +optional
	MatchLabelKeys []string `json:"matchLabelKeys"`

	// MismatchLabelKeys is a set of pod label keys to select which pods will
	// be taken into consideration. The keys are used to lookup values from the
	// incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
	// to select the group of existing pods which pods will be taken into consideration
	// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
	// pod labels will be ignored. The default value is empty.
	// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
	// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
	//
	// +listType=atomic
	// +optional
	MismatchLabelKeys []string `json:"mismatchLabelKeys"`

	// A label query over the set of namespaces that the term applies to.
	// The term is applied to the union of the namespaces selected by this field
	// and the ones listed in the namespaces field.
	// null selector and null or empty namespaces list means "this pod's namespace".
	// An empty selector ({}) matches all namespaces.
	// +optional
	NamespaceSelector struct {
		V1LabelSelector
	} `json:"namespaceSelector,omitempty"`

	// namespaces specifies a static list of namespace names that the term applies to.
	// The term is applied to the union of the namespaces listed in this field
	// and the ones selected by namespaceSelector.
	// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
	// +optional
	// +listType=atomic
	Namespaces []string `json:"namespaces"`

	// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
	// the labelSelector in the specified namespaces, where co-located is defined as running on a node
	// whose value of the label with key topologyKey matches that of any node on which any of the
	// selected pods is running.
	// Empty topologyKey is not allowed.
	TopologyKey string `json:"topologyKey,omitempty"`
}

V1PodAffinityTerm v1 pod affinity term

swagger:model V1PodAffinityTerm

func (*V1PodAffinityTerm) ContextValidate ¶

func (m *V1PodAffinityTerm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod affinity term based on the context it is used

func (*V1PodAffinityTerm) MarshalBinary ¶

func (m *V1PodAffinityTerm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodAffinityTerm) UnmarshalBinary ¶

func (m *V1PodAffinityTerm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodAffinityTerm) Validate ¶

func (m *V1PodAffinityTerm) Validate(formats strfmt.Registry) error

Validate validates this v1 pod affinity term

type V1PodAntiAffinity ¶

type V1PodAntiAffinity struct {

	// The scheduler will prefer to schedule pods to nodes that satisfy
	// the anti-affinity expressions specified by this field, but it may choose
	// a node that violates one or more of the expressions. The node that is
	// most preferred is the one with the greatest sum of weights, i.e.
	// for each node that meets all of the scheduling requirements (resource
	// request, requiredDuringScheduling anti-affinity expressions, etc.),
	// compute a sum by iterating through the elements of this field and subtracting
	// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
	// node(s) with the highest sum are the most preferred.
	// +optional
	// +listType=atomic
	PreferredDuringSchedulingIgnoredDuringExecution []*V1WeightedPodAffinityTerm `json:"preferredDuringSchedulingIgnoredDuringExecution"`

	// If the anti-affinity requirements specified by this field are not met at
	// scheduling time, the pod will not be scheduled onto the node.
	// If the anti-affinity requirements specified by this field cease to be met
	// at some point during pod execution (e.g. due to a pod label update), the
	// system may or may not try to eventually evict the pod from its node.
	// When there are multiple elements, the lists of nodes corresponding to each
	// podAffinityTerm are intersected, i.e. all terms must be satisfied.
	// +optional
	// +listType=atomic
	RequiredDuringSchedulingIgnoredDuringExecution []*V1PodAffinityTerm `json:"requiredDuringSchedulingIgnoredDuringExecution"`
}

V1PodAntiAffinity v1 pod anti affinity

swagger:model V1PodAntiAffinity

func (*V1PodAntiAffinity) ContextValidate ¶

func (m *V1PodAntiAffinity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod anti affinity based on the context it is used

func (*V1PodAntiAffinity) MarshalBinary ¶

func (m *V1PodAntiAffinity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodAntiAffinity) UnmarshalBinary ¶

func (m *V1PodAntiAffinity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodAntiAffinity) Validate ¶

func (m *V1PodAntiAffinity) Validate(formats strfmt.Registry) error

Validate validates this v1 pod anti affinity

type V1PodCertificateProjection ¶

type V1PodCertificateProjection struct {

	// Write the certificate chain at this path in the projected volume.
	//
	// Most applications should use credentialBundlePath.  When using keyPath
	// and certificateChainPath, your application needs to check that the key
	// and leaf certificate are consistent, because it is possible to read the
	// files mid-rotation.
	//
	// +optional
	CertificateChainPath string `json:"certificateChainPath,omitempty"`

	// Write the credential bundle at this path in the projected volume.
	//
	// The credential bundle is a single file that contains multiple PEM blocks.
	// The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private
	// key.
	//
	// The remaining blocks are CERTIFICATE blocks, containing the issued
	// certificate chain from the signer (leaf and any intermediates).
	//
	// Using credentialBundlePath lets your Pod's application code make a single
	// atomic read that retrieves a consistent key and certificate chain.  If you
	// project them to separate files, your application code will need to
	// additionally check that the leaf certificate was issued to the key.
	//
	// +optional
	CredentialBundlePath string `json:"credentialBundlePath,omitempty"`

	// Write the key at this path in the projected volume.
	//
	// Most applications should use credentialBundlePath.  When using keyPath
	// and certificateChainPath, your application needs to check that the key
	// and leaf certificate are consistent, because it is possible to read the
	// files mid-rotation.
	//
	// +optional
	KeyPath string `json:"keyPath,omitempty"`

	// The type of keypair Kubelet will generate for the pod.
	//
	// Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384",
	// "ECDSAP521", and "ED25519".
	//
	// +required
	KeyType string `json:"keyType,omitempty"`

	// maxExpirationSeconds is the maximum lifetime permitted for the
	// certificate.
	//
	// Kubelet copies this value verbatim into the PodCertificateRequests it
	// generates for this projection.
	//
	// If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver
	// will reject values shorter than 3600 (1 hour).  The maximum allowable
	// value is 7862400 (91 days).
	//
	// The signer implementation is then free to issue a certificate with any
	// lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600
	// seconds (1 hour).  This constraint is enforced by kube-apiserver.
	// `kubernetes.io` signers will never issue certificates with a lifetime
	// longer than 24 hours.
	//
	// +optional
	MaxExpirationSeconds int64 `json:"maxExpirationSeconds,omitempty"`

	// Kubelet's generated CSRs will be addressed to this signer.
	//
	// +required
	SignerName string `json:"signerName,omitempty"`
}

V1PodCertificateProjection v1 pod certificate projection

swagger:model V1PodCertificateProjection

func (*V1PodCertificateProjection) ContextValidate ¶

func (m *V1PodCertificateProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod certificate projection based on context it is used

func (*V1PodCertificateProjection) MarshalBinary ¶

func (m *V1PodCertificateProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodCertificateProjection) UnmarshalBinary ¶

func (m *V1PodCertificateProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodCertificateProjection) Validate ¶

func (m *V1PodCertificateProjection) Validate(formats strfmt.Registry) error

Validate validates this v1 pod certificate projection

type V1PodDNSConfig ¶

type V1PodDNSConfig struct {

	// A list of DNS name server IP addresses.
	// This will be appended to the base nameservers generated from DNSPolicy.
	// Duplicated nameservers will be removed.
	// +optional
	// +listType=atomic
	Nameservers []string `json:"nameservers"`

	// A list of DNS resolver options.
	// This will be merged with the base options generated from DNSPolicy.
	// Duplicated entries will be removed. Resolution options given in Options
	// will override those that appear in the base DNSPolicy.
	// +optional
	// +listType=atomic
	Options []*V1PodDNSConfigOption `json:"options"`

	// A list of DNS search domains for host-name lookup.
	// This will be appended to the base search paths generated from DNSPolicy.
	// Duplicated search paths will be removed.
	// +optional
	// +listType=atomic
	Searches []string `json:"searches"`
}

V1PodDNSConfig v1 pod DNS config

swagger:model V1PodDNSConfig

func (*V1PodDNSConfig) ContextValidate ¶

func (m *V1PodDNSConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod DNS config based on the context it is used

func (*V1PodDNSConfig) MarshalBinary ¶

func (m *V1PodDNSConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodDNSConfig) UnmarshalBinary ¶

func (m *V1PodDNSConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodDNSConfig) Validate ¶

func (m *V1PodDNSConfig) Validate(formats strfmt.Registry) error

Validate validates this v1 pod DNS config

type V1PodDNSConfigOption ¶

type V1PodDNSConfigOption struct {

	// Name is this DNS resolver option's name.
	// Required.
	Name string `json:"name,omitempty"`

	// Value is this DNS resolver option's value.
	// +optional
	Value string `json:"value,omitempty"`
}

V1PodDNSConfigOption v1 pod DNS config option

swagger:model V1PodDNSConfigOption

func (*V1PodDNSConfigOption) ContextValidate ¶

func (m *V1PodDNSConfigOption) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod DNS config option based on context it is used

func (*V1PodDNSConfigOption) MarshalBinary ¶

func (m *V1PodDNSConfigOption) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodDNSConfigOption) UnmarshalBinary ¶

func (m *V1PodDNSConfigOption) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodDNSConfigOption) Validate ¶

func (m *V1PodDNSConfigOption) Validate(formats strfmt.Registry) error

Validate validates this v1 pod DNS config option

type V1PodFailurePolicy ¶

type V1PodFailurePolicy struct {

	// A list of pod failure policy rules. The rules are evaluated in order.
	// Once a rule matches a Pod failure, the remaining of the rules are ignored.
	// When no rule matches the Pod failure, the default handling applies - the
	// counter of pod failures is incremented and it is checked against
	// the backoffLimit. At most 20 elements are allowed.
	// +listType=atomic
	Rules []*V1PodFailurePolicyRule `json:"rules"`
}

V1PodFailurePolicy v1 pod failure policy

swagger:model V1PodFailurePolicy

func (*V1PodFailurePolicy) ContextValidate ¶

func (m *V1PodFailurePolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod failure policy based on the context it is used

func (*V1PodFailurePolicy) MarshalBinary ¶

func (m *V1PodFailurePolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodFailurePolicy) UnmarshalBinary ¶

func (m *V1PodFailurePolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodFailurePolicy) Validate ¶

func (m *V1PodFailurePolicy) Validate(formats strfmt.Registry) error

Validate validates this v1 pod failure policy

type V1PodFailurePolicyAction ¶

type V1PodFailurePolicyAction string

V1PodFailurePolicyAction v1 pod failure policy action

swagger:model V1PodFailurePolicyAction

const (

	// V1PodFailurePolicyActionFailJob captures enum value "FailJob"
	V1PodFailurePolicyActionFailJob V1PodFailurePolicyAction = "FailJob"

	// V1PodFailurePolicyActionFailIndex captures enum value "FailIndex"
	V1PodFailurePolicyActionFailIndex V1PodFailurePolicyAction = "FailIndex"

	// V1PodFailurePolicyActionIgnore captures enum value "Ignore"
	V1PodFailurePolicyActionIgnore V1PodFailurePolicyAction = "Ignore"

	// V1PodFailurePolicyActionCount captures enum value "Count"
	V1PodFailurePolicyActionCount V1PodFailurePolicyAction = "Count"
)

func (V1PodFailurePolicyAction) ContextValidate ¶

func (m V1PodFailurePolicyAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod failure policy action based on context it is used

func (V1PodFailurePolicyAction) Pointer ¶

Pointer returns a pointer to a freshly-allocated V1PodFailurePolicyAction.

func (V1PodFailurePolicyAction) Validate ¶

func (m V1PodFailurePolicyAction) Validate(formats strfmt.Registry) error

Validate validates this v1 pod failure policy action

type V1PodFailurePolicyOnExitCodesOperator ¶

type V1PodFailurePolicyOnExitCodesOperator string

V1PodFailurePolicyOnExitCodesOperator v1 pod failure policy on exit codes operator

swagger:model V1PodFailurePolicyOnExitCodesOperator

const (

	// V1PodFailurePolicyOnExitCodesOperatorIn captures enum value "In"
	V1PodFailurePolicyOnExitCodesOperatorIn V1PodFailurePolicyOnExitCodesOperator = "In"

	// V1PodFailurePolicyOnExitCodesOperatorNotIn captures enum value "NotIn"
	V1PodFailurePolicyOnExitCodesOperatorNotIn V1PodFailurePolicyOnExitCodesOperator = "NotIn"
)

func (V1PodFailurePolicyOnExitCodesOperator) ContextValidate ¶

ContextValidate validates this v1 pod failure policy on exit codes operator based on context it is used

func (V1PodFailurePolicyOnExitCodesOperator) Pointer ¶

Pointer returns a pointer to a freshly-allocated V1PodFailurePolicyOnExitCodesOperator.

func (V1PodFailurePolicyOnExitCodesOperator) Validate ¶

Validate validates this v1 pod failure policy on exit codes operator

type V1PodFailurePolicyOnExitCodesRequirement ¶

type V1PodFailurePolicyOnExitCodesRequirement struct {

	// Restricts the check for exit codes to the container with the
	// specified name. When null, the rule applies to all containers.
	// When specified, it should match one the container or initContainer
	// names in the pod template.
	// +optional
	ContainerName string `json:"containerName,omitempty"`

	// Represents the relationship between the container exit code(s) and the
	// specified values. Containers completed with success (exit code 0) are
	// excluded from the requirement check. Possible values are:
	//
	// - In: the requirement is satisfied if at least one container exit code
	//   (might be multiple if there are multiple containers not restricted
	//   by the 'containerName' field) is in the set of specified values.
	// - NotIn: the requirement is satisfied if at least one container exit code
	//   (might be multiple if there are multiple containers not restricted
	//   by the 'containerName' field) is not in the set of specified values.
	// Additional values are considered to be added in the future. Clients should
	// react to an unknown operator by assuming the requirement is not satisfied.
	Operator struct {
		V1PodFailurePolicyOnExitCodesOperator
	} `json:"operator,omitempty"`

	// Specifies the set of values. Each returned container exit code (might be
	// multiple in case of multiple containers) is checked against this set of
	// values with respect to the operator. The list of values must be ordered
	// and must not contain duplicates. Value '0' cannot be used for the In operator.
	// At least one element is required. At most 255 elements are allowed.
	// +listType=set
	Values []int64 `json:"values"`
}

V1PodFailurePolicyOnExitCodesRequirement v1 pod failure policy on exit codes requirement

swagger:model V1PodFailurePolicyOnExitCodesRequirement

func (*V1PodFailurePolicyOnExitCodesRequirement) ContextValidate ¶

ContextValidate validate this v1 pod failure policy on exit codes requirement based on the context it is used

func (*V1PodFailurePolicyOnExitCodesRequirement) MarshalBinary ¶

func (m *V1PodFailurePolicyOnExitCodesRequirement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodFailurePolicyOnExitCodesRequirement) UnmarshalBinary ¶

func (m *V1PodFailurePolicyOnExitCodesRequirement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodFailurePolicyOnExitCodesRequirement) Validate ¶

Validate validates this v1 pod failure policy on exit codes requirement

type V1PodFailurePolicyOnPodConditionsPattern ¶

type V1PodFailurePolicyOnPodConditionsPattern struct {

	// Specifies the required Pod condition status. To match a pod condition
	// it is required that the specified status equals the pod condition status.
	// Defaults to True.
	Status string `json:"status,omitempty"`

	// Specifies the required Pod condition type. To match a pod condition
	// it is required that specified type equals the pod condition type.
	Type string `json:"type,omitempty"`
}

V1PodFailurePolicyOnPodConditionsPattern v1 pod failure policy on pod conditions pattern

swagger:model V1PodFailurePolicyOnPodConditionsPattern

func (*V1PodFailurePolicyOnPodConditionsPattern) ContextValidate ¶

ContextValidate validates this v1 pod failure policy on pod conditions pattern based on context it is used

func (*V1PodFailurePolicyOnPodConditionsPattern) MarshalBinary ¶

func (m *V1PodFailurePolicyOnPodConditionsPattern) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodFailurePolicyOnPodConditionsPattern) UnmarshalBinary ¶

func (m *V1PodFailurePolicyOnPodConditionsPattern) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodFailurePolicyOnPodConditionsPattern) Validate ¶

Validate validates this v1 pod failure policy on pod conditions pattern

type V1PodFailurePolicyRule ¶

type V1PodFailurePolicyRule struct {

	// Specifies the action taken on a pod failure when the requirements are satisfied.
	// Possible values are:
	//
	// - FailJob: indicates that the pod's job is marked as Failed and all
	//   running pods are terminated.
	// - FailIndex: indicates that the pod's index is marked as Failed and will
	//   not be restarted.
	// - Ignore: indicates that the counter towards the .backoffLimit is not
	//   incremented and a replacement pod is created.
	// - Count: indicates that the pod is handled in the default way - the
	//   counter towards the .backoffLimit is incremented.
	// Additional values are considered to be added in the future. Clients should
	// react to an unknown action by skipping the rule.
	Action struct {
		V1PodFailurePolicyAction
	} `json:"action,omitempty"`

	// Represents the requirement on the container exit codes.
	// +optional
	OnExitCodes struct {
		V1PodFailurePolicyOnExitCodesRequirement
	} `json:"onExitCodes,omitempty"`

	// Represents the requirement on the pod conditions. The requirement is represented
	// as a list of pod condition patterns. The requirement is satisfied if at
	// least one pattern matches an actual pod condition. At most 20 elements are allowed.
	// +listType=atomic
	// +optional
	OnPodConditions []*V1PodFailurePolicyOnPodConditionsPattern `json:"onPodConditions"`
}

V1PodFailurePolicyRule v1 pod failure policy rule

swagger:model V1PodFailurePolicyRule

func (*V1PodFailurePolicyRule) ContextValidate ¶

func (m *V1PodFailurePolicyRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod failure policy rule based on the context it is used

func (*V1PodFailurePolicyRule) MarshalBinary ¶

func (m *V1PodFailurePolicyRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodFailurePolicyRule) UnmarshalBinary ¶

func (m *V1PodFailurePolicyRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodFailurePolicyRule) Validate ¶

func (m *V1PodFailurePolicyRule) Validate(formats strfmt.Registry) error

Validate validates this v1 pod failure policy rule

type V1PodOS ¶

type V1PodOS struct {

	// Name is the name of the operating system. The currently supported values are linux and windows.
	// Additional value may be defined in future and can be one of:
	// https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
	// Clients should expect to handle additional values and treat unrecognized values in this field as os: null
	Name string `json:"name,omitempty"`
}

V1PodOS v1 pod o s

swagger:model V1PodOS

func (*V1PodOS) ContextValidate ¶

func (m *V1PodOS) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod o s based on context it is used

func (*V1PodOS) MarshalBinary ¶

func (m *V1PodOS) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodOS) UnmarshalBinary ¶

func (m *V1PodOS) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodOS) Validate ¶

func (m *V1PodOS) Validate(formats strfmt.Registry) error

Validate validates this v1 pod o s

type V1PodReadinessGate ¶

type V1PodReadinessGate struct {

	// ConditionType refers to a condition in the pod's condition list with matching type.
	ConditionType string `json:"conditionType,omitempty"`
}

V1PodReadinessGate v1 pod readiness gate

swagger:model V1PodReadinessGate

func (*V1PodReadinessGate) ContextValidate ¶

func (m *V1PodReadinessGate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod readiness gate based on context it is used

func (*V1PodReadinessGate) MarshalBinary ¶

func (m *V1PodReadinessGate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodReadinessGate) UnmarshalBinary ¶

func (m *V1PodReadinessGate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodReadinessGate) Validate ¶

func (m *V1PodReadinessGate) Validate(formats strfmt.Registry) error

Validate validates this v1 pod readiness gate

type V1PodReplacementPolicy ¶

type V1PodReplacementPolicy string

V1PodReplacementPolicy v1 pod replacement policy

swagger:model V1PodReplacementPolicy

const (

	// V1PodReplacementPolicyTerminatingOrFailed captures enum value "TerminatingOrFailed"
	V1PodReplacementPolicyTerminatingOrFailed V1PodReplacementPolicy = "TerminatingOrFailed"

	// V1PodReplacementPolicyFailed captures enum value "Failed"
	V1PodReplacementPolicyFailed V1PodReplacementPolicy = "Failed"
)

func NewV1PodReplacementPolicy ¶

func NewV1PodReplacementPolicy(value V1PodReplacementPolicy) *V1PodReplacementPolicy

func (V1PodReplacementPolicy) ContextValidate ¶

func (m V1PodReplacementPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod replacement policy based on context it is used

func (V1PodReplacementPolicy) Pointer ¶

Pointer returns a pointer to a freshly-allocated V1PodReplacementPolicy.

func (V1PodReplacementPolicy) Validate ¶

func (m V1PodReplacementPolicy) Validate(formats strfmt.Registry) error

Validate validates this v1 pod replacement policy

type V1PodResourceClaim ¶

type V1PodResourceClaim struct {

	// Name uniquely identifies this resource claim inside the pod.
	// This must be a DNS_LABEL.
	Name string `json:"name,omitempty"`

	// ResourceClaimName is the name of a ResourceClaim object in the same
	// namespace as this pod.
	//
	// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
	// be set.
	ResourceClaimName string `json:"resourceClaimName,omitempty"`

	// ResourceClaimTemplateName is the name of a ResourceClaimTemplate
	// object in the same namespace as this pod.
	//
	// The template will be used to create a new ResourceClaim, which will
	// be bound to this pod. When this pod is deleted, the ResourceClaim
	// will also be deleted. The pod name and resource name, along with a
	// generated component, will be used to form a unique name for the
	// ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
	//
	// This field is immutable and no changes will be made to the
	// corresponding ResourceClaim by the control plane after creating the
	// ResourceClaim.
	//
	// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
	// be set.
	ResourceClaimTemplateName string `json:"resourceClaimTemplateName,omitempty"`
}

V1PodResourceClaim v1 pod resource claim

swagger:model V1PodResourceClaim

func (*V1PodResourceClaim) ContextValidate ¶

func (m *V1PodResourceClaim) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod resource claim based on context it is used

func (*V1PodResourceClaim) MarshalBinary ¶

func (m *V1PodResourceClaim) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodResourceClaim) UnmarshalBinary ¶

func (m *V1PodResourceClaim) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodResourceClaim) Validate ¶

func (m *V1PodResourceClaim) Validate(formats strfmt.Registry) error

Validate validates this v1 pod resource claim

type V1PodSchedulingGate ¶

type V1PodSchedulingGate struct {

	// Name of the scheduling gate.
	// Each scheduling gate must have a unique name field.
	Name string `json:"name,omitempty"`
}

V1PodSchedulingGate v1 pod scheduling gate

swagger:model V1PodSchedulingGate

func (*V1PodSchedulingGate) ContextValidate ¶

func (m *V1PodSchedulingGate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 pod scheduling gate based on context it is used

func (*V1PodSchedulingGate) MarshalBinary ¶

func (m *V1PodSchedulingGate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodSchedulingGate) UnmarshalBinary ¶

func (m *V1PodSchedulingGate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodSchedulingGate) Validate ¶

func (m *V1PodSchedulingGate) Validate(formats strfmt.Registry) error

Validate validates this v1 pod scheduling gate

type V1PodSecurityContext ¶

type V1PodSecurityContext struct {

	// appArmorProfile is the AppArmor options to use by the containers in this pod.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	AppArmorProfile struct {
		V1AppArmorProfile
	} `json:"appArmorProfile,omitempty"`

	// A special supplemental group that applies to all containers in a pod.
	// Some volume types allow the Kubelet to change the ownership of that volume
	// to be owned by the pod:
	//
	// 1. The owning GID will be the FSGroup
	// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
	// 3. The permission bits are OR'd with rw-rw----
	//
	// If unset, the Kubelet will not modify the ownership and permissions of any volume.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	FsGroup int64 `json:"fsGroup,omitempty"`

	// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
	// before being exposed inside Pod. This field will only apply to
	// volume types which support fsGroup based ownership(and permissions).
	// It will have no effect on ephemeral volume types such as: secret, configmaps
	// and emptydir.
	// Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	FsGroupChangePolicy string `json:"fsGroupChangePolicy,omitempty"`

	// The GID to run the entrypoint of the container process.
	// Uses runtime default if unset.
	// May also be set in SecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence
	// for that container.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	RunAsGroup int64 `json:"runAsGroup,omitempty"`

	// Indicates that the container must run as a non-root user.
	// If true, the Kubelet will validate the image at runtime to ensure that it
	// does not run as UID 0 (root) and fail to start the container if it does.
	// If unset or false, no such validation will be performed.
	// May also be set in SecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// +optional
	RunAsNonRoot bool `json:"runAsNonRoot,omitempty"`

	// The UID to run the entrypoint of the container process.
	// Defaults to user specified in image metadata if unspecified.
	// May also be set in SecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence
	// for that container.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	RunAsUser int64 `json:"runAsUser,omitempty"`

	// seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.
	// It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.
	// Valid values are "MountOption" and "Recursive".
	//
	// "Recursive" means relabeling of all files on all Pod volumes by the container runtime.
	// This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
	//
	// "MountOption" mounts all eligible Pod volumes with `-o context` mount option.
	// This requires all Pods that share the same volume to use the same SELinux label.
	// It is not possible to share the same volume among privileged and unprivileged Pods.
	// Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes
	// whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their
	// CSIDriver instance. Other volumes are always re-labelled recursively.
	// "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
	//
	// If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.
	// If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes
	// and "Recursive" for all other volumes.
	//
	// This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
	//
	// All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.
	// Note that this field cannot be set when spec.os.name is windows.
	// +featureGate=SELinuxChangePolicy
	// +optional
	SeLinuxChangePolicy string `json:"seLinuxChangePolicy,omitempty"`

	// The SELinux context to be applied to all containers.
	// If unspecified, the container runtime will allocate a random SELinux context for each
	// container.  May also be set in SecurityContext.  If set in
	// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
	// takes precedence for that container.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	SeLinuxOptions struct {
		V1SELinuxOptions
	} `json:"seLinuxOptions,omitempty"`

	// The seccomp options to use by the containers in this pod.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	SeccompProfile struct {
		V1SeccompProfile
	} `json:"seccompProfile,omitempty"`

	// A list of groups applied to the first process run in each container, in
	// addition to the container's primary GID and fsGroup (if specified).  If
	// the SupplementalGroupsPolicy feature is enabled, the
	// supplementalGroupsPolicy field determines whether these are in addition
	// to or instead of any group memberships defined in the container image.
	// If unspecified, no additional groups are added, though group memberships
	// defined in the container image may still be used, depending on the
	// supplementalGroupsPolicy field.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	// +listType=atomic
	SupplementalGroups []int64 `json:"supplementalGroups"`

	// Defines how supplemental groups of the first container processes are calculated.
	// Valid values are "Merge" and "Strict". If not specified, "Merge" is used.
	// (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled
	// and the container runtime must implement support for this feature.
	// Note that this field cannot be set when spec.os.name is windows.
	// TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34
	// +featureGate=SupplementalGroupsPolicy
	// +optional
	SupplementalGroupsPolicy string `json:"supplementalGroupsPolicy,omitempty"`

	// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
	// sysctls (by the container runtime) might fail to launch.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	// +listType=atomic
	Sysctls []*V1Sysctl `json:"sysctls"`

	// The Windows specific settings applied to all containers.
	// If unspecified, the options within a container's SecurityContext will be used.
	// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is linux.
	// +optional
	WindowsOptions struct {
		V1WindowsSecurityContextOptions
	} `json:"windowsOptions,omitempty"`
}

V1PodSecurityContext v1 pod security context

swagger:model V1PodSecurityContext

func (*V1PodSecurityContext) ContextValidate ¶

func (m *V1PodSecurityContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod security context based on the context it is used

func (*V1PodSecurityContext) MarshalBinary ¶

func (m *V1PodSecurityContext) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodSecurityContext) UnmarshalBinary ¶

func (m *V1PodSecurityContext) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodSecurityContext) Validate ¶

func (m *V1PodSecurityContext) Validate(formats strfmt.Registry) error

Validate validates this v1 pod security context

type V1PodSpec ¶

type V1PodSpec struct {

	// Optional duration in seconds the pod may be active on the node relative to
	// StartTime before the system will actively try to mark it failed and kill associated containers.
	// Value must be a positive integer.
	// +optional
	ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty"`

	// If specified, the pod's scheduling constraints
	// +optional
	Affinity struct {
		V1Affinity
	} `json:"affinity,omitempty"`

	// AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
	// +optional
	AutomountServiceAccountToken bool `json:"automountServiceAccountToken,omitempty"`

	// List of containers belonging to the pod.
	// Containers cannot currently be added or removed.
	// There must be at least one container in a Pod.
	// Cannot be updated.
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	Containers []*V1Container `json:"containers"`

	// Specifies the DNS parameters of a pod.
	// Parameters specified here will be merged to the generated DNS
	// configuration based on DNSPolicy.
	// +optional
	DNSConfig struct {
		V1PodDNSConfig
	} `json:"dnsConfig,omitempty"`

	// Set DNS policy for the pod.
	// Defaults to "ClusterFirst".
	// Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
	// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
	// To have DNS options set along with hostNetwork, you have to specify DNS policy
	// explicitly to 'ClusterFirstWithHostNet'.
	// +optional
	DNSPolicy string `json:"dnsPolicy,omitempty"`

	// EnableServiceLinks indicates whether information about services should be injected into pod's
	// environment variables, matching the syntax of Docker links.
	// Optional: Defaults to true.
	// +optional
	EnableServiceLinks bool `json:"enableServiceLinks,omitempty"`

	// List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
	// pod to perform user-initiated actions such as debugging. This list cannot be specified when
	// creating a pod, and it cannot be modified by updating the pod spec. In order to add an
	// ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	EphemeralContainers []*V1EphemeralContainer `json:"ephemeralContainers"`

	// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
	// file if specified.
	// +optional
	// +patchMergeKey=ip
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=ip
	HostAliases []*V1HostAlias `json:"hostAliases"`

	// Use the host's ipc namespace.
	// Optional: Default to false.
	// +k8s:conversion-gen=false
	// +optional
	HostIPC bool `json:"hostIPC,omitempty"`

	// Host networking requested for this pod. Use the host's network namespace.
	// When using HostNetwork you should specify ports so the scheduler is aware.
	// When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`,
	// and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`.
	// Default to false.
	// +k8s:conversion-gen=false
	// +optional
	HostNetwork bool `json:"hostNetwork,omitempty"`

	// Use the host's pid namespace.
	// Optional: Default to false.
	// +k8s:conversion-gen=false
	// +optional
	HostPID bool `json:"hostPID,omitempty"`

	// Use the host's user namespace.
	// Optional: Default to true.
	// If set to true or not present, the pod will be run in the host user namespace, useful
	// for when the pod needs a feature only available to the host user namespace, such as
	// loading a kernel module with CAP_SYS_MODULE.
	// When set to false, a new userns is created for the pod. Setting false is useful for
	// mitigating container breakout vulnerabilities even allowing users to run their
	// containers as root without actually having root privileges on the host.
	// This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
	// +k8s:conversion-gen=false
	// +optional
	HostUsers bool `json:"hostUsers,omitempty"`

	// Specifies the hostname of the Pod
	// If not specified, the pod's hostname will be set to a system-defined value.
	// +optional
	Hostname string `json:"hostname,omitempty"`

	// HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod.
	// This field only specifies the pod's hostname and does not affect its DNS records.
	// When this field is set to a non-empty string:
	// - It takes precedence over the values set in `hostname` and `subdomain`.
	// - The Pod's hostname will be set to this value.
	// - `setHostnameAsFQDN` must be nil or set to false.
	// - `hostNetwork` must be set to false.
	//
	// This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.
	// Requires the HostnameOverride feature gate to be enabled.
	//
	// +featureGate=HostnameOverride
	// +optional
	HostnameOverride string `json:"hostnameOverride,omitempty"`

	// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
	// If specified, these secrets will be passed to individual puller implementations for them to use.
	// More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	ImagePullSecrets []*V1LocalObjectReference `json:"imagePullSecrets"`

	// List of initialization containers belonging to the pod.
	// Init containers are executed in order prior to containers being started. If any
	// init container fails, the pod is considered to have failed and is handled according
	// to its restartPolicy. The name for an init container or normal container must be
	// unique among all containers.
	// Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
	// The resourceRequirements of an init container are taken into account during scheduling
	// by finding the highest request/limit for each resource type, and then using the max of
	// that value or the sum of the normal containers. Limits are applied to init containers
	// in a similar fashion.
	// Init containers cannot currently be added or removed.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	InitContainers []*V1Container `json:"initContainers"`

	// NodeName indicates in which node this pod is scheduled.
	// If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName.
	// Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod.
	// This field should not be used to express a desire for the pod to be scheduled on a specific node.
	// https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename
	// +optional
	NodeName string `json:"nodeName,omitempty"`

	// NodeSelector is a selector which must be true for the pod to fit on a node.
	// Selector which must match a node's labels for the pod to be scheduled on that node.
	// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
	// +optional
	// +mapType=atomic
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// Specifies the OS of the containers in the pod.
	// Some pod and container fields are restricted if this is set.
	//
	// If the OS field is set to linux, the following fields must be unset:
	// -securityContext.windowsOptions
	//
	// If the OS field is set to windows, following fields must be unset:
	// - spec.hostPID
	// - spec.hostIPC
	// - spec.hostUsers
	// - spec.resources
	// - spec.securityContext.appArmorProfile
	// - spec.securityContext.seLinuxOptions
	// - spec.securityContext.seccompProfile
	// - spec.securityContext.fsGroup
	// - spec.securityContext.fsGroupChangePolicy
	// - spec.securityContext.sysctls
	// - spec.shareProcessNamespace
	// - spec.securityContext.runAsUser
	// - spec.securityContext.runAsGroup
	// - spec.securityContext.supplementalGroups
	// - spec.securityContext.supplementalGroupsPolicy
	// - spec.containers[*].securityContext.appArmorProfile
	// - spec.containers[*].securityContext.seLinuxOptions
	// - spec.containers[*].securityContext.seccompProfile
	// - spec.containers[*].securityContext.capabilities
	// - spec.containers[*].securityContext.readOnlyRootFilesystem
	// - spec.containers[*].securityContext.privileged
	// - spec.containers[*].securityContext.allowPrivilegeEscalation
	// - spec.containers[*].securityContext.procMount
	// - spec.containers[*].securityContext.runAsUser
	// - spec.containers[*].securityContext.runAsGroup
	// +optional
	Os struct {
		V1PodOS
	} `json:"os,omitempty"`

	// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
	// This field will be autopopulated at admission time by the RuntimeClass admission controller. If
	// the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
	// The RuntimeClass admission controller will reject Pod create requests which have the overhead already
	// set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
	// defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
	// More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
	// +optional
	Overhead struct {
		V1ResourceList
	} `json:"overhead,omitempty"`

	// PreemptionPolicy is the Policy for preempting pods with lower priority.
	// One of Never, PreemptLowerPriority.
	// Defaults to PreemptLowerPriority if unset.
	// +optional
	PreemptionPolicy string `json:"preemptionPolicy,omitempty"`

	// The priority value. Various system components use this field to find the
	// priority of the pod. When Priority Admission Controller is enabled, it
	// prevents users from setting this field. The admission controller populates
	// this field from PriorityClassName.
	// The higher the value, the higher the priority.
	// +optional
	Priority int64 `json:"priority,omitempty"`

	// If specified, indicates the pod's priority. "system-node-critical" and
	// "system-cluster-critical" are two special keywords which indicate the
	// highest priorities with the former being the highest priority. Any other
	// name must be defined by creating a PriorityClass object with that name.
	// If not specified, the pod priority will be default or zero if there is no
	// default.
	// +optional
	PriorityClassName string `json:"priorityClassName,omitempty"`

	// If specified, all readiness gates will be evaluated for pod readiness.
	// A pod is ready when all its containers are ready AND
	// all conditions specified in the readiness gates have status equal to "True"
	// More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
	// +optional
	// +listType=atomic
	ReadinessGates []*V1PodReadinessGate `json:"readinessGates"`

	// ResourceClaims defines which ResourceClaims must be allocated
	// and reserved before the Pod is allowed to start. The resources
	// will be made available to those containers which consume them
	// by name.
	//
	// This is an alpha field and requires enabling the
	// DynamicResourceAllocation feature gate.
	//
	// This field is immutable.
	//
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	// +listType=map
	// +listMapKey=name
	// +featureGate=DynamicResourceAllocation
	// +optional
	ResourceClaims []*V1PodResourceClaim `json:"resourceClaims"`

	// Resources is the total amount of CPU and Memory resources required by all
	// containers in the pod. It supports specifying Requests and Limits for
	// "cpu", "memory" and "hugepages-" resource names only. ResourceClaims are not supported.
	//
	// This field enables fine-grained control over resource allocation for the
	// entire pod, allowing resource sharing among containers in a pod.
	// TODO: For beta graduation, expand this comment with a detailed explanation.
	//
	// This is an alpha field and requires enabling the PodLevelResources feature
	// gate.
	//
	// +featureGate=PodLevelResources
	// +optional
	Resources struct {
		V1ResourceRequirements
	} `json:"resources,omitempty"`

	// Restart policy for all containers within the pod.
	// One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
	// Default to Always.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
	// +optional
	RestartPolicy string `json:"restartPolicy,omitempty"`

	// RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
	// to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
	// If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
	// empty definition that uses the default runtime handler.
	// More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
	// +optional
	RuntimeClassName string `json:"runtimeClassName,omitempty"`

	// If specified, the pod will be dispatched by specified scheduler.
	// If not specified, the pod will be dispatched by default scheduler.
	// +optional
	SchedulerName string `json:"schedulerName,omitempty"`

	// SchedulingGates is an opaque list of values that if specified will block scheduling the pod.
	// If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the
	// scheduler will not attempt to schedule the pod.
	//
	// SchedulingGates can only be set at pod creation time, and be removed only afterwards.
	//
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	// +optional
	SchedulingGates []*V1PodSchedulingGate `json:"schedulingGates"`

	// SecurityContext holds pod-level security attributes and common container settings.
	// Optional: Defaults to empty.  See type description for default values of each field.
	// +optional
	SecurityContext struct {
		V1PodSecurityContext
	} `json:"securityContext,omitempty"`

	// DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
	// Deprecated: Use serviceAccountName instead.
	// +k8s:conversion-gen=false
	// +optional
	ServiceAccount string `json:"serviceAccount,omitempty"`

	// ServiceAccountName is the name of the ServiceAccount to use to run this pod.
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
	// In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
	// In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
	// If a pod does not have FQDN, this has no effect.
	// Default to false.
	// +optional
	SetHostnameAsFQDN bool `json:"setHostnameAsFQDN,omitempty"`

	// Share a single process namespace between all of the containers in a pod.
	// When this is set containers will be able to view and signal processes from other containers
	// in the same pod, and the first process in each container will not be assigned PID 1.
	// HostPID and ShareProcessNamespace cannot both be set.
	// Optional: Default to false.
	// +k8s:conversion-gen=false
	// +optional
	ShareProcessNamespace bool `json:"shareProcessNamespace,omitempty"`

	// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
	// If not specified, the pod will not have a domainname at all.
	// +optional
	Subdomain string `json:"subdomain,omitempty"`

	// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
	// Value must be non-negative integer. The value zero indicates stop immediately via
	// the kill signal (no opportunity to shut down).
	// If this value is nil, the default grace period will be used instead.
	// The grace period is the duration in seconds after the processes running in the pod are sent
	// a termination signal and the time when the processes are forcibly halted with a kill signal.
	// Set this value longer than the expected cleanup time for your process.
	// Defaults to 30 seconds.
	// +optional
	TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,omitempty"`

	// If specified, the pod's tolerations.
	// +optional
	// +listType=atomic
	Tolerations []*V1Toleration `json:"tolerations"`

	// TopologySpreadConstraints describes how a group of pods ought to spread across topology
	// domains. Scheduler will schedule pods in a way which abides by the constraints.
	// All topologySpreadConstraints are ANDed.
	// +optional
	// +patchMergeKey=topologyKey
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=topologyKey
	// +listMapKey=whenUnsatisfiable
	TopologySpreadConstraints []*V1TopologySpreadConstraint `json:"topologySpreadConstraints"`

	// List of volumes that can be mounted by containers belonging to the pod.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	// +listType=map
	// +listMapKey=name
	Volumes []*V1Volume `json:"volumes"`
}

V1PodSpec v1 pod spec

swagger:model V1PodSpec

func (*V1PodSpec) ContextValidate ¶

func (m *V1PodSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod spec based on the context it is used

func (*V1PodSpec) MarshalBinary ¶

func (m *V1PodSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodSpec) UnmarshalBinary ¶

func (m *V1PodSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodSpec) Validate ¶

func (m *V1PodSpec) Validate(formats strfmt.Registry) error

Validate validates this v1 pod spec

type V1PodTemplateSpec ¶

type V1PodTemplateSpec struct {

	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	Metadata struct {
		V1ObjectMeta
	} `json:"metadata,omitempty"`

	// Specification of the desired behavior of the pod.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec struct {
		V1PodSpec
	} `json:"spec,omitempty"`
}

V1PodTemplateSpec v1 pod template spec

swagger:model V1PodTemplateSpec

func (*V1PodTemplateSpec) ContextValidate ¶

func (m *V1PodTemplateSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 pod template spec based on the context it is used

func (*V1PodTemplateSpec) MarshalBinary ¶

func (m *V1PodTemplateSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PodTemplateSpec) UnmarshalBinary ¶

func (m *V1PodTemplateSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PodTemplateSpec) Validate ¶

func (m *V1PodTemplateSpec) Validate(formats strfmt.Registry) error

Validate validates this v1 pod template spec

type V1PolicyRule ¶

type V1PolicyRule struct {

	// APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
	// the enumerated resources in any API group will be allowed. "" represents the core API group and "*" represents all API groups.
	// +optional
	// +listType=atomic
	APIGroups []string `json:"apiGroups"`

	// NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full, final step in the path
	// Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding.
	// Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"),  but not both.
	// +optional
	// +listType=atomic
	NonResourceURLs []string `json:"nonResourceURLs"`

	// ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
	// +optional
	// +listType=atomic
	ResourceNames []string `json:"resourceNames"`

	// Resources is a list of resources this rule applies to. '*' represents all resources.
	// +optional
	// +listType=atomic
	Resources []string `json:"resources"`

	// Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
	// +listType=atomic
	Verbs []string `json:"verbs"`
}

V1PolicyRule v1 policy rule

swagger:model V1PolicyRule

func (*V1PolicyRule) ContextValidate ¶

func (m *V1PolicyRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 policy rule based on context it is used

func (*V1PolicyRule) MarshalBinary ¶

func (m *V1PolicyRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PolicyRule) UnmarshalBinary ¶

func (m *V1PolicyRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PolicyRule) Validate ¶

func (m *V1PolicyRule) Validate(formats strfmt.Registry) error

Validate validates this v1 policy rule

type V1PortworxVolumeSource ¶

type V1PortworxVolumeSource struct {

	// fSType represents the filesystem type to mount
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
	FsType string `json:"fsType,omitempty"`

	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// volumeID uniquely identifies a Portworx volume
	VolumeID string `json:"volumeID,omitempty"`
}

V1PortworxVolumeSource v1 portworx volume source

swagger:model V1PortworxVolumeSource

func (*V1PortworxVolumeSource) ContextValidate ¶

func (m *V1PortworxVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 portworx volume source based on context it is used

func (*V1PortworxVolumeSource) MarshalBinary ¶

func (m *V1PortworxVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PortworxVolumeSource) UnmarshalBinary ¶

func (m *V1PortworxVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PortworxVolumeSource) Validate ¶

func (m *V1PortworxVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 portworx volume source

type V1PreferredSchedulingTerm ¶

type V1PreferredSchedulingTerm struct {

	// A node selector term, associated with the corresponding weight.
	Preference struct {
		V1NodeSelectorTerm
	} `json:"preference,omitempty"`

	// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
	Weight int64 `json:"weight,omitempty"`
}

V1PreferredSchedulingTerm v1 preferred scheduling term

swagger:model V1PreferredSchedulingTerm

func (*V1PreferredSchedulingTerm) ContextValidate ¶

func (m *V1PreferredSchedulingTerm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 preferred scheduling term based on the context it is used

func (*V1PreferredSchedulingTerm) MarshalBinary ¶

func (m *V1PreferredSchedulingTerm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1PreferredSchedulingTerm) UnmarshalBinary ¶

func (m *V1PreferredSchedulingTerm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1PreferredSchedulingTerm) Validate ¶

func (m *V1PreferredSchedulingTerm) Validate(formats strfmt.Registry) error

Validate validates this v1 preferred scheduling term

type V1Probe ¶

type V1Probe struct {

	// Exec specifies a command to execute in the container.
	// +optional
	Exec struct {
		V1ExecAction
	} `json:"exec,omitempty"`

	// Minimum consecutive failures for the probe to be considered failed after having succeeded.
	// Defaults to 3. Minimum value is 1.
	// +optional
	FailureThreshold int64 `json:"failureThreshold,omitempty"`

	// GRPC specifies a GRPC HealthCheckRequest.
	// +optional
	Grpc struct {
		V1GRPCAction
	} `json:"grpc,omitempty"`

	// HTTPGet specifies an HTTP GET request to perform.
	// +optional
	HTTPGet struct {
		V1HTTPGetAction
	} `json:"httpGet,omitempty"`

	// Number of seconds after the container has started before liveness probes are initiated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`

	// How often (in seconds) to perform the probe.
	// Default to 10 seconds. Minimum value is 1.
	// +optional
	PeriodSeconds int64 `json:"periodSeconds,omitempty"`

	// Minimum consecutive successes for the probe to be considered successful after having failed.
	// Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
	// +optional
	SuccessThreshold int64 `json:"successThreshold,omitempty"`

	// TCPSocket specifies a connection to a TCP port.
	// +optional
	TCPSocket struct {
		V1TCPSocketAction
	} `json:"tcpSocket,omitempty"`

	// Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
	// The grace period is the duration in seconds after the processes running in the pod are sent
	// a termination signal and the time when the processes are forcibly halted with a kill signal.
	// Set this value longer than the expected cleanup time for your process.
	// If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
	// value overrides the value provided by the pod spec.
	// Value must be non-negative integer. The value zero indicates stop immediately via
	// the kill signal (no opportunity to shut down).
	// This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
	// Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
	// +optional
	TerminationGracePeriodSeconds int64 `json:"terminationGracePeriodSeconds,omitempty"`

	// Number of seconds after which the probe times out.
	// Defaults to 1 second. Minimum value is 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
}

V1Probe v1 probe

swagger:model V1Probe

func (*V1Probe) ContextValidate ¶

func (m *V1Probe) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 probe based on the context it is used

func (*V1Probe) MarshalBinary ¶

func (m *V1Probe) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Probe) UnmarshalBinary ¶

func (m *V1Probe) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Probe) Validate ¶

func (m *V1Probe) Validate(formats strfmt.Registry) error

Validate validates this v1 probe

type V1ProjectedVolumeSource ¶

type V1ProjectedVolumeSource struct {

	// defaultMode are the mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	// +optional
	DefaultMode int64 `json:"defaultMode,omitempty"`

	// sources is the list of volume projections. Each entry in this list
	// handles one source.
	// +optional
	// +listType=atomic
	Sources []*V1VolumeProjection `json:"sources"`
}

V1ProjectedVolumeSource v1 projected volume source

swagger:model V1ProjectedVolumeSource

func (*V1ProjectedVolumeSource) ContextValidate ¶

func (m *V1ProjectedVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 projected volume source based on the context it is used

func (*V1ProjectedVolumeSource) MarshalBinary ¶

func (m *V1ProjectedVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProjectedVolumeSource) UnmarshalBinary ¶

func (m *V1ProjectedVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProjectedVolumeSource) Validate ¶

func (m *V1ProjectedVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 projected volume source

type V1QuobyteVolumeSource ¶

type V1QuobyteVolumeSource struct {

	// group to map volume access to
	// Default is no group
	// +optional
	Group string `json:"group,omitempty"`

	// readOnly here will force the Quobyte volume to be mounted with read-only permissions.
	// Defaults to false.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// registry represents a single or multiple Quobyte Registry services
	// specified as a string as host:port pair (multiple entries are separated with commas)
	// which acts as the central registry for volumes
	Registry string `json:"registry,omitempty"`

	// tenant owning the given Quobyte volume in the Backend
	// Used with dynamically provisioned Quobyte volumes, value is set by the plugin
	// +optional
	Tenant string `json:"tenant,omitempty"`

	// user to map volume access to
	// Defaults to serivceaccount user
	// +optional
	User string `json:"user,omitempty"`

	// volume is a string that references an already created Quobyte volume by name.
	Volume string `json:"volume,omitempty"`
}

V1QuobyteVolumeSource v1 quobyte volume source

swagger:model V1QuobyteVolumeSource

func (*V1QuobyteVolumeSource) ContextValidate ¶

func (m *V1QuobyteVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 quobyte volume source based on context it is used

func (*V1QuobyteVolumeSource) MarshalBinary ¶

func (m *V1QuobyteVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1QuobyteVolumeSource) UnmarshalBinary ¶

func (m *V1QuobyteVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1QuobyteVolumeSource) Validate ¶

func (m *V1QuobyteVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 quobyte volume source

type V1RBDVolumeSource ¶

type V1RBDVolumeSource struct {

	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	// +optional
	FsType string `json:"fsType,omitempty"`

	// image is the rados image name.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	Image string `json:"image,omitempty"`

	// keyring is the path to key ring for RBDUser.
	// Default is /etc/ceph/keyring.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	// +optional
	// +default="/etc/ceph/keyring"
	Keyring string `json:"keyring,omitempty"`

	// monitors is a collection of Ceph monitors.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	// +listType=atomic
	Monitors []string `json:"monitors"`

	// pool is the rados pool name.
	// Default is rbd.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	// +optional
	// +default="rbd"
	Pool string `json:"pool,omitempty"`

	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretRef is name of the authentication secret for RBDUser. If provided
	// overrides keyring.
	// Default is nil.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	// +optional
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`

	// user is the rados user name.
	// Default is admin.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	// +optional
	// +default="admin"
	User string `json:"user,omitempty"`
}

V1RBDVolumeSource v1 r b d volume source

swagger:model V1RBDVolumeSource

func (*V1RBDVolumeSource) ContextValidate ¶

func (m *V1RBDVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 r b d volume source based on the context it is used

func (*V1RBDVolumeSource) MarshalBinary ¶

func (m *V1RBDVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RBDVolumeSource) UnmarshalBinary ¶

func (m *V1RBDVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RBDVolumeSource) Validate ¶

func (m *V1RBDVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 r b d volume source

type V1ResourceClaim ¶

type V1ResourceClaim struct {

	// Name must match the name of one entry in pod.spec.resourceClaims of
	// the Pod where this field is used. It makes that resource available
	// inside a container.
	Name string `json:"name,omitempty"`

	// Request is the name chosen for a request in the referenced claim.
	// If empty, everything from the claim is made available, otherwise
	// only the result of this request.
	//
	// +optional
	Request string `json:"request,omitempty"`
}

V1ResourceClaim v1 resource claim

swagger:model V1ResourceClaim

func (*V1ResourceClaim) ContextValidate ¶

func (m *V1ResourceClaim) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 resource claim based on context it is used

func (*V1ResourceClaim) MarshalBinary ¶

func (m *V1ResourceClaim) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ResourceClaim) UnmarshalBinary ¶

func (m *V1ResourceClaim) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ResourceClaim) Validate ¶

func (m *V1ResourceClaim) Validate(formats strfmt.Registry) error

Validate validates this v1 resource claim

type V1ResourceFieldSelector ¶

type V1ResourceFieldSelector struct {

	// Container name: required for volumes, optional for env vars
	// +optional
	ContainerName string `json:"containerName,omitempty"`

	// Specifies the output format of the exposed resources, defaults to "1"
	// +optional
	Divisor struct {
		Quantity
	} `json:"divisor,omitempty"`

	// Required: resource to select
	Resource string `json:"resource,omitempty"`
}

V1ResourceFieldSelector v1 resource field selector

swagger:model V1ResourceFieldSelector

func (*V1ResourceFieldSelector) ContextValidate ¶

func (m *V1ResourceFieldSelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 resource field selector based on the context it is used

func (*V1ResourceFieldSelector) MarshalBinary ¶

func (m *V1ResourceFieldSelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ResourceFieldSelector) UnmarshalBinary ¶

func (m *V1ResourceFieldSelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ResourceFieldSelector) Validate ¶

func (m *V1ResourceFieldSelector) Validate(formats strfmt.Registry) error

Validate validates this v1 resource field selector

type V1ResourceList ¶

type V1ResourceList map[string]Quantity

V1ResourceList v1 resource list

swagger:model V1ResourceList

func (V1ResourceList) ContextValidate ¶

func (m V1ResourceList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 resource list based on the context it is used

func (V1ResourceList) Validate ¶

func (m V1ResourceList) Validate(formats strfmt.Registry) error

Validate validates this v1 resource list

type V1ResourceRequirements ¶

type V1ResourceRequirements struct {

	// Claims lists the names of resources, defined in spec.resourceClaims,
	// that are used by this container.
	//
	// This field depends on the
	// DynamicResourceAllocation feature gate.
	//
	// This field is immutable. It can only be set for containers.
	//
	// +listType=map
	// +listMapKey=name
	// +featureGate=DynamicResourceAllocation
	// +optional
	Claims []*V1ResourceClaim `json:"claims"`

	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Limits struct {
		V1ResourceList
	} `json:"limits,omitempty"`

	// Requests describes the minimum amount of compute resources required.
	// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
	// otherwise to an implementation-defined value. Requests cannot exceed Limits.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Requests struct {
		V1ResourceList
	} `json:"requests,omitempty"`
}

V1ResourceRequirements v1 resource requirements

swagger:model V1ResourceRequirements

func (*V1ResourceRequirements) ContextValidate ¶

func (m *V1ResourceRequirements) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 resource requirements based on the context it is used

func (*V1ResourceRequirements) MarshalBinary ¶

func (m *V1ResourceRequirements) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ResourceRequirements) UnmarshalBinary ¶

func (m *V1ResourceRequirements) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ResourceRequirements) Validate ¶

func (m *V1ResourceRequirements) Validate(formats strfmt.Registry) error

Validate validates this v1 resource requirements

type V1SELinuxOptions ¶

type V1SELinuxOptions struct {

	// Level is SELinux level label that applies to the container.
	// +optional
	Level string `json:"level,omitempty"`

	// Role is a SELinux role label that applies to the container.
	// +optional
	Role string `json:"role,omitempty"`

	// Type is a SELinux type label that applies to the container.
	// +optional
	Type string `json:"type,omitempty"`

	// User is a SELinux user label that applies to the container.
	// +optional
	User string `json:"user,omitempty"`
}

V1SELinuxOptions v1 s e linux options

swagger:model V1SELinuxOptions

func (*V1SELinuxOptions) ContextValidate ¶

func (m *V1SELinuxOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 s e linux options based on context it is used

func (*V1SELinuxOptions) MarshalBinary ¶

func (m *V1SELinuxOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SELinuxOptions) UnmarshalBinary ¶

func (m *V1SELinuxOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SELinuxOptions) Validate ¶

func (m *V1SELinuxOptions) Validate(formats strfmt.Registry) error

Validate validates this v1 s e linux options

type V1ScaleIOVolumeSource ¶

type V1ScaleIOVolumeSource struct {

	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs".
	// Default is "xfs".
	// +optional
	// +default="xfs"
	FsType string `json:"fsType,omitempty"`

	// gateway is the host address of the ScaleIO API Gateway.
	Gateway string `json:"gateway,omitempty"`

	// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
	// +optional
	ProtectionDomain string `json:"protectionDomain,omitempty"`

	// readOnly Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretRef references to the secret for ScaleIO user and other
	// sensitive information. If this is not provided, Login operation will fail.
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`

	// sslEnabled Flag enable/disable SSL communication with Gateway, default false
	// +optional
	SslEnabled bool `json:"sslEnabled,omitempty"`

	// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
	// Default is ThinProvisioned.
	// +optional
	// +default="ThinProvisioned"
	StorageMode string `json:"storageMode,omitempty"`

	// storagePool is the ScaleIO Storage Pool associated with the protection domain.
	// +optional
	StoragePool string `json:"storagePool,omitempty"`

	// system is the name of the storage system as configured in ScaleIO.
	System string `json:"system,omitempty"`

	// volumeName is the name of a volume already created in the ScaleIO system
	// that is associated with this volume source.
	VolumeName string `json:"volumeName,omitempty"`
}

V1ScaleIOVolumeSource v1 scale i o volume source

swagger:model V1ScaleIOVolumeSource

func (*V1ScaleIOVolumeSource) ContextValidate ¶

func (m *V1ScaleIOVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 scale i o volume source based on the context it is used

func (*V1ScaleIOVolumeSource) MarshalBinary ¶

func (m *V1ScaleIOVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ScaleIOVolumeSource) UnmarshalBinary ¶

func (m *V1ScaleIOVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ScaleIOVolumeSource) Validate ¶

func (m *V1ScaleIOVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 scale i o volume source

type V1SeccompProfile ¶

type V1SeccompProfile struct {

	// localhostProfile indicates a profile defined in a file on the node should be used.
	// The profile must be preconfigured on the node to work.
	// Must be a descending path, relative to the kubelet's configured seccomp profile location.
	// Must be set if type is "Localhost". Must NOT be set for any other type.
	// +optional
	LocalhostProfile string `json:"localhostProfile,omitempty"`

	// type indicates which kind of seccomp profile will be applied.
	// Valid options are:
	//
	// Localhost - a profile defined in a file on the node should be used.
	// RuntimeDefault - the container runtime default profile should be used.
	// Unconfined - no profile should be applied.
	// +unionDiscriminator
	Type string `json:"type,omitempty"`
}

V1SeccompProfile v1 seccomp profile

swagger:model V1SeccompProfile

func (*V1SeccompProfile) ContextValidate ¶

func (m *V1SeccompProfile) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 seccomp profile based on context it is used

func (*V1SeccompProfile) MarshalBinary ¶

func (m *V1SeccompProfile) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SeccompProfile) UnmarshalBinary ¶

func (m *V1SeccompProfile) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SeccompProfile) Validate ¶

func (m *V1SeccompProfile) Validate(formats strfmt.Registry) error

Validate validates this v1 seccomp profile

type V1Secret ¶

type V1Secret struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Data contains the secret data. Each key must consist of alphanumeric
	// characters, '-', '_' or '.'. The serialized form of the secret data is a
	// base64 encoded string, representing the arbitrary (possibly non-string)
	// data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
	// +optional
	Data map[string]strfmt.Base64 `json:"data,omitempty"`

	// Immutable, if set to true, ensures that data stored in the Secret cannot
	// be updated (only object metadata can be modified).
	// If not set to true, the field can be modified at any time.
	// Defaulted to nil.
	// +optional
	Immutable bool `json:"immutable,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	Metadata struct {
		V1ObjectMeta
	} `json:"metadata,omitempty"`

	// stringData allows specifying non-binary secret data in string form.
	// It is provided as a write-only input field for convenience.
	// All keys and values are merged into the data field on write, overwriting any existing values.
	// The stringData field is never output when reading from the API.
	// +k8s:conversion-gen=false
	// +optional
	StringData map[string]string `json:"stringData,omitempty"`

	// Used to facilitate programmatic handling of secret data.
	// More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
	// +optional
	Type string `json:"type,omitempty"`
}

V1Secret v1 secret

swagger:model V1Secret

func (*V1Secret) ContextValidate ¶

func (m *V1Secret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 secret based on the context it is used

func (*V1Secret) MarshalBinary ¶

func (m *V1Secret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Secret) UnmarshalBinary ¶

func (m *V1Secret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Secret) Validate ¶

func (m *V1Secret) Validate(formats strfmt.Registry) error

Validate validates this v1 secret

type V1SecretEnvSource ¶

type V1SecretEnvSource struct {

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// Specify whether the Secret must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1SecretEnvSource v1 secret env source

swagger:model V1SecretEnvSource

func (*V1SecretEnvSource) ContextValidate ¶

func (m *V1SecretEnvSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 secret env source based on context it is used

func (*V1SecretEnvSource) MarshalBinary ¶

func (m *V1SecretEnvSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SecretEnvSource) UnmarshalBinary ¶

func (m *V1SecretEnvSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SecretEnvSource) Validate ¶

func (m *V1SecretEnvSource) Validate(formats strfmt.Registry) error

Validate validates this v1 secret env source

type V1SecretKeySelector ¶

type V1SecretKeySelector struct {

	// The key of the secret to select from.  Must be a valid secret key.
	Key string `json:"key,omitempty"`

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// Specify whether the Secret or its key must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1SecretKeySelector v1 secret key selector

swagger:model V1SecretKeySelector

func (*V1SecretKeySelector) ContextValidate ¶

func (m *V1SecretKeySelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 secret key selector based on context it is used

func (*V1SecretKeySelector) MarshalBinary ¶

func (m *V1SecretKeySelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SecretKeySelector) UnmarshalBinary ¶

func (m *V1SecretKeySelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SecretKeySelector) Validate ¶

func (m *V1SecretKeySelector) Validate(formats strfmt.Registry) error

Validate validates this v1 secret key selector

type V1SecretList ¶

type V1SecretList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Items is a list of secret objects.
	// More info: https://kubernetes.io/docs/concepts/configuration/secret
	Items []*V1Secret `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Metadata struct {
		V1ListMeta
	} `json:"metadata,omitempty"`
}

V1SecretList v1 secret list

swagger:model V1SecretList

func (*V1SecretList) ContextValidate ¶

func (m *V1SecretList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 secret list based on the context it is used

func (*V1SecretList) MarshalBinary ¶

func (m *V1SecretList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SecretList) UnmarshalBinary ¶

func (m *V1SecretList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SecretList) Validate ¶

func (m *V1SecretList) Validate(formats strfmt.Registry) error

Validate validates this v1 secret list

type V1SecretProjection ¶

type V1SecretProjection struct {

	// items if unspecified, each key-value pair in the Data field of the referenced
	// Secret will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the Secret,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	// +optional
	// +listType=atomic
	Items []*V1KeyToPath `json:"items"`

	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// +optional
	// +default=""
	// +kubebuilder:default=""
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name string `json:"name,omitempty"`

	// optional field specify whether the Secret or its key must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`
}

V1SecretProjection v1 secret projection

swagger:model V1SecretProjection

func (*V1SecretProjection) ContextValidate ¶

func (m *V1SecretProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 secret projection based on the context it is used

func (*V1SecretProjection) MarshalBinary ¶

func (m *V1SecretProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SecretProjection) UnmarshalBinary ¶

func (m *V1SecretProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SecretProjection) Validate ¶

func (m *V1SecretProjection) Validate(formats strfmt.Registry) error

Validate validates this v1 secret projection

type V1SecretVolumeSource ¶

type V1SecretVolumeSource struct {

	// defaultMode is Optional: mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values
	// for mode bits. Defaults to 0644.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	// +optional
	DefaultMode int64 `json:"defaultMode,omitempty"`

	// items If unspecified, each key-value pair in the Data field of the referenced
	// Secret will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the Secret,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	// +optional
	// +listType=atomic
	Items []*V1KeyToPath `json:"items"`

	// optional field specify whether the Secret or its keys must be defined
	// +optional
	Optional bool `json:"optional,omitempty"`

	// secretName is the name of the secret in the pod's namespace to use.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
	// +optional
	SecretName string `json:"secretName,omitempty"`
}

V1SecretVolumeSource v1 secret volume source

swagger:model V1SecretVolumeSource

func (*V1SecretVolumeSource) ContextValidate ¶

func (m *V1SecretVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 secret volume source based on the context it is used

func (*V1SecretVolumeSource) MarshalBinary ¶

func (m *V1SecretVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SecretVolumeSource) UnmarshalBinary ¶

func (m *V1SecretVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SecretVolumeSource) Validate ¶

func (m *V1SecretVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 secret volume source

type V1SecurityContext ¶

type V1SecurityContext struct {

	// AllowPrivilegeEscalation controls whether a process can gain more
	// privileges than its parent process. This bool directly controls if
	// the no_new_privs flag will be set on the container process.
	// AllowPrivilegeEscalation is true always when the container is:
	// 1) run as Privileged
	// 2) has CAP_SYS_ADMIN
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	AllowPrivilegeEscalation bool `json:"allowPrivilegeEscalation,omitempty"`

	// appArmorProfile is the AppArmor options to use by this container. If set, this profile
	// overrides the pod's appArmorProfile.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	AppArmorProfile struct {
		V1AppArmorProfile
	} `json:"appArmorProfile,omitempty"`

	// The capabilities to add/drop when running containers.
	// Defaults to the default set of capabilities granted by the container runtime.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	Capabilities struct {
		V1Capabilities
	} `json:"capabilities,omitempty"`

	// Run container in privileged mode.
	// Processes in privileged containers are essentially equivalent to root on the host.
	// Defaults to false.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	Privileged bool `json:"privileged,omitempty"`

	// procMount denotes the type of proc mount to use for the containers.
	// The default value is Default which uses the container runtime defaults for
	// readonly paths and masked paths.
	// This requires the ProcMountType feature flag to be enabled.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	ProcMount string `json:"procMount,omitempty"`

	// Whether this container has a read-only root filesystem.
	// Default is false.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"`

	// The GID to run the entrypoint of the container process.
	// Uses runtime default if unset.
	// May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	RunAsGroup int64 `json:"runAsGroup,omitempty"`

	// Indicates that the container must run as a non-root user.
	// If true, the Kubelet will validate the image at runtime to ensure that it
	// does not run as UID 0 (root) and fail to start the container if it does.
	// If unset or false, no such validation will be performed.
	// May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// +optional
	RunAsNonRoot bool `json:"runAsNonRoot,omitempty"`

	// The UID to run the entrypoint of the container process.
	// Defaults to user specified in image metadata if unspecified.
	// May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	RunAsUser int64 `json:"runAsUser,omitempty"`

	// The SELinux context to be applied to the container.
	// If unspecified, the container runtime will allocate a random SELinux context for each
	// container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	SeLinuxOptions struct {
		V1SELinuxOptions
	} `json:"seLinuxOptions,omitempty"`

	// The seccomp options to use by this container. If seccomp options are
	// provided at both the pod & container level, the container options
	// override the pod options.
	// Note that this field cannot be set when spec.os.name is windows.
	// +optional
	SeccompProfile struct {
		V1SeccompProfile
	} `json:"seccompProfile,omitempty"`

	// The Windows specific settings applied to all containers.
	// If unspecified, the options from the PodSecurityContext will be used.
	// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is linux.
	// +optional
	WindowsOptions struct {
		V1WindowsSecurityContextOptions
	} `json:"windowsOptions,omitempty"`
}

V1SecurityContext v1 security context

swagger:model V1SecurityContext

func (*V1SecurityContext) ContextValidate ¶

func (m *V1SecurityContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 security context based on the context it is used

func (*V1SecurityContext) MarshalBinary ¶

func (m *V1SecurityContext) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SecurityContext) UnmarshalBinary ¶

func (m *V1SecurityContext) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SecurityContext) Validate ¶

func (m *V1SecurityContext) Validate(formats strfmt.Registry) error

Validate validates this v1 security context

type V1ServiceAccountTokenProjection ¶

type V1ServiceAccountTokenProjection struct {

	// audience is the intended audience of the token. A recipient of a token
	// must identify itself with an identifier specified in the audience of the
	// token, and otherwise should reject the token. The audience defaults to the
	// identifier of the apiserver.
	// +optional
	Audience string `json:"audience,omitempty"`

	// expirationSeconds is the requested duration of validity of the service
	// account token. As the token approaches expiration, the kubelet volume
	// plugin will proactively rotate the service account token. The kubelet will
	// start trying to rotate the token if the token is older than 80 percent of
	// its time to live or if the token is older than 24 hours.Defaults to 1 hour
	// and must be at least 10 minutes.
	// +optional
	ExpirationSeconds int64 `json:"expirationSeconds,omitempty"`

	// path is the path relative to the mount point of the file to project the
	// token into.
	Path string `json:"path,omitempty"`
}

V1ServiceAccountTokenProjection v1 service account token projection

swagger:model V1ServiceAccountTokenProjection

func (*V1ServiceAccountTokenProjection) ContextValidate ¶

func (m *V1ServiceAccountTokenProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 service account token projection based on context it is used

func (*V1ServiceAccountTokenProjection) MarshalBinary ¶

func (m *V1ServiceAccountTokenProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ServiceAccountTokenProjection) UnmarshalBinary ¶

func (m *V1ServiceAccountTokenProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ServiceAccountTokenProjection) Validate ¶

Validate validates this v1 service account token projection

type V1SleepAction ¶

type V1SleepAction struct {

	// Seconds is the number of seconds to sleep.
	Seconds int64 `json:"seconds,omitempty"`
}

V1SleepAction v1 sleep action

swagger:model V1SleepAction

func (*V1SleepAction) ContextValidate ¶

func (m *V1SleepAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 sleep action based on context it is used

func (*V1SleepAction) MarshalBinary ¶

func (m *V1SleepAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SleepAction) UnmarshalBinary ¶

func (m *V1SleepAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SleepAction) Validate ¶

func (m *V1SleepAction) Validate(formats strfmt.Registry) error

Validate validates this v1 sleep action

type V1StorageOSVolumeSource ¶

type V1StorageOSVolumeSource struct {

	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// +optional
	FsType string `json:"fsType,omitempty"`

	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// secretRef specifies the secret to use for obtaining the StorageOS API
	// credentials.  If not specified, default values will be attempted.
	// +optional
	SecretRef struct {
		V1LocalObjectReference
	} `json:"secretRef,omitempty"`

	// volumeName is the human-readable name of the StorageOS volume.  Volume
	// names are only unique within a namespace.
	VolumeName string `json:"volumeName,omitempty"`

	// volumeNamespace specifies the scope of the volume within StorageOS.  If no
	// namespace is specified then the Pod's namespace will be used.  This allows the
	// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
	// Set VolumeName to any name to override the default behaviour.
	// Set to "default" if you are not using namespaces within StorageOS.
	// Namespaces that do not pre-exist within StorageOS will be created.
	// +optional
	VolumeNamespace string `json:"volumeNamespace,omitempty"`
}

V1StorageOSVolumeSource v1 storage o s volume source

swagger:model V1StorageOSVolumeSource

func (*V1StorageOSVolumeSource) ContextValidate ¶

func (m *V1StorageOSVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 storage o s volume source based on the context it is used

func (*V1StorageOSVolumeSource) MarshalBinary ¶

func (m *V1StorageOSVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1StorageOSVolumeSource) UnmarshalBinary ¶

func (m *V1StorageOSVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1StorageOSVolumeSource) Validate ¶

func (m *V1StorageOSVolumeSource) Validate(formats strfmt.Registry) error

Validate validates this v1 storage o s volume source

type V1SuccessPolicy ¶

type V1SuccessPolicy struct {

	// rules represents the list of alternative rules for the declaring the Jobs
	// as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met,
	// the "SuccessCriteriaMet" condition is added, and the lingering pods are removed.
	// The terminal state for such a Job has the "Complete" condition.
	// Additionally, these rules are evaluated in order; Once the Job meets one of the rules,
	// other rules are ignored. At most 20 elements are allowed.
	// +listType=atomic
	Rules []*V1SuccessPolicyRule `json:"rules"`
}

V1SuccessPolicy v1 success policy

swagger:model V1SuccessPolicy

func (*V1SuccessPolicy) ContextValidate ¶

func (m *V1SuccessPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 success policy based on the context it is used

func (*V1SuccessPolicy) MarshalBinary ¶

func (m *V1SuccessPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SuccessPolicy) UnmarshalBinary ¶

func (m *V1SuccessPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SuccessPolicy) Validate ¶

func (m *V1SuccessPolicy) Validate(formats strfmt.Registry) error

Validate validates this v1 success policy

type V1SuccessPolicyRule ¶

type V1SuccessPolicyRule struct {

	// succeededCount specifies the minimal required size of the actual set of the succeeded indexes
	// for the Job. When succeededCount is used along with succeededIndexes, the check is
	// constrained only to the set of indexes specified by succeededIndexes.
	// For example, given that succeededIndexes is "1-4", succeededCount is "3",
	// and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded
	// because only "1" and "3" indexes are considered in that rules.
	// When this field is null, this doesn't default to any value and
	// is never evaluated at any time.
	// When specified it needs to be a positive integer.
	//
	// +optional
	SucceededCount int64 `json:"succeededCount,omitempty"`

	// succeededIndexes specifies the set of indexes
	// which need to be contained in the actual set of the succeeded indexes for the Job.
	// The list of indexes must be within 0 to ".spec.completions-1" and
	// must not contain duplicates. At least one element is required.
	// The indexes are represented as intervals separated by commas.
	// The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen.
	// The number are listed in represented by the first and last element of the series,
	// separated by a hyphen.
	// For example, if the completed indexes are 1, 3, 4, 5 and 7, they are
	// represented as "1,3-5,7".
	// When this field is null, this field doesn't default to any value
	// and is never evaluated at any time.
	//
	// +optional
	SucceededIndexes string `json:"succeededIndexes,omitempty"`
}

V1SuccessPolicyRule v1 success policy rule

swagger:model V1SuccessPolicyRule

func (*V1SuccessPolicyRule) ContextValidate ¶

func (m *V1SuccessPolicyRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 success policy rule based on context it is used

func (*V1SuccessPolicyRule) MarshalBinary ¶

func (m *V1SuccessPolicyRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SuccessPolicyRule) UnmarshalBinary ¶

func (m *V1SuccessPolicyRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SuccessPolicyRule) Validate ¶

func (m *V1SuccessPolicyRule) Validate(formats strfmt.Registry) error

Validate validates this v1 success policy rule

type V1Sysctl ¶

type V1Sysctl struct {

	// Name of a property to set
	Name string `json:"name,omitempty"`

	// Value of a property to set
	Value string `json:"value,omitempty"`
}

V1Sysctl v1 sysctl

swagger:model V1Sysctl

func (*V1Sysctl) ContextValidate ¶

func (m *V1Sysctl) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 sysctl based on context it is used

func (*V1Sysctl) MarshalBinary ¶

func (m *V1Sysctl) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Sysctl) UnmarshalBinary ¶

func (m *V1Sysctl) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Sysctl) Validate ¶

func (m *V1Sysctl) Validate(formats strfmt.Registry) error

Validate validates this v1 sysctl

type V1TCPSocketAction ¶

type V1TCPSocketAction struct {

	// Optional: Host name to connect to, defaults to the pod IP.
	// +optional
	Host string `json:"host,omitempty"`

	// Number or name of the port to access on the container.
	// Number must be in the range 1 to 65535.
	// Name must be an IANA_SVC_NAME.
	Port struct {
		IntOrString
	} `json:"port,omitempty"`
}

V1TCPSocketAction v1 TCP socket action

swagger:model V1TCPSocketAction

func (*V1TCPSocketAction) ContextValidate ¶

func (m *V1TCPSocketAction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 TCP socket action based on the context it is used

func (*V1TCPSocketAction) MarshalBinary ¶

func (m *V1TCPSocketAction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1TCPSocketAction) UnmarshalBinary ¶

func (m *V1TCPSocketAction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1TCPSocketAction) Validate ¶

func (m *V1TCPSocketAction) Validate(formats strfmt.Registry) error

Validate validates this v1 TCP socket action

type V1Toleration ¶

type V1Toleration struct {

	// Effect indicates the taint effect to match. Empty means match all taint effects.
	// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
	// +optional
	Effect string `json:"effect,omitempty"`

	// Key is the taint key that the toleration applies to. Empty means match all taint keys.
	// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
	// +optional
	Key string `json:"key,omitempty"`

	// Operator represents a key's relationship to the value.
	// Valid operators are Exists and Equal. Defaults to Equal.
	// Exists is equivalent to wildcard for value, so that a pod can
	// tolerate all taints of a particular category.
	// +optional
	Operator string `json:"operator,omitempty"`

	// TolerationSeconds represents the period of time the toleration (which must be
	// of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
	// it is not set, which means tolerate the taint forever (do not evict). Zero and
	// negative values will be treated as 0 (evict immediately) by the system.
	// +optional
	TolerationSeconds int64 `json:"tolerationSeconds,omitempty"`

	// Value is the taint value the toleration matches to.
	// If the operator is Exists, the value should be empty, otherwise just a regular string.
	// +optional
	Value string `json:"value,omitempty"`
}

V1Toleration v1 toleration

swagger:model V1Toleration

func (*V1Toleration) ContextValidate ¶

func (m *V1Toleration) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 toleration based on context it is used

func (*V1Toleration) MarshalBinary ¶

func (m *V1Toleration) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Toleration) UnmarshalBinary ¶

func (m *V1Toleration) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Toleration) Validate ¶

func (m *V1Toleration) Validate(formats strfmt.Registry) error

Validate validates this v1 toleration

type V1TopologySpreadConstraint ¶

type V1TopologySpreadConstraint struct {

	// LabelSelector is used to find matching pods.
	// Pods that match this label selector are counted to determine the number of pods
	// in their corresponding topology domain.
	// +optional
	LabelSelector struct {
		V1LabelSelector
	} `json:"labelSelector,omitempty"`

	// MatchLabelKeys is a set of pod label keys to select the pods over which
	// spreading will be calculated. The keys are used to lookup values from the
	// incoming pod labels, those key-value labels are ANDed with labelSelector
	// to select the group of existing pods over which spreading will be calculated
	// for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
	// MatchLabelKeys cannot be set when LabelSelector isn't set.
	// Keys that don't exist in the incoming pod labels will
	// be ignored. A null or empty list means only match against labelSelector.
	//
	// This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
	// +listType=atomic
	// +optional
	MatchLabelKeys []string `json:"matchLabelKeys"`

	// MaxSkew describes the degree to which pods may be unevenly distributed.
	// When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
	// between the number of matching pods in the target topology and the global minimum.
	// The global minimum is the minimum number of matching pods in an eligible domain
	// or zero if the number of eligible domains is less than MinDomains.
	// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
	// labelSelector spread as 2/2/1:
	// In this case, the global minimum is 1.
	// +-------+-------+-------+
	// | zone1 | zone2 | zone3 |
	// +-------+-------+-------+
	// |  P P  |  P P  |   P   |
	// +-------+-------+-------+
	// - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
	// scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
	// violate MaxSkew(1).
	// - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
	// When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
	// to topologies that satisfy it.
	// It's a required field. Default value is 1 and 0 is not allowed.
	MaxSkew int64 `json:"maxSkew,omitempty"`

	// MinDomains indicates a minimum number of eligible domains.
	// When the number of eligible domains with matching topology keys is less than minDomains,
	// Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
	// And when the number of eligible domains with matching topology keys equals or greater than minDomains,
	// this value has no effect on scheduling.
	// As a result, when the number of eligible domains is less than minDomains,
	// scheduler won't schedule more than maxSkew Pods to those domains.
	// If value is nil, the constraint behaves as if MinDomains is equal to 1.
	// Valid values are integers greater than 0.
	// When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
	//
	// For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same
	// labelSelector spread as 2/2/2:
	// +-------+-------+-------+
	// | zone1 | zone2 | zone3 |
	// +-------+-------+-------+
	// |  P P  |  P P  |  P P  |
	// +-------+-------+-------+
	// The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.
	// In this situation, new pod with the same labelSelector cannot be scheduled,
	// because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,
	// it will violate MaxSkew.
	// +optional
	MinDomains int64 `json:"minDomains,omitempty"`

	// NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector
	// when calculating pod topology spread skew. Options are:
	// - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
	// - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
	//
	// If this value is nil, the behavior is equivalent to the Honor policy.
	// +optional
	NodeAffinityPolicy string `json:"nodeAffinityPolicy,omitempty"`

	// NodeTaintsPolicy indicates how we will treat node taints when calculating
	// pod topology spread skew. Options are:
	// - Honor: nodes without taints, along with tainted nodes for which the incoming pod
	// has a toleration, are included.
	// - Ignore: node taints are ignored. All nodes are included.
	//
	// If this value is nil, the behavior is equivalent to the Ignore policy.
	// +optional
	NodeTaintsPolicy string `json:"nodeTaintsPolicy,omitempty"`

	// TopologyKey is the key of node labels. Nodes that have a label with this key
	// and identical values are considered to be in the same topology.
	// We consider each <key, value> as a "bucket", and try to put balanced number
	// of pods into each bucket.
	// We define a domain as a particular instance of a topology.
	// Also, we define an eligible domain as a domain whose nodes meet the requirements of
	// nodeAffinityPolicy and nodeTaintsPolicy.
	// e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.
	// And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.
	// It's a required field.
	TopologyKey string `json:"topologyKey,omitempty"`

	// WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
	// the spread constraint.
	// - DoNotSchedule (default) tells the scheduler not to schedule it.
	// - ScheduleAnyway tells the scheduler to schedule the pod in any location,
	//   but giving higher precedence to topologies that would help reduce the
	//   skew.
	// A constraint is considered "Unsatisfiable" for an incoming pod
	// if and only if every possible node assignment for that pod would violate
	// "MaxSkew" on some topology.
	// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
	// labelSelector spread as 3/1/1:
	// +-------+-------+-------+
	// | zone1 | zone2 | zone3 |
	// +-------+-------+-------+
	// | P P P |   P   |   P   |
	// +-------+-------+-------+
	// If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
	// to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
	// MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
	// won't make it *more* imbalanced.
	// It's a required field.
	WhenUnsatisfiable string `json:"whenUnsatisfiable,omitempty"`
}

V1TopologySpreadConstraint v1 topology spread constraint

swagger:model V1TopologySpreadConstraint

func (*V1TopologySpreadConstraint) ContextValidate ¶

func (m *V1TopologySpreadConstraint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 topology spread constraint based on the context it is used

func (*V1TopologySpreadConstraint) MarshalBinary ¶

func (m *V1TopologySpreadConstraint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1TopologySpreadConstraint) UnmarshalBinary ¶

func (m *V1TopologySpreadConstraint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1TopologySpreadConstraint) Validate ¶

func (m *V1TopologySpreadConstraint) Validate(formats strfmt.Registry) error

Validate validates this v1 topology spread constraint

type V1TypedLocalObjectReference ¶

type V1TypedLocalObjectReference struct {

	// APIGroup is the group for the resource being referenced.
	// If APIGroup is not specified, the specified Kind must be in the core API group.
	// For any other third-party types, APIGroup is required.
	// +optional
	APIGroup string `json:"apiGroup,omitempty"`

	// Kind is the type of resource being referenced
	Kind string `json:"kind,omitempty"`

	// Name is the name of resource being referenced
	Name string `json:"name,omitempty"`
}

V1TypedLocalObjectReference v1 typed local object reference

swagger:model V1TypedLocalObjectReference

func (*V1TypedLocalObjectReference) ContextValidate ¶

func (m *V1TypedLocalObjectReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 typed local object reference based on context it is used

func (*V1TypedLocalObjectReference) MarshalBinary ¶

func (m *V1TypedLocalObjectReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1TypedLocalObjectReference) UnmarshalBinary ¶

func (m *V1TypedLocalObjectReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1TypedLocalObjectReference) Validate ¶

func (m *V1TypedLocalObjectReference) Validate(formats strfmt.Registry) error

Validate validates this v1 typed local object reference

type V1TypedObjectReference ¶

type V1TypedObjectReference struct {

	// APIGroup is the group for the resource being referenced.
	// If APIGroup is not specified, the specified Kind must be in the core API group.
	// For any other third-party types, APIGroup is required.
	// +optional
	APIGroup string `json:"apiGroup,omitempty"`

	// Kind is the type of resource being referenced
	Kind string `json:"kind,omitempty"`

	// Name is the name of resource being referenced
	Name string `json:"name,omitempty"`

	// Namespace is the namespace of resource being referenced
	// Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
	// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
	// +featureGate=CrossNamespaceVolumeDataSource
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

V1TypedObjectReference v1 typed object reference

swagger:model V1TypedObjectReference

func (*V1TypedObjectReference) ContextValidate ¶

func (m *V1TypedObjectReference) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 typed object reference based on context it is used

func (*V1TypedObjectReference) MarshalBinary ¶

func (m *V1TypedObjectReference) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1TypedObjectReference) UnmarshalBinary ¶

func (m *V1TypedObjectReference) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1TypedObjectReference) Validate ¶

func (m *V1TypedObjectReference) Validate(formats strfmt.Registry) error

Validate validates this v1 typed object reference

type V1Volume ¶

type V1Volume struct {

	// awsElasticBlockStore represents an AWS Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
	// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	// +optional
	AwsElasticBlockStore struct {
		V1AWSElasticBlockStoreVolumeSource
	} `json:"awsElasticBlockStore,omitempty"`

	// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
	// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
	// are redirected to the disk.csi.azure.com CSI driver.
	// +optional
	AzureDisk struct {
		V1AzureDiskVolumeSource
	} `json:"azureDisk,omitempty"`

	// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
	// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
	// are redirected to the file.csi.azure.com CSI driver.
	// +optional
	AzureFile struct {
		V1AzureFileVolumeSource
	} `json:"azureFile,omitempty"`

	// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
	// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
	// +optional
	Cephfs struct {
		V1CephFSVolumeSource
	} `json:"cephfs,omitempty"`

	// cinder represents a cinder volume attached and mounted on kubelets host machine.
	// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
	// are redirected to the cinder.csi.openstack.org CSI driver.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	// +optional
	Cinder struct {
		V1CinderVolumeSource
	} `json:"cinder,omitempty"`

	// configMap represents a configMap that should populate this volume
	// +optional
	ConfigMap struct {
		V1ConfigMapVolumeSource
	} `json:"configMap,omitempty"`

	// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
	// +optional
	Csi struct {
		V1CSIVolumeSource
	} `json:"csi,omitempty"`

	// downwardAPI represents downward API about the pod that should populate this volume
	// +optional
	DownwardAPI struct {
		V1DownwardAPIVolumeSource
	} `json:"downwardAPI,omitempty"`

	// emptyDir represents a temporary directory that shares a pod's lifetime.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
	// +optional
	EmptyDir struct {
		V1EmptyDirVolumeSource
	} `json:"emptyDir,omitempty"`

	// ephemeral represents a volume that is handled by a cluster storage driver.
	// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
	// and deleted when the pod is removed.
	//
	// Use this if:
	// a) the volume is only needed while the pod runs,
	// b) features of normal volumes like restoring from snapshot or capacity
	//    tracking are needed,
	// c) the storage driver is specified through a storage class, and
	// d) the storage driver supports dynamic volume provisioning through
	//    a PersistentVolumeClaim (see EphemeralVolumeSource for more
	//    information on the connection between this volume type
	//    and PersistentVolumeClaim).
	//
	// Use PersistentVolumeClaim or one of the vendor-specific
	// APIs for volumes that persist for longer than the lifecycle
	// of an individual pod.
	//
	// Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
	// be used that way - see the documentation of the driver for
	// more information.
	//
	// A pod can use both types of ephemeral volumes and
	// persistent volumes at the same time.
	//
	// +optional
	Ephemeral struct {
		V1EphemeralVolumeSource
	} `json:"ephemeral,omitempty"`

	// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
	// +optional
	Fc struct {
		V1FCVolumeSource
	} `json:"fc,omitempty"`

	// flexVolume represents a generic volume resource that is
	// provisioned/attached using an exec based plugin.
	// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
	// +optional
	FlexVolume struct {
		V1FlexVolumeSource
	} `json:"flexVolume,omitempty"`

	// flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
	// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
	// +optional
	Flocker struct {
		V1FlockerVolumeSource
	} `json:"flocker,omitempty"`

	// gcePersistentDisk represents a GCE Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
	// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	// +optional
	GcePersistentDisk struct {
		V1GCEPersistentDiskVolumeSource
	} `json:"gcePersistentDisk,omitempty"`

	// gitRepo represents a git repository at a particular revision.
	// Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
	// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
	// into the Pod's container.
	// +optional
	GitRepo struct {
		V1GitRepoVolumeSource
	} `json:"gitRepo,omitempty"`

	// glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
	// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
	// +optional
	Glusterfs struct {
		V1GlusterfsVolumeSource
	} `json:"glusterfs,omitempty"`

	// hostPath represents a pre-existing file or directory on the host
	// machine that is directly exposed to the container. This is generally
	// used for system agents or other privileged things that are allowed
	// to see the host machine. Most containers will NOT need this.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	// ---
	// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
	// mount host directories as read/write.
	// +optional
	HostPath struct {
		V1HostPathVolumeSource
	} `json:"hostPath,omitempty"`

	// image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
	// The volume is resolved at pod startup depending on which PullPolicy value is provided:
	//
	// - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
	// - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
	// - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
	//
	// The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
	// A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
	// The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
	// The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
	// The volume will be mounted read-only (ro) and non-executable files (noexec).
	// Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33.
	// The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
	// +featureGate=ImageVolume
	// +optional
	Image struct {
		V1ImageVolumeSource
	} `json:"image,omitempty"`

	// iscsi represents an ISCSI Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi
	// +optional
	Iscsi struct {
		V1ISCSIVolumeSource
	} `json:"iscsi,omitempty"`

	// name of the volume.
	// Must be a DNS_LABEL and unique within the pod.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	Name string `json:"name,omitempty"`

	// nfs represents an NFS mount on the host that shares a pod's lifetime
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	// +optional
	Nfs struct {
		V1NFSVolumeSource
	} `json:"nfs,omitempty"`

	// persistentVolumeClaimVolumeSource represents a reference to a
	// PersistentVolumeClaim in the same namespace.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
	// +optional
	PersistentVolumeClaim struct {
		V1PersistentVolumeClaimVolumeSource
	} `json:"persistentVolumeClaim,omitempty"`

	// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
	// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
	PhotonPersistentDisk struct {
		V1PhotonPersistentDiskVolumeSource
	} `json:"photonPersistentDisk,omitempty"`

	// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
	// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
	// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
	// is on.
	// +optional
	PortworxVolume struct {
		V1PortworxVolumeSource
	} `json:"portworxVolume,omitempty"`

	// projected items for all in one resources secrets, configmaps, and downward API
	Projected struct {
		V1ProjectedVolumeSource
	} `json:"projected,omitempty"`

	// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
	// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
	// +optional
	Quobyte struct {
		V1QuobyteVolumeSource
	} `json:"quobyte,omitempty"`

	// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
	// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
	// +optional
	Rbd struct {
		V1RBDVolumeSource
	} `json:"rbd,omitempty"`

	// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
	// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
	// +optional
	ScaleIO struct {
		V1ScaleIOVolumeSource
	} `json:"scaleIO,omitempty"`

	// secret represents a secret that should populate this volume.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
	// +optional
	Secret struct {
		V1SecretVolumeSource
	} `json:"secret,omitempty"`

	// storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
	// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
	// +optional
	Storageos struct {
		V1StorageOSVolumeSource
	} `json:"storageos,omitempty"`

	// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
	// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
	// are redirected to the csi.vsphere.vmware.com CSI driver.
	// +optional
	VsphereVolume struct {
		V1VsphereVirtualDiskVolumeSource
	} `json:"vsphereVolume,omitempty"`
}

V1Volume v1 volume

swagger:model V1Volume

func (*V1Volume) ContextValidate ¶

func (m *V1Volume) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 volume based on the context it is used

func (*V1Volume) MarshalBinary ¶

func (m *V1Volume) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Volume) UnmarshalBinary ¶

func (m *V1Volume) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Volume) Validate ¶

func (m *V1Volume) Validate(formats strfmt.Registry) error

Validate validates this v1 volume

type V1VolumeDevice ¶

type V1VolumeDevice struct {

	// devicePath is the path inside of the container that the device will be mapped to.
	DevicePath string `json:"devicePath,omitempty"`

	// name must match the name of a persistentVolumeClaim in the pod
	Name string `json:"name,omitempty"`
}

V1VolumeDevice v1 volume device

swagger:model V1VolumeDevice

func (*V1VolumeDevice) ContextValidate ¶

func (m *V1VolumeDevice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 volume device based on context it is used

func (*V1VolumeDevice) MarshalBinary ¶

func (m *V1VolumeDevice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1VolumeDevice) UnmarshalBinary ¶

func (m *V1VolumeDevice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1VolumeDevice) Validate ¶

func (m *V1VolumeDevice) Validate(formats strfmt.Registry) error

Validate validates this v1 volume device

type V1VolumeMount ¶

type V1VolumeMount struct {

	// Path within the container at which the volume should be mounted.  Must
	// not contain ':'.
	MountPath string `json:"mountPath,omitempty"`

	// mountPropagation determines how mounts are propagated from the host
	// to container and the other way around.
	// When not set, MountPropagationNone is used.
	// This field is beta in 1.10.
	// When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
	// (which defaults to None).
	// +optional
	MountPropagation string `json:"mountPropagation,omitempty"`

	// This must match the Name of a Volume.
	Name string `json:"name,omitempty"`

	// Mounted read-only if true, read-write otherwise (false or unspecified).
	// Defaults to false.
	// +optional
	ReadOnly bool `json:"readOnly,omitempty"`

	// RecursiveReadOnly specifies whether read-only mounts should be handled
	// recursively.
	//
	// If ReadOnly is false, this field has no meaning and must be unspecified.
	//
	// If ReadOnly is true, and this field is set to Disabled, the mount is not made
	// recursively read-only.  If this field is set to IfPossible, the mount is made
	// recursively read-only, if it is supported by the container runtime.  If this
	// field is set to Enabled, the mount is made recursively read-only if it is
	// supported by the container runtime, otherwise the pod will not be started and
	// an error will be generated to indicate the reason.
	//
	// If this field is set to IfPossible or Enabled, MountPropagation must be set to
	// None (or be unspecified, which defaults to None).
	//
	// If this field is not specified, it is treated as an equivalent of Disabled.
	//
	// +featureGate=RecursiveReadOnlyMounts
	// +optional
	RecursiveReadOnly string `json:"recursiveReadOnly,omitempty"`

	// Path within the volume from which the container's volume should be mounted.
	// Defaults to "" (volume's root).
	// +optional
	SubPath string `json:"subPath,omitempty"`

	// Expanded path within the volume from which the container's volume should be mounted.
	// Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
	// Defaults to "" (volume's root).
	// SubPathExpr and SubPath are mutually exclusive.
	// +optional
	SubPathExpr string `json:"subPathExpr,omitempty"`
}

V1VolumeMount v1 volume mount

swagger:model V1VolumeMount

func (*V1VolumeMount) ContextValidate ¶

func (m *V1VolumeMount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 volume mount based on context it is used

func (*V1VolumeMount) MarshalBinary ¶

func (m *V1VolumeMount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1VolumeMount) UnmarshalBinary ¶

func (m *V1VolumeMount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1VolumeMount) Validate ¶

func (m *V1VolumeMount) Validate(formats strfmt.Registry) error

Validate validates this v1 volume mount

type V1VolumeProjection ¶

type V1VolumeProjection struct {

	// ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field
	// of ClusterTrustBundle objects in an auto-updating file.
	//
	// Alpha, gated by the ClusterTrustBundleProjection feature gate.
	//
	// ClusterTrustBundle objects can either be selected by name, or by the
	// combination of signer name and a label selector.
	//
	// Kubelet performs aggressive normalization of the PEM contents written
	// into the pod filesystem.  Esoteric PEM features such as inter-block
	// comments and block headers are stripped.  Certificates are deduplicated.
	// The ordering of certificates within the file is arbitrary, and Kubelet
	// may change the order over time.
	//
	// +featureGate=ClusterTrustBundleProjection
	// +optional
	ClusterTrustBundle struct {
		V1ClusterTrustBundleProjection
	} `json:"clusterTrustBundle,omitempty"`

	// configMap information about the configMap data to project
	// +optional
	ConfigMap struct {
		V1ConfigMapProjection
	} `json:"configMap,omitempty"`

	// downwardAPI information about the downwardAPI data to project
	// +optional
	DownwardAPI struct {
		V1DownwardAPIProjection
	} `json:"downwardAPI,omitempty"`

	// Projects an auto-rotating credential bundle (private key and certificate
	// chain) that the pod can use either as a TLS client or server.
	//
	// Kubelet generates a private key and uses it to send a
	// PodCertificateRequest to the named signer.  Once the signer approves the
	// request and issues a certificate chain, Kubelet writes the key and
	// certificate chain to the pod filesystem.  The pod does not start until
	// certificates have been issued for each podCertificate projected volume
	// source in its spec.
	//
	// Kubelet will begin trying to rotate the certificate at the time indicated
	// by the signer using the PodCertificateRequest.Status.BeginRefreshAt
	// timestamp.
	//
	// Kubelet can write a single file, indicated by the credentialBundlePath
	// field, or separate files, indicated by the keyPath and
	// certificateChainPath fields.
	//
	// The credential bundle is a single file in PEM format.  The first PEM
	// entry is the private key (in PKCS#8 format), and the remaining PEM
	// entries are the certificate chain issued by the signer (typically,
	// signers will return their certificate chain in leaf-to-root order).
	//
	// Prefer using the credential bundle format, since your application code
	// can read it atomically.  If you use keyPath and certificateChainPath,
	// your application must make two separate file reads. If these coincide
	// with a certificate rotation, it is possible that the private key and leaf
	// certificate you read may not correspond to each other.  Your application
	// will need to check for this condition, and re-read until they are
	// consistent.
	//
	// The named signer controls chooses the format of the certificate it
	// issues; consult the signer implementation's documentation to learn how to
	// use the certificates it issues.
	//
	// +featureGate=PodCertificateProjection +optional
	PodCertificate struct {
		V1PodCertificateProjection
	} `json:"podCertificate,omitempty"`

	// secret information about the secret data to project
	// +optional
	Secret struct {
		V1SecretProjection
	} `json:"secret,omitempty"`

	// serviceAccountToken is information about the serviceAccountToken data to project
	// +optional
	ServiceAccountToken struct {
		V1ServiceAccountTokenProjection
	} `json:"serviceAccountToken,omitempty"`
}

V1VolumeProjection v1 volume projection

swagger:model V1VolumeProjection

func (*V1VolumeProjection) ContextValidate ¶

func (m *V1VolumeProjection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 volume projection based on the context it is used

func (*V1VolumeProjection) MarshalBinary ¶

func (m *V1VolumeProjection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1VolumeProjection) UnmarshalBinary ¶

func (m *V1VolumeProjection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1VolumeProjection) Validate ¶

func (m *V1VolumeProjection) Validate(formats strfmt.Registry) error

Validate validates this v1 volume projection

type V1VolumeResourceRequirements ¶

type V1VolumeResourceRequirements struct {

	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Limits struct {
		V1ResourceList
	} `json:"limits,omitempty"`

	// Requests describes the minimum amount of compute resources required.
	// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
	// otherwise to an implementation-defined value. Requests cannot exceed Limits.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	// +optional
	Requests struct {
		V1ResourceList
	} `json:"requests,omitempty"`
}

V1VolumeResourceRequirements v1 volume resource requirements

swagger:model V1VolumeResourceRequirements

func (*V1VolumeResourceRequirements) ContextValidate ¶

func (m *V1VolumeResourceRequirements) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 volume resource requirements based on the context it is used

func (*V1VolumeResourceRequirements) MarshalBinary ¶

func (m *V1VolumeResourceRequirements) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1VolumeResourceRequirements) UnmarshalBinary ¶

func (m *V1VolumeResourceRequirements) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1VolumeResourceRequirements) Validate ¶

func (m *V1VolumeResourceRequirements) Validate(formats strfmt.Registry) error

Validate validates this v1 volume resource requirements

type V1VsphereVirtualDiskVolumeSource ¶

type V1VsphereVirtualDiskVolumeSource struct {

	// fsType is filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// +optional
	FsType string `json:"fsType,omitempty"`

	// storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
	// +optional
	StoragePolicyID string `json:"storagePolicyID,omitempty"`

	// storagePolicyName is the storage Policy Based Management (SPBM) profile name.
	// +optional
	StoragePolicyName string `json:"storagePolicyName,omitempty"`

	// volumePath is the path that identifies vSphere volume vmdk
	VolumePath string `json:"volumePath,omitempty"`
}

V1VsphereVirtualDiskVolumeSource v1 vsphere virtual disk volume source

swagger:model V1VsphereVirtualDiskVolumeSource

func (*V1VsphereVirtualDiskVolumeSource) ContextValidate ¶

func (m *V1VsphereVirtualDiskVolumeSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 vsphere virtual disk volume source based on context it is used

func (*V1VsphereVirtualDiskVolumeSource) MarshalBinary ¶

func (m *V1VsphereVirtualDiskVolumeSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1VsphereVirtualDiskVolumeSource) UnmarshalBinary ¶

func (m *V1VsphereVirtualDiskVolumeSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1VsphereVirtualDiskVolumeSource) Validate ¶

Validate validates this v1 vsphere virtual disk volume source

type V1WeightedPodAffinityTerm ¶

type V1WeightedPodAffinityTerm struct {

	// Required. A pod affinity term, associated with the corresponding weight.
	PodAffinityTerm struct {
		V1PodAffinityTerm
	} `json:"podAffinityTerm,omitempty"`

	// weight associated with matching the corresponding podAffinityTerm,
	// in the range 1-100.
	Weight int64 `json:"weight,omitempty"`
}

V1WeightedPodAffinityTerm v1 weighted pod affinity term

swagger:model V1WeightedPodAffinityTerm

func (*V1WeightedPodAffinityTerm) ContextValidate ¶

func (m *V1WeightedPodAffinityTerm) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 weighted pod affinity term based on the context it is used

func (*V1WeightedPodAffinityTerm) MarshalBinary ¶

func (m *V1WeightedPodAffinityTerm) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1WeightedPodAffinityTerm) UnmarshalBinary ¶

func (m *V1WeightedPodAffinityTerm) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1WeightedPodAffinityTerm) Validate ¶

func (m *V1WeightedPodAffinityTerm) Validate(formats strfmt.Registry) error

Validate validates this v1 weighted pod affinity term

type V1WindowsSecurityContextOptions ¶

type V1WindowsSecurityContextOptions struct {

	// GMSACredentialSpec is where the GMSA admission webhook
	// (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
	// GMSA credential spec named by the GMSACredentialSpecName field.
	// +optional
	GmsaCredentialSpec string `json:"gmsaCredentialSpec,omitempty"`

	// GMSACredentialSpecName is the name of the GMSA credential spec to use.
	// +optional
	GmsaCredentialSpecName string `json:"gmsaCredentialSpecName,omitempty"`

	// HostProcess determines if a container should be run as a 'Host Process' container.
	// All of a Pod's containers must have the same effective HostProcess value
	// (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
	// In addition, if HostProcess is true then HostNetwork must also be set to true.
	// +optional
	HostProcess bool `json:"hostProcess,omitempty"`

	// The UserName in Windows to run the entrypoint of the container process.
	// Defaults to the user specified in image metadata if unspecified.
	// May also be set in PodSecurityContext. If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// +optional
	RunAsUserName string `json:"runAsUserName,omitempty"`
}

V1WindowsSecurityContextOptions v1 windows security context options

swagger:model V1WindowsSecurityContextOptions

func (*V1WindowsSecurityContextOptions) ContextValidate ¶

func (m *V1WindowsSecurityContextOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 windows security context options based on context it is used

func (*V1WindowsSecurityContextOptions) MarshalBinary ¶

func (m *V1WindowsSecurityContextOptions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1WindowsSecurityContextOptions) UnmarshalBinary ¶

func (m *V1WindowsSecurityContextOptions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1WindowsSecurityContextOptions) Validate ¶

Validate validates this v1 windows security context options

type Verification ¶

type Verification struct {

	// AnalysisRunMetadata contains optional metadata that should be applied to
	// all AnalysisRuns.
	AnalysisRunMetadata struct {
		AnalysisRunMetadata
	} `json:"analysisRunMetadata,omitempty"`

	// AnalysisTemplates is a list of AnalysisTemplates from which AnalysisRuns
	// should be created to verify a Stage's current Freight is fit to be promoted
	// downstream.
	AnalysisTemplates []*AnalysisTemplateReference `json:"analysisTemplates"`

	// Args lists arguments that should be added to all AnalysisRuns.
	Args []*AnalysisRunArgument `json:"args"`
}

Verification verification

swagger:model Verification

func (*Verification) ContextValidate ¶

func (m *Verification) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this verification based on the context it is used

func (*Verification) MarshalBinary ¶

func (m *Verification) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Verification) UnmarshalBinary ¶

func (m *Verification) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Verification) Validate ¶

func (m *Verification) Validate(formats strfmt.Registry) error

Validate validates this verification

type VerificationInfo ¶

type VerificationInfo struct {

	// Actor is the name of the entity that initiated or aborted the
	// Verification process.
	Actor string `json:"actor,omitempty"`

	// AnalysisRun is a reference to the Argo Rollouts AnalysisRun that implements
	// the Verification process.
	AnalysisRun struct {
		AnalysisRunReference
	} `json:"analysisRun,omitempty"`

	// FinishTime is the time at which the Verification process finished.
	FinishTime string `json:"finishTime,omitempty"`

	// ID is the identifier of the Verification process.
	ID string `json:"id,omitempty"`

	// Message may contain additional information about why the verification
	// process is in its current phase.
	Message string `json:"message,omitempty"`

	// Phase describes the current phase of the Verification process. Generally,
	// this will be a reflection of the underlying AnalysisRun's phase, however,
	// there are exceptions to this, such as in the case where an AnalysisRun
	// cannot be launched successfully.
	Phase string `json:"phase,omitempty"`

	// StartTime is the time at which the Verification process was started.
	StartTime string `json:"startTime,omitempty"`
}

VerificationInfo verification info

swagger:model VerificationInfo

func (*VerificationInfo) ContextValidate ¶

func (m *VerificationInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this verification info based on the context it is used

func (*VerificationInfo) MarshalBinary ¶

func (m *VerificationInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerificationInfo) UnmarshalBinary ¶

func (m *VerificationInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerificationInfo) Validate ¶

func (m *VerificationInfo) Validate(formats strfmt.Registry) error

Validate validates this verification info

type VerifiedStage ¶

type VerifiedStage struct {

	// LongestCompletedSoak represents the longest definite time interval wherein
	// the Freight was in CONTINUOUS use by the Stage. This value is updated as
	// Freight EXITS the Stage. If the Freight is currently in use by the Stage,
	// the time elapsed since the Freight ENTERED the Stage is its current soak
	// time, which may exceed the value of this field.
	LongestSoak string `json:"longestSoak,omitempty"`

	// VerifiedAt is the time at which the Freight was verified in the Stage.
	VerifiedAt string `json:"verifiedAt,omitempty"`
}

VerifiedStage verified stage

swagger:model VerifiedStage

func (*VerifiedStage) ContextValidate ¶

func (m *VerifiedStage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this verified stage based on context it is used

func (*VerifiedStage) MarshalBinary ¶

func (m *VerifiedStage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VerifiedStage) UnmarshalBinary ¶

func (m *VerifiedStage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VerifiedStage) Validate ¶

func (m *VerifiedStage) Validate(formats strfmt.Registry) error

Validate validates this verified stage

type VersionInfo ¶

type VersionInfo struct {

	// BuildDate is the date/time on which the application was built.
	BuildDate string `json:"buildDate,omitempty"`

	// Compiler indicates what Go compiler was used for the build.
	Compiler string `json:"compiler,omitempty"`

	// GitCommit is the ID (sha) of the last commit to the application's source
	// code that is included in this build.
	GitCommit string `json:"gitCommit,omitempty"`

	// GitTreeDirty is true if the application's source code contained
	// uncommitted changes at the time it was built; otherwise it is false.
	GitTreeDirty bool `json:"gitTreeDirty,omitempty"`

	// GoVersion is the version of Go that was used to build the application.
	GoVersion string `json:"goVersion,omitempty"`

	// Platform indicates the OS and CPU architecture for which the application
	// was built.
	Platform string `json:"platform,omitempty"`

	// Version is a human-friendly version string.
	Version string `json:"version,omitempty"`
}

VersionInfo version info

swagger:model VersionInfo

func (*VersionInfo) ContextValidate ¶

func (m *VersionInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this version info based on context it is used

func (*VersionInfo) MarshalBinary ¶

func (m *VersionInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersionInfo) UnmarshalBinary ¶

func (m *VersionInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersionInfo) Validate ¶

func (m *VersionInfo) Validate(formats strfmt.Registry) error

Validate validates this version info

type Warehouse ¶

type Warehouse struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ObjectMeta `json:"metadata,omitempty"`

	// Spec describes sources of artifacts.
	//
	// +kubebuilder:validation:Required
	// Required: true
	Spec struct {
		WarehouseSpec
	} `json:"spec"`

	// Status describes the Warehouse's most recently observed state.
	Status struct {
		WarehouseStatus
	} `json:"status,omitempty"`
}

Warehouse warehouse

swagger:model Warehouse

func (*Warehouse) ContextValidate ¶

func (m *Warehouse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this warehouse based on the context it is used

func (*Warehouse) MarshalBinary ¶

func (m *Warehouse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Warehouse) UnmarshalBinary ¶

func (m *Warehouse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Warehouse) Validate ¶

func (m *Warehouse) Validate(formats strfmt.Registry) error

Validate validates this warehouse

type WarehouseList ¶

type WarehouseList struct {

	// APIVersion defines the versioned schema of this representation of an object.
	// Servers should convert recognized schemas to the latest internal value, and
	// may reject unrecognized values.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`

	// items
	Items []*Warehouse `json:"items"`

	// Kind is a string value representing the REST resource this object represents.
	// Servers may infer this from the endpoint the client submits requests to.
	// Cannot be updated.
	// In CamelCase.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata *V1ListMeta `json:"metadata,omitempty"`
}

WarehouseList warehouse list

swagger:model WarehouseList

func (*WarehouseList) ContextValidate ¶

func (m *WarehouseList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this warehouse list based on the context it is used

func (*WarehouseList) MarshalBinary ¶

func (m *WarehouseList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WarehouseList) UnmarshalBinary ¶

func (m *WarehouseList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WarehouseList) Validate ¶

func (m *WarehouseList) Validate(formats strfmt.Registry) error

Validate validates this warehouse list

type WarehouseSpec ¶

type WarehouseSpec struct {

	// FreightCreationCriteria defines criteria that must be satisfied for Freight
	// to be created automatically from new artifacts following discovery. This
	// field has no effect when the FreightCreationPolicy is `Manual`.
	//
	// +kubebuilder:validation:Optional
	FreightCreationCriteria struct {
		FreightCreationCriteria
	} `json:"freightCreationCriteria,omitempty"`

	// FreightCreationPolicy describes how Freight is created by this Warehouse.
	// This field is optional. When left unspecified, the field is implicitly
	// treated as if its value were "Automatic".
	//
	// Accepted values:
	//
	// - "Automatic": New Freight is created automatically when any new artifact
	//   is discovered.
	// - "Manual": New Freight is never created automatically.
	//
	// +kubebuilder:default=Automatic
	// +kubebuilder:validation:Optional
	FreightCreationPolicy string `json:"freightCreationPolicy,omitempty"`

	// Interval is the reconciliation interval for this Warehouse. On each
	// reconciliation, the Warehouse will discover new artifacts and optionally
	// produce new Freight. This field is optional. When left unspecified, the
	// field is implicitly treated as if its value were "5m0s".
	//
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Pattern=`^([0-9]+(\.[0-9]+)?(s|m|h))+$`
	// +kubebuilder:default="5m0s"
	// +akuity:test-kubebuilder-pattern=Duration
	Interval string `json:"interval,omitempty"`

	// Shard is the name of the shard that this Warehouse belongs to. This is an
	// optional field. If not specified, the Warehouse will belong to the default
	// shard. A defaulting webhook will sync this field with the value of the
	// kargo.akuity.io/shard label. When the shard label is not present or differs
	// from the value of this field, the defaulting webhook will set the label to
	// the value of this field. If the shard label is present and this field is
	// empty, the defaulting webhook will set the value of this field to the value
	// of the shard label.
	Shard string `json:"shard,omitempty"`

	// Subscriptions describes sources of artifacts to be included in Freight
	// produced by this Warehouse.
	//
	// +kubebuilder:validation:MinItems=1
	Subscriptions []any `json:"subscriptions"`
}

WarehouseSpec warehouse spec

swagger:model WarehouseSpec

func (*WarehouseSpec) ContextValidate ¶

func (m *WarehouseSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this warehouse spec based on the context it is used

func (*WarehouseSpec) MarshalBinary ¶

func (m *WarehouseSpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WarehouseSpec) UnmarshalBinary ¶

func (m *WarehouseSpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WarehouseSpec) Validate ¶

func (m *WarehouseSpec) Validate(formats strfmt.Registry) error

Validate validates this warehouse spec

type WarehouseStats ¶

type WarehouseStats struct {

	// Count contains the total number of Warehouses in the Project.
	Count int64 `json:"count,omitempty"`

	// Health contains a summary of the collective health of a Project's
	// Warehouses.
	Health struct {
		HealthStats
	} `json:"health,omitempty"`
}

WarehouseStats warehouse stats

swagger:model WarehouseStats

func (*WarehouseStats) ContextValidate ¶

func (m *WarehouseStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this warehouse stats based on the context it is used

func (*WarehouseStats) MarshalBinary ¶

func (m *WarehouseStats) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WarehouseStats) UnmarshalBinary ¶

func (m *WarehouseStats) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WarehouseStats) Validate ¶

func (m *WarehouseStats) Validate(formats strfmt.Registry) error

Validate validates this warehouse stats

type WarehouseStatus ¶

type WarehouseStatus struct {

	// Conditions contains the last observations of the Warehouse's current
	// state.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []*V1Condition `json:"conditions"`

	// DiscoveredArtifacts holds the artifacts discovered by the Warehouse.
	DiscoveredArtifacts struct {
		DiscoveredArtifacts
	} `json:"discoveredArtifacts,omitempty"`

	// LastFreightID is a reference to the system-assigned identifier (name) of
	// the most recent Freight produced by the Warehouse.
	LastFreightID string `json:"lastFreightID,omitempty"`

	// LastHandledRefresh holds the value of the most recent AnnotationKeyRefresh
	// annotation that was handled by the controller. This field can be used to
	// determine whether the request to refresh the resource has been handled.
	// +optional
	LastHandledRefresh string `json:"lastHandledRefresh,omitempty"`

	// ObservedGeneration represents the .metadata.generation that this Warehouse
	// was reconciled against.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

WarehouseStatus warehouse status

swagger:model WarehouseStatus

func (*WarehouseStatus) ContextValidate ¶

func (m *WarehouseStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this warehouse status based on the context it is used

func (*WarehouseStatus) MarshalBinary ¶

func (m *WarehouseStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WarehouseStatus) UnmarshalBinary ¶

func (m *WarehouseStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WarehouseStatus) Validate ¶

func (m *WarehouseStatus) Validate(formats strfmt.Registry) error

Validate validates this warehouse status

type WebhookReceiverConfig ¶

type WebhookReceiverConfig struct {

	// Artifactory contains the configuration for a webhook receiver that is
	// compatible with JFrog Artifactory payloads.
	Artifactory struct {
		ArtifactoryWebhookReceiverConfig
	} `json:"artifactory,omitempty"`

	// Azure contains the configuration for a webhook receiver that is compatible
	// with Azure Container Registry (ACR) and Azure DevOps payloads.
	Azure struct {
		AzureWebhookReceiverConfig
	} `json:"azure,omitempty"`

	// Bitbucket contains the configuration for a webhook receiver that is
	// compatible with Bitbucket payloads.
	Bitbucket struct {
		BitbucketWebhookReceiverConfig
	} `json:"bitbucket,omitempty"`

	// DockerHub contains the configuration for a webhook receiver that is
	// compatible with DockerHub payloads.
	Dockerhub struct {
		DockerHubWebhookReceiverConfig
	} `json:"dockerhub,omitempty"`

	// Generic contains the configuration for a generic webhook receiver.
	Generic struct {
		GenericWebhookReceiverConfig
	} `json:"generic,omitempty"`

	// Gitea contains the configuration for a webhook receiver that is compatible
	// with Gitea payloads.
	Gitea struct {
		GiteaWebhookReceiverConfig
	} `json:"gitea,omitempty"`

	// GitHub contains the configuration for a webhook receiver that is compatible
	// with GitHub payloads.
	Github struct {
		GitHubWebhookReceiverConfig
	} `json:"github,omitempty"`

	// GitLab contains the configuration for a webhook receiver that is compatible
	// with GitLab payloads.
	Gitlab struct {
		GitLabWebhookReceiverConfig
	} `json:"gitlab,omitempty"`

	// Harbor contains the configuration for a webhook receiver that is compatible
	// with Harbor payloads.
	Harbor struct {
		HarborWebhookReceiverConfig
	} `json:"harbor,omitempty"`

	// Name is the name of the webhook receiver.
	//
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=253
	// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
	// +akuity:test-kubebuilder-pattern=KubernetesName
	// Required: true
	Name *string `json:"name"`

	// Quay contains the configuration for a webhook receiver that is compatible
	// with Quay payloads.
	Quay struct {
		QuayWebhookReceiverConfig
	} `json:"quay,omitempty"`
}

WebhookReceiverConfig webhook receiver config

swagger:model WebhookReceiverConfig

func (*WebhookReceiverConfig) ContextValidate ¶

func (m *WebhookReceiverConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this webhook receiver config based on the context it is used

func (*WebhookReceiverConfig) MarshalBinary ¶

func (m *WebhookReceiverConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WebhookReceiverConfig) UnmarshalBinary ¶

func (m *WebhookReceiverConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WebhookReceiverConfig) Validate ¶

func (m *WebhookReceiverConfig) Validate(formats strfmt.Registry) error

Validate validates this webhook receiver config

type WebhookReceiverDetails ¶

type WebhookReceiverDetails struct {

	// Name is the name of the webhook receiver.
	Name string `json:"name,omitempty"`

	// Path is the path to the receiver's webhook endpoint.
	Path string `json:"path,omitempty"`

	// URL includes the full address of the receiver's webhook endpoint.
	URL string `json:"url,omitempty"`
}

WebhookReceiverDetails webhook receiver details

swagger:model WebhookReceiverDetails

func (*WebhookReceiverDetails) ContextValidate ¶

func (m *WebhookReceiverDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this webhook receiver details based on context it is used

func (*WebhookReceiverDetails) MarshalBinary ¶

func (m *WebhookReceiverDetails) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WebhookReceiverDetails) UnmarshalBinary ¶

func (m *WebhookReceiverDetails) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WebhookReceiverDetails) Validate ¶

func (m *WebhookReceiverDetails) Validate(formats strfmt.Registry) error

Validate validates this webhook receiver details

Source Files ¶

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL