Unverified Commit 2647ffa0 authored by Rafał Augustyniak's avatar Rafał Augustyniak Committed by GitHub
Browse files

redisexperimenation: remove redis_commands field (#1289)

* Remove redis_commands field from redisexperiment model
parent 55020fd4
yarn12211 CDPATH-edge-case FixCordonNotes GA4 RHF add-an-option-to-select-environment add-capacity-info add-list-pr-gh-api add-origin add-pod-details add-redis-frontend add-refresh-method add-stateful-fields add-tabledetails-notes addCaseInsensitiveAutocomplete addOverwriteFlag addSgTimeout addTimeoutForSG adding-chaos-blogpost allIcons api-passthrough-module appProviderRewrite attempt-pure-css-wrap auditAPI auditBE auditFE autoSubmit autoSubmitResolvers autocomplete-clear-value autocompleteFix aws-multi-account aws-multi-account-final-cutover aws-multi-account-gen-clients aws-multi-account-protos base64GH blogNits callbackToSetIndex card-hook-interface cardUpdates caseInsens1 catalog-config-extension catalog-ql-patch cfgExtends changeGridLines chaos_server-fault-enable-greater-precision chartTests chipMigration clearMocks clickAutocomplete codecov colorsFile commitsViaComparison compose-duplicate-test configurable-zap-namespace custom-title-logo customHookForTimelinePleaseWork darkModeTest1 dash-data-flow dashLayout dashLoadedCheck datetimevalid ddb-fe ddb-panic-fix ddb-refactor ddb-refactor-endpoint ddb-response-proto ddb-scale-factor-fix ddb-updategsicapacity ddb-updatetable deletePodLocationNotes deployments-table describe-pod dev-req-check-tool dialogCSS direct-client disableAuditForListPods display-termination-reason-every-time-it-is-set docshousekeeping dotenv downloadConfigEnvoy dschaller-patch-1 dschaller-patch-2 dschaller-patch-3 dynamodb-panic-fix dynamodb-status-chips dynamodb-update-more-logs dynamodb-wz-1 emojiSupport enable-partial-failures-for-pods eneralize-runtime-keys-generation-feature-branch envoy-cp-update envoyTriageViaK8sDash errorBoundaryLocation eslintdocs events-api expSimplification experimentation-docs exportEmotionThings expose-k8s-clientsets featureFlagFrontend feedbackMaxLength field-redaction first-of-type-fix firstgogogo fix-audit-redact fix-authn-redirect-logic fix-autocomplete-project-catalog fix-github-app-auth-refresh fix-homedir-copy fixAlignOfIcons fixConfigTypes fixDASHSpacing fixDashSpacingPart1 fixwarning frontend-autocomplete-patch frontend-catalog-navigate-patch frontend-highlight-parent frontend-project-selector-patch frontend-warning-extension gcp-0.10.3 generalize-runtime-keys-generation generalize-runtime-keys-generation-feature-branch generalize-runtime-keys-generation-server-faults-plugins get-logs ghrl glangci-test go-1-18 go-1.19-in-ci go-actions-1-18 go-github-v38 golangci goworkspace graphql group-item-prefix gtag header-adjustments hooks-first-in-select hooksForAutoRefresh horizontalExpansion housekeepingclutch hydrateAllFunc iam-custompolicy-sim iconButton iconButtonColors inputTransformers issue-refresh-token jest-coverage-fix jg/github jslaughter-patch-1 k8s-dash k8sAction k8sDashAutosubmit kind-upgrade license-update linkCSS lintHooks list-services load-state-error log-redact-k8s-protos lowercaseAutocomplete main matv5 matv5-base matv5-core matv5-core-input matv5-core-layout matv5-joined matv5-wizard matv5-workflows metrics-blog metricsAPI metricsProtos mikecutalo-patch-1 minimistClutch moarTests moartests mockProjects mui-5-upgrade mui-v5 mui-v5-codemods mui-v5-core mui5 muiv5-upgrade murki-patch-1 navigation networkTests nodeNameInCordonNode nonexistantProjects nps-anytime nps-collector nps-custom-patch openSourceReactMarkdownPane otherEventTimes override-old-state-with-new override-search paperMinWidth pass-config-as-proto-message pattern-extract pcDefaultProjects pcResetState pcSearch pcSubtext pd-info-project-proto persistProjects pgv-0.6.0 pod-events preflight-check-script project-api-mocks project-api-optional-compute-deps project-api-protos project-catalog project-catalog-config-patch project-catalog-config-skeleton project-catalog-details project-catalog-scaffold project-proto-deps project-selector-autocomplete project-selector-testing project404 projectSelectorState proto-get-endpoint protoForDeploys protoc-3.17 proxy-mod-impl qLinks1 qLinksF qLinksForProjSelector queryParamPreserve quickLinks1 quicklinks1 react-17 reactHookForm redis-3-rtds refresh refreshDropdown registrarEmptyRoutes relativeCfgDir reloadIntervalForProjSelector remove-utm-params removeBottomFeedbackButton removeIcon renderTestTimeseriesChart renovate-patch renovate/actions-setup-node-3.x renovate/actions-stale-4.x renovate/actions-stale-6.x renovate/actions-upload-artifact-3.x renovate/babel-monorepo renovate/cypress-10.x renovate/cypress-7.x renovate/cypress-8.x renovate/cypress-9.x renovate/docker-build-push-action-2.x renovate/docker-build-push-action-3.x renovate/docker-login-action-2.x renovate/docker-setup-buildx-action-2.x renovate/docusaurus-monorepo renovate/esbuild-0.x renovate/eslint-config-airbnb-19.x renovate/eslint-plugin-jest-25.x renovate/eslint-plugin-jest-26.x renovate/eslint-plugin-prettier-4.x renovate/font-awesome renovate/github.com-aws-aws-sdk-go-v2-1.x renovate/github.com-aws-aws-sdk-go-v2-config-1.x renovate/github.com-aws-aws-sdk-go-v2-credentials-1.x renovate/github.com-aws-aws-sdk-go-v2-service-autoscaling-1.x renovate/github.com-aws-aws-sdk-go-v2-service-kinesis-1.x renovate/github.com-aws-aws-sdk-go-v2-service-s3-1.x renovate/github.com-aws-smithy-go-1.x renovate/github.com-bradleyfalzon-ghinstallation-2.x renovate/github.com-bufbuild-buf-0.x renovate/github.com-bufbuild-buf-1.x renovate/github.com-coreos-go-oidc-v3-3.x renovate/github.com-envoyproxy-go-control-plane-0.x renovate/github.com-envoyproxy-protoc-gen-validate-0.x renovate/github.com-fullstorydev-grpcurl-1.x renovate/github.com-go-git-go-billy-v5-5.x renovate/github.com-go-git-go-git-v5-5.x renovate/github.com-gogo-status-1.x renovate/github.com-golang-migrate-migrate-v4-4.x renovate/github.com-google-go-github-v34-35.x renovate/github.com-google-go-github-v35-35.x renovate/github.com-google-go-github-v36-37.x renovate/github.com-google-go-github-v37-38.x renovate/github.com-grpc-ecosystem-grpc-gateway-v2-2.x renovate/github.com-jhump-protoreflect-1.x renovate/github.com-lib-pq-1.x renovate/github.com-masterminds-squirrel-1.x renovate/github.com-shurcool-githubv4-digest renovate/github.com-shurcool-graphql-digest renovate/github.com-slack-go-slack-0.x renovate/github.com-stretchr-testify-1.x renovate/github.com-uber-go-tally-3.x renovate/github.com-uber-go-tally-v4-4.x renovate/github.com-yoheimuta-go-protoparser-v4-4.x renovate/go-1.x renovate/go.temporal.io-sdk-1.x renovate/go.temporal.io-sdk-contrib-tally-0.x renovate/go.uber.org-zap-1.x renovate/golang-1.x renovate/golang.org-x-net-digest renovate/google.golang.org-genproto-digest renovate/google.golang.org-grpc-1.x renovate/google.golang.org-grpc-cmd-protoc-gen-go-grpc-1.x renovate/google.golang.org-protobuf-1.x renovate/gopkg.in-square-go-jose.v2-2.x renovate/hookform-devtools-3.x renovate/hookform-devtools-4.x renovate/hookform-resolvers-2.x renovate/k8s.io-api-0.x renovate/k8s.io-apimachinery-0.x renovate/k8s.io-client-go-0.x renovate/k8s.io-utils-digest renovate/kubernetes-go renovate/lock-file-maintenance renovate/major-1-kubernetes-go renovate/major-10-definitelytyped renovate/major-10-kubernetes-go renovate/major-11-kubernetes-go renovate/major-16-definitelytyped renovate/major-17-react-monorepo renovate/major-18-definitelytyped renovate/major-18-react-monorepo renovate/major-19-eslint renovate/major-2-kubernetes-go renovate/major-27-definitelytyped renovate/major-27-unittest renovate/major-28-definitelytyped renovate/major-28-unittest renovate/major-29-definitelytyped renovate/major-3-kubernetes-go renovate/major-4-eslint renovate/major-5-typescript-eslint-monorepo renovate/major-6-font-awesome renovate/major-8-eslint renovate/major-8-remark-monorepo renovate/major-9-definitelytyped renovate/material-table-1.x renovate/material-table-2.x renovate/nivo-monorepo renovate/node-16.x renovate/node-17.x renovate/node-18.x renovate/node-19.x renovate/npm-axios-vulnerability renovate/npm-prismjs-vulnerability renovate/npm-protobufjs-vulnerability renovate/postgres-14.x renovate/postgres-15.x renovate/protobufjs-6.x renovate/react-hook-form-7.x renovate/react-hook-thunk-reducer-0.x renovate/react-scripts-5.x renovate/react-timeago-6.x renovate/react-tiny-popover-7.x renovate/webpack-4.x renovate/webpack-dev-server-3.x renovate/webpack-dev-server-4.x renovateFix replaceNivoWithRechartsForEnvoy resizeAsgValidationFix responsiveDash responsiveProjectSelector responsiveTable return-partial-errors revert-2270-addCaseInsensitiveAutocomplete revert-2348-timeago-patch s3accessdebugger-oss safetyCheckForAccounts scaffold-non-wizard scaffold-update scaffoldingYarn scatterPlotTimeline scrolling-menu search-resolver-fix select-grouping select-patch selectIndex shareOnBlog shortlink-protos shortlink-scaffolding shortlink-wip singleChoiceDrawer sl-bug-fix sl-patch slowloris smonero-patch-1 sourcegraph-impl sourcegraph-service spacingAdjustment sperry-CreateFeedback-proto sperry-GetFeedbackQuestions-proto sperry-SubmitFeedback-API sperry-add-GetSurveys-module sperry-add-emojis sperry-add-prop sperry-autocomplete-fix-experimentations sperry-blog-post sperry-card-header sperry-card-loading-prop sperry-cardcontent-paddingprop sperry-cards-fullWidth sperry-class-setChecked sperry-collapse-bttn sperry-core-tooltip sperry-enableFeedback-prop sperry-extend-type sperry-feedback-config sperry-feedback-docs sperry-globally-enable-wizard sperry-hidden-w-icon sperry-hiddenstate sperry-incremental-dash-updates sperry-migrate-card-framework sperry-project-api-custom-projects sperry-project-links-proto sperry-project-selector sperry-project-selector-autocomplete sperry-proxy-module-host-header sperry-query-params sperry-refactor sperry-remove-npswizard-featureflag sperry-remove-state sperry-removeprojects-state sperry-resize-hpa-notes sperry-see-more-card-action sperry-slackbot-mod sperry-sort-project-names sperry-stats-prefix sperry-tooltip sperry-update-api-call sperry-update-card-header-design sperry-update-package state-hydration state-hydration-alerts state-hydration-selector state-hydration-short-links state-hydration-storage storybookDocs strictDash supportStylingOfCharts tableCSS tablecss temporal-client test-rpc-invoke tfAdornment themeProvider timeSelectorHooks timeSeriesProto timeago-component timestampInt64 todosPublic toggleButtonGroup toggleTest topology-docs topology-paginated-api-search-protos transientProps trimPrefixForAWS typography typographyNoWrap typographyStory typographyfix update-air-tool update-card-styling update-golangci-lint-1-42-1 update-kind-tool updatePodEventProto use-refresh-token userGroups validate-pattern-at-runtime vscodeProtoPaths webicon wizardOrigin workflowOrigins workflowRegistrarOverride workflowYarnMin wrapper2 wrapperForTimeSeries wrapperForTimeSeries2
No related merge requests found
Showing with 21 additions and 92 deletions
+21 -92
......@@ -41,9 +41,6 @@ message FaultTargeting {
SingleCluster upstream_cluster = 1;
// A single downstream cluster sending requests to redis upstream.
SingleCluster downstream_cluster = 2;
// The redis commands to enforce a fault on. If unset, faults will apply to all redis commands.
repeated string redis_commands = 3 [ (validate.rules).repeated = {unique : true} ];
}
// A single cluster that is partaking in the fault injection.
......
......@@ -230,8 +230,6 @@ type FaultTargeting struct {
UpstreamCluster *SingleCluster `protobuf:"bytes,1,opt,name=upstream_cluster,json=upstreamCluster,proto3" json:"upstream_cluster,omitempty"`
// A single downstream cluster sending requests to redis upstream.
DownstreamCluster *SingleCluster `protobuf:"bytes,2,opt,name=downstream_cluster,json=downstreamCluster,proto3" json:"downstream_cluster,omitempty"`
// The redis commands to enforce a fault on. If unset, faults will apply to all redis commands.
RedisCommands []string `protobuf:"bytes,3,rep,name=redis_commands,json=redisCommands,proto3" json:"redis_commands,omitempty"`
}
func (x *FaultTargeting) Reset() {
......@@ -280,13 +278,6 @@ func (x *FaultTargeting) GetDownstreamCluster() *SingleCluster {
return nil
}
func (x *FaultTargeting) GetRedisCommands() []string {
if x != nil {
return x.RedisCommands
}
return nil
}
// A single cluster that is partaking in the fault injection.
type SingleCluster struct {
state protoimpl.MessageState
......@@ -487,7 +478,7 @@ var file_chaos_redisexperimentation_v1_redisexperimentation_proto_rawDesc = []by
0x76, 0x31, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x44,
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10,
0x01, 0x52, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x22, 0x85, 0x02, 0x0a, 0x0e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x61, 0x72, 0x67,
0x6f, 0x6e, 0x22, 0xd4, 0x01, 0x0a, 0x0e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x54, 0x61, 0x72, 0x67,
0x65, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5e, 0x0a, 0x10, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61,
0x6d, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x33, 0x2e, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2e, 0x63, 0x68, 0x61, 0x6f, 0x73, 0x2e, 0x72,
......@@ -500,28 +491,25 @@ var file_chaos_redisexperimentation_v1_redisexperimentation_proto_rawDesc = []by
0x2e, 0x72, 0x65, 0x64, 0x69, 0x73, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43,
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65,
0x61, 0x6d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x0e, 0x72, 0x65, 0x64,
0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x72, 0x65, 0x64,
0x69, 0x73, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x69,
0x6e, 0x67, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02,
0x20, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3c, 0x0a, 0x0f, 0x46, 0x61, 0x75, 0x6c,
0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x0a, 0x70,
0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42,
0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x18, 0x64, 0x20, 0x00, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63,
0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x22, 0x4b, 0x0a, 0x14, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4c,
0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33,
0x0a, 0x11, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x5f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x2a, 0x02,
0x20, 0x00, 0x52, 0x0f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x4d, 0x73, 0x42, 0x59, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x6c, 0x79, 0x66, 0x74, 0x2f, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2f, 0x62, 0x61,
0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x6f, 0x73, 0x2f,
0x72, 0x65, 0x64, 0x69, 0x73, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x65, 0x78, 0x70,
0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x61, 0x6d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x0d, 0x53, 0x69, 0x6e,
0x67, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20,
0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3c, 0x0a, 0x0f, 0x46, 0x61, 0x75, 0x6c, 0x74,
0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x0a, 0x70, 0x65,
0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09,
0xfa, 0x42, 0x06, 0x2a, 0x04, 0x18, 0x64, 0x20, 0x00, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65,
0x6e, 0x74, 0x61, 0x67, 0x65, 0x22, 0x4b, 0x0a, 0x14, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61,
0x74, 0x65, 0x6e, 0x63, 0x79, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a,
0x11, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x2a, 0x02, 0x20,
0x00, 0x52, 0x0f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x4d, 0x73, 0x42, 0x59, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x6c, 0x79, 0x66, 0x74, 0x2f, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2f, 0x62, 0x61, 0x63,
0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x6f, 0x73, 0x2f, 0x72,
0x65, 0x64, 0x69, 0x73, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x3b, 0x72, 0x65, 0x64, 0x69, 0x73, 0x65, 0x78, 0x70, 0x65,
0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x76, 0x31, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
......
......@@ -360,23 +360,6 @@ func (m *FaultTargeting) Validate() error {
}
}
_FaultTargeting_RedisCommands_Unique := make(map[string]struct{}, len(m.GetRedisCommands()))
for idx, item := range m.GetRedisCommands() {
_, _ = idx, item
if _, exists := _FaultTargeting_RedisCommands_Unique[item]; exists {
return FaultTargetingValidationError{
field: fmt.Sprintf("RedisCommands[%v]", idx),
reason: "repeated value must contain unique items",
}
} else {
_FaultTargeting_RedisCommands_Unique[item] = struct{}{}
}
// no validation rules for RedisCommands[idx]
}
return nil
}
......
......@@ -3,7 +3,6 @@ package redisexperimentation
import (
"errors"
"fmt"
"strings"
"github.com/golang/protobuf/ptypes/any"
"github.com/uber-go/tally"
......@@ -59,8 +58,7 @@ func (s *Service) transform(_ *experimentstore.ExperimentRun, config *experiment
var downstream, upstream string
downstream = experimentConfig.GetFaultTargeting().GetDownstreamCluster().GetName()
upstream = experimentConfig.GetFaultTargeting().GetUpstreamCluster().GetName() +
strings.Join(experimentConfig.GetFaultTargeting().GetRedisCommands(), ",")
upstream = experimentConfig.GetFaultTargeting().GetUpstreamCluster().GetName()
return []*experimentation.Property{
{
......
......@@ -4546,9 +4546,6 @@ export namespace clutch {
 
/** FaultTargeting downstreamCluster */
downstreamCluster?: (clutch.chaos.redisexperimentation.v1.ISingleCluster|null);
/** FaultTargeting redisCommands */
redisCommands?: (string[]|null);
}
 
/** Represents a FaultTargeting. */
......@@ -4566,9 +4563,6 @@ export namespace clutch {
/** FaultTargeting downstreamCluster. */
public downstreamCluster?: (clutch.chaos.redisexperimentation.v1.ISingleCluster|null);
 
/** FaultTargeting redisCommands. */
public redisCommands: string[];
/**
* Verifies a FaultTargeting message.
* @param message Plain object to verify
......
......@@ -10570,7 +10570,6 @@ export const clutch = $root.clutch = (() => {
* @interface IFaultTargeting
* @property {clutch.chaos.redisexperimentation.v1.ISingleCluster|null} [upstreamCluster] FaultTargeting upstreamCluster
* @property {clutch.chaos.redisexperimentation.v1.ISingleCluster|null} [downstreamCluster] FaultTargeting downstreamCluster
* @property {Array.<string>|null} [redisCommands] FaultTargeting redisCommands
*/
 
/**
......@@ -10582,7 +10581,6 @@ export const clutch = $root.clutch = (() => {
* @param {clutch.chaos.redisexperimentation.v1.IFaultTargeting=} [properties] Properties to set
*/
function FaultTargeting(properties) {
this.redisCommands = [];
if (properties)
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
......@@ -10605,14 +10603,6 @@ export const clutch = $root.clutch = (() => {
*/
FaultTargeting.prototype.downstreamCluster = null;
 
/**
* FaultTargeting redisCommands.
* @member {Array.<string>} redisCommands
* @memberof clutch.chaos.redisexperimentation.v1.FaultTargeting
* @instance
*/
FaultTargeting.prototype.redisCommands = $util.emptyArray;
/**
* Verifies a FaultTargeting message.
* @function verify
......@@ -10634,13 +10624,6 @@ export const clutch = $root.clutch = (() => {
if (error)
return "downstreamCluster." + error;
}
if (message.redisCommands != null && message.hasOwnProperty("redisCommands")) {
if (!Array.isArray(message.redisCommands))
return "redisCommands: array expected";
for (let i = 0; i < message.redisCommands.length; ++i)
if (!$util.isString(message.redisCommands[i]))
return "redisCommands: string[] expected";
}
return null;
};
 
......@@ -10666,13 +10649,6 @@ export const clutch = $root.clutch = (() => {
throw TypeError(".clutch.chaos.redisexperimentation.v1.FaultTargeting.downstreamCluster: object expected");
message.downstreamCluster = $root.clutch.chaos.redisexperimentation.v1.SingleCluster.fromObject(object.downstreamCluster);
}
if (object.redisCommands) {
if (!Array.isArray(object.redisCommands))
throw TypeError(".clutch.chaos.redisexperimentation.v1.FaultTargeting.redisCommands: array expected");
message.redisCommands = [];
for (let i = 0; i < object.redisCommands.length; ++i)
message.redisCommands[i] = String(object.redisCommands[i]);
}
return message;
};
 
......@@ -10689,8 +10665,6 @@ export const clutch = $root.clutch = (() => {
if (!options)
options = {};
let object = {};
if (options.arrays || options.defaults)
object.redisCommands = [];
if (options.defaults) {
object.upstreamCluster = null;
object.downstreamCluster = null;
......@@ -10699,11 +10673,6 @@ export const clutch = $root.clutch = (() => {
object.upstreamCluster = $root.clutch.chaos.redisexperimentation.v1.SingleCluster.toObject(message.upstreamCluster, options);
if (message.downstreamCluster != null && message.hasOwnProperty("downstreamCluster"))
object.downstreamCluster = $root.clutch.chaos.redisexperimentation.v1.SingleCluster.toObject(message.downstreamCluster, options);
if (message.redisCommands && message.redisCommands.length) {
object.redisCommands = [];
for (let j = 0; j < message.redisCommands.length; ++j)
object.redisCommands[j] = message.redisCommands[j];
}
return object;
};
 
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment