Documentation ¶
Index ¶
- func NewPolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest() datasource.DataSource
- func NewPolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest() datasource.DataSource
- func NewPolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest() datasource.DataSource
- func NewPolicyKarmadaIoOverridePolicyV1Alpha1Manifest() datasource.DataSource
- func NewPolicyKarmadaIoPropagationPolicyV1Alpha1Manifest() datasource.DataSource
- type PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest
- func (r *PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, ...)
- func (r *PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, ...)
- type PolicyKarmadaIoClusterOverridePolicyV1Alpha1ManifestData
- type PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest
- func (r *PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, ...)
- func (r *PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, ...)
- type PolicyKarmadaIoClusterPropagationPolicyV1Alpha1ManifestData
- type PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest
- func (r *PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, ...)
- func (r *PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, ...)
- type PolicyKarmadaIoFederatedResourceQuotaV1Alpha1ManifestData
- type PolicyKarmadaIoOverridePolicyV1Alpha1Manifest
- func (r *PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, ...)
- func (r *PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, ...)
- type PolicyKarmadaIoOverridePolicyV1Alpha1ManifestData
- type PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest
- func (r *PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, ...)
- func (r *PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, ...)
- type PolicyKarmadaIoPropagationPolicyV1Alpha1ManifestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest ¶
func NewPolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest() datasource.DataSource
func NewPolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest ¶
func NewPolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest() datasource.DataSource
func NewPolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest ¶
func NewPolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest() datasource.DataSource
func NewPolicyKarmadaIoOverridePolicyV1Alpha1Manifest ¶
func NewPolicyKarmadaIoOverridePolicyV1Alpha1Manifest() datasource.DataSource
func NewPolicyKarmadaIoPropagationPolicyV1Alpha1Manifest ¶
func NewPolicyKarmadaIoPropagationPolicyV1Alpha1Manifest() datasource.DataSource
Types ¶
type PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest ¶
type PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest struct{}
func (*PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Metadata ¶
func (r *PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, response *datasource.MetadataResponse)
func (*PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Read ¶
func (r *PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Schema ¶
func (r *PolicyKarmadaIoClusterOverridePolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse)
type PolicyKarmadaIoClusterOverridePolicyV1Alpha1ManifestData ¶
type PolicyKarmadaIoClusterOverridePolicyV1Alpha1ManifestData struct { YAML types.String `tfsdk:"yaml" json:"-"` ApiVersion *string `tfsdk:"-" json:"apiVersion"` Kind *string `tfsdk:"-" json:"kind"` Metadata struct { Name string `tfsdk:"name" json:"name"` Labels map[string]string `tfsdk:"labels" json:"labels,omitempty"` Annotations map[string]string `tfsdk:"annotations" json:"annotations,omitempty"` } `tfsdk:"metadata" json:"metadata"` Spec *struct { OverrideRules *[]struct { Overriders *struct { AnnotationsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"annotations_overrider" json:"annotationsOverrider,omitempty"` ArgsOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"args_overrider" json:"argsOverrider,omitempty"` CommandOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"command_overrider" json:"commandOverrider,omitempty"` FieldOverrider *[]struct { FieldPath *string `tfsdk:"field_path" json:"fieldPath,omitempty"` Json *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"json" json:"json,omitempty"` Yaml *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"yaml" json:"yaml,omitempty"` } `tfsdk:"field_overrider" json:"fieldOverrider,omitempty"` ImageOverrider *[]struct { Component *string `tfsdk:"component" json:"component,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Predicate *struct { Path *string `tfsdk:"path" json:"path,omitempty"` } `tfsdk:"predicate" json:"predicate,omitempty"` Value *string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"image_overrider" json:"imageOverrider,omitempty"` LabelsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"labels_overrider" json:"labelsOverrider,omitempty"` Plaintext *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Path *string `tfsdk:"path" json:"path,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"plaintext" json:"plaintext,omitempty"` } `tfsdk:"overriders" json:"overriders,omitempty"` TargetCluster *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"target_cluster" json:"targetCluster,omitempty"` } `tfsdk:"override_rules" json:"overrideRules,omitempty"` Overriders *struct { AnnotationsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"annotations_overrider" json:"annotationsOverrider,omitempty"` ArgsOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"args_overrider" json:"argsOverrider,omitempty"` CommandOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"command_overrider" json:"commandOverrider,omitempty"` FieldOverrider *[]struct { FieldPath *string `tfsdk:"field_path" json:"fieldPath,omitempty"` Json *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"json" json:"json,omitempty"` Yaml *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"yaml" json:"yaml,omitempty"` } `tfsdk:"field_overrider" json:"fieldOverrider,omitempty"` ImageOverrider *[]struct { Component *string `tfsdk:"component" json:"component,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Predicate *struct { Path *string `tfsdk:"path" json:"path,omitempty"` } `tfsdk:"predicate" json:"predicate,omitempty"` Value *string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"image_overrider" json:"imageOverrider,omitempty"` LabelsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"labels_overrider" json:"labelsOverrider,omitempty"` Plaintext *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Path *string `tfsdk:"path" json:"path,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"plaintext" json:"plaintext,omitempty"` } `tfsdk:"overriders" json:"overriders,omitempty"` ResourceSelectors *[]struct { ApiVersion *string `tfsdk:"api_version" json:"apiVersion,omitempty"` Kind *string `tfsdk:"kind" json:"kind,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` Name *string `tfsdk:"name" json:"name,omitempty"` Namespace *string `tfsdk:"namespace" json:"namespace,omitempty"` } `tfsdk:"resource_selectors" json:"resourceSelectors,omitempty"` TargetCluster *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"target_cluster" json:"targetCluster,omitempty"` } `tfsdk:"spec" json:"spec,omitempty"` }
type PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest ¶
type PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest struct{}
func (*PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Metadata ¶
func (r *PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, response *datasource.MetadataResponse)
func (*PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Read ¶
func (r *PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Schema ¶
func (r *PolicyKarmadaIoClusterPropagationPolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse)
type PolicyKarmadaIoClusterPropagationPolicyV1Alpha1ManifestData ¶
type PolicyKarmadaIoClusterPropagationPolicyV1Alpha1ManifestData struct { YAML types.String `tfsdk:"yaml" json:"-"` ApiVersion *string `tfsdk:"-" json:"apiVersion"` Kind *string `tfsdk:"-" json:"kind"` Metadata struct { Name string `tfsdk:"name" json:"name"` Labels map[string]string `tfsdk:"labels" json:"labels,omitempty"` Annotations map[string]string `tfsdk:"annotations" json:"annotations,omitempty"` } `tfsdk:"metadata" json:"metadata"` Spec *struct { ActivationPreference *string `tfsdk:"activation_preference" json:"activationPreference,omitempty"` Association *bool `tfsdk:"association" json:"association,omitempty"` ConflictResolution *string `tfsdk:"conflict_resolution" json:"conflictResolution,omitempty"` DependentOverrides *[]string `tfsdk:"dependent_overrides" json:"dependentOverrides,omitempty"` Failover *struct { Application *struct { DecisionConditions *struct { TolerationSeconds *int64 `tfsdk:"toleration_seconds" json:"tolerationSeconds,omitempty"` } `tfsdk:"decision_conditions" json:"decisionConditions,omitempty"` GracePeriodSeconds *int64 `tfsdk:"grace_period_seconds" json:"gracePeriodSeconds,omitempty"` PurgeMode *string `tfsdk:"purge_mode" json:"purgeMode,omitempty"` } `tfsdk:"application" json:"application,omitempty"` } `tfsdk:"failover" json:"failover,omitempty"` Placement *struct { ClusterAffinities *[]struct { AffinityName *string `tfsdk:"affinity_name" json:"affinityName,omitempty"` ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"cluster_affinities" json:"clusterAffinities,omitempty"` ClusterAffinity *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"cluster_affinity" json:"clusterAffinity,omitempty"` ClusterTolerations *[]struct { Effect *string `tfsdk:"effect" json:"effect,omitempty"` Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` TolerationSeconds *int64 `tfsdk:"toleration_seconds" json:"tolerationSeconds,omitempty"` Value *string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"cluster_tolerations" json:"clusterTolerations,omitempty"` ReplicaScheduling *struct { ReplicaDivisionPreference *string `tfsdk:"replica_division_preference" json:"replicaDivisionPreference,omitempty"` ReplicaSchedulingType *string `tfsdk:"replica_scheduling_type" json:"replicaSchedulingType,omitempty"` WeightPreference *struct { DynamicWeight *string `tfsdk:"dynamic_weight" json:"dynamicWeight,omitempty"` StaticWeightList *[]struct { TargetCluster *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"target_cluster" json:"targetCluster,omitempty"` Weight *int64 `tfsdk:"weight" json:"weight,omitempty"` } `tfsdk:"static_weight_list" json:"staticWeightList,omitempty"` } `tfsdk:"weight_preference" json:"weightPreference,omitempty"` } `tfsdk:"replica_scheduling" json:"replicaScheduling,omitempty"` SpreadConstraints *[]struct { MaxGroups *int64 `tfsdk:"max_groups" json:"maxGroups,omitempty"` MinGroups *int64 `tfsdk:"min_groups" json:"minGroups,omitempty"` SpreadByField *string `tfsdk:"spread_by_field" json:"spreadByField,omitempty"` SpreadByLabel *string `tfsdk:"spread_by_label" json:"spreadByLabel,omitempty"` } `tfsdk:"spread_constraints" json:"spreadConstraints,omitempty"` } `tfsdk:"placement" json:"placement,omitempty"` Preemption *string `tfsdk:"preemption" json:"preemption,omitempty"` PreserveResourcesOnDeletion *bool `tfsdk:"preserve_resources_on_deletion" json:"preserveResourcesOnDeletion,omitempty"` Priority *int64 `tfsdk:"priority" json:"priority,omitempty"` PropagateDeps *bool `tfsdk:"propagate_deps" json:"propagateDeps,omitempty"` ResourceSelectors *[]struct { ApiVersion *string `tfsdk:"api_version" json:"apiVersion,omitempty"` Kind *string `tfsdk:"kind" json:"kind,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` Name *string `tfsdk:"name" json:"name,omitempty"` Namespace *string `tfsdk:"namespace" json:"namespace,omitempty"` } `tfsdk:"resource_selectors" json:"resourceSelectors,omitempty"` SchedulerName *string `tfsdk:"scheduler_name" json:"schedulerName,omitempty"` Suspension *struct { Dispatching *bool `tfsdk:"dispatching" json:"dispatching,omitempty"` DispatchingOnClusters *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` } `tfsdk:"dispatching_on_clusters" json:"dispatchingOnClusters,omitempty"` } `tfsdk:"suspension" json:"suspension,omitempty"` } `tfsdk:"spec" json:"spec,omitempty"` }
type PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest ¶
type PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest struct{}
func (*PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Metadata ¶
func (r *PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, response *datasource.MetadataResponse)
func (*PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Read ¶
func (r *PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Schema ¶
func (r *PolicyKarmadaIoFederatedResourceQuotaV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse)
type PolicyKarmadaIoFederatedResourceQuotaV1Alpha1ManifestData ¶
type PolicyKarmadaIoFederatedResourceQuotaV1Alpha1ManifestData struct { YAML types.String `tfsdk:"yaml" json:"-"` ApiVersion *string `tfsdk:"-" json:"apiVersion"` Kind *string `tfsdk:"-" json:"kind"` Metadata struct { Name string `tfsdk:"name" json:"name"` Namespace string `tfsdk:"namespace" json:"namespace"` Labels map[string]string `tfsdk:"labels" json:"labels,omitempty"` Annotations map[string]string `tfsdk:"annotations" json:"annotations,omitempty"` } `tfsdk:"metadata" json:"metadata"` Spec *struct { Overall *map[string]string `tfsdk:"overall" json:"overall,omitempty"` StaticAssignments *[]struct { ClusterName *string `tfsdk:"cluster_name" json:"clusterName,omitempty"` Hard *map[string]string `tfsdk:"hard" json:"hard,omitempty"` } `tfsdk:"static_assignments" json:"staticAssignments,omitempty"` } `tfsdk:"spec" json:"spec,omitempty"` }
type PolicyKarmadaIoOverridePolicyV1Alpha1Manifest ¶
type PolicyKarmadaIoOverridePolicyV1Alpha1Manifest struct{}
func (*PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Metadata ¶
func (r *PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, response *datasource.MetadataResponse)
func (*PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Read ¶
func (r *PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Schema ¶
func (r *PolicyKarmadaIoOverridePolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse)
type PolicyKarmadaIoOverridePolicyV1Alpha1ManifestData ¶
type PolicyKarmadaIoOverridePolicyV1Alpha1ManifestData struct { YAML types.String `tfsdk:"yaml" json:"-"` ApiVersion *string `tfsdk:"-" json:"apiVersion"` Kind *string `tfsdk:"-" json:"kind"` Metadata struct { Name string `tfsdk:"name" json:"name"` Namespace string `tfsdk:"namespace" json:"namespace"` Labels map[string]string `tfsdk:"labels" json:"labels,omitempty"` Annotations map[string]string `tfsdk:"annotations" json:"annotations,omitempty"` } `tfsdk:"metadata" json:"metadata"` Spec *struct { OverrideRules *[]struct { Overriders *struct { AnnotationsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"annotations_overrider" json:"annotationsOverrider,omitempty"` ArgsOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"args_overrider" json:"argsOverrider,omitempty"` CommandOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"command_overrider" json:"commandOverrider,omitempty"` FieldOverrider *[]struct { FieldPath *string `tfsdk:"field_path" json:"fieldPath,omitempty"` Json *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"json" json:"json,omitempty"` Yaml *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"yaml" json:"yaml,omitempty"` } `tfsdk:"field_overrider" json:"fieldOverrider,omitempty"` ImageOverrider *[]struct { Component *string `tfsdk:"component" json:"component,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Predicate *struct { Path *string `tfsdk:"path" json:"path,omitempty"` } `tfsdk:"predicate" json:"predicate,omitempty"` Value *string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"image_overrider" json:"imageOverrider,omitempty"` LabelsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"labels_overrider" json:"labelsOverrider,omitempty"` Plaintext *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Path *string `tfsdk:"path" json:"path,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"plaintext" json:"plaintext,omitempty"` } `tfsdk:"overriders" json:"overriders,omitempty"` TargetCluster *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"target_cluster" json:"targetCluster,omitempty"` } `tfsdk:"override_rules" json:"overrideRules,omitempty"` Overriders *struct { AnnotationsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"annotations_overrider" json:"annotationsOverrider,omitempty"` ArgsOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"args_overrider" json:"argsOverrider,omitempty"` CommandOverrider *[]struct { ContainerName *string `tfsdk:"container_name" json:"containerName,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *[]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"command_overrider" json:"commandOverrider,omitempty"` FieldOverrider *[]struct { FieldPath *string `tfsdk:"field_path" json:"fieldPath,omitempty"` Json *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"json" json:"json,omitempty"` Yaml *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` SubPath *string `tfsdk:"sub_path" json:"subPath,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"yaml" json:"yaml,omitempty"` } `tfsdk:"field_overrider" json:"fieldOverrider,omitempty"` ImageOverrider *[]struct { Component *string `tfsdk:"component" json:"component,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Predicate *struct { Path *string `tfsdk:"path" json:"path,omitempty"` } `tfsdk:"predicate" json:"predicate,omitempty"` Value *string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"image_overrider" json:"imageOverrider,omitempty"` LabelsOverrider *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"labels_overrider" json:"labelsOverrider,omitempty"` Plaintext *[]struct { Operator *string `tfsdk:"operator" json:"operator,omitempty"` Path *string `tfsdk:"path" json:"path,omitempty"` Value *map[string]string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"plaintext" json:"plaintext,omitempty"` } `tfsdk:"overriders" json:"overriders,omitempty"` ResourceSelectors *[]struct { ApiVersion *string `tfsdk:"api_version" json:"apiVersion,omitempty"` Kind *string `tfsdk:"kind" json:"kind,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` Name *string `tfsdk:"name" json:"name,omitempty"` Namespace *string `tfsdk:"namespace" json:"namespace,omitempty"` } `tfsdk:"resource_selectors" json:"resourceSelectors,omitempty"` TargetCluster *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"target_cluster" json:"targetCluster,omitempty"` } `tfsdk:"spec" json:"spec,omitempty"` }
type PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest ¶
type PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest struct{}
func (*PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Metadata ¶
func (r *PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Metadata(_ context.Context, request datasource.MetadataRequest, response *datasource.MetadataResponse)
func (*PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Read ¶
func (r *PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Schema ¶
func (r *PolicyKarmadaIoPropagationPolicyV1Alpha1Manifest) Schema(_ context.Context, _ datasource.SchemaRequest, response *datasource.SchemaResponse)
type PolicyKarmadaIoPropagationPolicyV1Alpha1ManifestData ¶
type PolicyKarmadaIoPropagationPolicyV1Alpha1ManifestData struct { YAML types.String `tfsdk:"yaml" json:"-"` ApiVersion *string `tfsdk:"-" json:"apiVersion"` Kind *string `tfsdk:"-" json:"kind"` Metadata struct { Name string `tfsdk:"name" json:"name"` Namespace string `tfsdk:"namespace" json:"namespace"` Labels map[string]string `tfsdk:"labels" json:"labels,omitempty"` Annotations map[string]string `tfsdk:"annotations" json:"annotations,omitempty"` } `tfsdk:"metadata" json:"metadata"` Spec *struct { ActivationPreference *string `tfsdk:"activation_preference" json:"activationPreference,omitempty"` Association *bool `tfsdk:"association" json:"association,omitempty"` ConflictResolution *string `tfsdk:"conflict_resolution" json:"conflictResolution,omitempty"` DependentOverrides *[]string `tfsdk:"dependent_overrides" json:"dependentOverrides,omitempty"` Failover *struct { Application *struct { DecisionConditions *struct { TolerationSeconds *int64 `tfsdk:"toleration_seconds" json:"tolerationSeconds,omitempty"` } `tfsdk:"decision_conditions" json:"decisionConditions,omitempty"` GracePeriodSeconds *int64 `tfsdk:"grace_period_seconds" json:"gracePeriodSeconds,omitempty"` PurgeMode *string `tfsdk:"purge_mode" json:"purgeMode,omitempty"` } `tfsdk:"application" json:"application,omitempty"` } `tfsdk:"failover" json:"failover,omitempty"` Placement *struct { ClusterAffinities *[]struct { AffinityName *string `tfsdk:"affinity_name" json:"affinityName,omitempty"` ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"cluster_affinities" json:"clusterAffinities,omitempty"` ClusterAffinity *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"cluster_affinity" json:"clusterAffinity,omitempty"` ClusterTolerations *[]struct { Effect *string `tfsdk:"effect" json:"effect,omitempty"` Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` TolerationSeconds *int64 `tfsdk:"toleration_seconds" json:"tolerationSeconds,omitempty"` Value *string `tfsdk:"value" json:"value,omitempty"` } `tfsdk:"cluster_tolerations" json:"clusterTolerations,omitempty"` ReplicaScheduling *struct { ReplicaDivisionPreference *string `tfsdk:"replica_division_preference" json:"replicaDivisionPreference,omitempty"` ReplicaSchedulingType *string `tfsdk:"replica_scheduling_type" json:"replicaSchedulingType,omitempty"` WeightPreference *struct { DynamicWeight *string `tfsdk:"dynamic_weight" json:"dynamicWeight,omitempty"` StaticWeightList *[]struct { TargetCluster *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` Exclude *[]string `tfsdk:"exclude" json:"exclude,omitempty"` FieldSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` } `tfsdk:"field_selector" json:"fieldSelector,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` } `tfsdk:"target_cluster" json:"targetCluster,omitempty"` Weight *int64 `tfsdk:"weight" json:"weight,omitempty"` } `tfsdk:"static_weight_list" json:"staticWeightList,omitempty"` } `tfsdk:"weight_preference" json:"weightPreference,omitempty"` } `tfsdk:"replica_scheduling" json:"replicaScheduling,omitempty"` SpreadConstraints *[]struct { MaxGroups *int64 `tfsdk:"max_groups" json:"maxGroups,omitempty"` MinGroups *int64 `tfsdk:"min_groups" json:"minGroups,omitempty"` SpreadByField *string `tfsdk:"spread_by_field" json:"spreadByField,omitempty"` SpreadByLabel *string `tfsdk:"spread_by_label" json:"spreadByLabel,omitempty"` } `tfsdk:"spread_constraints" json:"spreadConstraints,omitempty"` } `tfsdk:"placement" json:"placement,omitempty"` Preemption *string `tfsdk:"preemption" json:"preemption,omitempty"` PreserveResourcesOnDeletion *bool `tfsdk:"preserve_resources_on_deletion" json:"preserveResourcesOnDeletion,omitempty"` Priority *int64 `tfsdk:"priority" json:"priority,omitempty"` PropagateDeps *bool `tfsdk:"propagate_deps" json:"propagateDeps,omitempty"` ResourceSelectors *[]struct { ApiVersion *string `tfsdk:"api_version" json:"apiVersion,omitempty"` Kind *string `tfsdk:"kind" json:"kind,omitempty"` LabelSelector *struct { MatchExpressions *[]struct { Key *string `tfsdk:"key" json:"key,omitempty"` Operator *string `tfsdk:"operator" json:"operator,omitempty"` Values *[]string `tfsdk:"values" json:"values,omitempty"` } `tfsdk:"match_expressions" json:"matchExpressions,omitempty"` MatchLabels *map[string]string `tfsdk:"match_labels" json:"matchLabels,omitempty"` } `tfsdk:"label_selector" json:"labelSelector,omitempty"` Name *string `tfsdk:"name" json:"name,omitempty"` Namespace *string `tfsdk:"namespace" json:"namespace,omitempty"` } `tfsdk:"resource_selectors" json:"resourceSelectors,omitempty"` SchedulerName *string `tfsdk:"scheduler_name" json:"schedulerName,omitempty"` Suspension *struct { Dispatching *bool `tfsdk:"dispatching" json:"dispatching,omitempty"` DispatchingOnClusters *struct { ClusterNames *[]string `tfsdk:"cluster_names" json:"clusterNames,omitempty"` } `tfsdk:"dispatching_on_clusters" json:"dispatchingOnClusters,omitempty"` } `tfsdk:"suspension" json:"suspension,omitempty"` } `tfsdk:"spec" json:"spec,omitempty"` }
Source Files ¶
- policy_karmada_io_cluster_override_policy_v1alpha1_manifest.go
- policy_karmada_io_cluster_propagation_policy_v1alpha1_manifest.go
- policy_karmada_io_federated_resource_quota_v1alpha1_manifest.go
- policy_karmada_io_override_policy_v1alpha1_manifest.go
- policy_karmada_io_propagation_policy_v1alpha1_manifest.go
Click to show internal directories.
Click to hide internal directories.