diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml index a00f508d05e1dc..716b86751a1a1d 100644 --- a/.github/pr_labeler.yml +++ b/.github/pr_labeler.yml @@ -46,8 +46,6 @@ area/plugin/source/bitbucket: - plugins/source/bitbucket/**/* area/plugin/source/hackernews: - plugins/source/hackernews/**/* -area/plugin/source/k8s: - - plugins/source/k8s/**/* area/plugin/source/square: - plugins/source/square/**/* area/plugin/source/typeform: diff --git a/.github/workflows/broken_links_scheduled.yml b/.github/workflows/broken_links_scheduled.yml index d1b0af0cf0f775..47801466f41257 100644 --- a/.github/workflows/broken_links_scheduled.yml +++ b/.github/workflows/broken_links_scheduled.yml @@ -61,6 +61,7 @@ jobs: --exclude www.g2.com \ --exclude cql.ink \ --exclude egghead.io \ + --exclude app.datadoghq.com \ ${{ steps.vercel.outputs.url }}/docs \ | grep -v '───OK───' | grep -v '──SKIP──' | grep -v '0 broken' - name: Slack Notify diff --git a/.github/workflows/dest_postgresql.yml b/.github/workflows/dest_postgresql.yml index 9f437331d73807..f76881fbbf12a7 100644 --- a/.github/workflows/dest_postgresql.yml +++ b/.github/workflows/dest_postgresql.yml @@ -122,7 +122,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Validate CloudQuery config working-directory: "plugins/destination/postgresql/cloud-config-ui" run: dotenv -e ./temp/.env -- cloudquery validate-config ./temp/config.yml diff --git a/.github/workflows/manual_commands_triggers.yml b/.github/workflows/manual_commands_triggers.yml index db85c60ab009e1..3f977bfe044184 100644 --- a/.github/workflows/manual_commands_triggers.yml +++ b/.github/workflows/manual_commands_triggers.yml @@ -32,7 +32,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Set up Go 1.x uses: actions/setup-go@v5 diff --git a/.github/workflows/publish_plugin_to_hub.yml b/.github/workflows/publish_plugin_to_hub.yml index 8d3667b4b82650..3a7f8b221a4ffc 100644 --- a/.github/workflows/publish_plugin_to_hub.yml +++ b/.github/workflows/publish_plugin_to_hub.yml @@ -106,6 +106,29 @@ jobs: - name: Checkout if: needs.prepare.outputs.ui_dir_arg != '' uses: actions/checkout@v4 + + - name: Set up Go 1.x + if: needs.prepare.outputs.ui_dir_arg != '' + uses: actions/setup-go@v5 + with: + go-version-file: ${{ needs.prepare.outputs.plugin_dir }}/go.mod + cache: true + cache-dependency-path: ${{ needs.prepare.outputs.plugin_dir }}/go.sum + + - name: Setup CloudQuery + if: needs.prepare.outputs.ui_dir_arg != '' + uses: cloudquery/setup-cloudquery@v3 + with: + version: v6.3.0 + + - name: Gen + if: needs.prepare.outputs.ui_dir_arg != '' + run: make gen + + - name: Build + if: needs.prepare.outputs.ui_dir_arg != '' + run: go build . + - name: Use Node.js LTS if: needs.prepare.outputs.ui_dir_arg != '' uses: actions/setup-node@v4 @@ -224,7 +247,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} @@ -314,7 +337,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} @@ -398,7 +421,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} @@ -488,7 +511,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_duckdb.yml b/.github/workflows/publish_plugin_to_hub_duckdb.yml index 85431b84f8b217..a1484f50a7033d 100644 --- a/.github/workflows/publish_plugin_to_hub_duckdb.yml +++ b/.github/workflows/publish_plugin_to_hub_duckdb.yml @@ -152,7 +152,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_snowflake.yml b/.github/workflows/publish_plugin_to_hub_snowflake.yml index 34dcbab27b6e22..59db210a4864f5 100644 --- a/.github/workflows/publish_plugin_to_hub_snowflake.yml +++ b/.github/workflows/publish_plugin_to_hub_snowflake.yml @@ -153,7 +153,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_sqlite.yml b/.github/workflows/publish_plugin_to_hub_sqlite.yml index d39a88bc1dfe3a..ec5dbb875c96a2 100644 --- a/.github/workflows/publish_plugin_to_hub_sqlite.yml +++ b/.github/workflows/publish_plugin_to_hub_sqlite.yml @@ -152,7 +152,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/source_hackernews.yml b/.github/workflows/source_hackernews.yml index 8b636b7548694a..89897ce776d8b7 100644 --- a/.github/workflows/source_hackernews.yml +++ b/.github/workflows/source_hackernews.yml @@ -44,7 +44,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: gen if: github.event_name == 'pull_request' run: make gen @@ -78,7 +78,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Gen run: make gen - name: Build diff --git a/.github/workflows/source_k8s.yml b/.github/workflows/source_k8s.yml deleted file mode 100644 index 2026daf3a424e9..00000000000000 --- a/.github/workflows/source_k8s.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Source Plugin K8S Workflow - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - pull_request: - paths: - - "plugins/source/k8s/**" - - ".github/workflows/source_k8s.yml" - push: - branches: - - main - paths: - - "plugins/source/k8s/**" - - ".github/workflows/source_k8s.yml" - -jobs: - plugins-source-k8s: - timeout-minutes: 30 - name: "plugins/source/k8s" - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./plugins/source/k8s - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 2 - - name: Set up Go 1.x - uses: erezrokah/setup-go@feat/add_cache_prefix - with: - go-version-file: plugins/source/k8s/go.mod - cache: true - cache-dependency-path: plugins/source/k8s/go.sum - cache-key-prefix: test-cache- - - name: golangci-lint - uses: golangci/golangci-lint-action@v6 - with: - version: v1.55.2 - working-directory: plugins/source/k8s - args: "--config ../../.golangci.yml" - - name: Setup CloudQuery - if: github.event_name == 'pull_request' - uses: cloudquery/setup-cloudquery@v3 - with: - version: v6.2.0 - - name: gen - if: github.event_name == 'pull_request' - run: make gen - - name: Fail if generation updated files - if: github.event_name == 'pull_request' - run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1) - - name: Build - run: go build . - - name: Test - run: make test - \ No newline at end of file diff --git a/.github/workflows/source_test.yml b/.github/workflows/source_test.yml index 9e1db9a3c1fd97..2921eb4e7353db 100644 --- a/.github/workflows/source_test.yml +++ b/.github/workflows/source_test.yml @@ -44,7 +44,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_xkcd.yml b/.github/workflows/source_xkcd.yml index d864866352cdd6..7e93800510fb7e 100644 --- a/.github/workflows/source_xkcd.yml +++ b/.github/workflows/source_xkcd.yml @@ -44,7 +44,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: gen if: github.event_name == 'pull_request' run: make gen @@ -78,7 +78,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v6.2.0 + version: v6.3.0 - name: Gen run: make gen - name: Build diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0ba4c06c8df8bf..a1df1b7e13aa32 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - "cli": "6.3.0", + "cli": "6.4.0", "cli+FILLER": "0.0.0", "plugins/source/aws": "22.19.2", "plugins/source/aws+FILLER": "0.0.0", @@ -13,45 +13,43 @@ "plugins/source/gcp+FILLER": "0.0.0", "plugins/source/github": "9.3.0", "plugins/source/github+FILLER": "0.0.0", - "plugins/source/k8s": "6.2.3", - "plugins/source/k8s+FILLER": "0.0.0", "plugins/source/okta": "4.1.9", "plugins/source/okta+FILLER": "0.0.0", "plugins/source/terraform": "3.0.12", "plugins/source/terraform+FILLER": "0.0.0", - "plugins/source/test": "4.3.3", + "plugins/source/test": "4.3.5", "plugins/source/test+FILLER": "0.0.0", - "plugins/destination/postgresql": "8.3.1", + "plugins/destination/postgresql": "8.5.0", "plugins/destination/postgresql+FILLER": "0.0.0", - "plugins/destination/test": "2.3.22", + "plugins/destination/test": "2.3.24", "plugins/destination/test+FILLER": "0.0.0", - "plugins/destination/sqlite": "2.9.8", + "plugins/destination/sqlite": "2.9.10", "plugins/destination/sqlite+FILLER": "0.0.0", - "plugins/destination/snowflake": "4.2.3", + "plugins/destination/snowflake": "4.2.5", "plugins/destination/snowflake+FILLER": "0.0.0", "plugins/source/datadog": "4.3.10", "plugins/source/datadog+FILLER": "0.0.0", - "plugins/destination/bigquery": "4.1.3", + "plugins/destination/bigquery": "4.1.5", "plugins/destination/bigquery+FILLER": "0.0.0", "plugins/source/pagerduty": "3.2.8", "plugins/source/pagerduty+FILLER": "0.0.0", - "plugins/destination/mongodb": "2.5.3", + "plugins/destination/mongodb": "2.5.5", "plugins/destination/mongodb+FILLER": "0.0.0", "plugins/source/gitlab": "4.3.5", "plugins/source/gitlab+FILLER": "0.0.0", - "plugins/destination/gcs": "5.1.8", + "plugins/destination/gcs": "5.2.0", "plugins/destination/gcs+FILLER": "0.0.0", - "plugins/destination/s3": "7.3.4", + "plugins/destination/s3": "7.4.1", "plugins/destination/s3+FILLER": "0.0.0", - "plugins/destination/file": "5.1.9", + "plugins/destination/file": "5.2.0", "plugins/destination/file+FILLER": "0.0.0", - "plugins/destination/azblob": "4.1.9", + "plugins/destination/azblob": "4.2.0", "plugins/destination/azblob+FILLER": "0.0.0", - "plugins/destination/neo4j": "5.3.3", + "plugins/destination/neo4j": "5.3.5", "plugins/destination/neo4j+FILLER": "0.0.0", - "plugins/destination/kafka": "5.0.8", + "plugins/destination/kafka": "5.1.0", "plugins/destination/kafka+FILLER": "0.0.0", - "plugins/source/hackernews": "3.5.0", + "plugins/source/hackernews": "3.5.2", "plugins/source/hackernews+FILLER": "0.0.0", "scaffold": "3.2.0", "scaffold+FILLER": "0.0.0", @@ -59,50 +57,51 @@ "plugins/source/oracle+FILLER": "0.0.0", "plugins/source/alicloud": "4.1.9", "plugins/source/alicloud+FILLER": "0.0.0", - "plugins/destination/mssql": "4.7.3", + "plugins/destination/mssql": "4.7.5", "plugins/destination/mssql+FILLER": "0.0.0", "plugins/source/stripe": "2.1.12", "plugins/source/stripe+FILLER": "0.0.0", "plugins/source/hubspot": "3.1.9", "plugins/source/hubspot+FILLER": "0.0.0", - "plugins/destination/elasticsearch": "3.4.3", + "plugins/destination/elasticsearch": "3.4.5", "plugins/destination/elasticsearch+FILLER": "0.0.0", - "plugins/destination/clickhouse": "4.2.3", + "plugins/destination/clickhouse": "5.0.0", "plugins/destination/clickhouse+FILLER": "0.0.0", "plugins/source/postgresql": "3.0.7", "plugins/source/postgresql+FILLER": "0.0.0", "plugins/source/homebrew": "3.0.13", "plugins/source/homebrew+FILLER": "0.0.0", - "plugins/destination/mysql": "5.2.3", + "plugins/destination/mysql": "5.2.5", "plugins/destination/mysql+FILLER": "0.0.0", - "plugins/destination/firehose": "2.5.8", + "plugins/destination/firehose": "2.5.10", "plugins/destination/firehose+FILLER": "0.0.0", "plugins/source/awspricing": "3.1.5", "plugins/source/awspricing+FILLER": "0.0.0", - "plugins/destination/duckdb": "5.9.8", + "plugins/destination/duckdb": "5.9.10", "plugins/destination/duckdb+FILLER": "0.0.0", "plugins/source/mysql": "2.0.12", "plugins/source/mysql+FILLER": "0.0.0", - "plugins/destination/gremlin": "2.5.8", + "plugins/destination/gremlin": "2.5.10", "plugins/destination/gremlin+FILLER": "0.0.0", - "plugins/destination/meilisearch": "2.4.8", + "plugins/destination/meilisearch": "2.4.10", "plugins/destination/meilisearch+FILLER": "1.0.0", "plugins/source/firestore": "3.1.9", "plugins/source/firestore+FILLER": "0.0.0", "plugins/source/oracledb": "3.0.12", "plugins/source/oracledb+FILLER": "0.0.0", - "plugins/source/square": "1.3.6", + "plugins/source/square": "1.3.7", "plugins/source/square+FILLER": "0.0.0", - "plugins/source/typeform": "1.5.2", + "plugins/source/typeform": "1.5.3", "plugins/source/typeform+FILLER": "0.0.0", "plugins/source/jira": "1.0.10", "plugins/source/jira+FILLER": "0.0.0", "plugins/source/vault": "1.0.8", "plugins/source/vault+FILLER": "0.0.0", - "plugins/source/airtable": "2.2.6", + "plugins/source/airtable": "2.2.7", "plugins/source/airtable+FILLER": "0.0.0", "plugins/source/bitbucket": "1.3.2", "plugins/source/bitbucket+FILLER": "0.0.0", "plugins/source/notion": "1.1.8", - "plugins/source/xkcd": "1.3.0" + "plugins/source/xkcd": "1.3.2", + "plugins/transformer/basic": "1.0.1" } diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 26ec28f6d35d83..c0567fc851734e 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -5,6 +5,21 @@ All notable changes to CloudQuery will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [6.4.0](https://github.com/cloudquery/cloudquery/compare/cli-v6.3.0...cli-v6.4.0) (2024-08-13) + + +### Features + +* Enable StateClient usage under docker plugins. ([#18880](https://github.com/cloudquery/cloudquery/issues/18880)) ([2d542da](https://github.com/cloudquery/cloudquery/commit/2d542dac2ad412387ef1cfda48753c181980c634)) +* Enable user to override `invocation_id` ([#18878](https://github.com/cloudquery/cloudquery/issues/18878)) ([3af7f5e](https://github.com/cloudquery/cloudquery/commit/3af7f5ee72c1131bb4c8191498dfc50e32546568)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.12.7 ([#18865](https://github.com/cloudquery/cloudquery/issues/18865)) ([32a17d8](https://github.com/cloudquery/cloudquery/commit/32a17d8138aa3bccb717adab7d1e4405061c7530)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + ## [6.3.0](https://github.com/cloudquery/cloudquery/compare/cli-v6.2.0...cli-v6.3.0) (2024-08-05) diff --git a/cli/cmd/login.go b/cli/cmd/login.go index c628519f779f76..f13f5c77344341 100644 --- a/cli/cmd/login.go +++ b/cli/cmd/login.go @@ -198,7 +198,7 @@ func runLogin(ctx context.Context, cmd *cobra.Command) (err error) { return serverErr } - analytics.TrackLoginSuccess(ctx, invocationUUID) + analytics.TrackLoginSuccess(ctx, invocationUUID.UUID) cmd.Println("CLI successfully authenticated.") return nil diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 0238794497f842..3c07edda45bdce 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -5,12 +5,12 @@ import ( "os" "time" - "github.com/google/uuid" - "github.com/rs/zerolog" - analytics "github.com/cloudquery/cloudquery/cli/internal/analytics" "github.com/cloudquery/cloudquery/cli/internal/enum" "github.com/cloudquery/cloudquery/cli/internal/env" + "github.com/cloudquery/cloudquery/cli/internal/uuid" + guuid "github.com/google/uuid" + "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/spf13/cobra" "github.com/thoas/go-funk" @@ -42,6 +42,11 @@ func NewCmdRoot() *cobra.Command { noLogFile := false logFileName := "cloudquery.log" sentryDsn := sentryDsnDefault + var err error + if invocationUUID.UUID, err = guuid.NewRandom(); err != nil { + fmt.Fprintf(os.Stderr, "failed to generate invocation uuid: %v", err) + os.Exit(1) + } // support legacy telemetry environment variable, // but the newer CQ_TELEMETRY_LEVEL environment variable takes precedence @@ -50,9 +55,9 @@ func NewCmdRoot() *cobra.Command { if legacyTelemetry != "" { defaultTelemetryValue = "none" } - err := telemetryLevel.Set(env.GetEnvOrDefault("CQ_TELEMETRY_LEVEL", defaultTelemetryValue)) + err = telemetryLevel.Set(env.GetEnvOrDefault("CQ_TELEMETRY_LEVEL", defaultTelemetryValue)) if err != nil { - fmt.Fprintf(os.Stderr, "failed to set telemetry level: "+err.Error()) + fmt.Fprintf(os.Stderr, "failed to set telemetry level: %v", err) os.Exit(1) } @@ -71,11 +76,6 @@ func NewCmdRoot() *cobra.Command { cmd.SilenceUsage = true var err error - invocationUUID, err = uuid.NewRandom() - if err != nil { - return fmt.Errorf("failed to generate invocation uuid: %w", err) - } - if logFile, err = initLogging(noLogFile, logLevel, logFormat, logConsole, logFileName); err != nil { return err } @@ -133,6 +133,8 @@ func NewCmdRoot() *cobra.Command { f := cmd.PersistentFlags().VarPF(telemetryLevel, "telemetry-level", "", "Telemetry level (none, errors, stats, all)") f.DefValue = "all" + iUUID := cmd.PersistentFlags().VarPF(&invocationUUID, "invocation-id", "", "useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services") + iUUID.DefValue = "" cmd.SetHelpCommand(&cobra.Command{Hidden: true}) pluginCmd := &cobra.Command{ diff --git a/cli/cmd/sync.go b/cli/cmd/sync.go index ab671203bb42e7..97991622884455 100644 --- a/cli/cmd/sync.go +++ b/cli/cmd/sync.go @@ -141,6 +141,10 @@ func sync(cmd *cobra.Command, args []string) error { } } + // To force backend destinations to use TCP if the sources are using Docker + backendsForDockerSource := map[string]struct{}{} // destination plugin names + dockerSourcesUsingBackends := map[string]struct{}{} // source plugin names + for _, source := range sources { if source.OtelEndpoint == "" && otelReceiver != nil { source.OtelEndpoint = otelReceiver.Endpoint @@ -153,6 +157,12 @@ func sync(cmd *cobra.Command, args []string) error { managedplugin.WithTeamName(teamName), managedplugin.WithLicenseFile(licenseFile), } + // To force backend destinations to use TCP if the sources are using Docker + if source.Registry == specs.RegistryDocker && source.BackendOptions.PluginName() != "" { + opts = append(opts, managedplugin.WithDockerExtraHosts([]string{"host.docker.internal:host-gateway"})) + backendsForDockerSource[source.BackendOptions.PluginName()] = struct{}{} + dockerSourcesUsingBackends[source.Name] = struct{}{} + } if logConsole { opts = append(opts, managedplugin.WithNoProgress()) } @@ -195,6 +205,9 @@ func sync(cmd *cobra.Command, args []string) error { managedplugin.WithTeamName(teamName), managedplugin.WithLicenseFile(licenseFile), } + if _, ok := backendsForDockerSource[destination.Name]; ok { + opts = append(opts, managedplugin.WithUseTCP()) + } if logConsole { opts = append(opts, managedplugin.WithNoProgress()) } @@ -325,9 +338,11 @@ func sync(cmd *cobra.Command, args []string) error { } } + _, shouldReplaceLocalhost := dockerSourcesUsingBackends[source.Name] src := v3source{ - client: cl, - spec: *source, + client: cl, + spec: *source, + shouldReplaceLocalhost: shouldReplaceLocalhost, } dests := make([]v3destination, 0, len(destinationClientsForSource)) for i, destination := range destinationClientsForSource { diff --git a/cli/cmd/sync_v3.go b/cli/cmd/sync_v3.go index a9a6d0cab3f8de..1d4ebb39cb565c 100644 --- a/cli/cmd/sync_v3.go +++ b/cli/cmd/sync_v3.go @@ -35,6 +35,11 @@ import ( type v3source struct { client *managedplugin.Client spec specs.Source + + // If true, source is running in docker and communicates + // to a backend in the host system. It must replace localhost + // with host.docker.internal. + shouldReplaceLocalhost bool } type v3destination struct { @@ -80,14 +85,14 @@ func syncConnectionV3(ctx context.Context, source v3source, destinations []v3des Source: sourceSpec, Destinations: destinationSpecs, } - analytics.TrackSyncStarted(ctx, invocationUUID, syncStartedEvent) + analytics.TrackSyncStarted(ctx, invocationUUID.UUID, syncStartedEvent) var ( syncTimeTook time.Duration totalResources = int64(0) totals = sourceClient.Metrics() ) defer func() { - analytics.TrackSyncCompleted(ctx, invocationUUID, analytics.SyncFinishedEvent{ + analytics.TrackSyncCompleted(ctx, invocationUUID.UUID, analytics.SyncFinishedEvent{ SyncStartedEvent: syncStartedEvent, Errors: totals.Errors, Warnings: totals.Warnings, @@ -203,7 +208,7 @@ func syncConnectionV3(ctx context.Context, source v3source, destinations []v3des if err != nil { return fmt.Errorf("failed to marshal source spec JSON before variable replacement: %w", err) } - specBytesExpanded, err := specs.ReplaceVariables(string(specBytes), variables) + specBytesExpanded, err := specs.ReplaceVariables(string(specBytes), variables, source.shouldReplaceLocalhost) if err != nil { return fmt.Errorf("failed to replace variables: %w", err) } diff --git a/cli/go.mod b/cli/go.mod index 57e40d6cbd3eda..1e1aef60988984 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -6,10 +6,10 @@ require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/bradleyjkemp/cupaloy/v2 v2.8.0 github.com/cenkalti/backoff/v4 v4.3.0 - github.com/cloudquery/cloudquery-api-go v1.12.6 + github.com/cloudquery/cloudquery-api-go v1.12.7 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-pb-go v1.21.5 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-pb-go v1.22.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/distribution/reference v0.6.0 github.com/docker/distribution v2.8.3+incompatible github.com/docker/docker v26.1.5+incompatible diff --git a/cli/go.sum b/cli/go.sum index 0a32309874077c..0c15388fb719b3 100644 --- a/cli/go.sum +++ b/cli/go.sum @@ -28,18 +28,18 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3 github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/godebouncer v0.0.0-20240220152946-054f7dbbcf18 h1:5Wy7tEhLm3l3+9ibNABU4EWKSRtCeiFTzGpJtNrGrtE= github.com/cloudquery/godebouncer v0.0.0-20240220152946-054f7dbbcf18/go.mod h1:0Rxvtp9fhnRCt+k4QrpXY0OPUyyjF0zVO7wCrnsqsCU= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= diff --git a/cli/internal/specs/v0/source.go b/cli/internal/specs/v0/source.go index 85514ef671016c..e278f9986a14b9 100644 --- a/cli/internal/specs/v0/source.go +++ b/cli/internal/specs/v0/source.go @@ -5,6 +5,7 @@ import ( "encoding/json" "errors" "slices" + "strings" "github.com/invopop/jsonschema" ) @@ -19,6 +20,17 @@ type BackendOptions struct { Connection string `json:"connection,omitempty" jsonschema:"required,minLength=1"` } +// PluginName returns the name of the plugin from the connection string variable. +// +// Note that `Connection` gets string replaced with the actual connection value during the sync +// process, so calling this function will only work before the sync process starts. +func (b *BackendOptions) PluginName() string { + if b == nil || !strings.HasPrefix(b.Connection, "@@plugins.") { + return "" + } + return strings.Split(b.Connection, ".")[1] +} + // Source plugin spec type Source struct { Metadata diff --git a/cli/internal/specs/v0/source_test.go b/cli/internal/specs/v0/source_test.go index ba319db6a70e74..7f6f8d6f2b5344 100644 --- a/cli/internal/specs/v0/source_test.go +++ b/cli/internal/specs/v0/source_test.go @@ -644,3 +644,42 @@ func TestSource_JSONSchemaExtend(t *testing.T) { }, }) } + +func TestBackendOptionsPluginName(t *testing.T) { + tests := []struct { + name string + options *BackendOptions + expected string + }{ + { + name: "nil doesn't blow up", + options: nil, + expected: "", + }, + { + name: "No interpolation results in empty plugin name", + options: &BackendOptions{ + TableName: "test_table", + Connection: "localhost:7777", + }, + expected: "", + }, + { + name: "Proper variable name results in correct plugin name", + options: &BackendOptions{ + TableName: "test_table", + Connection: "@@plugins.aws.connection", + }, + expected: "aws", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + actual := tt.options.PluginName() + if actual != tt.expected { + t.Errorf("unexpected plugin name, got: %s, want: %s", actual, tt.expected) + } + }) + } +} diff --git a/cli/internal/specs/v0/variables.go b/cli/internal/specs/v0/variables.go index 59f1850dedfe81..101bbd423f0204 100644 --- a/cli/internal/specs/v0/variables.go +++ b/cli/internal/specs/v0/variables.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "regexp" + "strings" "github.com/thoas/go-funk" ) @@ -21,7 +22,7 @@ var reVariables = regexp.MustCompile(`@@(plugins\.[a-zA-Z0-9_\.-]+)`) // ReplaceVariables replaces variables starting with @@ in the src string // with the values from the values from variables by dot notation. // Example: @@plugins.aws.connection will be replaced with the value of variables.Plugins["aws"].Connection -func ReplaceVariables(src string, variables Variables) (string, error) { +func ReplaceVariables(src string, variables Variables, shouldReplaceLocalhost bool) (string, error) { var lastErr error bytes, err := json.Marshal(variables) if err != nil { @@ -44,6 +45,13 @@ func ReplaceVariables(src string, variables Variables) (string, error) { lastErr = fmt.Errorf("variable %s is not a string", variablePath) return s } + // Edge case: if the plugin whose spec's variables are being replaced is a docker plugin, + // it won't be able to connect to localhost, so we replace localhost with host.docker.internal + if strings.HasPrefix(variablePath, "plugins.") && strings.HasSuffix(variablePath, ".connection") && shouldReplaceLocalhost { + for _, needle := range []string{"localhost", "0.0.0.0", "127.0.0.1"} { + resString = strings.ReplaceAll(resString, needle, "host.docker.internal") + } + } // make safe for replacement into JSON string v, err := json.Marshal(resString) if err != nil { diff --git a/cli/internal/specs/v0/variables_test.go b/cli/internal/specs/v0/variables_test.go index e3f6038080410d..2f0736adf2039e 100644 --- a/cli/internal/specs/v0/variables_test.go +++ b/cli/internal/specs/v0/variables_test.go @@ -3,47 +3,72 @@ package specs import "testing" func TestReplaceVariables(t *testing.T) { - vars := Variables{ - Plugins: map[string]PluginVariables{ - "aws": { - Connection: "test", - }, - }, - } cases := []struct { - src string - variables Variables - expect string - expectErr bool + src string + connection string + shouldReplaceLocalhost bool + expect string + expectErr bool }{ { - src: "test", - variables: vars, - expect: "test", + src: "test", + connection: "localhost:7777", + expect: "test", + }, + { + src: "@@something", + connection: "localhost:7777", + expect: "@@something", + }, + { + src: "@@plugins.aws", + connection: "localhost:7777", + expectErr: true, }, { - src: "@@something", - variables: vars, - expect: "@@something", + src: "@@plugins.aws.connection", + connection: "localhost:7777", + expect: "localhost:7777", }, { - src: "@@plugins.aws", - variables: vars, - expectErr: true, + src: "inside @@plugins.aws.connection string multiple times @@plugins.aws.connection", + connection: "localhost:7777", + expect: "inside localhost:7777 string multiple times localhost:7777", }, { - src: "@@plugins.aws.connection", - variables: vars, - expect: "test", + src: "nothing to replace", + connection: "localhost:7777", + shouldReplaceLocalhost: true, + expect: "nothing to replace", }, { - src: "inside @@plugins.aws.connection string multiple times @@plugins.aws.connection", - variables: vars, - expect: "inside test string multiple times test", + src: "@@plugins.aws.connection", + connection: "localhost:7777", + shouldReplaceLocalhost: true, + expect: "host.docker.internal:7777", + }, + { + src: "@@plugins.aws.connection", + connection: "127.0.0.1:7777", + shouldReplaceLocalhost: true, + expect: "host.docker.internal:7777", + }, + { + src: "@@plugins.aws.connection", + connection: "0.0.0.0:7777", + shouldReplaceLocalhost: true, + expect: "host.docker.internal:7777", }, } for _, c := range cases { - res, err := ReplaceVariables(c.src, c.variables) + vars := Variables{ + Plugins: map[string]PluginVariables{ + "aws": { + Connection: c.connection, + }, + }, + } + res, err := ReplaceVariables(c.src, vars, c.shouldReplaceLocalhost) if err != nil && !c.expectErr { t.Fatalf("ReplaceVariables(%q) got unexpected error: %v", c.src, err) } else if err == nil && c.expectErr { diff --git a/cli/internal/uuid/uuid.go b/cli/internal/uuid/uuid.go new file mode 100644 index 00000000000000..d90d155c479550 --- /dev/null +++ b/cli/internal/uuid/uuid.go @@ -0,0 +1,21 @@ +package uuid + +import ( + guuid "github.com/google/uuid" +) + +// https://github.com/spf13/pflag/issues/236#issuecomment-931600452 + +type UUID struct { + guuid.UUID +} + +func (u *UUID) Set(str string) error { + var err error + u.UUID, err = guuid.Parse(str) + return err +} + +func (*UUID) Type() string { + return "uuid" +} diff --git a/plugins/destination/azblob/CHANGELOG.md b/plugins/destination/azblob/CHANGELOG.md index 8f36040f86e31d..b219d6e89fc2bc 100644 --- a/plugins/destination/azblob/CHANGELOG.md +++ b/plugins/destination/azblob/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [4.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-azblob-v4.1.10...plugins-destination-azblob-v4.2.0) (2024-08-13) + + +### Features + +* Document new parquet options ([#18919](https://github.com/cloudquery/cloudquery/issues/18919)) ([2432c58](https://github.com/cloudquery/cloudquery/commit/2432c58b413ad053b12bbf6679bcd981171f6903)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/filetypes/v4 to v4.3.0 ([#18917](https://github.com/cloudquery/cloudquery/issues/18917)) ([727ed92](https://github.com/cloudquery/cloudquery/commit/727ed92b39161137ceea2f99e89b70c3cb732eae)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [4.1.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-azblob-v4.1.9...plugins-destination-azblob-v4.1.10) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [4.1.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-azblob-v4.1.8...plugins-destination-azblob-v4.1.9) (2024-07-30) diff --git a/plugins/destination/azblob/client/spec/schema.json b/plugins/destination/azblob/client/spec/schema.json index 426772117bcf45..1d6f8400fb4486 100644 --- a/plugins/destination/azblob/client/spec/schema.json +++ b/plugins/destination/azblob/client/spec/schema.json @@ -32,6 +32,30 @@ "description": "CloudQuery JSON file output spec." }, "ParquetSpec": { + "properties": { + "version": { + "type": "string", + "enum": [ + "v1.0", + "v2.4", + "v2.6", + "v2Latest" + ], + "description": "Parquet format version", + "default": "v2Latest" + }, + "root_repetition": { + "type": "string", + "enum": [ + "undefined", + "required", + "optional", + "repeated" + ], + "description": "Root repetition", + "default": "repeated" + } + }, "additionalProperties": false, "type": "object", "description": "CloudQuery Parquet file output spec." diff --git a/plugins/destination/azblob/docs/_configuration.md b/plugins/destination/azblob/docs/_configuration.md index e8993d3a11f7fe..3d187b0c5b9c72 100644 --- a/plugins/destination/azblob/docs/_configuration.md +++ b/plugins/destination/azblob/docs/_configuration.md @@ -12,9 +12,12 @@ spec: format: "csv" # options: parquet, json, csv format_spec: - # CSV-specific parameters: + # CSV specific parameters: # delimiter: "," # skip_header: false + # Parquet specific parameters: + # version: "v2Latest" + # root_repetition: "repeated" # Optional parameters # compression: "" # options: gzip diff --git a/plugins/destination/azblob/docs/overview.md b/plugins/destination/azblob/docs/overview.md index 174ae7ea84aae6..5eebc181d4a1df 100644 --- a/plugins/destination/azblob/docs/overview.md +++ b/plugins/destination/azblob/docs/overview.md @@ -71,10 +71,31 @@ This is the (nested) spec used by the Azure blob destination Plugin. ### format_spec +#### CSV + - `delimiter` (`string`) (optional) (default: `,`) - Character that will be used as want to use as the delimiter if the format type is `csv`. + Delimiter to use in the CSV file. - `skip_header` (`boolean`) (optional) (default: `false`) - Specifies if the first line of a file should be the headers (when format is `csv`). + If set to `true`, the CSV file will not contain a header row as the first row. + +#### JSON + +Reserved for future use. + +#### Parquet + +- `version` (`string`) (optional) (default: `v2Latest`) + + Parquet format version to use. Supported values are `v1.0`, `v2.4`, `v2.6` and `v2Latest`. + `v2Latest` is an alias for the latest version available in the Parquet library which is currently `v2.6`. + + Useful when the reader consuming the Parquet files does not support the latest version. + +- `root_repetition` (`string`) (optional) (default: `repeated`) + + [Repetition option to use for the root node](https://github.com/apache/arrow/issues/20243). Supported values are `undefined`, `required`, `optional` and `repeated`. + + Some Parquet readers require a specific root repetition option to be able to read the file. For example, importing Parquet files into [Snowflake](https://www.snowflake.com/en/) requires the root repetition to be `undefined`. diff --git a/plugins/destination/azblob/go.mod b/plugins/destination/azblob/go.mod index 3eabc4f91e9b8a..75d1c7763793b5 100644 --- a/plugins/destination/azblob/go.mod +++ b/plugins/destination/azblob/go.mod @@ -7,8 +7,8 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.4.0 github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/filetypes/v4 v4.2.29 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/filetypes/v4 v4.3.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -44,8 +44,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/azblob/go.sum b/plugins/destination/azblob/go.sum index fd7181ec2ee533..2526efd14f40ec 100644 --- a/plugins/destination/azblob/go.sum +++ b/plugins/destination/azblob/go.sum @@ -62,20 +62,20 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= -github.com/cloudquery/filetypes/v4 v4.2.29 h1:yF98+0oPE3VisyNvZ5ucJm8DHOxP60IHt2HnXTYCe/I= -github.com/cloudquery/filetypes/v4 v4.2.29/go.mod h1:wKzaBzu6qnM1NqwZt/YvhvPvjclP3JSR17qjiXfVh3w= +github.com/cloudquery/filetypes/v4 v4.3.0 h1:/hcmVSd0WapY2qwcE5DxOS/K9Kdr0ZQ61CvWRDVu2/4= +github.com/cloudquery/filetypes/v4 v4.3.0/go.mod h1:omacXbRpAEGAJAYh0lUzBGsnwj+5ACgH5irQWNmMWq0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/bigquery/CHANGELOG.md b/plugins/destination/bigquery/CHANGELOG.md index 3ea943d099747a..3d951e48a8dd84 100644 --- a/plugins/destination/bigquery/CHANGELOG.md +++ b/plugins/destination/bigquery/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## [4.1.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-bigquery-v4.1.4...plugins-destination-bigquery-v4.1.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) +* **deps:** Update module google.golang.org/api to v0.191.0 ([#18907](https://github.com/cloudquery/cloudquery/issues/18907)) ([2812bd4](https://github.com/cloudquery/cloudquery/commit/2812bd46b1bc5167f7cc4c885d2ff33de50e5c0c)) + +## [4.1.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-bigquery-v4.1.3...plugins-destination-bigquery-v4.1.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) +* **deps:** Update module google.golang.org/api to v0.190.0 ([#18846](https://github.com/cloudquery/cloudquery/issues/18846)) ([b7afadf](https://github.com/cloudquery/cloudquery/commit/b7afadfd45191be3ab944647a3e57d1fcf8ebb5d)) + ## [4.1.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-bigquery-v4.1.2...plugins-destination-bigquery-v4.1.3) (2024-07-30) diff --git a/plugins/destination/bigquery/go.mod b/plugins/destination/bigquery/go.mod index 298f26fd09d368..3272326ef0bd24 100644 --- a/plugins/destination/bigquery/go.mod +++ b/plugins/destination/bigquery/go.mod @@ -6,12 +6,12 @@ require ( cloud.google.com/go/bigquery v1.62.0 github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.33.0 - golang.org/x/sync v0.7.0 - google.golang.org/api v0.190.0 + golang.org/x/sync v0.8.0 + google.golang.org/api v0.191.0 ) require ( @@ -38,8 +38,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect @@ -78,7 +78,7 @@ require ( golang.org/x/crypto v0.25.0 // indirect golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/mod v0.19.0 // indirect - golang.org/x/time v0.5.0 // indirect + golang.org/x/time v0.6.0 // indirect golang.org/x/tools v0.23.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240730163845-b1a4ccb954bf // indirect @@ -104,7 +104,7 @@ require ( github.com/thoas/go-funk v0.9.3 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/net v0.27.0 // indirect; indirect // indirect - golang.org/x/oauth2 v0.21.0 // indirect + golang.org/x/oauth2 v0.22.0 // indirect golang.org/x/sys v0.22.0 // indirect golang.org/x/text v0.16.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/plugins/destination/bigquery/go.sum b/plugins/destination/bigquery/go.sum index 2c070b70e1bf10..3b2295902a6669 100644 --- a/plugins/destination/bigquery/go.sum +++ b/plugins/destination/bigquery/go.sum @@ -68,18 +68,18 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3 github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -268,13 +268,13 @@ golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= +golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -290,8 +290,8 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= +golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -304,8 +304,8 @@ golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSm golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= gonum.org/v1/gonum v0.15.0 h1:2lYxjRbTYyxkJxlhC+LvJIx3SsANPdRybu1tGj9/OrQ= gonum.org/v1/gonum v0.15.0/go.mod h1:xzZVBJBtS+Mz4q0Yl2LJTk+OxOg4jiXZ7qBoM0uISGo= -google.golang.org/api v0.190.0 h1:ASM+IhLY1zljNdLu19W1jTmU6A+gMk6M46Wlur61s+Q= -google.golang.org/api v0.190.0/go.mod h1:QIr6I9iedBLnfqoD6L6Vze1UvS5Hzj5r2aUBOaZnLHo= +google.golang.org/api v0.191.0 h1:cJcF09Z+4HAB2t5qTQM1ZtfL/PemsLFkcFG67qq2afk= +google.golang.org/api v0.191.0/go.mod h1:tD5dsFGxFza0hnQveGfVk9QQYKcfp+VzgRqyXFxE0+E= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= diff --git a/plugins/destination/clickhouse/CHANGELOG.md b/plugins/destination/clickhouse/CHANGELOG.md index b66bdc3cbb49c1..6600ce76194e60 100644 --- a/plugins/destination/clickhouse/CHANGELOG.md +++ b/plugins/destination/clickhouse/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [5.0.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-clickhouse-v4.2.4...plugins-destination-clickhouse-v5.0.0) (2024-08-13) + + +### ⚠ BREAKING CHANGES + +* Use an arrow date type for clickhouse dates ([#18914](https://github.com/cloudquery/cloudquery/issues/18914)) + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) +* Use an arrow date type for clickhouse dates ([#18914](https://github.com/cloudquery/cloudquery/issues/18914)) ([fcb8170](https://github.com/cloudquery/cloudquery/commit/fcb8170efab34c6dcc1e1a4c3d455ab937cdf909)) + +## [4.2.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-clickhouse-v4.2.3...plugins-destination-clickhouse-v4.2.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update golang.org/x/exp digest to 8a7402a ([#18799](https://github.com/cloudquery/cloudquery/issues/18799)) ([feed49d](https://github.com/cloudquery/cloudquery/commit/feed49d232ebd93cfc84148ba0991adc97321600)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [4.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-clickhouse-v4.2.2...plugins-destination-clickhouse-v4.2.3) (2024-07-30) diff --git a/plugins/destination/clickhouse/go.mod b/plugins/destination/clickhouse/go.mod index ad935e8dfd0b3c..8b6eff7f612af1 100644 --- a/plugins/destination/clickhouse/go.mod +++ b/plugins/destination/clickhouse/go.mod @@ -6,7 +6,7 @@ require ( github.com/ClickHouse/clickhouse-go/v2 v2.10.1 github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/google/uuid v1.6.0 github.com/rs/zerolog v1.33.0 @@ -50,8 +50,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/clickhouse/go.sum b/plugins/destination/clickhouse/go.sum index 4d6665ea8a003c..2ea8c6040ec858 100644 --- a/plugins/destination/clickhouse/go.sum +++ b/plugins/destination/clickhouse/go.sum @@ -50,18 +50,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/clickhouse/typeconv/arrow/types/field.go b/plugins/destination/clickhouse/typeconv/arrow/types/field.go index 09c88f0f82e46e..380fe9cd5a741f 100644 --- a/plugins/destination/clickhouse/typeconv/arrow/types/field.go +++ b/plugins/destination/clickhouse/typeconv/arrow/types/field.go @@ -49,7 +49,7 @@ func fieldFromColumn(col column.Interface) (*arrow.Field, error) { } return &arrow.Field{Name: name, Type: &arrow.FixedSizeBinaryType{ByteWidth: byteWidth}}, nil - case *column.Date32: + case *column.Date, *column.Date32: return &arrow.Field{Name: name, Type: new(arrow.Date32Type)}, nil case *column.DateTime: diff --git a/plugins/destination/clickhouse/typeconv/arrow/types/field_test.go b/plugins/destination/clickhouse/typeconv/arrow/types/field_test.go index dd69dd71cd2428..e60a584c340c2d 100644 --- a/plugins/destination/clickhouse/typeconv/arrow/types/field_test.go +++ b/plugins/destination/clickhouse/typeconv/arrow/types/field_test.go @@ -22,7 +22,7 @@ func TestField(t *testing.T) { {columnType: "Float32", expected: new(arrow.Float32Type)}, {columnType: "Float64", expected: new(arrow.Float64Type)}, {columnType: "FixedString(125)", expected: &arrow.FixedSizeBinaryType{ByteWidth: 125}}, - {columnType: "Date", expected: new(arrow.StringType)}, + {columnType: "Date", expected: new(arrow.Date32Type)}, {columnType: "Date32", expected: new(arrow.Date32Type)}, {columnType: "UUID", expected: new(types.UUIDType)}, } { diff --git a/plugins/destination/duckdb/CHANGELOG.md b/plugins/destination/duckdb/CHANGELOG.md index 2a96f6ed6d2489..d0ebfb87889270 100644 --- a/plugins/destination/duckdb/CHANGELOG.md +++ b/plugins/destination/duckdb/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [5.9.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-duckdb-v5.9.9...plugins-destination-duckdb-v5.9.10) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [5.9.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-duckdb-v5.9.8...plugins-destination-duckdb-v5.9.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) +* DuckDB connections to Motherduck failing due to outdated extension version. ([#18856](https://github.com/cloudquery/cloudquery/issues/18856)) ([2c9badd](https://github.com/cloudquery/cloudquery/commit/2c9badd17830196d1394a6189543ae2edfbdf97c)) + ## [5.9.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-duckdb-v5.9.7...plugins-destination-duckdb-v5.9.8) (2024-07-30) diff --git a/plugins/destination/duckdb/go.mod b/plugins/destination/duckdb/go.mod index 817be43c86c0d7..18efa824c3b3e8 100644 --- a/plugins/destination/duckdb/go.mod +++ b/plugins/destination/duckdb/go.mod @@ -6,9 +6,9 @@ require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cenkalti/backoff/v4 v4.3.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/google/uuid v1.6.0 - github.com/marcboeker/go-duckdb v1.6.4 + github.com/marcboeker/go-duckdb v1.7.0 github.com/rs/zerolog v1.33.0 ) @@ -36,8 +36,8 @@ require ( github.com/aws/smithy-go v1.20.3 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/duckdb/go.sum b/plugins/destination/duckdb/go.sum index cf03b2830d1371..35c0cdbf329f07 100644 --- a/plugins/destination/duckdb/go.sum +++ b/plugins/destination/duckdb/go.sum @@ -52,18 +52,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -121,8 +121,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/marcboeker/go-duckdb v1.6.4 h1:p7iFopIcIWoHZStQhvQ+ffhKL3ExM/oXdXAUI62gBWE= -github.com/marcboeker/go-duckdb v1.6.4/go.mod h1:WtWeqqhZoTke/Nbd7V9lnBx7I2/A/q0SAq/urGzPCMs= +github.com/marcboeker/go-duckdb v1.7.0 h1:c9DrS13ta+gqVgg9DiEW8I+PZBE85nBMLL/YMooYoUY= +github.com/marcboeker/go-duckdb v1.7.0/go.mod h1:WtWeqqhZoTke/Nbd7V9lnBx7I2/A/q0SAq/urGzPCMs= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= diff --git a/plugins/destination/elasticsearch/CHANGELOG.md b/plugins/destination/elasticsearch/CHANGELOG.md index c03ac549b513b3..5c660d56af6282 100644 --- a/plugins/destination/elasticsearch/CHANGELOG.md +++ b/plugins/destination/elasticsearch/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [3.4.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-elasticsearch-v3.4.4...plugins-destination-elasticsearch-v3.4.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [3.4.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-elasticsearch-v3.4.3...plugins-destination-elasticsearch-v3.4.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update golang.org/x/exp digest to 8a7402a ([#18799](https://github.com/cloudquery/cloudquery/issues/18799)) ([feed49d](https://github.com/cloudquery/cloudquery/commit/feed49d232ebd93cfc84148ba0991adc97321600)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [3.4.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-elasticsearch-v3.4.2...plugins-destination-elasticsearch-v3.4.3) (2024-07-30) diff --git a/plugins/destination/elasticsearch/go.mod b/plugins/destination/elasticsearch/go.mod index 2c3c28d04275bc..268b3afe845579 100644 --- a/plugins/destination/elasticsearch/go.mod +++ b/plugins/destination/elasticsearch/go.mod @@ -6,7 +6,7 @@ require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cenkalti/backoff/v4 v4.3.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/elastic/go-elasticsearch/v8 v8.6.0 github.com/goccy/go-json v0.10.3 github.com/invopop/jsonschema v0.12.0 @@ -38,8 +38,8 @@ require ( github.com/aws/smithy-go v1.20.3 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/elastic/elastic-transport-go/v8 v8.0.0-20211216131617-bbee439d559c // indirect diff --git a/plugins/destination/elasticsearch/go.sum b/plugins/destination/elasticsearch/go.sum index 1508239c1466dc..fac0a8eb5af6fd 100644 --- a/plugins/destination/elasticsearch/go.sum +++ b/plugins/destination/elasticsearch/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/file/CHANGELOG.md b/plugins/destination/file/CHANGELOG.md index 80df5e62b62223..72814f74a15ced 100644 --- a/plugins/destination/file/CHANGELOG.md +++ b/plugins/destination/file/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [5.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-file-v5.1.10...plugins-destination-file-v5.2.0) (2024-08-13) + + +### Features + +* Document new parquet options ([#18919](https://github.com/cloudquery/cloudquery/issues/18919)) ([2432c58](https://github.com/cloudquery/cloudquery/commit/2432c58b413ad053b12bbf6679bcd981171f6903)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/filetypes/v4 to v4.3.0 ([#18917](https://github.com/cloudquery/cloudquery/issues/18917)) ([727ed92](https://github.com/cloudquery/cloudquery/commit/727ed92b39161137ceea2f99e89b70c3cb732eae)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [5.1.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-file-v5.1.9...plugins-destination-file-v5.1.10) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [5.1.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-file-v5.1.8...plugins-destination-file-v5.1.9) (2024-07-30) diff --git a/plugins/destination/file/client/spec/schema.json b/plugins/destination/file/client/spec/schema.json index 930644cf6258a4..6376e106bfeb8e 100644 --- a/plugins/destination/file/client/spec/schema.json +++ b/plugins/destination/file/client/spec/schema.json @@ -32,6 +32,30 @@ "description": "CloudQuery JSON file output spec." }, "ParquetSpec": { + "properties": { + "version": { + "type": "string", + "enum": [ + "v1.0", + "v2.4", + "v2.6", + "v2Latest" + ], + "description": "Parquet format version", + "default": "v2Latest" + }, + "root_repetition": { + "type": "string", + "enum": [ + "undefined", + "required", + "optional", + "repeated" + ], + "description": "Root repetition", + "default": "repeated" + } + }, "additionalProperties": false, "type": "object", "description": "CloudQuery Parquet file output spec." diff --git a/plugins/destination/file/docs/_configuration.md b/plugins/destination/file/docs/_configuration.md index 14b77f1e3559b5..84a3edd5530b19 100644 --- a/plugins/destination/file/docs/_configuration.md +++ b/plugins/destination/file/docs/_configuration.md @@ -14,9 +14,12 @@ spec: format: "parquet" # options: parquet, json, csv # Optional parameters # format_spec: - # CSV-specific parameters: + # CSV specific parameters: # delimiter: "," # skip_header: false + # Parquet specific parameters: + # version: "v2Latest" + # root_repetition: "repeated" # compression: "" # options: gzip # no_rotate: false # batch_size: 10000 diff --git a/plugins/destination/file/docs/overview.md b/plugins/destination/file/docs/overview.md index bb9e1e9d9d3c8f..8a2e6a21b6e409 100644 --- a/plugins/destination/file/docs/overview.md +++ b/plugins/destination/file/docs/overview.md @@ -68,10 +68,31 @@ This is the (nested) spec used by the file destination Plugin. ### format_spec +#### CSV + - `delimiter` (`string`) (optional) (default: `,`) - Character that will be used as want to use as the delimiter if the format type is `csv`. + Delimiter to use in the CSV file. - `skip_header` (`boolean`) (optional) (default: `false`) - Specifies if the first line of a file should be the headers (when format is `csv`). + If set to `true`, the CSV file will not contain a header row as the first row. + +#### JSON + +Reserved for future use. + +#### Parquet + +- `version` (`string`) (optional) (default: `v2Latest`) + + Parquet format version to use. Supported values are `v1.0`, `v2.4`, `v2.6` and `v2Latest`. + `v2Latest` is an alias for the latest version available in the Parquet library which is currently `v2.6`. + + Useful when the reader consuming the Parquet files does not support the latest version. + +- `root_repetition` (`string`) (optional) (default: `repeated`) + + [Repetition option to use for the root node](https://github.com/apache/arrow/issues/20243). Supported values are `undefined`, `required`, `optional` and `repeated`. + + Some Parquet readers require a specific root repetition option to be able to read the file. For example, importing Parquet files into [Snowflake](https://www.snowflake.com/en/) requires the root repetition to be `undefined`. diff --git a/plugins/destination/file/go.mod b/plugins/destination/file/go.mod index b7cf3416bb744b..a71c36db7a6f57 100644 --- a/plugins/destination/file/go.mod +++ b/plugins/destination/file/go.mod @@ -5,8 +5,8 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/filetypes/v4 v4.2.29 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/filetypes/v4 v4.3.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -39,8 +39,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/file/go.sum b/plugins/destination/file/go.sum index 396ee058c0035a..dd7490746fddb2 100644 --- a/plugins/destination/file/go.sum +++ b/plugins/destination/file/go.sum @@ -50,20 +50,20 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= -github.com/cloudquery/filetypes/v4 v4.2.29 h1:yF98+0oPE3VisyNvZ5ucJm8DHOxP60IHt2HnXTYCe/I= -github.com/cloudquery/filetypes/v4 v4.2.29/go.mod h1:wKzaBzu6qnM1NqwZt/YvhvPvjclP3JSR17qjiXfVh3w= +github.com/cloudquery/filetypes/v4 v4.3.0 h1:/hcmVSd0WapY2qwcE5DxOS/K9Kdr0ZQ61CvWRDVu2/4= +github.com/cloudquery/filetypes/v4 v4.3.0/go.mod h1:omacXbRpAEGAJAYh0lUzBGsnwj+5ACgH5irQWNmMWq0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/firehose/CHANGELOG.md b/plugins/destination/firehose/CHANGELOG.md index 20e9d1235f3fb8..0ab08e3741cb23 100644 --- a/plugins/destination/firehose/CHANGELOG.md +++ b/plugins/destination/firehose/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.5.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-firehose-v2.5.9...plugins-destination-firehose-v2.5.10) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [2.5.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-firehose-v2.5.8...plugins-destination-firehose-v2.5.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [2.5.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-firehose-v2.5.7...plugins-destination-firehose-v2.5.8) (2024-07-30) diff --git a/plugins/destination/firehose/go.mod b/plugins/destination/firehose/go.mod index e9baa36bcddc3a..2b6403c135925f 100644 --- a/plugins/destination/firehose/go.mod +++ b/plugins/destination/firehose/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/firehose v1.32.0 github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 @@ -33,8 +33,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/firehose/go.sum b/plugins/destination/firehose/go.sum index b5f3ca4f9e0272..412a84094a1091 100644 --- a/plugins/destination/firehose/go.sum +++ b/plugins/destination/firehose/go.sum @@ -46,18 +46,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/gcs/CHANGELOG.md b/plugins/destination/gcs/CHANGELOG.md index 9005d19882a16c..410e490e0ee27e 100644 --- a/plugins/destination/gcs/CHANGELOG.md +++ b/plugins/destination/gcs/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [5.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-gcs-v5.1.9...plugins-destination-gcs-v5.2.0) (2024-08-13) + + +### Features + +* Document new parquet options ([#18919](https://github.com/cloudquery/cloudquery/issues/18919)) ([2432c58](https://github.com/cloudquery/cloudquery/commit/2432c58b413ad053b12bbf6679bcd981171f6903)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/filetypes/v4 to v4.3.0 ([#18917](https://github.com/cloudquery/cloudquery/issues/18917)) ([727ed92](https://github.com/cloudquery/cloudquery/commit/727ed92b39161137ceea2f99e89b70c3cb732eae)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) +* **deps:** Update module google.golang.org/api to v0.191.0 ([#18908](https://github.com/cloudquery/cloudquery/issues/18908)) ([0a7c959](https://github.com/cloudquery/cloudquery/commit/0a7c959eba8d2c56cd046afbcdfebedd5c3bb349)) + +## [5.1.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-gcs-v5.1.8...plugins-destination-gcs-v5.1.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) +* **deps:** Update module google.golang.org/api to v0.190.0 ([#18847](https://github.com/cloudquery/cloudquery/issues/18847)) ([4d8a650](https://github.com/cloudquery/cloudquery/commit/4d8a650e59ad6be7c5790cf8ddec26a05faff794)) + ## [5.1.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-gcs-v5.1.7...plugins-destination-gcs-v5.1.8) (2024-07-30) diff --git a/plugins/destination/gcs/client/spec/schema.json b/plugins/destination/gcs/client/spec/schema.json index 5f24b9d8f4eb1a..2bfa97dbececcf 100644 --- a/plugins/destination/gcs/client/spec/schema.json +++ b/plugins/destination/gcs/client/spec/schema.json @@ -32,6 +32,30 @@ "description": "CloudQuery JSON file output spec." }, "ParquetSpec": { + "properties": { + "version": { + "type": "string", + "enum": [ + "v1.0", + "v2.4", + "v2.6", + "v2Latest" + ], + "description": "Parquet format version", + "default": "v2Latest" + }, + "root_repetition": { + "type": "string", + "enum": [ + "undefined", + "required", + "optional", + "repeated" + ], + "description": "Root repetition", + "default": "repeated" + } + }, "additionalProperties": false, "type": "object", "description": "CloudQuery Parquet file output spec." diff --git a/plugins/destination/gcs/docs/_configuration.md b/plugins/destination/gcs/docs/_configuration.md index 987eeefba1d2e7..b24aa9be22bc28 100644 --- a/plugins/destination/gcs/docs/_configuration.md +++ b/plugins/destination/gcs/docs/_configuration.md @@ -13,9 +13,12 @@ spec: path: "path/to/files/{{TABLE}}/{{UUID}}.{{FORMAT}}" format: "parquet" # options: parquet, json, csv format_spec: - # CSV-specific parameters: + # CSV specific parameters: # delimiter: "," # skip_header: false + # Parquet specific parameters: + # version: "v2Latest" + # root_repetition: "repeated" # Optional parameters # compression: "" # options: gzip diff --git a/plugins/destination/gcs/docs/overview.md b/plugins/destination/gcs/docs/overview.md index ceb17eb5272b76..d5902ccba11eee 100644 --- a/plugins/destination/gcs/docs/overview.md +++ b/plugins/destination/gcs/docs/overview.md @@ -75,13 +75,34 @@ This is the (nested) spec used by the CSV destination Plugin. ### format_spec +#### CSV + - `delimiter` (`string`) (optional) (default: `,`) - Character that will be used as want to use as the delimiter if the format type is `csv`. + Delimiter to use in the CSV file. - `skip_header` (`boolean`) (optional) (default: `false`) - Specifies if the first line of a file should be the headers (when format is `csv`). + If set to `true`, the CSV file will not contain a header row as the first row. + +#### JSON + +Reserved for future use. + +#### Parquet + +- `version` (`string`) (optional) (default: `v2Latest`) + + Parquet format version to use. Supported values are `v1.0`, `v2.4`, `v2.6` and `v2Latest`. + `v2Latest` is an alias for the latest version available in the Parquet library which is currently `v2.6`. + + Useful when the reader consuming the Parquet files does not support the latest version. + +- `root_repetition` (`string`) (optional) (default: `repeated`) + + [Repetition option to use for the root node](https://github.com/apache/arrow/issues/20243). Supported values are `undefined`, `required`, `optional` and `repeated`. + + Some Parquet readers require a specific root repetition option to be able to read the file. For example, importing Parquet files into [Snowflake](https://www.snowflake.com/en/) requires the root repetition to be `undefined`. ## Authentication diff --git a/plugins/destination/gcs/go.mod b/plugins/destination/gcs/go.mod index 30fa2b7b6d3083..4233ece456aecd 100644 --- a/plugins/destination/gcs/go.mod +++ b/plugins/destination/gcs/go.mod @@ -6,15 +6,15 @@ require ( cloud.google.com/go/storage v1.43.0 github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/filetypes/v4 v4.2.29 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/filetypes/v4 v4.3.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 github.com/wk8/go-ordered-map/v2 v2.1.8 - google.golang.org/api v0.190.0 + google.golang.org/api v0.191.0 ) require ( @@ -46,8 +46,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect @@ -102,11 +102,11 @@ require ( golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/mod v0.19.0 // indirect golang.org/x/net v0.27.0 // indirect - golang.org/x/oauth2 v0.21.0 // indirect - golang.org/x/sync v0.7.0 // indirect + golang.org/x/oauth2 v0.22.0 // indirect + golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.22.0 // indirect golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.5.0 // indirect + golang.org/x/time v0.6.0 // indirect golang.org/x/tools v0.23.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto v0.0.0-20240730163845-b1a4ccb954bf // indirect diff --git a/plugins/destination/gcs/go.sum b/plugins/destination/gcs/go.sum index a8aa4108eecd98..7e67ac189f2d44 100644 --- a/plugins/destination/gcs/go.sum +++ b/plugins/destination/gcs/go.sum @@ -68,20 +68,20 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3 github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= -github.com/cloudquery/filetypes/v4 v4.2.29 h1:yF98+0oPE3VisyNvZ5ucJm8DHOxP60IHt2HnXTYCe/I= -github.com/cloudquery/filetypes/v4 v4.2.29/go.mod h1:wKzaBzu6qnM1NqwZt/YvhvPvjclP3JSR17qjiXfVh3w= +github.com/cloudquery/filetypes/v4 v4.3.0 h1:/hcmVSd0WapY2qwcE5DxOS/K9Kdr0ZQ61CvWRDVu2/4= +github.com/cloudquery/filetypes/v4 v4.3.0/go.mod h1:omacXbRpAEGAJAYh0lUzBGsnwj+5ACgH5irQWNmMWq0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -280,13 +280,13 @@ golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.22.0 h1:BzDx2FehcG7jJwgWLELCdmLuxk2i+x9UDpSiss2u0ZA= +golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -302,8 +302,8 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U= +golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -316,8 +316,8 @@ golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSm golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= gonum.org/v1/gonum v0.15.0 h1:2lYxjRbTYyxkJxlhC+LvJIx3SsANPdRybu1tGj9/OrQ= gonum.org/v1/gonum v0.15.0/go.mod h1:xzZVBJBtS+Mz4q0Yl2LJTk+OxOg4jiXZ7qBoM0uISGo= -google.golang.org/api v0.190.0 h1:ASM+IhLY1zljNdLu19W1jTmU6A+gMk6M46Wlur61s+Q= -google.golang.org/api v0.190.0/go.mod h1:QIr6I9iedBLnfqoD6L6Vze1UvS5Hzj5r2aUBOaZnLHo= +google.golang.org/api v0.191.0 h1:cJcF09Z+4HAB2t5qTQM1ZtfL/PemsLFkcFG67qq2afk= +google.golang.org/api v0.191.0/go.mod h1:tD5dsFGxFza0hnQveGfVk9QQYKcfp+VzgRqyXFxE0+E= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= diff --git a/plugins/destination/gremlin/CHANGELOG.md b/plugins/destination/gremlin/CHANGELOG.md index bc4a97f0fcf841..904f7605291c44 100644 --- a/plugins/destination/gremlin/CHANGELOG.md +++ b/plugins/destination/gremlin/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.5.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-gremlin-v2.5.9...plugins-destination-gremlin-v2.5.10) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [2.5.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-gremlin-v2.5.8...plugins-destination-gremlin-v2.5.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [2.5.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-gremlin-v2.5.7...plugins-destination-gremlin-v2.5.8) (2024-07-30) diff --git a/plugins/destination/gremlin/go.mod b/plugins/destination/gremlin/go.mod index 2eda029992d882..2a7e3dbff0fb7d 100644 --- a/plugins/destination/gremlin/go.mod +++ b/plugins/destination/gremlin/go.mod @@ -9,7 +9,7 @@ require ( github.com/aws/aws-sdk-go-v2/config v1.27.27 github.com/cenkalti/backoff/v4 v4.3.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 @@ -34,8 +34,8 @@ require ( github.com/aws/smithy-go v1.20.3 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/gremlin/go.sum b/plugins/destination/gremlin/go.sum index 6298174f0a5f65..f7cd1db8ebdf21 100644 --- a/plugins/destination/gremlin/go.sum +++ b/plugins/destination/gremlin/go.sum @@ -49,18 +49,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/kafka/CHANGELOG.md b/plugins/destination/kafka/CHANGELOG.md index 5e9cc73d80bb3d..9f8add7611a890 100644 --- a/plugins/destination/kafka/CHANGELOG.md +++ b/plugins/destination/kafka/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [5.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-kafka-v5.0.9...plugins-destination-kafka-v5.1.0) (2024-08-13) + + +### Features + +* Document new parquet options ([#18919](https://github.com/cloudquery/cloudquery/issues/18919)) ([2432c58](https://github.com/cloudquery/cloudquery/commit/2432c58b413ad053b12bbf6679bcd981171f6903)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/filetypes/v4 to v4.3.0 ([#18917](https://github.com/cloudquery/cloudquery/issues/18917)) ([727ed92](https://github.com/cloudquery/cloudquery/commit/727ed92b39161137ceea2f99e89b70c3cb732eae)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [5.0.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-kafka-v5.0.8...plugins-destination-kafka-v5.0.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [5.0.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-kafka-v5.0.7...plugins-destination-kafka-v5.0.8) (2024-07-30) diff --git a/plugins/destination/kafka/client/spec/schema.json b/plugins/destination/kafka/client/spec/schema.json index ad6c473b885ed8..39425053f657f4 100644 --- a/plugins/destination/kafka/client/spec/schema.json +++ b/plugins/destination/kafka/client/spec/schema.json @@ -27,6 +27,30 @@ "description": "CloudQuery JSON file output spec." }, "ParquetSpec": { + "properties": { + "version": { + "type": "string", + "enum": [ + "v1.0", + "v2.4", + "v2.6", + "v2Latest" + ], + "description": "Parquet format version", + "default": "v2Latest" + }, + "root_repetition": { + "type": "string", + "enum": [ + "undefined", + "required", + "optional", + "repeated" + ], + "description": "Root repetition", + "default": "repeated" + } + }, "additionalProperties": false, "type": "object", "description": "CloudQuery Parquet file output spec." diff --git a/plugins/destination/kafka/docs/_configuration.md b/plugins/destination/kafka/docs/_configuration.md index 190298a764a8f1..046c1294199114 100644 --- a/plugins/destination/kafka/docs/_configuration.md +++ b/plugins/destination/kafka/docs/_configuration.md @@ -18,9 +18,12 @@ spec: sasl_password: "${KAFKA_SASL_PASSWORD}" format: "json" # options: parquet, json, csv format_spec: - # CSV-specific parameters: + # CSV specific parameters: # delimiter: "," # skip_header: false + # Parquet specific parameters: + # version: "v2Latest" + # root_repetition: "repeated" # Optional parameters # compression: "" # options: gzip diff --git a/plugins/destination/kafka/docs/overview.md b/plugins/destination/kafka/docs/overview.md index 6f345f548e0faa..34f19daa3e8db1 100644 --- a/plugins/destination/kafka/docs/overview.md +++ b/plugins/destination/kafka/docs/overview.md @@ -60,13 +60,34 @@ This is the (nested) plugin spec ### format_spec +#### CSV + - `delimiter` (`string`) (optional) (default: `,`) - Character that will be used as want to use as the delimiter if the format type is `csv`. + Delimiter to use in the CSV file. - `skip_header` (`boolean`) (optional) (default: `false`) - Specifies if the first line of a file should be the headers (when format is `csv`). + If set to `true`, the CSV file will not contain a header row as the first row. + +#### JSON + +Reserved for future use. + +#### Parquet + +- `version` (`string`) (optional) (default: `v2Latest`) + + Parquet format version to use. Supported values are `v1.0`, `v2.4`, `v2.6` and `v2Latest`. + `v2Latest` is an alias for the latest version available in the Parquet library which is currently `v2.6`. + + Useful when the reader consuming the Parquet files does not support the latest version. + +- `root_repetition` (`string`) (optional) (default: `repeated`) + + [Repetition option to use for the root node](https://github.com/apache/arrow/issues/20243). Supported values are `undefined`, `required`, `optional` and `repeated`. + + Some Parquet readers require a specific root repetition option to be able to read the file. For example, importing Parquet files into [Snowflake](https://www.snowflake.com/en/) requires the root repetition to be `undefined`. ### topic_details diff --git a/plugins/destination/kafka/go.mod b/plugins/destination/kafka/go.mod index 31670bf263fd75..a164ef7709c3c1 100644 --- a/plugins/destination/kafka/go.mod +++ b/plugins/destination/kafka/go.mod @@ -6,8 +6,8 @@ require ( github.com/IBM/sarama v1.43.2 github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/filetypes/v4 v4.2.29 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/filetypes/v4 v4.3.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.33.0 github.com/wk8/go-ordered-map/v2 v2.1.8 @@ -37,8 +37,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/eapache/go-resiliency v1.6.0 // indirect diff --git a/plugins/destination/kafka/go.sum b/plugins/destination/kafka/go.sum index 9db0ef39f1efce..00d4b90efed93a 100644 --- a/plugins/destination/kafka/go.sum +++ b/plugins/destination/kafka/go.sum @@ -52,20 +52,20 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= -github.com/cloudquery/filetypes/v4 v4.2.29 h1:yF98+0oPE3VisyNvZ5ucJm8DHOxP60IHt2HnXTYCe/I= -github.com/cloudquery/filetypes/v4 v4.2.29/go.mod h1:wKzaBzu6qnM1NqwZt/YvhvPvjclP3JSR17qjiXfVh3w= +github.com/cloudquery/filetypes/v4 v4.3.0 h1:/hcmVSd0WapY2qwcE5DxOS/K9Kdr0ZQ61CvWRDVu2/4= +github.com/cloudquery/filetypes/v4 v4.3.0/go.mod h1:omacXbRpAEGAJAYh0lUzBGsnwj+5ACgH5irQWNmMWq0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/meilisearch/CHANGELOG.md b/plugins/destination/meilisearch/CHANGELOG.md index deca643d35fa49..261a8174ce77b8 100644 --- a/plugins/destination/meilisearch/CHANGELOG.md +++ b/plugins/destination/meilisearch/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.4.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-meilisearch-v2.4.9...plugins-destination-meilisearch-v2.4.10) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [2.4.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-meilisearch-v2.4.8...plugins-destination-meilisearch-v2.4.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [2.4.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-meilisearch-v2.4.7...plugins-destination-meilisearch-v2.4.8) (2024-07-30) diff --git a/plugins/destination/meilisearch/go.mod b/plugins/destination/meilisearch/go.mod index 73b9854a28ea09..c5acfe11ed35a1 100644 --- a/plugins/destination/meilisearch/go.mod +++ b/plugins/destination/meilisearch/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -36,8 +36,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/meilisearch/go.sum b/plugins/destination/meilisearch/go.sum index a9026ba9e054ca..0c3cefa3222a0c 100644 --- a/plugins/destination/meilisearch/go.sum +++ b/plugins/destination/meilisearch/go.sum @@ -47,18 +47,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/mongodb/CHANGELOG.md b/plugins/destination/mongodb/CHANGELOG.md index 36872f498318dc..3e28ba7ddb3d17 100644 --- a/plugins/destination/mongodb/CHANGELOG.md +++ b/plugins/destination/mongodb/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.5.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mongodb-v2.5.4...plugins-destination-mongodb-v2.5.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [2.5.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mongodb-v2.5.3...plugins-destination-mongodb-v2.5.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [2.5.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mongodb-v2.5.2...plugins-destination-mongodb-v2.5.3) (2024-07-30) diff --git a/plugins/destination/mongodb/go.mod b/plugins/destination/mongodb/go.mod index ca87aa14b2364d..61643321d8b444 100644 --- a/plugins/destination/mongodb/go.mod +++ b/plugins/destination/mongodb/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 @@ -33,8 +33,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/mongodb/go.sum b/plugins/destination/mongodb/go.sum index f157f3cf553125..e49877162d346b 100644 --- a/plugins/destination/mongodb/go.sum +++ b/plugins/destination/mongodb/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/mssql/CHANGELOG.md b/plugins/destination/mssql/CHANGELOG.md index 8599cb4eb2bc7f..92ee65fb8452fc 100644 --- a/plugins/destination/mssql/CHANGELOG.md +++ b/plugins/destination/mssql/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [4.7.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mssql-v4.7.4...plugins-destination-mssql-v4.7.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [4.7.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mssql-v4.7.3...plugins-destination-mssql-v4.7.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [4.7.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mssql-v4.7.2...plugins-destination-mssql-v4.7.3) (2024-07-30) diff --git a/plugins/destination/mssql/go.mod b/plugins/destination/mssql/go.mod index f6eb9dc807bad3..1f27212f5a8988 100644 --- a/plugins/destination/mssql/go.mod +++ b/plugins/destination/mssql/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -39,8 +39,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/mssql/go.sum b/plugins/destination/mssql/go.sum index 9b9d18b0d0aa14..df6d709760feab 100644 --- a/plugins/destination/mssql/go.sum +++ b/plugins/destination/mssql/go.sum @@ -56,18 +56,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/mysql/CHANGELOG.md b/plugins/destination/mysql/CHANGELOG.md index 85ef61b0577c07..7e5c0a7bc00019 100644 --- a/plugins/destination/mysql/CHANGELOG.md +++ b/plugins/destination/mysql/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [5.2.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mysql-v5.2.4...plugins-destination-mysql-v5.2.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [5.2.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mysql-v5.2.3...plugins-destination-mysql-v5.2.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update golang.org/x/exp digest to 8a7402a ([#18799](https://github.com/cloudquery/cloudquery/issues/18799)) ([feed49d](https://github.com/cloudquery/cloudquery/commit/feed49d232ebd93cfc84148ba0991adc97321600)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [5.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-mysql-v5.2.2...plugins-destination-mysql-v5.2.3) (2024-07-30) diff --git a/plugins/destination/mysql/go.mod b/plugins/destination/mysql/go.mod index dc5518a2ec6886..cc41256f6bc2f3 100644 --- a/plugins/destination/mysql/go.mod +++ b/plugins/destination/mysql/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/go-sql-driver/mysql v1.7.1 github.com/google/uuid v1.6.0 github.com/rs/zerolog v1.33.0 @@ -34,8 +34,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/mysql/go.sum b/plugins/destination/mysql/go.sum index ac3f3de96fade6..705b9356c719d6 100644 --- a/plugins/destination/mysql/go.sum +++ b/plugins/destination/mysql/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/neo4j/CHANGELOG.md b/plugins/destination/neo4j/CHANGELOG.md index 5bbc90459dbb32..121c47307153ca 100644 --- a/plugins/destination/neo4j/CHANGELOG.md +++ b/plugins/destination/neo4j/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [5.3.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-neo4j-v5.3.4...plugins-destination-neo4j-v5.3.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [5.3.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-neo4j-v5.3.3...plugins-destination-neo4j-v5.3.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [5.3.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-neo4j-v5.3.2...plugins-destination-neo4j-v5.3.3) (2024-07-30) diff --git a/plugins/destination/neo4j/go.mod b/plugins/destination/neo4j/go.mod index 094c9b76b2f165..ab6b7db7786908 100644 --- a/plugins/destination/neo4j/go.mod +++ b/plugins/destination/neo4j/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/neo4j/neo4j-go-driver/v5 v5.6.0 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 @@ -32,8 +32,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/neo4j/go.sum b/plugins/destination/neo4j/go.sum index 9147f72bcd4329..827a2eec2535cc 100644 --- a/plugins/destination/neo4j/go.sum +++ b/plugins/destination/neo4j/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/postgresql/CHANGELOG.md b/plugins/destination/postgresql/CHANGELOG.md index d85f69acd7bdaa..fcb38f05ac643f 100644 --- a/plugins/destination/postgresql/CHANGELOG.md +++ b/plugins/destination/postgresql/CHANGELOG.md @@ -1,5 +1,57 @@ # Changelog +## [8.5.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-postgresql-v8.4.0...plugins-destination-postgresql-v8.5.0) (2024-08-13) + + +### Features + +* Configure initial type of PostgreSQL cloud UI depending if destination is managed ([#18868](https://github.com/cloudquery/cloudquery/issues/18868)) ([81c36df](https://github.com/cloudquery/cloudquery/commit/81c36dfa8c37d66a28f70cd2191d81dbb034c269)) + + +### Bug Fixes + +* Better connection tester error codes ([#18920](https://github.com/cloudquery/cloudquery/issues/18920)) ([b7e1ad4](https://github.com/cloudquery/cloudquery/commit/b7e1ad431afc88f6a80871eb9b6e9e6e66107a21)) +* **deps:** Update dependency @cloudquery/cloud-ui to v0.1.13 ([#18874](https://github.com/cloudquery/cloudquery/issues/18874)) ([73f5ff0](https://github.com/cloudquery/cloudquery/commit/73f5ff0b4445119d5320454bc62376a655e7706a)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.12 ([#18869](https://github.com/cloudquery/cloudquery/issues/18869)) ([47734e3](https://github.com/cloudquery/cloudquery/commit/47734e36bce6ea2409a7796f4d8e607ac08c7215)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.13 ([#18911](https://github.com/cloudquery/cloudquery/issues/18911)) ([85425cb](https://github.com/cloudquery/cloudquery/commit/85425cb0ce84dc670098c1a6d46bae0ec547445f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.54 ([#18870](https://github.com/cloudquery/cloudquery/issues/18870)) ([8c5a436](https://github.com/cloudquery/cloudquery/commit/8c5a4365d5c7083dce02f1a8ee0136d083d7d45c)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.55 ([#18877](https://github.com/cloudquery/cloudquery/issues/18877)) ([07e176b](https://github.com/cloudquery/cloudquery/commit/07e176bf8ae9331686547b4f53ab175df04117dc)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.56 ([#18904](https://github.com/cloudquery/cloudquery/issues/18904)) ([62fbd9a](https://github.com/cloudquery/cloudquery/commit/62fbd9a0d36398250cc5e8ce653a2b6f257dafd0)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.57 ([#18912](https://github.com/cloudquery/cloudquery/issues/18912)) ([f4ebbfb](https://github.com/cloudquery/cloudquery/commit/f4ebbfba2f5717c42e23c9b029cd541510d1c37f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [8.4.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-postgresql-v8.3.1...plugins-destination-postgresql-v8.4.0) (2024-08-06) + + +### Features + +* Add Indexes to remove need for full index scan on deletion ([#18741](https://github.com/cloudquery/cloudquery/issues/18741)) ([cacad92](https://github.com/cloudquery/cloudquery/commit/cacad929e354190ca8b5562a008fd9fd6a1897de)) +* Convert PostgreSQL connection string to secret ([#18859](https://github.com/cloudquery/cloudquery/issues/18859)) ([9a86eb2](https://github.com/cloudquery/cloudquery/commit/9a86eb2d095bcdd50a9117b23a520c7f749f160b)) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/cloud-ui to v0.1.12 ([#18836](https://github.com/cloudquery/cloudquery/issues/18836)) ([b24afab](https://github.com/cloudquery/cloudquery/commit/b24afab030164a5b2eb075e8d2e948dff95501a6)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.10 ([#18850](https://github.com/cloudquery/cloudquery/issues/18850)) ([ec926b5](https://github.com/cloudquery/cloudquery/commit/ec926b50405be69f7aac42ebc8d7fbfd063d6c46)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.11 ([#18860](https://github.com/cloudquery/cloudquery/issues/18860)) ([f7287b9](https://github.com/cloudquery/cloudquery/commit/f7287b93b1e8b93194956016e16eddadba8a36f6)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.41 ([#18824](https://github.com/cloudquery/cloudquery/issues/18824)) ([d0d10ac](https://github.com/cloudquery/cloudquery/commit/d0d10ace49a467d4c70805f8f21215284d0a138c)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.42 ([#18834](https://github.com/cloudquery/cloudquery/issues/18834)) ([827d13b](https://github.com/cloudquery/cloudquery/commit/827d13bd49589a6190cffecbd1e973a508c8a608)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.44 ([#18838](https://github.com/cloudquery/cloudquery/issues/18838)) ([745aeca](https://github.com/cloudquery/cloudquery/commit/745aecab9bf1b216d7e25db247dfc231f58fe550)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.45 ([#18841](https://github.com/cloudquery/cloudquery/issues/18841)) ([4476f38](https://github.com/cloudquery/cloudquery/commit/4476f38b7897574c405c76f76166769756ee9117)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.46 ([#18844](https://github.com/cloudquery/cloudquery/issues/18844)) ([60f5924](https://github.com/cloudquery/cloudquery/commit/60f59247d2ed57593086b98b42bc962fa1dbe635)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.47 ([#18849](https://github.com/cloudquery/cloudquery/issues/18849)) ([029638e](https://github.com/cloudquery/cloudquery/commit/029638ecb6a59a743ddd00fac9d3700c9f579e0f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.50 ([#18861](https://github.com/cloudquery/cloudquery/issues/18861)) ([79b4291](https://github.com/cloudquery/cloudquery/commit/79b4291f41c055fe1383d3c5205d0b798106c15f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.52 ([#18862](https://github.com/cloudquery/cloudquery/issues/18862)) ([c275aed](https://github.com/cloudquery/cloudquery/commit/c275aed8c28060f525bcd6a2f8fd35a73d8b5a51)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.53 ([#18863](https://github.com/cloudquery/cloudquery/issues/18863)) ([c64d143](https://github.com/cloudquery/cloudquery/commit/c64d14305055788862be479c9ce6e7c02189d9e0)) +* **deps:** Update material-ui monorepo ([#18803](https://github.com/cloudquery/cloudquery/issues/18803)) ([c62a0e1](https://github.com/cloudquery/cloudquery/commit/c62a0e1b08bd704d32c6d7b3b2913588f4467912)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) +* PostgreSQL improvements ([#18843](https://github.com/cloudquery/cloudquery/issues/18843)) ([99b428b](https://github.com/cloudquery/cloudquery/commit/99b428b2913ef8ba2a21be5887077a9ac7ed61e5)) +* PostgreSQL logo and helper texts ([#18848](https://github.com/cloudquery/cloudquery/issues/18848)) ([8b7f173](https://github.com/cloudquery/cloudquery/commit/8b7f1737865b514c05072871db14748f5bab997a)) + ## [8.3.1](https://github.com/cloudquery/cloudquery/compare/plugins-destination-postgresql-v8.3.0...plugins-destination-postgresql-v8.3.1) (2024-07-31) diff --git a/plugins/destination/postgresql/client/connection_tester.go b/plugins/destination/postgresql/client/connection_tester.go index 696a230a8263aa..6803d1f74439fc 100644 --- a/plugins/destination/postgresql/client/connection_tester.go +++ b/plugins/destination/postgresql/client/connection_tester.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "net" + "strings" "github.com/cloudquery/cloudquery/plugins/destination/postgresql/client/spec" "github.com/cloudquery/plugin-sdk/v4/plugin" @@ -17,51 +18,49 @@ import ( func ConnectionTester(ctx context.Context, _ zerolog.Logger, specBytes []byte) error { var s spec.Spec if err := json.Unmarshal(specBytes, &s); err != nil { - return &plugin.TestConnError{ - Code: "INVALID_SPEC", - Message: fmt.Errorf("failed to unmarshal spec: %w", err), - } + return plugin.NewTestConnError("INVALID_SPEC", fmt.Errorf("failed to unmarshal spec: %w", err)) } s.SetDefaults() if err := s.Validate(); err != nil { - return &plugin.TestConnError{ - Code: "INVALID_SPEC", - Message: fmt.Errorf("failed to validate spec: %w", err), - } + return plugin.NewTestConnError("INVALID_SPEC", fmt.Errorf("failed to validate spec: %w", err)) } pgxConfig, err := pgxpool.ParseConfig(s.ConnectionString) if err != nil { - return processError(err) + return processError(err, "INVALID_CONFIG") } c, err := pgxpool.NewWithConfig(ctx, pgxConfig) if err != nil { - return processError(err) + return processError(err, "CONN_FAILED") } defer c.Close() _, err = currentDatabase(ctx, c) if err != nil { - return processError(err) + return processError(err, "UNKNOWN_DATABASE") } _, err = currentSchema(ctx, c) if err != nil { - return processError(err) + return processError(err, "UNKNOWN_SCHEMA") } return nil } -func processError(err error) error { +func processError(err error, preferredErrorCode string) error { var dnsErr *net.DNSError if errors.As(err, &dnsErr) { - return fmt.Errorf("no such host %q", dnsErr.Name) + return plugin.NewTestConnError("DNS_FAILED", fmt.Errorf("no such host %q", dnsErr.Name)) } var pgErr *pgconn.PgError if errors.As(err, &pgErr) { - return errors.New(pgErr.Message) + if strings.Contains(pgErr.Message, "password authentication failed") { + return plugin.NewTestConnError("AUTH_FAILED", errors.New(pgErr.Message)) + } + + return plugin.NewTestConnError(preferredErrorCode, errors.New(pgErr.Message)) } - return err + return plugin.NewTestConnError(preferredErrorCode, err) } diff --git a/plugins/destination/postgresql/client/connection_tester_test.go b/plugins/destination/postgresql/client/connection_tester_test.go index dca13b5d266161..a2b755c5eb8c68 100644 --- a/plugins/destination/postgresql/client/connection_tester_test.go +++ b/plugins/destination/postgresql/client/connection_tester_test.go @@ -50,6 +50,7 @@ func TestConnectionTester(t *testing.T) { name: "should return an error for an invalid connection string", specBytes: marshalSpec(t, &spec.Spec{ConnectionString: invalidConnectionString}), wantErr: &wantErr{ + Code: "INVALID_CONFIG", ErrorDescription: "cannot parse `invalid`: failed to parse as DSN (invalid dsn)", }, }, @@ -57,6 +58,7 @@ func TestConnectionTester(t *testing.T) { name: "should return an error for an unknown host", specBytes: marshalSpec(t, &spec.Spec{ConnectionString: unknownHostConnectionString}), wantErr: &wantErr{ + Code: "DNS_FAILED", ErrorDescription: "no such host \"unknownhost\"", }, }, @@ -64,6 +66,7 @@ func TestConnectionTester(t *testing.T) { name: "should return an error for an unknown database", specBytes: marshalSpec(t, &spec.Spec{ConnectionString: unknownDatabaseConnectionString}), wantErr: &wantErr{ + Code: "UNKNOWN_DATABASE", ErrorDescription: "database \"unknowndb\" does not exist", }, }, @@ -71,6 +74,7 @@ func TestConnectionTester(t *testing.T) { name: "should return an error for an unknown user", specBytes: marshalSpec(t, &spec.Spec{ConnectionString: unknownUserConnectionString}), wantErr: &wantErr{ + Code: "AUTH_FAILED", ErrorDescription: "password authentication failed for user \"unknownuser\"", }, }, @@ -78,6 +82,7 @@ func TestConnectionTester(t *testing.T) { name: "should return an error for an unknown password", specBytes: marshalSpec(t, &spec.Spec{ConnectionString: unknownPasswordConnectionString}), wantErr: &wantErr{ + Code: "AUTH_FAILED", ErrorDescription: "password authentication failed for user \"postgres\"", }, }, diff --git a/plugins/destination/postgresql/cloud-config-ui/e2e-tests/validate-config.spec.ts b/plugins/destination/postgresql/cloud-config-ui/e2e-tests/validate-config.spec.ts index a9400371845bf4..ae53061bf93623 100644 --- a/plugins/destination/postgresql/cloud-config-ui/e2e-tests/validate-config.spec.ts +++ b/plugins/destination/postgresql/cloud-config-ui/e2e-tests/validate-config.spec.ts @@ -41,7 +41,7 @@ test('Submit the form', async ({ page }) => { const spec = JSON.parse(valuesText as string); expect(spec.spec.connection_string).toBe( - `dbtype='postgresql' user='\${username}' password='\${password}' host='database.example.com' dbname='sample_db' port='5432' sslmode='verify-ca'`, + `dbtype='postgresql' user='john_doe' password='\${password}' host='database.example.com' dbname='sample_db' port='5432' sslmode='verify-ca'`, ); if (process.env.E2E_TESTS_GENERATE_CONFIG === 'true') { diff --git a/plugins/destination/postgresql/cloud-config-ui/package-lock.json b/plugins/destination/postgresql/cloud-config-ui/package-lock.json index d967f6c6503b7d..df2b5737622a3a 100644 --- a/plugins/destination/postgresql/cloud-config-ui/package-lock.json +++ b/plugins/destination/postgresql/cloud-config-ui/package-lock.json @@ -9,8 +9,8 @@ "version": "0.1.0", "dependencies": { "@cloudquery/cloud-ui": "^0.1.12", - "@cloudquery/plugin-config-ui-connector": "^0.2.9", - "@cloudquery/plugin-config-ui-lib": "^0.0.47", + "@cloudquery/plugin-config-ui-connector": "^0.2.12", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", @@ -2085,9 +2085,10 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, "node_modules/@cloudquery/cloud-ui": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@cloudquery/cloud-ui/-/cloud-ui-0.1.12.tgz", - "integrity": "sha512-JJdqFN4RGLexGrjDKYNKHQucGxz96bMyLwRivWIRUgLX69QT9+J46hjLgZjj2wEIVFXbRm6dujjUTZDiVNSGaw==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@cloudquery/cloud-ui/-/cloud-ui-0.1.13.tgz", + "integrity": "sha512-uPR/p5LDYlmW+5SKG6LQ4XktR+Mx7CUgb6JmJ49qXxMd2wwxS5lQb85ier5KMODbRPiqEeAha3Py++XgODbAGg==", + "license": "MPL-2.0", "peerDependencies": { "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", @@ -2102,21 +2103,22 @@ } }, "node_modules/@cloudquery/plugin-config-ui-connector": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-connector/-/plugin-config-ui-connector-0.2.10.tgz", - "integrity": "sha512-sA87jLj2YKDhAZ0qm4Sk/aKt3rEhDhwETRYmoMa+iTXq3k1ArLQ3j3beE/O3QTp9mys7CfFhEW57UCSrhl1/xA==", + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-connector/-/plugin-config-ui-connector-0.2.13.tgz", + "integrity": "sha512-CwCpHEyCXpO4lvVANgQV+rUmgawyYh0bPD+lN7YfvS15IPu4SHSKodjQDFKHIRqVCfbXi7Euc7Cw3RINEoU3Qg==", "license": "MPL-2.0" }, "node_modules/@cloudquery/plugin-config-ui-lib": { - "version": "0.0.47", - "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-lib/-/plugin-config-ui-lib-0.0.47.tgz", - "integrity": "sha512-C/lwVspY1hMuRmr85/5rL7kaBDTyPWEtJ2zQgoeT1Xl15svroP8jsZ+QhJ212EhZy2RDVaXDcXTPMicUY7uQmA==", + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-lib/-/plugin-config-ui-lib-0.0.57.tgz", + "integrity": "sha512-AVYy9lIyCbrdfHxSxkTAtoQTrPtp4z6XKD9TsCSxTJ5kOQkcIg5UtZtHXI7h5bqAgnrUI/KcDDTYSarEKhYSXQ==", "license": "MPL-2.0", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.8" + "@cloudquery/cloud-ui": "^0.1.8", + "@rudderstack/analytics-js": "3.7.6" }, "peerDependencies": { - "@cloudquery/plugin-config-ui-connector": "^0.2.9", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", "@mui/icons-material": "^5.15.20", "@mui/lab": "^5.0.0-alpha.170", "@mui/material": "^5.15.20", @@ -4161,6 +4163,11 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" }, + "node_modules/@rudderstack/analytics-js": { + "version": "3.7.6", + "resolved": "https://registry.npmjs.org/@rudderstack/analytics-js/-/analytics-js-3.7.6.tgz", + "integrity": "sha512-KMnWdRDKYID+VsQAy3KVXV6mjb1FhJ0SdmkZ5obaPVUUVmJKKAwMqGME8ZXeKaZRaLEgoDNXzoQhWCqTEqkM0A==" + }, "node_modules/@rushstack/eslint-patch": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz", diff --git a/plugins/destination/postgresql/cloud-config-ui/package.json b/plugins/destination/postgresql/cloud-config-ui/package.json index e1cf0332df5555..adf044b0c356f0 100644 --- a/plugins/destination/postgresql/cloud-config-ui/package.json +++ b/plugins/destination/postgresql/cloud-config-ui/package.json @@ -5,8 +5,8 @@ "homepage": "./", "dependencies": { "@cloudquery/cloud-ui": "^0.1.12", - "@cloudquery/plugin-config-ui-connector": "^0.2.9", - "@cloudquery/plugin-config-ui-lib": "^0.0.47", + "@cloudquery/plugin-config-ui-connector": "^0.2.12", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", diff --git a/plugins/destination/postgresql/cloud-config-ui/src/App.tsx b/plugins/destination/postgresql/cloud-config-ui/src/App.tsx index 739bdfcf3cf7f6..d0feda2a2206bf 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/App.tsx +++ b/plugins/destination/postgresql/cloud-config-ui/src/App.tsx @@ -19,7 +19,10 @@ const DevWrapper = useCloudAppMock ? CloudAppMock : Fragment; const devWrapperProps: any = useCloudAppMock ? require('./.env.json') : undefined; function App() { - const { initialValues, initialized } = useFormInit(pluginUiMessageHandler, false); + const { initialValues, initialized, isManagedDestination } = useFormInit( + pluginUiMessageHandler, + false, + ); useFormHeightChange(pluginUiMessageHandler); const theme = useMemo(() => createTheme(createThemeOptions()), []); @@ -33,6 +36,7 @@ function App() {
diff --git a/plugins/destination/postgresql/cloud-config-ui/src/form/advancedFields.tsx b/plugins/destination/postgresql/cloud-config-ui/src/form/advancedFields.tsx index de37eb88ed8a95..795e5d85f46b08 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/form/advancedFields.tsx +++ b/plugins/destination/postgresql/cloud-config-ui/src/form/advancedFields.tsx @@ -45,7 +45,7 @@ export function AdvancedFields() { fullWidth={true} helperText={getFieldHelperText( fieldState.error?.message, - 'Defines what pgx call events should be logged.', + 'Configure the level of detail of the log from this destination.', )} label="Log level" select={true} diff --git a/plugins/destination/postgresql/cloud-config-ui/src/form/connectionFields.tsx b/plugins/destination/postgresql/cloud-config-ui/src/form/connectionFields.tsx index 43a678ce502180..079a29efec3787 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/form/connectionFields.tsx +++ b/plugins/destination/postgresql/cloud-config-ui/src/form/connectionFields.tsx @@ -25,7 +25,7 @@ const connectionTypeOptions = [ ]; export function FormConnectionFields() { - const [usernameResetted, setUsernameResetted] = useState(false); + const [connectionStringResetted, setConnectionStringResetted] = useState(false); const [passwordResetted, setPasswordResetted] = useState(false); const { @@ -38,14 +38,14 @@ export function FormConnectionFields() { const values = watch(); - const defaultUsername = defaultValues?.username; + const defaultConnectionString = defaultValues?.connectionString; const defaultPassword = defaultValues?.password; - const handleReset = (field: 'username' | 'password') => { + const handleReset = (field: 'connectionString' | 'password') => { switch (field) { - case 'username': { - setUsernameResetted(true); - setValue('username', ''); + case 'connectionString': { + setConnectionStringResetted(true); + setValue('connectionString', ''); break; } @@ -59,11 +59,11 @@ export function FormConnectionFields() { } }; - const handelCancelReset = (field: 'username' | 'password') => { + const handelCancelReset = (field: 'connectionString' | 'password') => { switch (field) { - case 'username': { - setUsernameResetted(false); - setValue('username', defaultUsername || ''); + case 'connectionString': { + setConnectionStringResetted(false); + setValue('connectionString', defaultConnectionString || ''); break; } @@ -84,6 +84,8 @@ export function FormConnectionFields() { // eslint-disable-next-line react-hooks/exhaustive-deps }, [values]); + const defaultConnectionStringIsSecret = defaultConnectionString?.includes('${password}'); + return ( ( - + + {defaultConnectionStringIsSecret && ( + handelCancelReset('connectionString')} + onReset={() => handleReset('connectionString')} + sx={{ minHeight: 55 }} + /> )} - label="Connection string" - autoComplete="off" - required={true} - {...field} - /> + )} /> ) : ( @@ -145,7 +164,7 @@ export function FormConnectionFields() { fullWidth={true} helperText={getFieldHelperText( fieldState.error?.message, - 'Port to connect to, e.g. 5432.', + 'Port to connect to. Optional, defaults to 5432.', )} label="Port" autoComplete="off" @@ -181,26 +200,12 @@ export function FormConnectionFields() { fullWidth={true} helperText={getFieldHelperText( fieldState.error?.message, - 'Username to use when authenticating.', + 'Username to use when authenticating. Optional, defaults to empty.', )} label="Username" autoComplete="off" {...field} - disabled={defaultUsername === '${username}' && !usernameResetted} - value={ - defaultUsername === '${username}' && !usernameResetted - ? envPlaceholder - : field.value - } /> - {defaultUsername === '${username}' && ( - handelCancelReset('username')} - onReset={() => handleReset('username')} - /> - )} )} /> @@ -208,13 +213,13 @@ export function FormConnectionFields() { control={control} name="password" render={({ field, fieldState }) => ( - + handelCancelReset('password')} onReset={() => handleReset('password')} + sx={{ minHeight: 55 }} /> )} @@ -247,7 +253,7 @@ export function FormConnectionFields() { fullWidth={true} helperText={getFieldHelperText( fieldState.error?.message, - 'Name of the PostgreSQL schema you want to connect to. E.g. public.', + 'Name of the PostgreSQL schema you want to connect to. Optional, defaults to public.', )} label="Schema" autoComplete="off" diff --git a/plugins/destination/postgresql/cloud-config-ui/src/form/index.tsx b/plugins/destination/postgresql/cloud-config-ui/src/form/index.tsx index 05b8899e806b86..0739718fd3ff29 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/form/index.tsx +++ b/plugins/destination/postgresql/cloud-config-ui/src/form/index.tsx @@ -22,14 +22,18 @@ import { FormConnectionFields } from './connectionFields'; interface Props { initialValues: FormValues | undefined; + isManagedDestination: boolean; } const formDefaultValues = formValidationSchema.getDefault(); const formValidationResolver = getYupValidationResolver(formValidationSchema); -export function Form({ initialValues }: Props) { +export function Form({ initialValues, isManagedDestination }: Props) { const formContext = useForm({ - defaultValues: initialValues || formDefaultValues, + defaultValues: initialValues || { + ...formDefaultValues, + connectionType: isManagedDestination ? 'string' : 'fields', + }, resolver: formValidationResolver, }); const { control, handleSubmit: handleFormSubmit, getValues } = formContext; @@ -63,7 +67,7 @@ export function Form({ initialValues }: Props) { Configure destination - + PostgreSQL @@ -77,7 +81,7 @@ export function Form({ initialValues }: Props) { fullWidth={true} helperText={getFieldHelperText( fieldState.error?.message, - 'Pick a name to help you identify this destination.', + 'Unique destination name that helps identify the destination within your workspace.', )} label="Destination name" disabled={!!initialValues} diff --git a/plugins/destination/postgresql/cloud-config-ui/src/guides/index.tsx b/plugins/destination/postgresql/cloud-config-ui/src/guides/index.tsx index 34e604bb47ccb8..68fd87e74c560a 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/guides/index.tsx +++ b/plugins/destination/postgresql/cloud-config-ui/src/guides/index.tsx @@ -22,7 +22,12 @@ export function Guides() { { bodies: [ { - text: 'The PostgreSQL destination lets you sync data from any CloudQuery source to a PostgreSQL-compatible database.', + text: ( + <> + The PostgreSQL destination lets you sync data from any CloudQuery source to a + PostgreSQL‑compatible database. + + ), }, ], }, diff --git a/plugins/destination/postgresql/cloud-config-ui/src/utils/generateConnectionUrl.ts b/plugins/destination/postgresql/cloud-config-ui/src/utils/generateConnectionUrl.ts index d82b09cf8d2356..544f8172bc945a 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/utils/generateConnectionUrl.ts +++ b/plugins/destination/postgresql/cloud-config-ui/src/utils/generateConnectionUrl.ts @@ -1,15 +1,9 @@ import { FormValues } from './formSchema'; -export function generateConnectionUrl(values: FormValues, replaceWithEnvs: boolean): string { - let { username } = values; - - if (replaceWithEnvs) { - username = replaceWithEnvs ? (values.username ? '${username}' : '') : values.username; - } - +export function generateConnectionUrl(values: FormValues): string { const password = values.password ? '${password}' : ''; - let finalUrl = `dbtype='postgresql' user='${username}' password='${password}' host='${escapeSingleQuotesAndBackslashes(values.host)}' dbname='${escapeSingleQuotesAndBackslashes(values.database)}'`; + let finalUrl = `dbtype='postgresql' user='${values.username}' password='${password}' host='${escapeSingleQuotesAndBackslashes(values.host)}' dbname='${escapeSingleQuotesAndBackslashes(values.database)}'`; if (values.port) { finalUrl += ` port='${values.port}'`; diff --git a/plugins/destination/postgresql/cloud-config-ui/src/utils/parseConnectionString.ts b/plugins/destination/postgresql/cloud-config-ui/src/utils/parseConnectionString.ts new file mode 100644 index 00000000000000..a7dece27fb8c90 --- /dev/null +++ b/plugins/destination/postgresql/cloud-config-ui/src/utils/parseConnectionString.ts @@ -0,0 +1,118 @@ +interface ConnectionOptions { + originalProtocol: string; + host: string; + password?: string; + user?: string; + port: string; + database: string | null | undefined; + clientEncoding?: string; + sslMode?: 'require' | 'prefer' | 'disable' | 'allow' | 'verify-ca' | 'verify-full'; + schema?: string; +} + +//parses a connection string +export function parseConnectionString(url: string): ConnectionOptions { + try { + const originalProtocol = url.split('://')[0]; + let str = url.replace(/^[a-z]*:\/\//, 'ftp://'); + //unix socket + if (str.charAt(0) === '/') { + const config = str.split(' '); + + return { host: config[0], database: config[1] } as ConnectionOptions; + } + + // Check for empty host in URL + + const config: ConnectionOptions = { + originalProtocol, + host: '', + database: '', + port: '', + }; + let result; + let dummyHost = false; + if (/ |%[^\da-f]|%[\da-f][^\da-f]/i.test(str)) { + // Ensure spaces are encoded as %20 + str = encodeURI(str).replaceAll(/%25(\d\d)/g, '%$1'); + } + + try { + result = new URL(str, 'postgresql://base'); + } catch { + // The URL is invalid so try again with a dummy host + result = new URL(str.replace('@/', '@___DUMMY___/'), 'postgresql://base'); + dummyHost = true; + } + + config.user = config.user || decodeURIComponent(result.username); + config.password = config.password || decodeURIComponent(result.password); + + if (result.protocol == 'socket:') { + config.host = decodeURI(result.pathname); + config.database = result.searchParams.get('db'); + config.clientEncoding = result.searchParams.get('encoding') || undefined; + + return config; + } + const hostname = dummyHost ? '' : result.hostname; + if (!config.host) { + // Only set the host if there is no equivalent query param. + config.host = decodeURIComponent(hostname); + } else if (hostname && /^%2f/i.test(hostname)) { + // Only prepend the hostname to the pathname if it is not a URL encoded Unix socket host. + result.pathname = hostname + result.pathname; + } + if (!config.port) { + // Only set the port if there is no equivalent query param. + config.port = result.port; + } + + const pathname = result.pathname.slice(1) || null; + config.database = pathname ? decodeURI(pathname) : null; + + const searchParams = new URLSearchParams(result.search); + + config.sslMode = searchParams.get('sslmode') as ConnectionOptions['sslMode']; + + return config; + } catch { + return { + originalProtocol: '', + host: '', + password: '', + user: '', + port: '', + database: '', + clientEncoding: '', + }; + } +} + +export function generateConnectionString(options: ConnectionOptions): string { + const url = new URL('https://cloudquery.io'); + url.protocol = options.originalProtocol; + url.hostname = options.host; + url.port = options.port; + url.pathname = encodeURIComponent(options.database || ''); + + if (options.sslMode) { + url.searchParams.set('sslmode', options.sslMode); + } + if (options.schema) { + url.searchParams.set('search_path', options.schema); + } + + const userInfo = [options.user, options.password].filter(Boolean).join(':'); + + let finalUrl = url.toString().replace(/^[a-z]*:\/\//, `${options.originalProtocol}://`); + + if (userInfo) { + finalUrl = finalUrl.replace( + `${options.originalProtocol}://`, + `${options.originalProtocol}://${userInfo}@`, + ); + } + + return finalUrl; +} diff --git a/plugins/destination/postgresql/cloud-config-ui/src/utils/prepareSubmitValues.ts b/plugins/destination/postgresql/cloud-config-ui/src/utils/prepareSubmitValues.ts index 58a0b94da0beaa..a26ad83e0d6418 100644 --- a/plugins/destination/postgresql/cloud-config-ui/src/utils/prepareSubmitValues.ts +++ b/plugins/destination/postgresql/cloud-config-ui/src/utils/prepareSubmitValues.ts @@ -1,32 +1,44 @@ import { PluginUiMessagePayload } from '@cloudquery/plugin-config-ui-connector'; import { FormValues } from './formSchema'; import { escapeSingleQuotesAndBackslashes, generateConnectionUrl } from './generateConnectionUrl'; +import { generateConnectionString, parseConnectionString } from './parseConnectionString'; export function prepareSubmitValues( values: FormValues, ): PluginUiMessagePayload['validation_passed']['values'] { const envs = [] as Array<{ name: string; value: string }>; + let { connectionString } = values; - if (values.username) { - envs.push({ - name: 'username', - value: - values.username === '${username}' ? '' : escapeSingleQuotesAndBackslashes(values.username), - }); - } - if (values.password) { - envs.push({ - name: 'password', - value: - values.password === '${password}' ? '' : escapeSingleQuotesAndBackslashes(values.password), - }); + if (values.connectionType === 'string') { + const { password, ...connectionStringProps } = parseConnectionString(values.connectionString); + + if (password && password !== '${password}') { + envs.push({ name: 'password', value: password }); + connectionString = generateConnectionString({ + ...connectionStringProps, + password: '${password}', + }); + } else if (password && password === '${password}') { + envs.push({ name: 'password', value: '' }); + } + } else { + if (values.password) { + envs.push({ + name: 'password', + value: + values.password === '${password}' + ? '' + : escapeSingleQuotesAndBackslashes(values.password), + }); + } } return { name: values.name, envs, spec: { - connection_string: generateConnectionUrl(values, true), + connection_string: + values.connectionType === 'string' ? connectionString : generateConnectionUrl(values), pgx_log_level: values.pgxLogLevel, batch_size: values.batchSize, batch_size_bytes: values.batchSizeBytes, diff --git a/plugins/destination/postgresql/go.mod b/plugins/destination/postgresql/go.mod index bc78a1e69f05c1..ff98ccd85f9f80 100644 --- a/plugins/destination/postgresql/go.mod +++ b/plugins/destination/postgresql/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/google/go-cmp v0.6.0 github.com/invopop/jsonschema v0.12.0 github.com/jackc/pgx-zerolog v0.0.0-20230315001418-f978528409eb @@ -36,8 +36,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/postgresql/go.sum b/plugins/destination/postgresql/go.sum index d448dea4094312..c21bbf6bf1233b 100644 --- a/plugins/destination/postgresql/go.sum +++ b/plugins/destination/postgresql/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/s3/CHANGELOG.md b/plugins/destination/s3/CHANGELOG.md index 0262a47270cf0f..0165b04d7c54a0 100644 --- a/plugins/destination/s3/CHANGELOG.md +++ b/plugins/destination/s3/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## [7.4.1](https://github.com/cloudquery/cloudquery/compare/plugins-destination-s3-v7.4.0...plugins-destination-s3-v7.4.1) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [7.4.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-s3-v7.3.5...plugins-destination-s3-v7.4.0) (2024-08-13) + + +### Features + +* Document new parquet options ([#18919](https://github.com/cloudquery/cloudquery/issues/18919)) ([2432c58](https://github.com/cloudquery/cloudquery/commit/2432c58b413ad053b12bbf6679bcd981171f6903)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/filetypes/v4 to v4.3.0 ([#18917](https://github.com/cloudquery/cloudquery/issues/18917)) ([727ed92](https://github.com/cloudquery/cloudquery/commit/727ed92b39161137ceea2f99e89b70c3cb732eae)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) + +## [7.3.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-s3-v7.3.4...plugins-destination-s3-v7.3.5) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update aws-sdk-go-v2 monorepo ([#18845](https://github.com/cloudquery/cloudquery/issues/18845)) ([82b4dec](https://github.com/cloudquery/cloudquery/commit/82b4dec19be30dad705df7b84c1d8cc66af2d43e)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [7.3.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-s3-v7.3.3...plugins-destination-s3-v7.3.4) (2024-07-30) diff --git a/plugins/destination/s3/client/spec/schema.json b/plugins/destination/s3/client/spec/schema.json index 81d366ad771985..9098eff672a72a 100644 --- a/plugins/destination/s3/client/spec/schema.json +++ b/plugins/destination/s3/client/spec/schema.json @@ -32,6 +32,30 @@ "description": "CloudQuery JSON file output spec." }, "ParquetSpec": { + "properties": { + "version": { + "type": "string", + "enum": [ + "v1.0", + "v2.4", + "v2.6", + "v2Latest" + ], + "description": "Parquet format version", + "default": "v2Latest" + }, + "root_repetition": { + "type": "string", + "enum": [ + "undefined", + "required", + "optional", + "repeated" + ], + "description": "Root repetition", + "default": "repeated" + } + }, "additionalProperties": false, "type": "object", "description": "CloudQuery Parquet file output spec." diff --git a/plugins/destination/s3/docs/_configuration.md b/plugins/destination/s3/docs/_configuration.md index 9f14ae88ba3144..f433a4d636eb1f 100644 --- a/plugins/destination/s3/docs/_configuration.md +++ b/plugins/destination/s3/docs/_configuration.md @@ -17,9 +17,12 @@ spec: path: "path/to/files/{{TABLE}}/{{UUID}}.{{FORMAT}}" format: "parquet" # options: parquet, json, csv format_spec: - # CSV-specific parameters: + # CSV specific parameters: # delimiter: "," # skip_header: false + # Parquet specific parameters: + # version: "v2Latest" + # root_repetition: "repeated" # Optional parameters # compression: "" # options: gzip diff --git a/plugins/destination/s3/docs/overview.md b/plugins/destination/s3/docs/overview.md index 1256a06285cfe6..262e31a1ff151e 100644 --- a/plugins/destination/s3/docs/overview.md +++ b/plugins/destination/s3/docs/overview.md @@ -118,13 +118,34 @@ This is the (nested) spec used by the CSV destination Plugin. ### format_spec +#### CSV + - `delimiter` (`string`) (optional) (default: `,`) - Character that will be used as want to use as the delimiter if the format type is `csv` + Delimiter to use in the CSV file. - `skip_header` (`boolean`) (optional) (default: `false`) - Specifies if the first line of a file should be the headers (when format is `csv`). + If set to `true`, the CSV file will not contain a header row as the first row. + +#### JSON + +Reserved for future use. + +#### Parquet + +- `version` (`string`) (optional) (default: `v2Latest`) + + Parquet format version to use. Supported values are `v1.0`, `v2.4`, `v2.6` and `v2Latest`. + `v2Latest` is an alias for the latest version available in the Parquet library which is currently `v2.6`. + + Useful when the reader consuming the Parquet files does not support the latest version. + +- `root_repetition` (`string`) (optional) (default: `repeated`) + + [Repetition option to use for the root node](https://github.com/apache/arrow/issues/20243). Supported values are `undefined`, `required`, `optional` and `repeated`. + + Some Parquet readers require a specific root repetition option to be able to read the file. For example, importing Parquet files into [Snowflake](https://www.snowflake.com/en/) requires the root repetition to be `undefined`. ### server_side_encryption_configuration diff --git a/plugins/destination/s3/go.mod b/plugins/destination/s3/go.mod index f4992b4c03f335..75ee005abc693b 100644 --- a/plugins/destination/s3/go.mod +++ b/plugins/destination/s3/go.mod @@ -10,8 +10,8 @@ require ( github.com/aws/aws-sdk-go-v2/service/s3 v1.58.3 github.com/aws/smithy-go v1.20.3 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/filetypes/v4 v4.2.29 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/filetypes/v4 v4.3.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -45,8 +45,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/s3/go.sum b/plugins/destination/s3/go.sum index 204f34de925059..f4e37c6bad7c63 100644 --- a/plugins/destination/s3/go.sum +++ b/plugins/destination/s3/go.sum @@ -62,20 +62,20 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= -github.com/cloudquery/filetypes/v4 v4.2.29 h1:yF98+0oPE3VisyNvZ5ucJm8DHOxP60IHt2HnXTYCe/I= -github.com/cloudquery/filetypes/v4 v4.2.29/go.mod h1:wKzaBzu6qnM1NqwZt/YvhvPvjclP3JSR17qjiXfVh3w= +github.com/cloudquery/filetypes/v4 v4.3.0 h1:/hcmVSd0WapY2qwcE5DxOS/K9Kdr0ZQ61CvWRDVu2/4= +github.com/cloudquery/filetypes/v4 v4.3.0/go.mod h1:omacXbRpAEGAJAYh0lUzBGsnwj+5ACgH5irQWNmMWq0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/snowflake/CHANGELOG.md b/plugins/destination/snowflake/CHANGELOG.md index 5d4b00e8bb88db..3034e945a78640 100644 --- a/plugins/destination/snowflake/CHANGELOG.md +++ b/plugins/destination/snowflake/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [4.2.5](https://github.com/cloudquery/cloudquery/compare/plugins-destination-snowflake-v4.2.4...plugins-destination-snowflake-v4.2.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [4.2.4](https://github.com/cloudquery/cloudquery/compare/plugins-destination-snowflake-v4.2.3...plugins-destination-snowflake-v4.2.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [4.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-destination-snowflake-v4.2.2...plugins-destination-snowflake-v4.2.3) (2024-07-30) diff --git a/plugins/destination/snowflake/go.mod b/plugins/destination/snowflake/go.mod index 31869bf0ffd36a..865e5492d2e79d 100644 --- a/plugins/destination/snowflake/go.mod +++ b/plugins/destination/snowflake/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/goccy/go-json v0.10.3 github.com/rs/zerolog v1.33.0 github.com/snowflakedb/gosnowflake v1.7.2 @@ -47,8 +47,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/danieljoos/wincred v1.2.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/plugins/destination/snowflake/go.sum b/plugins/destination/snowflake/go.sum index 5fdb83b5872353..48b8783bb057b7 100644 --- a/plugins/destination/snowflake/go.sum +++ b/plugins/destination/snowflake/go.sum @@ -76,18 +76,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8GQs= diff --git a/plugins/destination/sqlite/CHANGELOG.md b/plugins/destination/sqlite/CHANGELOG.md index 01e2647d05ef9e..50dadc6514e714 100644 --- a/plugins/destination/sqlite/CHANGELOG.md +++ b/plugins/destination/sqlite/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.9.10](https://github.com/cloudquery/cloudquery/compare/plugins-destination-sqlite-v2.9.9...plugins-destination-sqlite-v2.9.10) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [2.9.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-sqlite-v2.9.8...plugins-destination-sqlite-v2.9.9) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [2.9.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-sqlite-v2.9.7...plugins-destination-sqlite-v2.9.8) (2024-07-30) diff --git a/plugins/destination/sqlite/go.mod b/plugins/destination/sqlite/go.mod index abc1b95c1b7a11..359506de017e99 100644 --- a/plugins/destination/sqlite/go.mod +++ b/plugins/destination/sqlite/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/mattn/go-sqlite3 v1.14.22 github.com/rs/zerolog v1.33.0 ) @@ -31,8 +31,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/sqlite/go.sum b/plugins/destination/sqlite/go.sum index 5574ab0d233e02..283c54787865f4 100644 --- a/plugins/destination/sqlite/go.sum +++ b/plugins/destination/sqlite/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/destination/test/CHANGELOG.md b/plugins/destination/test/CHANGELOG.md index ce9fd8ca4e68d9..734a450e33097c 100644 --- a/plugins/destination/test/CHANGELOG.md +++ b/plugins/destination/test/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.3.24](https://github.com/cloudquery/cloudquery/compare/plugins-destination-test-v2.3.23...plugins-destination-test-v2.3.24) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [2.3.23](https://github.com/cloudquery/cloudquery/compare/plugins-destination-test-v2.3.22...plugins-destination-test-v2.3.23) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [2.3.22](https://github.com/cloudquery/cloudquery/compare/plugins-destination-test-v2.3.21...plugins-destination-test-v2.3.22) (2024-07-30) diff --git a/plugins/destination/test/go.mod b/plugins/destination/test/go.mod index ee4ade77486287..abb85a3fdecf4a 100644 --- a/plugins/destination/test/go.mod +++ b/plugins/destination/test/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.33.0 ) @@ -31,8 +31,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/destination/test/go.sum b/plugins/destination/test/go.sum index 262389b22477a1..128b3dc2c8eccb 100644 --- a/plugins/destination/test/go.sum +++ b/plugins/destination/test/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/source/airtable/CHANGELOG.md b/plugins/source/airtable/CHANGELOG.md index d0396cd1014a82..a673d37946dbd4 100644 --- a/plugins/source/airtable/CHANGELOG.md +++ b/plugins/source/airtable/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [2.2.7](https://github.com/cloudquery/cloudquery/compare/plugins-source-airtable-v2.2.6...plugins-source-airtable-v2.2.7) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/plugin-sdk-javascript to v0.1.17 ([#18753](https://github.com/cloudquery/cloudquery/issues/18753)) ([59f0965](https://github.com/cloudquery/cloudquery/commit/59f096587ab1258a25a0759086517ecbe4789d2e)) +* **deps:** Update dependency dayjs to v1.11.12 ([#18800](https://github.com/cloudquery/cloudquery/issues/18800)) ([ecd6b3d](https://github.com/cloudquery/cloudquery/commit/ecd6b3d7c32587e3c2502ff48431652fd5c581db)) + ## [2.2.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-airtable-v2.2.5...plugins-source-airtable-v2.2.6) (2024-07-18) diff --git a/plugins/source/airtable/package-lock.json b/plugins/source/airtable/package-lock.json index ccfa38395996f0..e9254b5f9c3353 100644 --- a/plugins/source/airtable/package-lock.json +++ b/plugins/source/airtable/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cloudquery/cq-source-airtable", - "version": "2.2.6", + "version": "2.2.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cloudquery/cq-source-airtable", - "version": "2.2.6", + "version": "2.2.7", "license": "MPL-2.0", "dependencies": { "@cloudquery/plugin-sdk-javascript": "^0.1.6", diff --git a/plugins/source/airtable/package.json b/plugins/source/airtable/package.json index 4c5da09012d562..d3d2be209b6ee5 100644 --- a/plugins/source/airtable/package.json +++ b/plugins/source/airtable/package.json @@ -1,6 +1,6 @@ { "name": "@cloudquery/cq-source-airtable", - "version": "2.2.6", + "version": "2.2.7", "description": "A CloudQuery source plugin to sync data from Airtable", "keywords": [ "nodejs", diff --git a/plugins/source/hackernews/CHANGELOG.md b/plugins/source/hackernews/CHANGELOG.md index e13c6120b34b2e..c4c01ff3bc470a 100644 --- a/plugins/source/hackernews/CHANGELOG.md +++ b/plugins/source/hackernews/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## [3.5.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-hackernews-v3.5.1...plugins-source-hackernews-v3.5.2) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/cloud-ui to v0.1.13 ([#18874](https://github.com/cloudquery/cloudquery/issues/18874)) ([73f5ff0](https://github.com/cloudquery/cloudquery/commit/73f5ff0b4445119d5320454bc62376a655e7706a)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.12 ([#18869](https://github.com/cloudquery/cloudquery/issues/18869)) ([47734e3](https://github.com/cloudquery/cloudquery/commit/47734e36bce6ea2409a7796f4d8e607ac08c7215)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.13 ([#18911](https://github.com/cloudquery/cloudquery/issues/18911)) ([85425cb](https://github.com/cloudquery/cloudquery/commit/85425cb0ce84dc670098c1a6d46bae0ec547445f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.54 ([#18870](https://github.com/cloudquery/cloudquery/issues/18870)) ([8c5a436](https://github.com/cloudquery/cloudquery/commit/8c5a4365d5c7083dce02f1a8ee0136d083d7d45c)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.55 ([#18877](https://github.com/cloudquery/cloudquery/issues/18877)) ([07e176b](https://github.com/cloudquery/cloudquery/commit/07e176bf8ae9331686547b4f53ab175df04117dc)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.56 ([#18904](https://github.com/cloudquery/cloudquery/issues/18904)) ([62fbd9a](https://github.com/cloudquery/cloudquery/commit/62fbd9a0d36398250cc5e8ce653a2b6f257dafd0)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.57 ([#18912](https://github.com/cloudquery/cloudquery/issues/18912)) ([f4ebbfb](https://github.com/cloudquery/cloudquery/commit/f4ebbfba2f5717c42e23c9b029cd541510d1c37f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) +* Table selector for xkcd and hackernews plugin UI ([#18910](https://github.com/cloudquery/cloudquery/issues/18910)) ([3dd1e22](https://github.com/cloudquery/cloudquery/commit/3dd1e2202450b33fbf059b6ffc5b4f45906f0930)) +* Update XKCD and hackernews to fix tracking in cloud UI ([#18913](https://github.com/cloudquery/cloudquery/issues/18913)) ([c05da5a](https://github.com/cloudquery/cloudquery/commit/c05da5a5d984f9527f2c4962275da9ce67cfc7bf)) + +## [3.5.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-hackernews-v3.5.0...plugins-source-hackernews-v3.5.1) (2024-08-05) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.11 ([#18860](https://github.com/cloudquery/cloudquery/issues/18860)) ([f7287b9](https://github.com/cloudquery/cloudquery/commit/f7287b93b1e8b93194956016e16eddadba8a36f6)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.49 ([#18851](https://github.com/cloudquery/cloudquery/issues/18851)) ([faed134](https://github.com/cloudquery/cloudquery/commit/faed134a2ab79ad9b23d1131c3f668f679b75d1d)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.50 ([#18861](https://github.com/cloudquery/cloudquery/issues/18861)) ([79b4291](https://github.com/cloudquery/cloudquery/commit/79b4291f41c055fe1383d3c5205d0b798106c15f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.52 ([#18862](https://github.com/cloudquery/cloudquery/issues/18862)) ([c275aed](https://github.com/cloudquery/cloudquery/commit/c275aed8c28060f525bcd6a2f8fd35a73d8b5a51)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.53 ([#18863](https://github.com/cloudquery/cloudquery/issues/18863)) ([c64d143](https://github.com/cloudquery/cloudquery/commit/c64d14305055788862be479c9ce6e7c02189d9e0)) + ## [3.5.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-hackernews-v3.4.0...plugins-source-hackernews-v3.5.0) (2024-08-05) diff --git a/plugins/source/hackernews/cloud-config-ui/.eslintrc.json b/plugins/source/hackernews/cloud-config-ui/.eslintrc.json index 49845dde197ce7..13dcf7507abe8f 100644 --- a/plugins/source/hackernews/cloud-config-ui/.eslintrc.json +++ b/plugins/source/hackernews/cloud-config-ui/.eslintrc.json @@ -1,5 +1,6 @@ { "root": true, + "plugins": ["import", "custom-rules"], "extends": [ "eslint:recommended", "plugin:react/recommended", @@ -7,7 +8,8 @@ "plugin:@typescript-eslint/recommended", "plugin:jsx-a11y/recommended", "plugin:prettier/recommended", - "plugin:unicorn/recommended" + "plugin:unicorn/recommended", + "plugin:import/typescript" ], "globals": { "JSX": true @@ -18,6 +20,7 @@ "node": true }, "rules": { + "custom-rules/mui-material-imports": "error", "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-explicit-any": 0, @@ -31,13 +34,50 @@ } ], "jsx-a11y/alt-text": "off", + "jsx-a11y/anchor-is-valid": [ + "error", + { + "components": ["Link"], + "specialLink": ["to"] + } + ], "jsx-a11y/label-has-associated-control": [ "error", { "depth": 5 } ], - "jsx-a11y/anchor-is-valid": "off", + "import/newline-after-import": "error", + "import/no-duplicates": ["error", { "prefer-inline": false }], + "import/no-unresolved": "error", + "import/order": [ + "error", + { + "alphabetize": { + "caseInsensitive": true, + "order": "asc" + }, + "groups": [ + "builtin", + "external", + "internal", + ["sibling", "parent"], + "index", + "object", + "type", + "unknown" + ], + "newlines-between": "always-and-inside-groups", + "pathGroups": [ + { + "group": "external", + "pattern": "react", + "position": "before" + } + ], + "pathGroupsExcludedImportTypes": ["react"] + } + ], "jsx-a11y/media-has-caption": "off", "jsx-a11y/no-autofocus": "off", "jsx-a11y/no-onchange": "off", @@ -50,7 +90,7 @@ "no-prototype-builtins": 0, "no-undef": "error", "no-unexpected-multiline": "error", - "no-unused-vars": "off", + "no-unused-vars": "error", "object-curly-newline": [ "error", { @@ -83,7 +123,8 @@ "react/jsx-boolean-value": ["error", "always"], "react/jsx-first-prop-new-line": ["error", "multiline"], "react/jsx-fragments": ["error", "syntax"], - "react/jsx-uses-react": "off", + "react/jsx-uses-react": "error", + "react/jsx-uses-vars": "error", "react/react-in-jsx-scope": "off", "unicorn/filename-case": "off", "unicorn/no-nested-ternary": "off", @@ -91,5 +132,10 @@ "unicorn/no-useless-undefined": "off", "unicorn/prevent-abbreviations": "off" }, - "ignorePatterns": ["node_modules/", "dist/", "*.js", "*.cjs"] + "ignorePatterns": ["node_modules/", "dist/", "*.js", "*.cjs"], + "settings": { + "react": { + "version": "detect" + } + } } diff --git a/plugins/source/hackernews/cloud-config-ui/README.md b/plugins/source/hackernews/cloud-config-ui/README.md index 4712b4df323096..8264ee51d20688 100644 --- a/plugins/source/hackernews/cloud-config-ui/README.md +++ b/plugins/source/hackernews/cloud-config-ui/README.md @@ -9,6 +9,14 @@ Make sure to copy `.env.example.json` to `.env.json` inside `src` folder before - `authToken` and `teamName` is required if you need to use CloudQuery API. You can get the token by navigating to https://cloud.cloudquery.io and inspecting any fetch request: you can extract the token from the `Authorization` header. - `initialValues` is required if you want to see how your plugin behaves with initial values +## Plugin tables + +In case your plugin is a source plugin and you want to use the list of tables in your plugin UI, then make sure to build the plugin first to get a generated list of tables. Inside the plugin root directory run `go build`. This will generate a plugin file and then you should navigate back to the `cloud-config-ui` directory inside your plugin and run `npm start` or `npm run build`, they both will generate a `__tables.json` file in the `src/data` folder. After that you can import the list of tables inside the application like this: + +```ts +import pluginTables from 'data/__tables.json'; +``` + ## Available Scripts In the project directory, you can run: diff --git a/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/index.cjs b/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/index.cjs new file mode 100644 index 00000000000000..a90d5c37eed358 --- /dev/null +++ b/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/index.cjs @@ -0,0 +1,5 @@ +module.exports = { + rules: { + 'mui-material-imports': require('./mui-material-imports.cjs'), + }, +}; diff --git a/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs b/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs new file mode 100644 index 00000000000000..eea2529866be79 --- /dev/null +++ b/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs @@ -0,0 +1,146 @@ +module.exports = { + meta: { + type: 'suggestion', + docs: { + description: 'disallow named imports from @mui/material', + category: 'Best Practices', + recommended: false, + }, + fixable: 'code', + schema: [], // no options + }, + create(context) { + return { + ImportDeclaration(node) { + if (node.source.value === '@mui/material' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/material', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + let newImportStatement = `import ${importName} from '@mui/material/${importName}';`; + switch (importName) { + case 'useTheme': { + newImportStatement = `import useTheme from '@mui/material/styles/useTheme';`; + break; + } + case 'useMediaQuery': { + newImportStatement = `import useMediaQuery from '@mui/material/useMediaQuery';`; + break; + } + case 'ThemeProvider': { + newImportStatement = `import ThemeProvider from '@mui/material/styles/ThemeProvider';`; + break; + } + case 'createTheme': { + newImportStatement = `import createTheme from '@mui/material/styles/createTheme';`; + break; + } + case 'createTypography': { + newImportStatement = `import createTypography from '@mui/material/styles/createTypography';`; + break; + } + case 'styled': { + newImportStatement = `import styled from '@mui/material/styles/styled';`; + break; + } + case 'alpha': { + newImportStatement = `import { alpha } from '@mui/material/styles';`; + break; + } + case 'Theme': { + newImportStatement = `import { Theme } from '@mui/material/styles';`; + break; + } + case 'Palette': { + newImportStatement = `import { Palette } from '@mui/material/styles/createPalette';`; + break; + } + case 'PaletteColor': { + newImportStatement = `import { PaletteColor } from '@mui/material/styles/createPalette';`; + break; + } + case 'PaletteOptions': { + newImportStatement = `import { PaletteOptions } from '@mui/material/styles/createPalette';`; + break; + } + case 'Components': { + newImportStatement = `import { Components } from '@mui/material/styles';`; + break; + } + case 'Shadows': { + newImportStatement = `import { Shadows } from '@mui/material/styles';`; + break; + } + case 'Breakpoint': { + newImportStatement = `import { Breakpoint } from '@mui/material/styles';`; + break; + } + case 'TypographyOptions': { + newImportStatement = `import { TypographyOptions } from '@mui/material/styles/createTypography';`; + break; + } + } + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } else if (node.source.value === '@mui/icons-material' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/icons-material', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + const newImportStatement = `import ${importName}Icon from '@mui/icons-material/${importName}';`; + + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } else if (node.source.value === '@mui/lab' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/lab', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + const newImportStatement = `import ${importName} from '@mui/lab/${importName}';`; + + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } + }, + }; + }, +}; diff --git a/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/package.json b/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/package.json new file mode 100644 index 00000000000000..67bb6b5725419c --- /dev/null +++ b/plugins/source/hackernews/cloud-config-ui/eslint-plugin-custom-rules/package.json @@ -0,0 +1,4 @@ +{ + "name": "eslint-plugin-custom-rules", + "main": "index.cjs" +} diff --git a/plugins/source/hackernews/cloud-config-ui/package-lock.json b/plugins/source/hackernews/cloud-config-ui/package-lock.json index 0f66a64569be3e..fec6162f8d6147 100644 --- a/plugins/source/hackernews/cloud-config-ui/package-lock.json +++ b/plugins/source/hackernews/cloud-config-ui/package-lock.json @@ -8,9 +8,9 @@ "name": "hackernews-source-cloud-config-ui", "version": "0.1.0", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.9", - "@cloudquery/plugin-config-ui-connector": "^0.2.8", - "@cloudquery/plugin-config-ui-lib": "^0.0.47", + "@cloudquery/cloud-ui": "^0.1.13", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", @@ -27,27 +27,27 @@ "react-hook-form": "^7.52.0", "react-scripts": "^5.0.1", "typescript": "^4.9.5", - "web-vitals": "^2.1.4", "yup": "^1.4.0" }, "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@playwright/test": "^1.45.3", - "@types/node": "^16.18.104", + "@playwright/test": "^1.46.0", + "@types/node": "^22.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-custom-rules": "file:./eslint-plugin-custom-rules", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.2", + "eslint-plugin-jsx-a11y": "^6.9.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-sort-destructure-keys": "^2.0.0", - "eslint-plugin-unicorn": "^54.0.0", + "eslint-plugin-unicorn": "^55.0.0", "http-server": "^14.1.1", - "prettier": "^3.3.1", + "prettier": "^3.3.3", "yaml": "^2.5.0" } }, @@ -115,6 +115,9 @@ "../../../../plugin-config-ui-lib": { "extraneous": true }, + "eslint-plugin-custom-rules": { + "dev": true + }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", @@ -2086,9 +2089,9 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, "node_modules/@cloudquery/cloud-ui": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@cloudquery/cloud-ui/-/cloud-ui-0.1.12.tgz", - "integrity": "sha512-JJdqFN4RGLexGrjDKYNKHQucGxz96bMyLwRivWIRUgLX69QT9+J46hjLgZjj2wEIVFXbRm6dujjUTZDiVNSGaw==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@cloudquery/cloud-ui/-/cloud-ui-0.1.13.tgz", + "integrity": "sha512-uPR/p5LDYlmW+5SKG6LQ4XktR+Mx7CUgb6JmJ49qXxMd2wwxS5lQb85ier5KMODbRPiqEeAha3Py++XgODbAGg==", "license": "MPL-2.0", "peerDependencies": { "@emotion/react": "^11.11.4", @@ -2104,21 +2107,21 @@ } }, "node_modules/@cloudquery/plugin-config-ui-connector": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-connector/-/plugin-config-ui-connector-0.2.10.tgz", - "integrity": "sha512-sA87jLj2YKDhAZ0qm4Sk/aKt3rEhDhwETRYmoMa+iTXq3k1ArLQ3j3beE/O3QTp9mys7CfFhEW57UCSrhl1/xA==", + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-connector/-/plugin-config-ui-connector-0.2.13.tgz", + "integrity": "sha512-CwCpHEyCXpO4lvVANgQV+rUmgawyYh0bPD+lN7YfvS15IPu4SHSKodjQDFKHIRqVCfbXi7Euc7Cw3RINEoU3Qg==", "license": "MPL-2.0" }, "node_modules/@cloudquery/plugin-config-ui-lib": { - "version": "0.0.47", - "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-lib/-/plugin-config-ui-lib-0.0.47.tgz", - "integrity": "sha512-C/lwVspY1hMuRmr85/5rL7kaBDTyPWEtJ2zQgoeT1Xl15svroP8jsZ+QhJ212EhZy2RDVaXDcXTPMicUY7uQmA==", - "license": "MPL-2.0", + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-lib/-/plugin-config-ui-lib-0.0.57.tgz", + "integrity": "sha512-AVYy9lIyCbrdfHxSxkTAtoQTrPtp4z6XKD9TsCSxTJ5kOQkcIg5UtZtHXI7h5bqAgnrUI/KcDDTYSarEKhYSXQ==", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.8" + "@cloudquery/cloud-ui": "^0.1.8", + "@rudderstack/analytics-js": "3.7.6" }, "peerDependencies": { - "@cloudquery/plugin-config-ui-connector": "^0.2.9", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", "@mui/icons-material": "^5.15.20", "@mui/lab": "^5.0.0-alpha.170", "@mui/material": "^5.15.20", @@ -3999,12 +4002,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.45.3.tgz", - "integrity": "sha512-UKF4XsBfy+u3MFWEH44hva1Q8Da28G6RFtR2+5saw+jgAFQV5yYnB1fu68Mz7fO+5GJF3wgwAIs0UelU8TxFrA==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.46.0.tgz", + "integrity": "sha512-/QYft5VArOrGRP5pgkrfKksqsKA6CEFyGQ/gjNe6q0y4tZ1aaPfq4gIjudr1s3D+pXyrPRdsy4opKDrjBabE5w==", "dev": true, "dependencies": { - "playwright": "1.45.3" + "playwright": "1.46.0" }, "bin": { "playwright": "cli.js" @@ -4151,6 +4154,12 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" }, + "node_modules/@rudderstack/analytics-js": { + "version": "3.7.6", + "resolved": "https://registry.npmjs.org/@rudderstack/analytics-js/-/analytics-js-3.7.6.tgz", + "integrity": "sha512-KMnWdRDKYID+VsQAy3KVXV6mjb1FhJ0SdmkZ5obaPVUUVmJKKAwMqGME8ZXeKaZRaLEgoDNXzoQhWCqTEqkM0A==", + "license": "Elastic-2.0" + }, "node_modules/@rushstack/eslint-patch": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz", @@ -4590,9 +4599,12 @@ "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==" }, "node_modules/@types/node": { - "version": "16.18.104", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.104.tgz", - "integrity": "sha512-OF3keVCbfPlkzxnnDBUZJn1RiCJzKeadjiW0xTEb0G1SUJ5gDVb3qnzZr2T4uIFvsbKJbXy1v2DN7e2zaEY7jQ==" + "version": "22.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", + "integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", + "dependencies": { + "undici-types": "~6.13.0" + } }, "node_modules/@types/node-forge": { "version": "1.3.11", @@ -5529,17 +5541,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array.prototype.toreversed": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/array.prototype.toreversed/-/array.prototype.toreversed-1.1.2.tgz", - "integrity": "sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - } - }, "node_modules/array.prototype.tosorted": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", @@ -8007,6 +8008,10 @@ "ms": "^2.1.1" } }, + "node_modules/eslint-plugin-custom-rules": { + "resolved": "eslint-plugin-custom-rules", + "link": true + }, "node_modules/eslint-plugin-flowtype": { "version": "8.0.3", "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", @@ -8164,14 +8169,13 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.34.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.34.4.tgz", - "integrity": "sha512-Np+jo9bUwJNxCsT12pXtrGhJgT3T44T1sHhn1Ssr42XFn8TES0267wPGo5nNrMHi8qkyimDAX2BUmkf9pSaVzA==", + "version": "7.35.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.35.0.tgz", + "integrity": "sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==", "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.2", - "array.prototype.toreversed": "^1.1.2", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.0.19", @@ -8192,7 +8196,7 @@ "node": ">=4" }, "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "node_modules/eslint-plugin-react-hooks": { @@ -8264,18 +8268,18 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "54.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-54.0.0.tgz", - "integrity": "sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==", + "version": "55.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-55.0.0.tgz", + "integrity": "sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.24.5", "@eslint-community/eslint-utils": "^4.4.0", - "@eslint/eslintrc": "^3.0.2", "ci-info": "^4.0.0", "clean-regexp": "^1.0.0", "core-js-compat": "^3.37.0", "esquery": "^1.5.0", + "globals": "^15.7.0", "indent-string": "^4.0.0", "is-builtin-module": "^3.2.1", "jsesc": "^3.0.2", @@ -8296,62 +8300,10 @@ "eslint": ">=8.56.0" } }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/eslintrc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", - "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/espree": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz", - "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", - "dev": true, - "dependencies": { - "acorn": "^8.12.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/eslint-plugin-unicorn/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", + "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", "dev": true, "engines": { "node": ">=18" @@ -14188,12 +14140,12 @@ } }, "node_modules/playwright": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.45.3.tgz", - "integrity": "sha512-QhVaS+lpluxCaioejDZ95l4Y4jSFCsBvl2UZkpeXlzxmqS+aABr5c82YmfMHrL6x27nvrvykJAFpkzT2eWdJww==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.0.tgz", + "integrity": "sha512-XYJ5WvfefWONh1uPAUAi0H2xXV5S3vrtcnXe6uAOgdGi3aSpqOSXX08IAjXW34xitfuOJsvXU5anXZxPSEQiJw==", "dev": true, "dependencies": { - "playwright-core": "1.45.3" + "playwright-core": "1.46.0" }, "bin": { "playwright": "cli.js" @@ -14206,9 +14158,9 @@ } }, "node_modules/playwright-core": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.45.3.tgz", - "integrity": "sha512-+ym0jNbcjikaOwwSZycFbwkWgfruWvYlJfThKYAlImbxUgdWFO2oW70ojPm4OpE4t6TAo2FY/smM+hpVTtkhDA==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.46.0.tgz", + "integrity": "sha512-9Y/d5UIwuJk8t3+lhmMSAJyNP1BUC/DqP3cQJDQQL/oWqAiuPTLgy7Q5dzglmTLwcBRdetzgNM/gni7ckfTr6A==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -18342,6 +18294,11 @@ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" }, + "node_modules/undici-types": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", + "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -18615,11 +18572,6 @@ "minimalistic-assert": "^1.0.0" } }, - "node_modules/web-vitals": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz", - "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==" - }, "node_modules/webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", diff --git a/plugins/source/hackernews/cloud-config-ui/package.json b/plugins/source/hackernews/cloud-config-ui/package.json index b07b62f56e630b..1354fbf15e1637 100644 --- a/plugins/source/hackernews/cloud-config-ui/package.json +++ b/plugins/source/hackernews/cloud-config-ui/package.json @@ -4,9 +4,9 @@ "private": true, "homepage": "./", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.9", - "@cloudquery/plugin-config-ui-connector": "^0.2.8", - "@cloudquery/plugin-config-ui-lib": "^0.0.47", + "@cloudquery/cloud-ui": "^0.1.13", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", @@ -23,32 +23,32 @@ "react-hook-form": "^7.52.0", "react-scripts": "^5.0.1", "typescript": "^4.9.5", - "web-vitals": "^2.1.4", "yup": "^1.4.0" }, "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@playwright/test": "^1.45.3", - "@types/node": "^16.18.104", + "@playwright/test": "^1.46.0", + "@types/node": "^22.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-custom-rules": "file:./eslint-plugin-custom-rules", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.2", + "eslint-plugin-jsx-a11y": "^6.9.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-sort-destructure-keys": "^2.0.0", - "eslint-plugin-unicorn": "^54.0.0", + "eslint-plugin-unicorn": "^55.0.0", "http-server": "^14.1.1", - "prettier": "^3.3.1", + "prettier": "^3.3.3", "yaml": "^2.5.0" }, "scripts": { "start": "node scripts/initialize.js && PORT=3001 react-scripts start", - "build": "node scripts/initialize.js && react-scripts build", + "build": "node scripts/initialize.js -f && react-scripts build", "lint": "eslint src --ext .ts,.tsx --max-warnings 0", "lint:fix": "eslint src --ext .ts,.tsx --max-warnings 0 --fix", "test:e2e": "playwright test" diff --git a/plugins/source/hackernews/cloud-config-ui/scripts/gen_tables.js b/plugins/source/hackernews/cloud-config-ui/scripts/gen_tables.js new file mode 100644 index 00000000000000..8b96a1c2d2e6db --- /dev/null +++ b/plugins/source/hackernews/cloud-config-ui/scripts/gen_tables.js @@ -0,0 +1,26 @@ +const fs = require('fs'); +var argv = require('minimist')(process.argv.slice(2)); + +const generateTables = () => + require('child_process').execSync( + `cd .. +dirname="$(basename $(pwd))" +cloudquery tables --output-dir data test/config.yml +mkdir -p cloud-config-ui/src/data +mv data/$dirname/__tables.json cloud-config-ui/src/data/__tables.json`, + (error) => { + if (error !== null) { + console.log(`exec error: ${error}`); + } + }, + ); + +// In production, or when forced, re-generate tables every time +if (process.env.NODE_ENV === 'production' || argv.f) { + return generateTables(); + // In development, only generate tables if they don't exist +} else if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { + if (!fs.existsSync('src/data/__tables.json')) { + return generateTables(); + } +} diff --git a/plugins/source/hackernews/cloud-config-ui/scripts/initialize.js b/plugins/source/hackernews/cloud-config-ui/scripts/initialize.js index 24b83e4997529d..64de47be7296d8 100644 --- a/plugins/source/hackernews/cloud-config-ui/scripts/initialize.js +++ b/plugins/source/hackernews/cloud-config-ui/scripts/initialize.js @@ -1 +1,8 @@ +var argv = require('minimist')(process.argv.slice(2)); + require('child_process').fork('scripts/set_environment.js'); + +const path = require('path'); +if (require('path').basename(path.join(__dirname, '../../..')) === 'source') { + require('child_process').fork(`scripts/gen_tables.js`, ['--f', argv.f]); +} diff --git a/plugins/source/hackernews/cloud-config-ui/src/App.tsx b/plugins/source/hackernews/cloud-config-ui/src/App.tsx index 840b6a29bc245a..73c403f0959524 100644 --- a/plugins/source/hackernews/cloud-config-ui/src/App.tsx +++ b/plugins/source/hackernews/cloud-config-ui/src/App.tsx @@ -1,12 +1,15 @@ -import Stack from '@mui/material/Stack'; +import { Fragment, useMemo } from 'react'; + +import { createThemeOptions } from '@cloudquery/cloud-ui'; +import { CloudAppMock, useFormHeightChange, useFormInit } from '@cloudquery/plugin-config-ui-lib'; import CssBaseline from '@mui/material/CssBaseline'; -import ThemeProvider from '@mui/material/styles/ThemeProvider'; +import Stack from '@mui/material/Stack'; import createTheme from '@mui/material/styles/createTheme'; +import ThemeProvider from '@mui/material/styles/ThemeProvider'; + import { Form } from './form'; -import { Fragment, useMemo } from 'react'; -import { createThemeOptions } from '@cloudquery/cloud-ui'; + import { pluginUiMessageHandler } from './utils/messageHandler'; -import { CloudAppMock, useFormHeightChange, useFormInit } from '@cloudquery/plugin-config-ui-lib'; const useCloudAppMock = (process.env.REACT_APP_USE_CLOUD_APP_MOCK === 'true' || process.env.NODE_ENV !== 'production') && diff --git a/plugins/source/hackernews/cloud-config-ui/src/data/tables.json b/plugins/source/hackernews/cloud-config-ui/src/data/tables.json new file mode 100644 index 00000000000000..4b2243660d6b92 --- /dev/null +++ b/plugins/source/hackernews/cloud-config-ui/src/data/tables.json @@ -0,0 +1,76 @@ +[ + { + "name": "hackernews_items", + "title": "Hackernews Items", + "description": "https://github.com/HackerNews/API#items", + "columns": [ + { + "name": "_cq_id", + "type": "uuid" + }, + { + "name": "_cq_parent_id", + "type": "uuid" + }, + { + "name": "id", + "type": "int64", + "is_primary_key": true, + "is_incremental_key": true + }, + { + "name": "deleted", + "type": "bool" + }, + { + "name": "type", + "type": "utf8" + }, + { + "name": "by", + "type": "utf8" + }, + { + "name": "time", + "type": "timestamp[us, tz=UTC]" + }, + { + "name": "text", + "type": "utf8" + }, + { + "name": "dead", + "type": "bool" + }, + { + "name": "parent", + "type": "int64" + }, + { + "name": "kids", + "type": "list" + }, + { + "name": "url", + "type": "utf8" + }, + { + "name": "score", + "type": "int64" + }, + { + "name": "title", + "type": "utf8" + }, + { + "name": "parts", + "type": "list" + }, + { + "name": "descendants", + "type": "int64" + } + ], + "relations": [] + } +] \ No newline at end of file diff --git a/plugins/source/hackernews/cloud-config-ui/src/form/index.tsx b/plugins/source/hackernews/cloud-config-ui/src/form/index.tsx index 2b8f17aeb7b919..8caab514de12fb 100644 --- a/plugins/source/hackernews/cloud-config-ui/src/form/index.tsx +++ b/plugins/source/hackernews/cloud-config-ui/src/form/index.tsx @@ -1,32 +1,33 @@ -import TextField from '@mui/material/TextField'; -import Switch from '@mui/material/Switch'; -import Stack from '@mui/material/Stack'; -import Card from '@mui/material/Card'; -import CardContent from '@mui/material/CardContent'; -import Typography from '@mui/material/Typography'; -import { Logo } from '@cloudquery/plugin-config-ui-lib'; -import Box from '@mui/material/Box'; -import InputAdornment from '@mui/material/InputAdornment'; -import { Controller, FormProvider, useForm, useWatch } from 'react-hook-form'; -import { getYupValidationResolver } from '@cloudquery/cloud-ui'; -import { FormValues, getFormValidationSchema, getDefaultStartTime } from '../utils/formSchema'; -import { FormMessagePayload } from '@cloudquery/plugin-config-ui-connector'; -import { prepareSubmitValues } from '../utils/prepareSubmitValues'; -import { pluginUiMessageHandler } from '../utils/messageHandler'; import { useCallback, useMemo } from 'react'; -import { LocalizationProvider } from '@mui/x-date-pickers'; -import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; -import { DateTimeField } from '@mui/x-date-pickers/DateTimeField'; - -import { assetPrefix } from '../utils/constants'; -import { getFieldHelperText } from '@cloudquery/cloud-ui'; +import { getYupValidationResolver, getFieldHelperText } from '@cloudquery/cloud-ui'; +import { FormMessagePayload } from '@cloudquery/plugin-config-ui-connector'; import { + Logo, FormFieldGroup, scrollToFirstFormFieldError, useFormCurrentValues, useFormSubmit, } from '@cloudquery/plugin-config-ui-lib'; +import Box from '@mui/material/Box'; +import Card from '@mui/material/Card'; +import CardContent from '@mui/material/CardContent'; +import InputAdornment from '@mui/material/InputAdornment'; +import Stack from '@mui/material/Stack'; +import Switch from '@mui/material/Switch'; +import TextField from '@mui/material/TextField'; +import Typography from '@mui/material/Typography'; +import { LocalizationProvider } from '@mui/x-date-pickers'; +import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; +import { DateTimeField } from '@mui/x-date-pickers/DateTimeField'; +import { Controller, FormProvider, useForm, useWatch } from 'react-hook-form'; + +import { PluginTableSelector } from './tableSelector'; +import { assetPrefix } from '../utils/constants'; +import { FormValues, getFormValidationSchema, getDefaultStartTime } from '../utils/formSchema'; + +import { pluginUiMessageHandler } from '../utils/messageHandler'; +import { prepareSubmitValues } from '../utils/prepareSubmitValues'; interface Props { initialValues?: FormMessagePayload['init']['initialValues']; @@ -71,7 +72,7 @@ export function Form({ initialValues }: Props) { return ( - + @@ -107,6 +108,9 @@ export function Form({ initialValues }: Props) { + + + diff --git a/plugins/source/hackernews/cloud-config-ui/src/form/tableSelector.tsx b/plugins/source/hackernews/cloud-config-ui/src/form/tableSelector.tsx new file mode 100644 index 00000000000000..e07338a2a3a838 --- /dev/null +++ b/plugins/source/hackernews/cloud-config-ui/src/form/tableSelector.tsx @@ -0,0 +1,73 @@ +import React, { useCallback, useMemo } from 'react'; + +import { + generatePluginTableList, + generateTablesFromJson, + TableSelector, +} from '@cloudquery/plugin-config-ui-lib'; +import FormHelperText from '@mui/material/FormHelperText'; +import { useFormContext, useWatch } from 'react-hook-form'; + +import tables from '../data/__tables.json'; + +import { FormValues } from '../utils/formSchema'; + +function _PluginTableSelector() { + const { + control, + formState: { errors, submitCount }, + setValue, + trigger, + } = useFormContext(); + const selectedTables: Record = useWatch({ + exact: true, + name: 'tables', + }); + + const handleChange = useCallback( + (value: Record) => { + setValue('tables', value); + trigger('tables'); + }, + [setValue, trigger], + ); + const errorMessage = submitCount > 0 ? (errors?.tables?.message as any) : null; + + const subscribeToTablesValueChange = useCallback( + (callback: (value: Record) => void) => { + const { unsubscribe } = control._subjects.values.subscribe({ + next(payload) { + callback(payload.values.tables); + }, + }); + + return unsubscribe; + }, + [control], + ); + + const tableList = useMemo( + () => generatePluginTableList(generateTablesFromJson(tables as any)), + [], + ); + + if (tableList.length === 0) { + return null; + } + + return ( + <> + + {errors.tables?.message} + + ); +} + +export const PluginTableSelector = React.memo(_PluginTableSelector); diff --git a/plugins/source/hackernews/cloud-config-ui/src/index.tsx b/plugins/source/hackernews/cloud-config-ui/src/index.tsx index 8455bbbaa83642..5a1b6768dcf31b 100644 --- a/plugins/source/hackernews/cloud-config-ui/src/index.tsx +++ b/plugins/source/hackernews/cloud-config-ui/src/index.tsx @@ -1,5 +1,7 @@ import React from 'react'; + import ReactDOM from 'react-dom/client'; + import App from './App'; const root = ReactDOM.createRoot(document.querySelector('#root') as HTMLElement); diff --git a/plugins/source/hackernews/cloud-config-ui/src/utils/formSchema.ts b/plugins/source/hackernews/cloud-config-ui/src/utils/formSchema.ts index 5696f217cea9d9..cf0ff2d8b3d8e9 100644 --- a/plugins/source/hackernews/cloud-config-ui/src/utils/formSchema.ts +++ b/plugins/source/hackernews/cloud-config-ui/src/utils/formSchema.ts @@ -1,9 +1,11 @@ import { resetYupDefaultErrorMessages } from '@cloudquery/cloud-ui'; import { FormMessagePayload } from '@cloudquery/plugin-config-ui-connector'; import { generateName } from '@cloudquery/plugin-config-ui-lib'; -import { default as dayjs } from '../utils/date'; + import * as yup from 'yup'; +import { default as dayjs } from '../utils/date'; + resetYupDefaultErrorMessages(yup); export function getDefaultStartTime(startTime?: string): dayjs.Dayjs { @@ -20,7 +22,7 @@ export function getFormValidationSchema( return yup.object({ name: yup .string() - .default(generateName('hackernews')) + .default(initialValues?.name || generateName('hackernews')) .matches( /^[a-z](-?[\da-z]+)+$/, 'Name must consist of a lower case letter, followed by alphanumeric segments separated by single dashes', @@ -35,7 +37,7 @@ export function getFormValidationSchema( value: yup.string().default(''), }), ) - .default([]), + .default(initialValues?.envs || []), spec: yup.object({ itemConcurrency: yup @@ -50,6 +52,24 @@ export function getFormValidationSchema( .mixed() .default(getDefaultStartTime(initialValues?.spec?.start_time)), }), + + tables: yup + .object() + .test('valid tables', function (value: Record) { + if (Object.keys(value || {}).filter((key) => value[key]).length === 0) { + return this.createError({ + message: 'At least one table must be selected', + path: 'tables', + }); + } + + return true; + }) + .default( + initialValues?.tables + ? Object.fromEntries(initialValues.tables.map((table) => [table, true])) + : { hackernews_items: true }, + ), }); } diff --git a/plugins/source/hackernews/cloud-config-ui/src/utils/prepareSubmitValues.ts b/plugins/source/hackernews/cloud-config-ui/src/utils/prepareSubmitValues.ts index bd0e6c6aab03d4..92e10e93ea8d4f 100644 --- a/plugins/source/hackernews/cloud-config-ui/src/utils/prepareSubmitValues.ts +++ b/plugins/source/hackernews/cloud-config-ui/src/utils/prepareSubmitValues.ts @@ -1,4 +1,5 @@ import { PluginUiMessagePayload } from '@cloudquery/plugin-config-ui-connector'; + import { FormValues } from './formSchema'; export function prepareSubmitValues( @@ -14,7 +15,9 @@ export function prepareSubmitValues( return { name: values.name, envs, - tables: ['hackernews_items'], + tables: Object.keys(values.tables).filter( + (key) => values.tables[key as keyof typeof values.tables], + ), spec, }; } diff --git a/plugins/source/hackernews/go.mod b/plugins/source/hackernews/go.mod index 827d502d76ad09..ab84ee9de30e23 100644 --- a/plugins/source/hackernews/go.mod +++ b/plugins/source/hackernews/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/golang/mock v1.6.0 github.com/hermanschaaf/hackernews v1.0.1 github.com/rs/zerolog v1.33.0 @@ -34,8 +34,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/source/hackernews/go.sum b/plugins/source/hackernews/go.sum index e979e28f226e39..3e0a6a634327aa 100644 --- a/plugins/source/hackernews/go.sum +++ b/plugins/source/hackernews/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/source/k8s/.gitignore b/plugins/source/k8s/.gitignore deleted file mode 100644 index 10f737d2c54a99..00000000000000 --- a/plugins/source/k8s/.gitignore +++ /dev/null @@ -1 +0,0 @@ -k8s \ No newline at end of file diff --git a/plugins/source/k8s/.goreleaser.yaml b/plugins/source/k8s/.goreleaser.yaml deleted file mode 100644 index 99799fcc734a77..00000000000000 --- a/plugins/source/k8s/.goreleaser.yaml +++ /dev/null @@ -1,14 +0,0 @@ -variables: - component: source/k8s - binary: k8s - -project_name: plugins/source/k8s - -monorepo: - tag_prefix: plugins-source-k8s- - dir: plugins/source/k8s - -includes: - - from_file: - # Relative to the directory Go Releaser is run from (which is the root of the repository) - path: ./plugins/.goreleaser.yaml \ No newline at end of file diff --git a/plugins/source/k8s/CHANGELOG.md b/plugins/source/k8s/CHANGELOG.md deleted file mode 100644 index e39aeb3dade8c9..00000000000000 --- a/plugins/source/k8s/CHANGELOG.md +++ /dev/null @@ -1,1598 +0,0 @@ -# Changelog - -## [6.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.2.2...plugins-source-k8s-v6.2.3) (2024-07-30) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.54.0 ([#18717](https://github.com/cloudquery/cloudquery/issues/18717)) ([c8ccd1f](https://github.com/cloudquery/cloudquery/commit/c8ccd1ff6c40ef7385a72669769531c72d9c7128)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.55.0 ([#18742](https://github.com/cloudquery/cloudquery/issues/18742)) ([4045944](https://github.com/cloudquery/cloudquery/commit/4045944b8e9f4414145e6484a62692852ba9b174)) - -## [6.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.2.1...plugins-source-k8s-v6.2.2) (2024-07-30) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.52.1 ([#18674](https://github.com/cloudquery/cloudquery/issues/18674)) ([01f8463](https://github.com/cloudquery/cloudquery/commit/01f84633e82f1921a2a5a805d1aa1d5a5a6abac6)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.53.0 ([#18703](https://github.com/cloudquery/cloudquery/issues/18703)) ([2fbc27d](https://github.com/cloudquery/cloudquery/commit/2fbc27d8c1aa066d24611c74099c3e437b821617)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.53.1 ([#18705](https://github.com/cloudquery/cloudquery/issues/18705)) ([5432049](https://github.com/cloudquery/cloudquery/commit/5432049699370d058b7a28b9be546a4871537756)) - -## [6.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.2.0...plugins-source-k8s-v6.2.1) (2024-07-23) - - -### Bug Fixes - -* **deps:** Update module github.com/apache/arrow/go/v16 to v17 ([#18657](https://github.com/cloudquery/cloudquery/issues/18657)) ([3ae9b11](https://github.com/cloudquery/cloudquery/commit/3ae9b1148b93939e436a81f4bca2a446945886d6)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.18 ([#18658](https://github.com/cloudquery/cloudquery/issues/18658)) ([d1b8845](https://github.com/cloudquery/cloudquery/commit/d1b88459ef294590896e9337a16fa848460b8de6)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.19 ([#18666](https://github.com/cloudquery/cloudquery/issues/18666)) ([cf70b57](https://github.com/cloudquery/cloudquery/commit/cf70b57853af4dd4b69be202766d337c1cfe16d7)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.4 ([#18616](https://github.com/cloudquery/cloudquery/issues/18616)) ([b818bfb](https://github.com/cloudquery/cloudquery/commit/b818bfbcc5c47839e4d00f28615ed7c7016a32df)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.50.0 ([#18642](https://github.com/cloudquery/cloudquery/issues/18642)) ([703b60c](https://github.com/cloudquery/cloudquery/commit/703b60c58851a6c57f23f1e41a188b83e7e384ae)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.51.0 ([#18664](https://github.com/cloudquery/cloudquery/issues/18664)) ([c98a04d](https://github.com/cloudquery/cloudquery/commit/c98a04d96e2b7a478da0c335143745d9387a8830)) - -## [6.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.1.4...plugins-source-k8s-v6.2.0) (2024-07-16) - - -### Features - -* Pass invocation ID to scheduler ([#18510](https://github.com/cloudquery/cloudquery/issues/18510)) ([2fd34f8](https://github.com/cloudquery/cloudquery/commit/2fd34f831cf1c6761050b186087a802b97011df6)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.3 ([#18513](https://github.com/cloudquery/cloudquery/issues/18513)) ([d12da90](https://github.com/cloudquery/cloudquery/commit/d12da90f5ca67b8e590c433ad2762d48c499e6aa)) - -## [6.1.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.1.3...plugins-source-k8s-v6.1.4) (2024-07-09) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.12.0 ([#18448](https://github.com/cloudquery/cloudquery/issues/18448)) ([a5850e1](https://github.com/cloudquery/cloudquery/commit/a5850e1190e7d40437b3fbcea5c3b8f6b4b059ac)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.17 ([#18491](https://github.com/cloudquery/cloudquery/issues/18491)) ([b43fd16](https://github.com/cloudquery/cloudquery/commit/b43fd1602fa41e7df89b1007b119d5796867cc50)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.1 ([#18497](https://github.com/cloudquery/cloudquery/issues/18497)) ([3416eb7](https://github.com/cloudquery/cloudquery/commit/3416eb7d870fb8e9a0132bda3a571a235817a3f6)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.2 ([#18504](https://github.com/cloudquery/cloudquery/issues/18504)) ([2d80936](https://github.com/cloudquery/cloudquery/commit/2d80936e5f952b29f1ddf6267c2331a504a38b2d)) - -## [6.1.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.1.2...plugins-source-k8s-v6.1.3) (2024-07-03) - - -### Bug Fixes - -* Align wording and description with current licensing ([#18371](https://github.com/cloudquery/cloudquery/issues/18371)) ([ba91d48](https://github.com/cloudquery/cloudquery/commit/ba91d4823e4a805620650ff0a82ba44387b7d979)) -* **deps:** Update golang.org/x/exp digest to 7f521ea ([#18428](https://github.com/cloudquery/cloudquery/issues/18428)) ([5d18290](https://github.com/cloudquery/cloudquery/commit/5d1829066fa91705ea83ecc6d212b7e64704860d)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.49.0 ([#18415](https://github.com/cloudquery/cloudquery/issues/18415)) ([3f4ef53](https://github.com/cloudquery/cloudquery/commit/3f4ef5366078eebd38ab7c1cc52afc0eaeee08f4)) -* **deps:** Update module github.com/hashicorp/go-retryablehttp to v0.7.7 [SECURITY] ([#18369](https://github.com/cloudquery/cloudquery/issues/18369)) ([1e223bf](https://github.com/cloudquery/cloudquery/commit/1e223bf58529449ab7b30d1a0d046a40a0488cf1)) - -## [6.1.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.1.1...plugins-source-k8s-v6.1.2) (2024-06-25) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.4 ([#18299](https://github.com/cloudquery/cloudquery/issues/18299)) ([200480a](https://github.com/cloudquery/cloudquery/commit/200480a04ecaa8a826df2aa86429d1e1c9416f73)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.5 ([#18327](https://github.com/cloudquery/cloudquery/issues/18327)) ([42d5850](https://github.com/cloudquery/cloudquery/commit/42d5850e4d11e49d8567c2b182a3b26409cad150)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.6 ([#18340](https://github.com/cloudquery/cloudquery/issues/18340)) ([f284668](https://github.com/cloudquery/cloudquery/commit/f284668c7912ce7191cc5d70f11135874f7d98c9)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.46.0 ([#18341](https://github.com/cloudquery/cloudquery/issues/18341)) ([5db9574](https://github.com/cloudquery/cloudquery/commit/5db9574defbd47b798254dacb1f4e466ccfacf74)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.46.1 ([#18350](https://github.com/cloudquery/cloudquery/issues/18350)) ([8ff8909](https://github.com/cloudquery/cloudquery/commit/8ff89094c231abfbc1cec38f8901a546139f2d01)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.47.0 ([#18351](https://github.com/cloudquery/cloudquery/issues/18351)) ([9c5bbdc](https://github.com/cloudquery/cloudquery/commit/9c5bbdccebdc2c65df491f70f76483aa0bb1c533)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.47.1 ([#18352](https://github.com/cloudquery/cloudquery/issues/18352)) ([b31812a](https://github.com/cloudquery/cloudquery/commit/b31812a821233cffa2b9bbc6a7644797f380fa82)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.48.0 ([#18363](https://github.com/cloudquery/cloudquery/issues/18363)) ([61baf97](https://github.com/cloudquery/cloudquery/commit/61baf97d1704878dcb129be56bd6457109b1719a)) - -## [6.1.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.1.0...plugins-source-k8s-v6.1.1) (2024-06-18) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.0 ([#18246](https://github.com/cloudquery/cloudquery/issues/18246)) ([b462a91](https://github.com/cloudquery/cloudquery/commit/b462a91c6c260661171b5afc2a0e063202fcde1d)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.1 ([#18273](https://github.com/cloudquery/cloudquery/issues/18273)) ([c54ebbf](https://github.com/cloudquery/cloudquery/commit/c54ebbfadcaac9f5f9085681dd5e4065b494dc74)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.45.2 ([#18289](https://github.com/cloudquery/cloudquery/issues/18289)) ([c5b1b3e](https://github.com/cloudquery/cloudquery/commit/c5b1b3ec80d7d3cf7d32514a72942d50b2fbf546)) - -## [6.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.17...plugins-source-k8s-v6.1.0) (2024-06-11) - - -### Features - -* Remove logging of error events to Sentry in plugins ([#18165](https://github.com/cloudquery/cloudquery/issues/18165)) ([fc4ff27](https://github.com/cloudquery/cloudquery/commit/fc4ff27d37f9250b4cf912474073169406cb01fa)) - -## [6.0.17](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.16...plugins-source-k8s-v6.0.17) (2024-06-04) - - -### Bug Fixes - -* **deps:** Update golang.org/x/exp digest to fd00a4e ([#18079](https://github.com/cloudquery/cloudquery/issues/18079)) ([5d90dc1](https://github.com/cloudquery/cloudquery/commit/5d90dc12325327d87e4f422d25f8d75d492f4baf)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.44.1 ([#18076](https://github.com/cloudquery/cloudquery/issues/18076)) ([7cd7012](https://github.com/cloudquery/cloudquery/commit/7cd70128389844d0221f7dce7102375f8931ef77)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.44.2 ([#18113](https://github.com/cloudquery/cloudquery/issues/18113)) ([508347b](https://github.com/cloudquery/cloudquery/commit/508347b8d2168564f69ccb33171f290267647c12)) - -## [6.0.16](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.15...plugins-source-k8s-v6.0.16) (2024-05-21) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.42.1 ([#17965](https://github.com/cloudquery/cloudquery/issues/17965)) ([d652b81](https://github.com/cloudquery/cloudquery/commit/d652b81e18a35d122280ee1e59c601d7b1a0e607)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.42.2 ([#18000](https://github.com/cloudquery/cloudquery/issues/18000)) ([5fc0f46](https://github.com/cloudquery/cloudquery/commit/5fc0f46ce912a6b5c1d232b405ca6f2a30584461)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.43.0 ([#18014](https://github.com/cloudquery/cloudquery/issues/18014)) ([20592c8](https://github.com/cloudquery/cloudquery/commit/20592c8ba2a2da05a6dac60701e821fc0623bf60)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.43.1 ([#18026](https://github.com/cloudquery/cloudquery/issues/18026)) ([364307c](https://github.com/cloudquery/cloudquery/commit/364307c5a7e954cc3521498678e3aa658eb4937a)) - -## [6.0.15](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.14...plugins-source-k8s-v6.0.15) (2024-05-14) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.41.0 ([#17917](https://github.com/cloudquery/cloudquery/issues/17917)) ([81f2506](https://github.com/cloudquery/cloudquery/commit/81f25061a461a025595aa0b4ed4bf992f53e67be)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.41.1 ([#17941](https://github.com/cloudquery/cloudquery/issues/17941)) ([b112a67](https://github.com/cloudquery/cloudquery/commit/b112a6798245d12ef82da532504a500c610cac10)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.42.0 ([#17951](https://github.com/cloudquery/cloudquery/issues/17951)) ([f5befb1](https://github.com/cloudquery/cloudquery/commit/f5befb1fba1089d78c594c39064466795c53a86e)) - -## [6.0.14](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.13...plugins-source-k8s-v6.0.14) (2024-05-07) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.40.1 ([#17865](https://github.com/cloudquery/cloudquery/issues/17865)) ([a532364](https://github.com/cloudquery/cloudquery/commit/a532364842076cbfadbf146ab18634607a693ddf)) -* **deps:** Upgrade `github.com/apache/arrow/go` to `v16` ([#17889](https://github.com/cloudquery/cloudquery/issues/17889)) ([98b2634](https://github.com/cloudquery/cloudquery/commit/98b2634b1295f0a071acc5146e7672b7d22e316b)) - -## [6.0.13](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.12...plugins-source-k8s-v6.0.13) (2024-04-30) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.40.0 ([#17796](https://github.com/cloudquery/cloudquery/issues/17796)) ([1622575](https://github.com/cloudquery/cloudquery/commit/1622575f1eb776cafc637573010fd66f85877079)) - -## [6.0.12](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.11...plugins-source-k8s-v6.0.12) (2024-04-23) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.39.0 ([#17710](https://github.com/cloudquery/cloudquery/issues/17710)) ([e6b3986](https://github.com/cloudquery/cloudquery/commit/e6b39865d674cefb5b001a1c97a25779246087b5)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.39.1 ([#17760](https://github.com/cloudquery/cloudquery/issues/17760)) ([7f6faad](https://github.com/cloudquery/cloudquery/commit/7f6faad99e6678d17d449d0da18e0340a2537848)) - -## [6.0.11](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.10...plugins-source-k8s-v6.0.11) (2024-04-16) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/codegen to v0.3.14 ([#17658](https://github.com/cloudquery/cloudquery/issues/17658)) ([478eb9c](https://github.com/cloudquery/cloudquery/commit/478eb9c03f764322402703b3975b71b7086a5dea)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.15 ([#17659](https://github.com/cloudquery/cloudquery/issues/17659)) ([58586d0](https://github.com/cloudquery/cloudquery/commit/58586d012a8f4f38b0a693dcbd46d2340bb72a61)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.38.1 ([#17610](https://github.com/cloudquery/cloudquery/issues/17610)) ([a12d17b](https://github.com/cloudquery/cloudquery/commit/a12d17b6f93ef5379b0c11d1338f02dad28f1914)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.38.2 ([#17656](https://github.com/cloudquery/cloudquery/issues/17656)) ([058910b](https://github.com/cloudquery/cloudquery/commit/058910bcb37a6130deb55720a4a1afaec123a319)) - -## [6.0.10](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.9...plugins-source-k8s-v6.0.10) (2024-04-09) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.36.4 ([#17485](https://github.com/cloudquery/cloudquery/issues/17485)) ([f370de4](https://github.com/cloudquery/cloudquery/commit/f370de449e61244398e6f413b973cbfa15c019a6)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.36.5 ([#17526](https://github.com/cloudquery/cloudquery/issues/17526)) ([554c499](https://github.com/cloudquery/cloudquery/commit/554c499eb9bc9f98f6f3dc4be23fd02049f48dcd)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.37.0 ([#17532](https://github.com/cloudquery/cloudquery/issues/17532)) ([8080970](https://github.com/cloudquery/cloudquery/commit/8080970f40d22b6bc9db4c359780c744b476bb02)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.38.0 ([#17554](https://github.com/cloudquery/cloudquery/issues/17554)) ([edb6f06](https://github.com/cloudquery/cloudquery/commit/edb6f066c3a3675f5bfca3e492eba3aeb31e770b)) - -## [6.0.9](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.8...plugins-source-k8s-v6.0.9) (2024-04-02) - - -### Bug Fixes - -* **deps:** Update golang.org/x/exp digest to a685a6e ([#17429](https://github.com/cloudquery/cloudquery/issues/17429)) ([093bc86](https://github.com/cloudquery/cloudquery/commit/093bc86544890918f8a7d8d15357f7103ce47106)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.13 ([#17444](https://github.com/cloudquery/cloudquery/issues/17444)) ([da276fe](https://github.com/cloudquery/cloudquery/commit/da276fe64c46ec0a5f182c83ebc32a90d55f5d50)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.36.1 ([#17372](https://github.com/cloudquery/cloudquery/issues/17372)) ([aaf6187](https://github.com/cloudquery/cloudquery/commit/aaf61873ae5d2e01ea5f3b8b319e4f79afb7b29c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.36.2 ([#17450](https://github.com/cloudquery/cloudquery/issues/17450)) ([2947506](https://github.com/cloudquery/cloudquery/commit/294750650269f8191c6dfff060c4d3a546405763)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.36.3 ([#17456](https://github.com/cloudquery/cloudquery/issues/17456)) ([020865a](https://github.com/cloudquery/cloudquery/commit/020865a6fde8c896947a844021f0cd7daeb01b06)) - -## [6.0.8](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.7...plugins-source-k8s-v6.0.8) (2024-03-26) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/jsonschema digest to 92878fa ([#16718](https://github.com/cloudquery/cloudquery/issues/16718)) ([7fe8588](https://github.com/cloudquery/cloudquery/commit/7fe858818fe1f88fcca6304c873a4614767a57b9)) -* **deps:** Update module github.com/apache/arrow/go/v15 to v15.0.2 ([#17318](https://github.com/cloudquery/cloudquery/issues/17318)) ([09dc27b](https://github.com/cloudquery/cloudquery/commit/09dc27bfedb3ca3b6c32579cdebbe3a6a8962a93)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.35.0 ([#17299](https://github.com/cloudquery/cloudquery/issues/17299)) ([524ba20](https://github.com/cloudquery/cloudquery/commit/524ba202801c2ae1eb59a5b462a5efc62d1b4000)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.36.0 ([#17325](https://github.com/cloudquery/cloudquery/issues/17325)) ([eb1b4b8](https://github.com/cloudquery/cloudquery/commit/eb1b4b8b963917b87ff644318cfec9745471d50a)) - -## [6.0.7](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.6...plugins-source-k8s-v6.0.7) (2024-03-19) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.34.0 ([#17203](https://github.com/cloudquery/cloudquery/issues/17203)) ([4b128b6](https://github.com/cloudquery/cloudquery/commit/4b128b6722dea883d66458f2f3c831184926353d)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.34.1 ([#17220](https://github.com/cloudquery/cloudquery/issues/17220)) ([08d4950](https://github.com/cloudquery/cloudquery/commit/08d49504aee10f6883e1bd4f7e1102a274c8ee81)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.34.2 ([#17229](https://github.com/cloudquery/cloudquery/issues/17229)) ([41ed721](https://github.com/cloudquery/cloudquery/commit/41ed721cfa435a4937f3022501dd4d45a3a880b0)) -* **deps:** Update module google.golang.org/protobuf to v1.33.0 [SECURITY] ([#17160](https://github.com/cloudquery/cloudquery/issues/17160)) ([d7e1a2d](https://github.com/cloudquery/cloudquery/commit/d7e1a2dfdfc84c85ffaf02f9f548e86b0b521cb7)) - -## [6.0.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.5...plugins-source-k8s-v6.0.6) (2024-03-12) - - -### Bug Fixes - -* **deps:** Update module github.com/apache/arrow/go/v15 to v15.0.1 ([#17101](https://github.com/cloudquery/cloudquery/issues/17101)) ([1a462f6](https://github.com/cloudquery/cloudquery/commit/1a462f6729beac8b40ef98220486fe2f79332ccb)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) - -## [6.0.5](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.4...plugins-source-k8s-v6.0.5) (2024-03-05) - - -### Bug Fixes - -* **deps:** Update golang.org/x/exp digest to 814bf88 ([#16977](https://github.com/cloudquery/cloudquery/issues/16977)) ([d4d0e81](https://github.com/cloudquery/cloudquery/commit/d4d0e8138ec10e2c27eb0bf83e88905e838570d0)) -* **deps:** Update google.golang.org/genproto/googleapis/api digest to df926f6 ([#16980](https://github.com/cloudquery/cloudquery/issues/16980)) ([4684a2b](https://github.com/cloudquery/cloudquery/commit/4684a2b84b9c0f3c9dfd214b2cda517a46e8a0fb)) -* **deps:** Update google.golang.org/genproto/googleapis/rpc digest to df926f6 ([#16981](https://github.com/cloudquery/cloudquery/issues/16981)) ([4d6cef9](https://github.com/cloudquery/cloudquery/commit/4d6cef9134401b9a6fcd60e70683f1992e526c4d)) -* **deps:** Update k8s.io/kube-openapi digest to 70dd376 ([#16982](https://github.com/cloudquery/cloudquery/issues/16982)) ([c07c013](https://github.com/cloudquery/cloudquery/commit/c07c0139d56fec854ed64117e41268b45bad8d3f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.31.0 ([#16899](https://github.com/cloudquery/cloudquery/issues/16899)) ([2fac27a](https://github.com/cloudquery/cloudquery/commit/2fac27a2e3e789f6152b643c0af1c97ee95c4745)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.0 ([#16957](https://github.com/cloudquery/cloudquery/issues/16957)) ([8ffe2fe](https://github.com/cloudquery/cloudquery/commit/8ffe2fe13a11144cc4f463b01ede1d59c49fcc96)) - -## [6.0.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.3...plugins-source-k8s-v6.0.4) (2024-02-20) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.30.0 ([#16669](https://github.com/cloudquery/cloudquery/issues/16669)) ([44b9729](https://github.com/cloudquery/cloudquery/commit/44b9729fa5d7590f65b9073ce4a1fc18a529117e)) - -## [6.0.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.2...plugins-source-k8s-v6.0.3) (2024-02-15) - - -### Bug Fixes - -* Log error during initialization ([#16645](https://github.com/cloudquery/cloudquery/issues/16645)) ([d50fc1e](https://github.com/cloudquery/cloudquery/commit/d50fc1eae679dd7fe67e38217d17da73e9754e6b)) - -## [6.0.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.1...plugins-source-k8s-v6.0.2) (2024-02-13) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/jsonschema digest to d771afd ([#16483](https://github.com/cloudquery/cloudquery/issues/16483)) ([dcaa994](https://github.com/cloudquery/cloudquery/commit/dcaa9949df43919c0745e05308ce97bf409c4d77)) -* **deps:** Update google.golang.org/genproto/googleapis/api digest to 1f4bbc5 ([#16421](https://github.com/cloudquery/cloudquery/issues/16421)) ([9489931](https://github.com/cloudquery/cloudquery/commit/9489931c1b64bf1f7d5da51997944ee54370215b)) -* **deps:** Update google.golang.org/genproto/googleapis/rpc digest to 1f4bbc5 ([#16422](https://github.com/cloudquery/cloudquery/issues/16422)) ([74e98fc](https://github.com/cloudquery/cloudquery/commit/74e98fcbde6c6e11baf98284aef0341c597d4817)) -* **deps:** Update k8s.io/kube-openapi digest to 2919ad4 ([#16423](https://github.com/cloudquery/cloudquery/issues/16423)) ([7e13d24](https://github.com/cloudquery/cloudquery/commit/7e13d248d172109214a3d1ab15aba407624794de)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.29.0 ([#16395](https://github.com/cloudquery/cloudquery/issues/16395)) ([fb1102e](https://github.com/cloudquery/cloudquery/commit/fb1102eac8af4b3722b82b882187fdf322546513)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.29.1 ([#16430](https://github.com/cloudquery/cloudquery/issues/16430)) ([738e89f](https://github.com/cloudquery/cloudquery/commit/738e89f2c969a8a3f1698a8686aeaddb358e7a23)) - -## [6.0.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.0...plugins-source-k8s-v6.0.1) (2024-01-31) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.27.0 ([#16237](https://github.com/cloudquery/cloudquery/issues/16237)) ([3fcdab0](https://github.com/cloudquery/cloudquery/commit/3fcdab08816ad9de7bb4eecab59c7be1bda3d00c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.27.1 ([#16296](https://github.com/cloudquery/cloudquery/issues/16296)) ([ab4a0da](https://github.com/cloudquery/cloudquery/commit/ab4a0dace0a870755fd22d92c6e9c999351f594e)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.27.2 ([#16342](https://github.com/cloudquery/cloudquery/issues/16342)) ([f3eb857](https://github.com/cloudquery/cloudquery/commit/f3eb85729e5db16c2530b31d6d276934866d5ef0)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.28.0 ([#16362](https://github.com/cloudquery/cloudquery/issues/16362)) ([9166b6b](https://github.com/cloudquery/cloudquery/commit/9166b6b603d0d56a30c2e5072c4f2da5c0c837b5)) - -## [6.0.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.7...plugins-source-k8s-v6.0.0) (2024-01-23) - - -### This Release has the Following Changes to Tables -- Table `k8s_batch_jobs`: column added with name `spec_backoff_limit_per_index` and type `int64` -- Table `k8s_batch_jobs`: column added with name `spec_max_failed_indexes` and type `int64` -- Table `k8s_batch_jobs`: column added with name `spec_pod_replacement_policy` and type `utf8` -- Table `k8s_batch_jobs`: column added with name `status_failed_indexes` and type `utf8` -- Table `k8s_batch_jobs`: column added with name `status_terminating` and type `int64` -- Table `k8s_core_pods`: column added with name `status_host_ips` and type `json` -- Table `k8s_core_pods`: column added with name `status_resize` and type `utf8` -- Table `k8s_core_pods`: column added with name `status_resource_claim_statuses` and type `json` -- Table `k8s_core_pvcs`: column `status_resize_status` removed from table (:warning: breaking) -- Table `k8s_core_pvcs`: column added with name `spec_volume_attributes_class_name` and type `utf8` -- Table `k8s_core_pvcs`: column added with name `status_allocated_resource_statuses` and type `json` -- Table `k8s_core_pvcs`: column added with name `status_current_volume_attributes_class_name` and type `utf8` -- Table `k8s_core_pvcs`: column added with name `status_modify_volume_status` and type `json` -- Table `k8s_core_pvs`: column added with name `spec_volume_attributes_class_name` and type `utf8` -- Table `k8s_core_pvs`: column added with name `status_last_phase_transition_time` and type `timestamp[us, tz=UTC]` -- Table `k8s_networking_network_policies`: column `status_conditions` removed from table (:warning: breaking) - -### ⚠ BREAKING CHANGES - -* Update API for k8s ([#16227](https://github.com/cloudquery/cloudquery/issues/16227)) - -### Features - -* Update API for k8s ([#16227](https://github.com/cloudquery/cloudquery/issues/16227)) ([085548a](https://github.com/cloudquery/cloudquery/commit/085548ac922f4c0adee8a024e0f09ea4d9e99ab1)) - -## [5.2.7](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.6...plugins-source-k8s-v5.2.7) (2024-01-16) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v15 digest to 6d44906 ([#16115](https://github.com/cloudquery/cloudquery/issues/16115)) ([8b0ae62](https://github.com/cloudquery/cloudquery/commit/8b0ae6266d19a10fe84102837802358f0b9bb1bc)) -* **deps:** Update github.com/apache/arrow/go/v15 digest to 7e703aa ([#16134](https://github.com/cloudquery/cloudquery/issues/16134)) ([72d5eb3](https://github.com/cloudquery/cloudquery/commit/72d5eb35644ce78d775790b0298a0c7690788d28)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.25.1 ([#16069](https://github.com/cloudquery/cloudquery/issues/16069)) ([edda65c](https://github.com/cloudquery/cloudquery/commit/edda65c238b2cb78a7a2078b62557a7d8d822e49)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.25.2 ([#16130](https://github.com/cloudquery/cloudquery/issues/16130)) ([7ae6f41](https://github.com/cloudquery/cloudquery/commit/7ae6f41957edb3446ff3175857aaf3dcea2cf5bc)) - -## [5.2.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.5...plugins-source-k8s-v5.2.6) (2024-01-04) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.25.0 ([#15932](https://github.com/cloudquery/cloudquery/issues/15932)) ([2292b5a](https://github.com/cloudquery/cloudquery/commit/2292b5a2aa5936f2529238a05708de0b3bde9a35)) - -## [5.2.5](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.4...plugins-source-k8s-v5.2.5) (2024-01-02) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v15 digest to 7c3480e ([#15904](https://github.com/cloudquery/cloudquery/issues/15904)) ([a3ec012](https://github.com/cloudquery/cloudquery/commit/a3ec01203183e5c94630beae86434519e87e225d)) -* **deps:** Update github.com/gomarkdown/markdown digest to 1d6d208 ([#15907](https://github.com/cloudquery/cloudquery/issues/15907)) ([86d29a9](https://github.com/cloudquery/cloudquery/commit/86d29a900e6c9dbcad09f5b0c4b0615aee59a2ae)) -* **deps:** Update golang.org/x/exp digest to 02704c9 ([#15909](https://github.com/cloudquery/cloudquery/issues/15909)) ([dfe32d2](https://github.com/cloudquery/cloudquery/commit/dfe32d2557dcac0fb6dc741c9df4edccdcb07076)) -* **deps:** Update google.golang.org/genproto/googleapis/api digest to 995d672 ([#15911](https://github.com/cloudquery/cloudquery/issues/15911)) ([18ac2b8](https://github.com/cloudquery/cloudquery/commit/18ac2b806d798e0a9052cc10e8442557ab1c4253)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.24.0 ([#15863](https://github.com/cloudquery/cloudquery/issues/15863)) ([47d7899](https://github.com/cloudquery/cloudquery/commit/47d78994370f083912b6d4329f12d5cef9c255d5)) - -## [5.2.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.3...plugins-source-k8s-v5.2.4) (2023-12-28) - - -### Bug Fixes - -* **deps:** Update `github.com/apache/arrow/go` to `v15` ([#15754](https://github.com/cloudquery/cloudquery/issues/15754)) ([bd962eb](https://github.com/cloudquery/cloudquery/commit/bd962eb1093cf09e928e2a0e7782288ec4020ec4)) -* **deps:** Update github.com/apache/arrow/go/v15 digest to bcaeaa8 ([#15791](https://github.com/cloudquery/cloudquery/issues/15791)) ([89dc812](https://github.com/cloudquery/cloudquery/commit/89dc81201529de2a1fc1ecce5efa74d6f363e57b)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.21.0 ([#15651](https://github.com/cloudquery/cloudquery/issues/15651)) ([6e96125](https://github.com/cloudquery/cloudquery/commit/6e96125a9d9c75616483952edb7a9e402818b264)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.21.1 ([#15699](https://github.com/cloudquery/cloudquery/issues/15699)) ([67c10c3](https://github.com/cloudquery/cloudquery/commit/67c10c38a04dcdd1512bf6dc739f89bc11baa888)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.21.2 ([#15724](https://github.com/cloudquery/cloudquery/issues/15724)) ([ad750b1](https://github.com/cloudquery/cloudquery/commit/ad750b1530af06353f2225c7d3397af580093687)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.23.0 ([#15803](https://github.com/cloudquery/cloudquery/issues/15803)) ([b6f9373](https://github.com/cloudquery/cloudquery/commit/b6f937385020c63ce59b2bc60402752b6c239c6c)) -* **deps:** Update module golang.org/x/crypto to v0.17.0 [SECURITY] ([#15730](https://github.com/cloudquery/cloudquery/issues/15730)) ([718be50](https://github.com/cloudquery/cloudquery/commit/718be502014ff36aa50cde3a83453b3d6ce15a83)) - -## [5.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.2...plugins-source-k8s-v5.2.3) (2023-12-12) - - -### Bug Fixes - -* **deps:** Update github.com/gomarkdown/markdown digest to a660076 ([#15517](https://github.com/cloudquery/cloudquery/issues/15517)) ([fa1334c](https://github.com/cloudquery/cloudquery/commit/fa1334c5ce0e157834b0cd676b38af26510fbe43)) -* **deps:** Update golang.org/x/exp digest to 6522937 ([#15518](https://github.com/cloudquery/cloudquery/issues/15518)) ([69f9a06](https://github.com/cloudquery/cloudquery/commit/69f9a06754b2feb7c73bd5a80d42fd191c7fdb17)) -* **deps:** Update google.golang.org/genproto/googleapis/api digest to 3a041ad ([#15520](https://github.com/cloudquery/cloudquery/issues/15520)) ([b2a322a](https://github.com/cloudquery/cloudquery/commit/b2a322a5ec5c1945af5a655c759493a879a9be09)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.18.2 ([#15325](https://github.com/cloudquery/cloudquery/issues/15325)) ([77f2db5](https://github.com/cloudquery/cloudquery/commit/77f2db52634bad6e56d970d55172b08d823b97c9)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.18.3 ([#15355](https://github.com/cloudquery/cloudquery/issues/15355)) ([d8455e5](https://github.com/cloudquery/cloudquery/commit/d8455e5ca1059746c7aced395e9bc150ea495591)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.19.0 ([#15509](https://github.com/cloudquery/cloudquery/issues/15509)) ([41c689d](https://github.com/cloudquery/cloudquery/commit/41c689d0835487a8d924bb11c989c231f5e3df7c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.19.1 ([#15539](https://github.com/cloudquery/cloudquery/issues/15539)) ([a298555](https://github.com/cloudquery/cloudquery/commit/a298555343fc7ad483361c2f19c3d39693dab882)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.20.0 ([#15574](https://github.com/cloudquery/cloudquery/issues/15574)) ([317dca4](https://github.com/cloudquery/cloudquery/commit/317dca4182478d6f3789082ae563d9e8bd417d20)) - -## [5.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.1...plugins-source-k8s-v5.2.2) (2023-11-16) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.4.2 ([#15034](https://github.com/cloudquery/cloudquery/issues/15034)) ([45c2caa](https://github.com/cloudquery/cloudquery/commit/45c2caa345aa33199ad1592bf378a5a839612c6f)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.12 ([#15084](https://github.com/cloudquery/cloudquery/issues/15084)) ([ff308d5](https://github.com/cloudquery/cloudquery/commit/ff308d5f0696417f037d8f11cd5f398e1d24ac39)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.17.0 ([#15064](https://github.com/cloudquery/cloudquery/issues/15064)) ([9c2db8c](https://github.com/cloudquery/cloudquery/commit/9c2db8cedaec682a89b444db29e8c0fb45989408)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.17.1 ([#15075](https://github.com/cloudquery/cloudquery/issues/15075)) ([151769e](https://github.com/cloudquery/cloudquery/commit/151769e7c02028a04ef0ed280951c000ebb1f9c2)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.18.0 ([#15132](https://github.com/cloudquery/cloudquery/issues/15132)) ([81ee138](https://github.com/cloudquery/cloudquery/commit/81ee138ff86c4b92c3ec93208e0a7e05af2b0036)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.18.1 ([#15263](https://github.com/cloudquery/cloudquery/issues/15263)) ([a9a39ef](https://github.com/cloudquery/cloudquery/commit/a9a39efe8112a564f21c06ba7627fe6c7ced4cdf)) -* **deps:** Update module github.com/docker/docker to v24 [SECURITY] ([#15060](https://github.com/cloudquery/cloudquery/issues/15060)) ([41acd0e](https://github.com/cloudquery/cloudquery/commit/41acd0e4ac63221e90cca89a7137a8685692267d)) -* **deps:** Update module google.golang.org/grpc to v1.58.3 [SECURITY] ([#14940](https://github.com/cloudquery/cloudquery/issues/14940)) ([e1addea](https://github.com/cloudquery/cloudquery/commit/e1addeaf58ad965e545a3e068860609dadcffa10)) -* Remove old policy docs ([#15188](https://github.com/cloudquery/cloudquery/issues/15188)) ([0ec583c](https://github.com/cloudquery/cloudquery/commit/0ec583c71e6672aeed84ef7aac89f772788aa784)) -* Remove policies docs ([#15222](https://github.com/cloudquery/cloudquery/issues/15222)) ([6fd1d24](https://github.com/cloudquery/cloudquery/commit/6fd1d243c0ec95ad66f7174b87d9a35aa4553717)) -* Remove policy doc gen ([#15205](https://github.com/cloudquery/cloudquery/issues/15205)) ([35e1535](https://github.com/cloudquery/cloudquery/commit/35e1535b0cac95d3869cc7683091cf25e3bebef8)) - -## [5.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.2.0...plugins-source-k8s-v5.2.1) (2023-10-24) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/codegen to v0.3.11 ([#14870](https://github.com/cloudquery/cloudquery/issues/14870)) ([4fa917d](https://github.com/cloudquery/cloudquery/commit/4fa917d5085b6d99e7818413e507c3fbb32be523)) - -## [5.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.1.0...plugins-source-k8s-v5.2.0) (2023-10-23) - - -### Features - -* Add JSON schema for plugin spec ([#14556](https://github.com/cloudquery/cloudquery/issues/14556)) ([d589f48](https://github.com/cloudquery/cloudquery/commit/d589f4829461ae782b84fa3823596b110c946036)), closes [#14450](https://github.com/cloudquery/cloudquery/issues/14450) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to dbcb149 ([#14537](https://github.com/cloudquery/cloudquery/issues/14537)) ([68686f4](https://github.com/cloudquery/cloudquery/commit/68686f4e7636db02bddd961e3d75b60d5218ca85)) -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to f46436f ([#14803](https://github.com/cloudquery/cloudquery/issues/14803)) ([f5248d7](https://github.com/cloudquery/cloudquery/commit/f5248d749398ded6a50903e09ecabbb996e94a34)) -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.8 ([#14503](https://github.com/cloudquery/cloudquery/issues/14503)) ([4056593](https://github.com/cloudquery/cloudquery/commit/40565937cfc12b33048980b55e91a9a60a62bd47)) -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.9 ([#14627](https://github.com/cloudquery/cloudquery/issues/14627)) ([c1d244c](https://github.com/cloudquery/cloudquery/commit/c1d244c95199141ac39a713a3f0577b2fb3bf736)) -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.3.0 ([#14635](https://github.com/cloudquery/cloudquery/issues/14635)) ([00b380c](https://github.com/cloudquery/cloudquery/commit/00b380c10be1642f737f871ba5588888ed5dd180)) -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.4.0 ([#14639](https://github.com/cloudquery/cloudquery/issues/14639)) ([f139c0e](https://github.com/cloudquery/cloudquery/commit/f139c0e9369ef92a3cd874003db40b48e229ab58)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.10 ([#14773](https://github.com/cloudquery/cloudquery/issues/14773)) ([98f3e2c](https://github.com/cloudquery/cloudquery/commit/98f3e2c73c94b65f6ae30a55663b6445ebf1146a)) -* **deps:** Update module github.com/cloudquery/codegen to v0.3.9 ([#14660](https://github.com/cloudquery/cloudquery/issues/14660)) ([68ab0bb](https://github.com/cloudquery/cloudquery/commit/68ab0bb4092f554538aebf892081735fcacb11e7)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.4 ([#14489](https://github.com/cloudquery/cloudquery/issues/14489)) ([9bb45dc](https://github.com/cloudquery/cloudquery/commit/9bb45dc2dacc2c7a6fbd47538b954f731741809b)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.5 ([#14516](https://github.com/cloudquery/cloudquery/issues/14516)) ([2d905bf](https://github.com/cloudquery/cloudquery/commit/2d905bf9ea81556282c8ca27dcc6334606a2e83b)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.14.0 ([#14577](https://github.com/cloudquery/cloudquery/issues/14577)) ([223c4c1](https://github.com/cloudquery/cloudquery/commit/223c4c1df6c432d7f1bf67a48114e417282bcd0f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.0 ([#14622](https://github.com/cloudquery/cloudquery/issues/14622)) ([b497a6b](https://github.com/cloudquery/cloudquery/commit/b497a6bc5645854bd25d4083fd91ec549a7f274f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.2 ([#14662](https://github.com/cloudquery/cloudquery/issues/14662)) ([e274fe4](https://github.com/cloudquery/cloudquery/commit/e274fe419f6cacdf62547cd7134f40916e5ddd96)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.3 ([#14679](https://github.com/cloudquery/cloudquery/issues/14679)) ([0513c19](https://github.com/cloudquery/cloudquery/commit/0513c193919f4555d41f22ba2ff66efaaf5fca67)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.16.1 ([#14721](https://github.com/cloudquery/cloudquery/issues/14721)) ([1c7ee1d](https://github.com/cloudquery/cloudquery/commit/1c7ee1dc99d7a9cb3358a83e8d827d59be78cefa)) -* **deps:** Update module golang.org/x/net to v0.17.0 [SECURITY] ([#14500](https://github.com/cloudquery/cloudquery/issues/14500)) ([9e603d5](https://github.com/cloudquery/cloudquery/commit/9e603d50d28033ed5bf451e569abc7c25014dbfb)) -* Fix k8s plugin metadata ([#14718](https://github.com/cloudquery/cloudquery/issues/14718)) ([d1d6bdc](https://github.com/cloudquery/cloudquery/commit/d1d6bdcee1d2ecdac630864a55f1fb0e768d9fdc)) -* Set plugin metadata ([#14715](https://github.com/cloudquery/cloudquery/issues/14715)) ([39935e2](https://github.com/cloudquery/cloudquery/commit/39935e2531c4edbd960d5db91e1027b13d7c0a4f)) -* Update plugin-SDK to v4.16.0 ([#14702](https://github.com/cloudquery/cloudquery/issues/14702)) ([0dcb545](https://github.com/cloudquery/cloudquery/commit/0dcb5455a71eaa7d28193b1b2fbcdd184dfad2ab)) - -## [5.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.12...plugins-source-k8s-v5.1.0) (2023-10-10) - - -### This Release has the Following Changes to Tables -- Table `k8s_core_pod_templates` was added - -### Features - -* Add a table for pod templates in k8s plugin ([#14457](https://github.com/cloudquery/cloudquery/issues/14457)) ([65977c6](https://github.com/cloudquery/cloudquery/commit/65977c62f594bd7beea0b9f950698025e034187d)) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to d401686 ([#14459](https://github.com/cloudquery/cloudquery/issues/14459)) ([7ce40f8](https://github.com/cloudquery/cloudquery/commit/7ce40f8dcb1e408c385e877e56b5bb78906b10d2)) -* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.6 ([#14475](https://github.com/cloudquery/cloudquery/issues/14475)) ([83fe7ca](https://github.com/cloudquery/cloudquery/commit/83fe7ca2f5fa83bd3219ddde8fe44fcf1d447480)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.2 ([#14378](https://github.com/cloudquery/cloudquery/issues/14378)) ([a2e0c46](https://github.com/cloudquery/cloudquery/commit/a2e0c4615af4aa205fa082d3f196ea2dc5ce2445)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.3 ([#14436](https://github.com/cloudquery/cloudquery/issues/14436)) ([d529e2d](https://github.com/cloudquery/cloudquery/commit/d529e2d22da93a234492c4165e7eed1257c5767f)) - -## [5.0.12](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.11...plugins-source-k8s-v5.0.12) (2023-10-04) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v14 digest to 00efb06 ([#14202](https://github.com/cloudquery/cloudquery/issues/14202)) ([fc8cc62](https://github.com/cloudquery/cloudquery/commit/fc8cc62ed70db157612e88678c123ba6a34b3b3c)) -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to 7ded38b ([#14246](https://github.com/cloudquery/cloudquery/issues/14246)) ([005891e](https://github.com/cloudquery/cloudquery/commit/005891e1892b41235ddb3b102f4bb6dafd48949a)) -* **deps:** Update github.com/petermattis/goid digest to 1876fd5 ([#14234](https://github.com/cloudquery/cloudquery/issues/14234)) ([3b56924](https://github.com/cloudquery/cloudquery/commit/3b56924bc734b1e6d49c6fa55da928f92d7291a0)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.0 ([#14281](https://github.com/cloudquery/cloudquery/issues/14281)) ([85835a9](https://github.com/cloudquery/cloudquery/commit/85835a938bfa58d1b0d320ae17aff5fe7f6cfef2)) - -## [5.0.11](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.10...plugins-source-k8s-v5.0.11) (2023-09-29) - - -### Bug Fixes - -* Fix for `example_queries` skip on error message ([#14122](https://github.com/cloudquery/cloudquery/issues/14122)) ([95b3641](https://github.com/cloudquery/cloudquery/commit/95b3641a1483a6dc9054023b1b8f0512c2a810cc)) - -## [5.0.10](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.9...plugins-source-k8s-v5.0.10) (2023-09-27) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to 483f6b2 ([#13780](https://github.com/cloudquery/cloudquery/issues/13780)) ([8d31b44](https://github.com/cloudquery/cloudquery/commit/8d31b44f787f42d47f186cdcc4a5739a3a370a5f)) -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to ffb7089 ([#13879](https://github.com/cloudquery/cloudquery/issues/13879)) ([f95ced5](https://github.com/cloudquery/cloudquery/commit/f95ced5daa2b123bd71ddff75bd76b3b008790c1)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.10.0 ([#13978](https://github.com/cloudquery/cloudquery/issues/13978)) ([2efdf55](https://github.com/cloudquery/cloudquery/commit/2efdf55aed94a14c35c51632ff61ed454caaf5a5)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.10.2 ([#13988](https://github.com/cloudquery/cloudquery/issues/13988)) ([aebaddf](https://github.com/cloudquery/cloudquery/commit/aebaddfc5ca0d7574b8cd72e9e074ec612472dbe)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.11.0 ([#14031](https://github.com/cloudquery/cloudquery/issues/14031)) ([ac7cdc4](https://github.com/cloudquery/cloudquery/commit/ac7cdc4f7d71599dad89b3170bb7bda676984228)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.11.1 ([#14063](https://github.com/cloudquery/cloudquery/issues/14063)) ([5a0ff7b](https://github.com/cloudquery/cloudquery/commit/5a0ff7b67890478c371385b379e0a8ef0c2f4865)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.7.0 ([#13625](https://github.com/cloudquery/cloudquery/issues/13625)) ([bb5463f](https://github.com/cloudquery/cloudquery/commit/bb5463fb5919f50f1327eecae884b2ab99fb8b34)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.7.1 ([#13713](https://github.com/cloudquery/cloudquery/issues/13713)) ([73004dc](https://github.com/cloudquery/cloudquery/commit/73004dcabd05bf474d8b5960b8c747a894b98560)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.8.0 ([#13950](https://github.com/cloudquery/cloudquery/issues/13950)) ([15b0b69](https://github.com/cloudquery/cloudquery/commit/15b0b6925932613ed2915a3255b3466f21a5c7bf)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.9.0 ([#13960](https://github.com/cloudquery/cloudquery/issues/13960)) ([f074076](https://github.com/cloudquery/cloudquery/commit/f074076a21dc0b8cadfdc3adb9731473d24d28b1)) - -## [5.0.9](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.8...plugins-source-k8s-v5.0.9) (2023-09-27) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to ffb7089 ([#13879](https://github.com/cloudquery/cloudquery/issues/13879)) ([f95ced5](https://github.com/cloudquery/cloudquery/commit/f95ced5daa2b123bd71ddff75bd76b3b008790c1)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.10.0 ([#13978](https://github.com/cloudquery/cloudquery/issues/13978)) ([2efdf55](https://github.com/cloudquery/cloudquery/commit/2efdf55aed94a14c35c51632ff61ed454caaf5a5)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.10.2 ([#13988](https://github.com/cloudquery/cloudquery/issues/13988)) ([aebaddf](https://github.com/cloudquery/cloudquery/commit/aebaddfc5ca0d7574b8cd72e9e074ec612472dbe)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.11.0 ([#14031](https://github.com/cloudquery/cloudquery/issues/14031)) ([ac7cdc4](https://github.com/cloudquery/cloudquery/commit/ac7cdc4f7d71599dad89b3170bb7bda676984228)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.11.1 ([#14063](https://github.com/cloudquery/cloudquery/issues/14063)) ([5a0ff7b](https://github.com/cloudquery/cloudquery/commit/5a0ff7b67890478c371385b379e0a8ef0c2f4865)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.8.0 ([#13950](https://github.com/cloudquery/cloudquery/issues/13950)) ([15b0b69](https://github.com/cloudquery/cloudquery/commit/15b0b6925932613ed2915a3255b3466f21a5c7bf)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.9.0 ([#13960](https://github.com/cloudquery/cloudquery/issues/13960)) ([f074076](https://github.com/cloudquery/cloudquery/commit/f074076a21dc0b8cadfdc3adb9731473d24d28b1)) - -## [5.0.8](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.7...plugins-source-k8s-v5.0.8) (2023-09-12) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to 483f6b2 ([#13780](https://github.com/cloudquery/cloudquery/issues/13780)) ([8d31b44](https://github.com/cloudquery/cloudquery/commit/8d31b44f787f42d47f186cdcc4a5739a3a370a5f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.7.0 ([#13625](https://github.com/cloudquery/cloudquery/issues/13625)) ([bb5463f](https://github.com/cloudquery/cloudquery/commit/bb5463fb5919f50f1327eecae884b2ab99fb8b34)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.7.1 ([#13713](https://github.com/cloudquery/cloudquery/issues/13713)) ([73004dc](https://github.com/cloudquery/cloudquery/commit/73004dcabd05bf474d8b5960b8c747a894b98560)) - -## [5.0.7](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.6...plugins-source-k8s-v5.0.7) (2023-09-05) - - -### Bug Fixes - -* **deps:** Update github.com/99designs/go-keychain digest to 9cf53c8 ([#13561](https://github.com/cloudquery/cloudquery/issues/13561)) ([a170256](https://github.com/cloudquery/cloudquery/commit/a17025657e92b017fe3c8bd37abfaa2354e6e818)) -* **deps:** Update github.com/apache/arrow/go/v14 digest to a526ba6 ([#13562](https://github.com/cloudquery/cloudquery/issues/13562)) ([248672b](https://github.com/cloudquery/cloudquery/commit/248672beb020828cde1cb608d5c1ed6d656c777b)) -* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to cd3d411 ([#13598](https://github.com/cloudquery/cloudquery/issues/13598)) ([f22bfa6](https://github.com/cloudquery/cloudquery/commit/f22bfa6b2d4fd0caeacf0726ccd307db38f8860c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.6.0 ([#13492](https://github.com/cloudquery/cloudquery/issues/13492)) ([c305876](https://github.com/cloudquery/cloudquery/commit/c305876e3d92944aa6c1a26547f786fdc5b50e23)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.6.4 ([#13519](https://github.com/cloudquery/cloudquery/issues/13519)) ([9d25165](https://github.com/cloudquery/cloudquery/commit/9d25165820703844c6de96688d939aa5033608ae)) - -## [5.0.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.5...plugins-source-k8s-v5.0.6) (2023-08-29) - - -### Bug Fixes - -* **deps:** Update `github.com/cloudquery/arrow/go/v13` to `github.com/apache/arrow/go/v14` ([#13341](https://github.com/cloudquery/cloudquery/issues/13341)) ([feb8f87](https://github.com/cloudquery/cloudquery/commit/feb8f87d8d761eb9c49ce84329ad0397f730a918)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 5b83d4f ([#13203](https://github.com/cloudquery/cloudquery/issues/13203)) ([b0a4b8c](https://github.com/cloudquery/cloudquery/commit/b0a4b8ccf7c429bf5a6ed88866865212015b68e4)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.5.1 ([#13195](https://github.com/cloudquery/cloudquery/issues/13195)) ([a184c37](https://github.com/cloudquery/cloudquery/commit/a184c3786ad49df8564344773e9b96f617ef87a1)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.5.2 ([#13262](https://github.com/cloudquery/cloudquery/issues/13262)) ([5c55aa3](https://github.com/cloudquery/cloudquery/commit/5c55aa35282786375e8ce9493b2a4878e0fb27bc)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.5.5 ([#13285](https://github.com/cloudquery/cloudquery/issues/13285)) ([e076abd](https://github.com/cloudquery/cloudquery/commit/e076abd9d67813a29ced0c1b7b1664fd728b9ba8)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.5.6 ([#13345](https://github.com/cloudquery/cloudquery/issues/13345)) ([a995a05](https://github.com/cloudquery/cloudquery/commit/a995a0598a209e0fe3ba09f4ced2a052dc14b67a)) - -## [5.0.5](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.4...plugins-source-k8s-v5.0.5) (2023-08-15) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to e9683e1 ([#13015](https://github.com/cloudquery/cloudquery/issues/13015)) ([6557696](https://github.com/cloudquery/cloudquery/commit/65576966d3bd14297499a5b85d3b4fc2c7918df3)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.5.0 ([#13068](https://github.com/cloudquery/cloudquery/issues/13068)) ([7bb0e4b](https://github.com/cloudquery/cloudquery/commit/7bb0e4ba654971726e16a6a501393e3831170307)) - -## [5.0.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.3...plugins-source-k8s-v5.0.4) (2023-08-10) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.4.0 ([#12850](https://github.com/cloudquery/cloudquery/issues/12850)) ([0861200](https://github.com/cloudquery/cloudquery/commit/086120054b45213947e95be954ba6164b9cf6587)) - -## [5.0.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.2...plugins-source-k8s-v5.0.3) (2023-08-08) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v13 digest to 112f949 ([#12659](https://github.com/cloudquery/cloudquery/issues/12659)) ([48d73a9](https://github.com/cloudquery/cloudquery/commit/48d73a93e678994f43171c363f5a75c29547b0b9)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 3452eb0 ([#12595](https://github.com/cloudquery/cloudquery/issues/12595)) ([c1c0949](https://github.com/cloudquery/cloudquery/commit/c1c09490b17f2e64435e05d745890cdb8b22310d)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to f53878d ([#12778](https://github.com/cloudquery/cloudquery/issues/12778)) ([6f5d58e](https://github.com/cloudquery/cloudquery/commit/6f5d58e3b84d3c76b1d1a3d6c5a488f77995a057)) -* **deps:** Update github.com/cockroachdb/cockroachdb-parser digest to 302c9ad ([#12664](https://github.com/cloudquery/cloudquery/issues/12664)) ([924509c](https://github.com/cloudquery/cloudquery/commit/924509c409fcf008c93f67fc6a0c5dcf4b2bddc5)) -* **deps:** Update github.com/petermattis/goid digest to 80aa455 ([#12669](https://github.com/cloudquery/cloudquery/issues/12669)) ([a140396](https://github.com/cloudquery/cloudquery/commit/a140396153d62d3e68646d58a7749426aa2cc9fe)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.4 ([#12718](https://github.com/cloudquery/cloudquery/issues/12718)) ([f059a15](https://github.com/cloudquery/cloudquery/commit/f059a159a2ee406ab2b0a33792c244cd217025a6)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.5 ([#12731](https://github.com/cloudquery/cloudquery/issues/12731)) ([d267239](https://github.com/cloudquery/cloudquery/commit/d267239aa3aca5f94bd36a8db1ec0d9f7dc0865f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.6 ([#12799](https://github.com/cloudquery/cloudquery/issues/12799)) ([fb0e0d7](https://github.com/cloudquery/cloudquery/commit/fb0e0d75ab010f421c834e58d93676de76fcb423)) - -## [5.0.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.1...plugins-source-k8s-v5.0.2) (2023-07-25) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 10df4b9 ([#12443](https://github.com/cloudquery/cloudquery/issues/12443)) ([e385283](https://github.com/cloudquery/cloudquery/commit/e38528309f862f37bc7e278f9b69cf92d5aa5bd5)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.3 ([#12307](https://github.com/cloudquery/cloudquery/issues/12307)) ([8f14e4d](https://github.com/cloudquery/cloudquery/commit/8f14e4de7bf4d4c833f501135ea0610916a42f8b)) -* **sync:** Pass `DeterministicCQID` option to scheduler ([#12424](https://github.com/cloudquery/cloudquery/issues/12424)) ([eaac2e6](https://github.com/cloudquery/cloudquery/commit/eaac2e684bd6e9744a38be8eef3a1f5e77d163f5)) - -## [5.0.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v5.0.0...plugins-source-k8s-v5.0.1) (2023-07-18) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 8e2219b ([#12220](https://github.com/cloudquery/cloudquery/issues/12220)) ([24e8fb5](https://github.com/cloudquery/cloudquery/commit/24e8fb588740896fe11a660e8b80231e741b753c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.0 ([#12256](https://github.com/cloudquery/cloudquery/issues/12256)) ([eaec331](https://github.com/cloudquery/cloudquery/commit/eaec33165345ad51fdb6ddbffbf8a1199ebd6384)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.2.1 ([#12272](https://github.com/cloudquery/cloudquery/issues/12272)) ([557ca69](https://github.com/cloudquery/cloudquery/commit/557ca69a7dee9dabb80e6afb6f41f205fd8a80d8)) - -## [5.0.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v4.0.2...plugins-source-k8s-v5.0.0) (2023-07-14) - - -### ⚠ BREAKING CHANGES - -* Upgrades the k8s source plugin to use plugin-sdk v4. This version does not contain any user-facing breaking changes, but because it is now using CloudQuery gRPC protocol v3, it does require use of a destination plugin that also supports protocol v3. All recent destination plugin versions support this. - -### Features - -* Upgrades the k8s source plugin to use plugin-sdk v4. This version does not contain any user-facing breaking changes, but because it is now using CloudQuery gRPC protocol v3, it does require use of a destination plugin that also supports protocol v3. All recent destination plugin versions support this. ([96a39d6](https://github.com/cloudquery/cloudquery/commit/96a39d677b92d3d9b2f96bafb34856e40af61de0)) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v13 digest to 5a06b2e ([#11857](https://github.com/cloudquery/cloudquery/issues/11857)) ([43c2f5f](https://github.com/cloudquery/cloudquery/commit/43c2f5f3a893e5286f67c4943a9d1bc2736e2aeb)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 0656028 ([#11739](https://github.com/cloudquery/cloudquery/issues/11739)) ([7a6ad49](https://github.com/cloudquery/cloudquery/commit/7a6ad49e8402d51e914d6fdc444956c89db91ad3)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 0a52533 ([#12091](https://github.com/cloudquery/cloudquery/issues/12091)) ([927cefa](https://github.com/cloudquery/cloudquery/commit/927cefa943ec3969a2ec39b628bc1eba545a2108)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 1e68c51 ([#11637](https://github.com/cloudquery/cloudquery/issues/11637)) ([46043bc](https://github.com/cloudquery/cloudquery/commit/46043bce410f86ba42390a6b190f9232fc2a1ded)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 43638cb ([#11672](https://github.com/cloudquery/cloudquery/issues/11672)) ([3c60bbb](https://github.com/cloudquery/cloudquery/commit/3c60bbbb0233b17f934583766938780745145864)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 4d76231 ([#11532](https://github.com/cloudquery/cloudquery/issues/11532)) ([6f04233](https://github.com/cloudquery/cloudquery/commit/6f042333acbd2506f7800ccb89a8c5cbfb7ad8d4)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 8366a22 ([#11717](https://github.com/cloudquery/cloudquery/issues/11717)) ([8eeff5b](https://github.com/cloudquery/cloudquery/commit/8eeff5b17486d72845f830b99983f950fee7f5a0)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 95d3199 ([#11708](https://github.com/cloudquery/cloudquery/issues/11708)) ([03f214f](https://github.com/cloudquery/cloudquery/commit/03f214f3dfd719b74ce9eb698ba255a8cf7528c7)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to a2a76eb ([#12104](https://github.com/cloudquery/cloudquery/issues/12104)) ([311f474](https://github.com/cloudquery/cloudquery/commit/311f4749af2491a606f29483190717a5fe238da6)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to b0832be ([#11651](https://github.com/cloudquery/cloudquery/issues/11651)) ([71e8c29](https://github.com/cloudquery/cloudquery/commit/71e8c29624494a3e1cd104e46266a610ce57c83c)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to d864719 ([#11611](https://github.com/cloudquery/cloudquery/issues/11611)) ([557a290](https://github.com/cloudquery/cloudquery/commit/557a2903af272b8e2e4c9eebb36e39cd8a41a805)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to df3b664 ([#11882](https://github.com/cloudquery/cloudquery/issues/11882)) ([9635b22](https://github.com/cloudquery/cloudquery/commit/9635b22b10a2cd9ca0f91819cffb7f4ba75dc2d9)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to f060192 ([#11730](https://github.com/cloudquery/cloudquery/issues/11730)) ([c7019c2](https://github.com/cloudquery/cloudquery/commit/c7019c26c311f29b66c90fc5d461a0daf71d191c)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to f0dffc6 ([#11689](https://github.com/cloudquery/cloudquery/issues/11689)) ([18ac0e9](https://github.com/cloudquery/cloudquery/commit/18ac0e9dbef31d06701f1f13d263ad840ac60c5e)) -* **deps:** Update github.com/cockroachdb/logtags digest to 21c5414 ([#11864](https://github.com/cloudquery/cloudquery/issues/11864)) ([da48b1f](https://github.com/cloudquery/cloudquery/commit/da48b1fc86576ea5777505e5bb59ecaf0febf7ca)) -* **deps:** Update github.com/golang/geo digest to 6adc566 ([#11866](https://github.com/cloudquery/cloudquery/issues/11866)) ([edb7ed8](https://github.com/cloudquery/cloudquery/commit/edb7ed83896842e6f174079ba020f18d713f6f91)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.1.0 ([#11665](https://github.com/cloudquery/cloudquery/issues/11665)) ([d8947c9](https://github.com/cloudquery/cloudquery/commit/d8947c9efa6ab8bf3952ad9d929e8ed81f2dea55)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.2.0 ([#11720](https://github.com/cloudquery/cloudquery/issues/11720)) ([7ef521d](https://github.com/cloudquery/cloudquery/commit/7ef521db1423c6f0de197b08c73adf22c896f999)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.2.1 ([#11722](https://github.com/cloudquery/cloudquery/issues/11722)) ([309be72](https://github.com/cloudquery/cloudquery/commit/309be7276d7de157013c281b6fb3934513898b3f)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.3.3 ([#11726](https://github.com/cloudquery/cloudquery/issues/11726)) ([f0ca611](https://github.com/cloudquery/cloudquery/commit/f0ca61195014bde707761a15efa27a92955b59db)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.3.4 ([#11753](https://github.com/cloudquery/cloudquery/issues/11753)) ([cd4fe1c](https://github.com/cloudquery/cloudquery/commit/cd4fe1c54f85f8511252bebd5671361618ddb0d3)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.5.0 ([#11850](https://github.com/cloudquery/cloudquery/issues/11850)) ([3255857](https://github.com/cloudquery/cloudquery/commit/3255857938bf16862d52491f5c2a8a0fa53faef0)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.6.0 ([#11916](https://github.com/cloudquery/cloudquery/issues/11916)) ([421e752](https://github.com/cloudquery/cloudquery/commit/421e7529360965175c8d156ff006d2b703ee9da2)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.7.0 ([#12166](https://github.com/cloudquery/cloudquery/issues/12166)) ([94390dd](https://github.com/cloudquery/cloudquery/commit/94390dde19d0c37fee9d035219d62f6ae7edb127)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.10.6 ([#11473](https://github.com/cloudquery/cloudquery/issues/11473)) ([7272133](https://github.com/cloudquery/cloudquery/commit/72721336632e127dd37de4541f2f503bf4f73fb6)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.1.0 ([#12174](https://github.com/cloudquery/cloudquery/issues/12174)) ([80f0289](https://github.com/cloudquery/cloudquery/commit/80f02892a4cf876c4bf4dd4fd9367afb3770ad26)) -* **deps:** Upgrade source plugins to SDK v4.0.0 release ([#12135](https://github.com/cloudquery/cloudquery/issues/12135)) ([c20a111](https://github.com/cloudquery/cloudquery/commit/c20a111d591101fb1bbc42292accc953af38e8a6)) -* Update SDK on sources ([#11983](https://github.com/cloudquery/cloudquery/issues/11983)) ([0da0bcf](https://github.com/cloudquery/cloudquery/commit/0da0bcf8fb936d529709ac944f3dedb8d8b33abc)) - -## [4.0.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v4.0.1...plugins-source-k8s-v4.0.2) (2023-06-13) - - -### Bug Fixes - -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 0f7bd3b ([#11412](https://github.com/cloudquery/cloudquery/issues/11412)) ([dd1e2e8](https://github.com/cloudquery/cloudquery/commit/dd1e2e892d95515fd7332339262abaefd2a256c5)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 7f6aaff ([#11432](https://github.com/cloudquery/cloudquery/issues/11432)) ([55dfebc](https://github.com/cloudquery/cloudquery/commit/55dfebc064608fb47caaf3b8e68c8002de8a7dc3)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 8f72077 ([#11395](https://github.com/cloudquery/cloudquery/issues/11395)) ([d91fc5c](https://github.com/cloudquery/cloudquery/commit/d91fc5ce24f64c29fff6988b19ec2c2775cc379b)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 90670b8 ([#11279](https://github.com/cloudquery/cloudquery/issues/11279)) ([a6cdc91](https://github.com/cloudquery/cloudquery/commit/a6cdc912e4b38a3faf798c5147a986ffe2539643)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to b359e74 ([#11405](https://github.com/cloudquery/cloudquery/issues/11405)) ([5d92765](https://github.com/cloudquery/cloudquery/commit/5d927659bd4f7c445a0e312487f1655ffb9a60f6)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to d8eacf8 ([#11449](https://github.com/cloudquery/cloudquery/issues/11449)) ([742dafd](https://github.com/cloudquery/cloudquery/commit/742dafd5bf5cdc8facb94fda5de1d84c88897cbd)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to e258cfb ([#11391](https://github.com/cloudquery/cloudquery/issues/11391)) ([eacbe9a](https://github.com/cloudquery/cloudquery/commit/eacbe9ad3ea16d88f27c4593fa2774574ac8fe4e)) - -## [4.0.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v4.0.0...plugins-source-k8s-v4.0.1) (2023-06-06) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v13 digest to e07e22c ([#11151](https://github.com/cloudquery/cloudquery/issues/11151)) ([5083cf7](https://github.com/cloudquery/cloudquery/commit/5083cf720f0ae98e07448ba2ae1116048e2d3a90)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 20b0de9 ([#11199](https://github.com/cloudquery/cloudquery/issues/11199)) ([dc3565d](https://github.com/cloudquery/cloudquery/commit/dc3565d3fd6a640d9d10b4fd3a7fe6009a9d02a5)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to 88d5dc2 ([#11226](https://github.com/cloudquery/cloudquery/issues/11226)) ([9f306bc](https://github.com/cloudquery/cloudquery/commit/9f306bcaf3833b4611f0df5c50277be43aa19cbb)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to a7aad4c ([#11184](https://github.com/cloudquery/cloudquery/issues/11184)) ([8a0822e](https://github.com/cloudquery/cloudquery/commit/8a0822e31fc0eef99de2cdd2bd6d7e4c8b4131bf)) -* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to c67fb39 ([#11169](https://github.com/cloudquery/cloudquery/issues/11169)) ([dcb0f92](https://github.com/cloudquery/cloudquery/commit/dcb0f9296a770a5cc2eb6bffd6b1ee30fbccb5dc)) -* **deps:** Update golang.org/x/exp digest to 2e198f4 ([#11155](https://github.com/cloudquery/cloudquery/issues/11155)) ([c46c62b](https://github.com/cloudquery/cloudquery/commit/c46c62b68692f527485d7f4b84265abc5dc1142c)) -* **deps:** Update google.golang.org/genproto digest to e85fd2c ([#11156](https://github.com/cloudquery/cloudquery/issues/11156)) ([dbe7e92](https://github.com/cloudquery/cloudquery/commit/dbe7e9293d693a6821570e0e0b80202a936b6d3c)) -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.0.9 ([#11240](https://github.com/cloudquery/cloudquery/issues/11240)) ([f92cd4b](https://github.com/cloudquery/cloudquery/commit/f92cd4bfe3c3d0088964d52ab9cd01ca4cf622e1)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.10.3 ([#11150](https://github.com/cloudquery/cloudquery/issues/11150)) ([dc00994](https://github.com/cloudquery/cloudquery/commit/dc00994e32936af7e9893c93561d0f9df225a929)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.10.4 ([#11244](https://github.com/cloudquery/cloudquery/issues/11244)) ([8fceef6](https://github.com/cloudquery/cloudquery/commit/8fceef6f9041e173923555d8ff221cfe83b424c2)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.7.0 ([#11113](https://github.com/cloudquery/cloudquery/issues/11113)) ([487bf87](https://github.com/cloudquery/cloudquery/commit/487bf871afe360cb8d9d592dfea48837d6e7cf27)) - -## [4.0.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.5.1...plugins-source-k8s-v4.0.0) (2023-05-29) - - -### This Release has the Following Changes to Tables -- Table `k8s_core_nodes`: column type changed from `CIDRArray` to `list` for `spec_pod_cidrs` (:warning: breaking) -- Table `k8s_core_nodes`: column type changed from `CIDR` to `inet` for `spec_pod_cidr` (:warning: breaking) - -### ⚠ BREAKING CHANGES - -* This release introduces an internal change to our type system to use [Apache Arrow](https://arrow.apache.org/). This should not have any visible breaking changes, however due to the size of the change we are introducing it under a major version bump to communicate that it might have some bugs that we weren't able to catch during our internal tests. If you encounter an issue during the upgrade, please submit a [bug report](https://github.com/cloudquery/cloudquery/issues/new/choose). You will also need to update destinations depending on which one you use: - - Azure Blob Storage >= v3.2.0 - - BigQuery >= v3.0.0 - - ClickHouse >= v3.1.1 - - DuckDB >= v1.1.6 - - Elasticsearch >= v2.0.0 - - File >= v3.2.0 - - Firehose >= v2.0.2 - - GCS >= v3.2.0 - - Gremlin >= v2.1.10 - - Kafka >= v3.0.1 - - Meilisearch >= v2.0.1 - - Microsoft SQL Server >= v4.2.0 - - MongoDB >= v2.0.1 - - MySQL >= v2.0.2 - - Neo4j >= v3.0.0 - - PostgreSQL >= v4.2.0 - - S3 >= v4.4.0 - - Snowflake >= v2.1.1 - - SQLite >= v2.2.0 - -### Features - -* **deps:** Upgrade to Apache Arrow v13 (latest `cqmain`) ([#10605](https://github.com/cloudquery/cloudquery/issues/10605)) ([a55da3d](https://github.com/cloudquery/cloudquery/commit/a55da3dbefafdc68a6bda2d5f1d334d12dd97b97)) -* Update to use [Apache Arrow](https://arrow.apache.org/) type system ([#10978](https://github.com/cloudquery/cloudquery/issues/10978)) ([4429b31](https://github.com/cloudquery/cloudquery/commit/4429b31ec6098a47f857f7a5eccb83dcf19a252a)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.0.8 ([#10798](https://github.com/cloudquery/cloudquery/issues/10798)) ([27ff430](https://github.com/cloudquery/cloudquery/commit/27ff430527932d59a4d488a6767547eda8853940)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v3 to v3.6.7 ([#11043](https://github.com/cloudquery/cloudquery/issues/11043)) ([3c6d885](https://github.com/cloudquery/cloudquery/commit/3c6d885c3d201b0b39cbc1406c6e54a57ec5ed5f)) - -## [3.5.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.5.0...plugins-source-k8s-v3.5.1) (2023-05-02) - - -### Bug Fixes - -* **deps:** Update github.com/apache/arrow/go/v12 digest to 0ea1a10 ([#10461](https://github.com/cloudquery/cloudquery/issues/10461)) ([022709f](https://github.com/cloudquery/cloudquery/commit/022709f710cc6d95aee60260d6f58991698bbf42)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.5.1 ([#10448](https://github.com/cloudquery/cloudquery/issues/10448)) ([cc85b93](https://github.com/cloudquery/cloudquery/commit/cc85b939fe945939caf72f8c08095e1e744b9ee8)) - -## [3.5.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.4.1...plugins-source-k8s-v3.5.0) (2023-04-25) - - -### Features - -* **k8s:** Upgrade to `github.com/cloudquery/plugin-sdk/v2` ([#9953](https://github.com/cloudquery/cloudquery/issues/9953)) ([4296a02](https://github.com/cloudquery/cloudquery/commit/4296a022a1737d67a7eeecc2803921544d5070f8)), closes [#9952](https://github.com/cloudquery/cloudquery/issues/9952) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.2.0 ([#10135](https://github.com/cloudquery/cloudquery/issues/10135)) ([cf33b89](https://github.com/cloudquery/cloudquery/commit/cf33b892ead0bb231e3956aa70967de552a21624)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.2.2 ([#10143](https://github.com/cloudquery/cloudquery/issues/10143)) ([8f887e0](https://github.com/cloudquery/cloudquery/commit/8f887e05de2096e8efd1e55863a8cf3c7620ccc3)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.0 ([#10163](https://github.com/cloudquery/cloudquery/issues/10163)) ([9a7f214](https://github.com/cloudquery/cloudquery/commit/9a7f21460772200e7a588409ebc7eb19f97b195b)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.1 ([#10175](https://github.com/cloudquery/cloudquery/issues/10175)) ([5b53423](https://github.com/cloudquery/cloudquery/commit/5b53423e72672f6c2bfb8ae00cfce1641410443e)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.3 ([#10187](https://github.com/cloudquery/cloudquery/issues/10187)) ([b185248](https://github.com/cloudquery/cloudquery/commit/b1852480b6ec8b721d94c72d8435051352f26932)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.4 ([#10196](https://github.com/cloudquery/cloudquery/issues/10196)) ([c6d2f59](https://github.com/cloudquery/cloudquery/commit/c6d2f59c7d77177a351cb82ecdc381dec6aad30c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.5 ([#10200](https://github.com/cloudquery/cloudquery/issues/10200)) ([5a33693](https://github.com/cloudquery/cloudquery/commit/5a33693fe29f7068b03d80be1859d6e479c42c0d)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.6 ([#10208](https://github.com/cloudquery/cloudquery/issues/10208)) ([91c80a7](https://github.com/cloudquery/cloudquery/commit/91c80a795b46480447cfaef67c4db721a31e3206)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.3.8 ([#10213](https://github.com/cloudquery/cloudquery/issues/10213)) ([f358666](https://github.com/cloudquery/cloudquery/commit/f35866611cd206c37e6e9f9ad3329561e4cb32af)) -* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v2.4.0 ([#10278](https://github.com/cloudquery/cloudquery/issues/10278)) ([a0a713e](https://github.com/cloudquery/cloudquery/commit/a0a713e8490b970b9d8bfaa1b50e01f43ff51c36)) - -## [3.4.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.4.0...plugins-source-k8s-v3.4.1) (2023-04-13) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.45.0 ([#9863](https://github.com/cloudquery/cloudquery/issues/9863)) ([2799d62](https://github.com/cloudquery/cloudquery/commit/2799d62518283ac304beecda9478f8f2db43cdc5)) - -## [3.4.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.3.2...plugins-source-k8s-v3.4.0) (2023-04-04) - - -### This Release has the Following Changes to Tables -- Table `k8s_admissionregistration_mutating_webhook_configurations`: column order changed for `uid` -- Table `k8s_admissionregistration_validating_webhook_configurations`: column order changed for `uid` -- Table `k8s_apps_daemon_sets`: column order changed for `uid` -- Table `k8s_apps_deployments`: column order changed for `uid` -- Table `k8s_apps_replica_sets`: column order changed for `uid` -- Table `k8s_apps_stateful_sets`: column order changed for `uid` -- Table `k8s_autoscaling_hpas`: column order changed for `uid` -- Table `k8s_batch_cron_jobs`: column order changed for `uid` -- Table `k8s_batch_jobs`: column order changed for `uid` -- Table `k8s_certificates_signing_requests`: column order changed for `uid` -- Table `k8s_coordination_leases`: column order changed for `uid` -- Table `k8s_core_component_statuses`: column order changed for `uid` -- Table `k8s_core_config_maps`: column order changed for `uid` -- Table `k8s_core_endpoints`: column order changed for `uid` -- Table `k8s_core_events`: column order changed for `uid` -- Table `k8s_core_limit_ranges`: column order changed for `uid` -- Table `k8s_core_namespaces`: column order changed for `uid` -- Table `k8s_core_nodes`: column order changed for `uid` -- Table `k8s_core_pods`: column order changed for `uid` -- Table `k8s_core_pvcs`: column order changed for `uid` -- Table `k8s_core_pvs`: column order changed for `uid` -- Table `k8s_core_replication_controllers`: column order changed for `uid` -- Table `k8s_core_resource_quotas`: column order changed for `uid` -- Table `k8s_core_secrets`: column order changed for `uid` -- Table `k8s_core_service_accounts`: column order changed for `uid` -- Table `k8s_core_services`: column order changed for `uid` -- Table `k8s_crds` was added -- Table `k8s_discovery_endpoint_slices`: column order changed for `uid` -- Table `k8s_networking_ingress_classes`: column order changed for `uid` -- Table `k8s_networking_ingresses`: column order changed for `uid` -- Table `k8s_networking_network_policies`: column order changed for `uid` -- Table `k8s_nodes_runtime_classes`: column order changed for `uid` -- Table `k8s_rbac_cluster_role_bindings`: column order changed for `uid` -- Table `k8s_rbac_cluster_roles`: column order changed for `uid` -- Table `k8s_rbac_role_bindings`: column order changed for `uid` -- Table `k8s_rbac_roles`: column order changed for `uid` -- Table `k8s_storage_csi_drivers`: column order changed for `uid` -- Table `k8s_storage_csi_nodes`: column order changed for `uid` -- Table `k8s_storage_csi_storage_capacities`: column order changed for `uid` -- Table `k8s_storage_storage_classes`: column order changed for `uid` -- Table `k8s_storage_volume_attachments`: column order changed for `uid` - -### Features - -* **k8s:** Add CRDs support ([#9504](https://github.com/cloudquery/cloudquery/issues/9504)) ([d4b03a4](https://github.com/cloudquery/cloudquery/commit/d4b03a43d42e20119b0ced371dd9988c0fc3ccf3)), closes [#7800](https://github.com/cloudquery/cloudquery/issues/7800) -* **k8s:** Improve tables descriptions in docs ([#9510](https://github.com/cloudquery/cloudquery/issues/9510)) ([e6de98e](https://github.com/cloudquery/cloudquery/commit/e6de98ed55758bdbe2758eac42749908da00521c)) - - -### Bug Fixes - -* **deps:** Update golang.org/x/exp digest to 10a5072 ([#9587](https://github.com/cloudquery/cloudquery/issues/9587)) ([31f913f](https://github.com/cloudquery/cloudquery/commit/31f913f8e3538a2ba41b089bb11eae78aaf42ab2)) -* **deps:** Update k8s.io/kube-openapi digest to f5883ff ([#9589](https://github.com/cloudquery/cloudquery/issues/9589)) ([229c5da](https://github.com/cloudquery/cloudquery/commit/229c5da79be1afb352e3ea4d53ed3471395d7e30)) -* **deps:** Update k8s.io/utils digest to 38a27ef ([#9590](https://github.com/cloudquery/cloudquery/issues/9590)) ([2bcbcf2](https://github.com/cloudquery/cloudquery/commit/2bcbcf25360d6e40e626763840e7c633be927d73)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.1 ([#9520](https://github.com/cloudquery/cloudquery/issues/9520)) ([202c31b](https://github.com/cloudquery/cloudquery/commit/202c31b2788c3df35b5df7d07fdc750f92e7bb23)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.2 ([#9661](https://github.com/cloudquery/cloudquery/issues/9661)) ([a27dc84](https://github.com/cloudquery/cloudquery/commit/a27dc84a9b67b68b5b75b04dd3afe13e2c556082)) -* **deps:** Update module github.com/go-logr/logr to v1.2.4 ([#9605](https://github.com/cloudquery/cloudquery/issues/9605)) ([2ed0dc1](https://github.com/cloudquery/cloudquery/commit/2ed0dc15043598b0e3f68549e4732f08cc7f4ab9)) -* **deps:** Update module github.com/imdario/mergo to v0.3.15 ([#9607](https://github.com/cloudquery/cloudquery/issues/9607)) ([2659ba4](https://github.com/cloudquery/cloudquery/commit/2659ba431168ce159588e398148e459deb33f92b)) -* **deps:** Update module github.com/mattn/go-isatty to v0.0.18 ([#9609](https://github.com/cloudquery/cloudquery/issues/9609)) ([5b2908e](https://github.com/cloudquery/cloudquery/commit/5b2908e8260c6e48f8c5fd6b8bd6c772f0c779d1)) - -## [3.3.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.3.1...plugins-source-k8s-v3.3.2) (2023-03-21) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.44.0 ([#9167](https://github.com/cloudquery/cloudquery/issues/9167)) ([49d6477](https://github.com/cloudquery/cloudquery/commit/49d647730a85ea6fae51e97194ba61c0625d1331)) - -## [3.3.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.3.0...plugins-source-k8s-v3.3.1) (2023-03-14) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.43.0 ([#8949](https://github.com/cloudquery/cloudquery/issues/8949)) ([31dfc63](https://github.com/cloudquery/cloudquery/commit/31dfc634850b699ba7bb7876399270a7367d6c7e)) - -## [3.3.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.2.3...plugins-source-k8s-v3.3.0) (2023-03-07) - - -### Features - -* **docs:** Render tables as a part of the Website and add a [tables search box](https://www.cloudquery.io/tables). The equivalent of the GitHub README.md file is now under each plugin's docs section, for example https://www.cloudquery.io/docs/plugins/sources/aws/tables. The Website HTML page is built from the GitHub markdown file located under each plugin's path in our Website code, for example https://github.com/cloudquery/cloudquery/blob/main/website/pages/docs/plugins/sources/aws/tables.md. For the list of all plugins table files as they are stored on GitHub see https://github.com/cloudquery/cloudquery/tree/main/website/tables ([342b0c5](https://github.com/cloudquery/cloudquery/commit/342b0c569fd28ee26ea3e09ec6d787f85c49f16c)) - - -### Bug Fixes - -* **deps:** Update golang.org/x/exp digest to c95f2b4 ([#8560](https://github.com/cloudquery/cloudquery/issues/8560)) ([9c3bd5b](https://github.com/cloudquery/cloudquery/commit/9c3bd5b68f9741a360fde6c54bf3f5f3efe06d9e)) -* **deps:** Update k8s.io/kube-openapi digest to 19cbebb ([#8563](https://github.com/cloudquery/cloudquery/issues/8563)) ([a6965ef](https://github.com/cloudquery/cloudquery/commit/a6965ef01b31eb7ca087cc296a09717ea6094617)) -* **deps:** Update k8s.io/utils digest to a5ecb01 ([#8564](https://github.com/cloudquery/cloudquery/issues/8564)) ([85bee68](https://github.com/cloudquery/cloudquery/commit/85bee68cedbe2dfa1eabee385b57b5c93667d6c9)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.41.0 ([#8682](https://github.com/cloudquery/cloudquery/issues/8682)) ([ea9d065](https://github.com/cloudquery/cloudquery/commit/ea9d065ae9f77c6dd990570974630ae6ac3f153e)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.42.0 ([#8725](https://github.com/cloudquery/cloudquery/issues/8725)) ([b83b277](https://github.com/cloudquery/cloudquery/commit/b83b277a2421d1caf46a26c3229041b27a3da148)) -* **deps:** Update module github.com/stretchr/testify to v1.8.2 ([#8599](https://github.com/cloudquery/cloudquery/issues/8599)) ([2ec8086](https://github.com/cloudquery/cloudquery/commit/2ec808677328410cc96c97a693ef65022d314c32)) - -## [3.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.2.2...plugins-source-k8s-v3.2.3) (2023-02-28) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.39.0 ([#8344](https://github.com/cloudquery/cloudquery/issues/8344)) ([9c57544](https://github.com/cloudquery/cloudquery/commit/9c57544d06f9a774adcc659bcabd2518a905bdaa)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.39.1 ([#8371](https://github.com/cloudquery/cloudquery/issues/8371)) ([e3274c1](https://github.com/cloudquery/cloudquery/commit/e3274c109739bc107387627d340a713470c3a3c1)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.40.0 ([#8401](https://github.com/cloudquery/cloudquery/issues/8401)) ([4cf36d6](https://github.com/cloudquery/cloudquery/commit/4cf36d68684f37c0407332930766c1ba60807a93)) - -## [3.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.2.1...plugins-source-k8s-v3.2.2) (2023-02-21) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.38.2 ([#8156](https://github.com/cloudquery/cloudquery/issues/8156)) ([ac2d2d7](https://github.com/cloudquery/cloudquery/commit/ac2d2d70d5c4bc45fb8734bd4deb8a1e36074f6d)) -* **deps:** Update module golang.org/x/net to v0.7.0 [SECURITY] ([#8176](https://github.com/cloudquery/cloudquery/issues/8176)) ([fc4cef8](https://github.com/cloudquery/cloudquery/commit/fc4cef86dce4ca76ca8397e897ab744e48975834)) - -## [3.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.2.0...plugins-source-k8s-v3.2.1) (2023-02-14) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.37.1 ([#8008](https://github.com/cloudquery/cloudquery/issues/8008)) ([c47aac0](https://github.com/cloudquery/cloudquery/commit/c47aac0b5e3190a04299713651b97e360043911f)) - -## [3.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.1.1...plugins-source-k8s-v3.2.0) (2023-02-14) - - -### Features - -* **k8s-resources:** Add Pod Disruption Budgets ([#7792](https://github.com/cloudquery/cloudquery/issues/7792)) ([5c8eae4](https://github.com/cloudquery/cloudquery/commit/5c8eae48fa18c1bbb5066992b02a1a47516c923a)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.36.0 ([#7809](https://github.com/cloudquery/cloudquery/issues/7809)) ([c85a9cb](https://github.com/cloudquery/cloudquery/commit/c85a9cb697477520e94a1fd260c56b89da62fc87)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.36.1 ([#7930](https://github.com/cloudquery/cloudquery/issues/7930)) ([39dccc1](https://github.com/cloudquery/cloudquery/commit/39dccc1bf81f4eb02d181ba0c47b37038a4c5455)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.37.0 ([#7933](https://github.com/cloudquery/cloudquery/issues/7933)) ([dc9cffb](https://github.com/cloudquery/cloudquery/commit/dc9cffbf37bbc6fae73a20bf47e6bbf17e74d1f9)) - -## [3.1.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.1.0...plugins-source-k8s-v3.1.1) (2023-02-07) - - -### Bug Fixes - -* **deps:** Update go-openapi packages ([#7538](https://github.com/cloudquery/cloudquery/issues/7538)) ([ca2b070](https://github.com/cloudquery/cloudquery/commit/ca2b070c0a2c669ad4ab482996c96c083c6f2705)) -* **deps:** Update golang.org/x/exp digest to f062dba ([#7531](https://github.com/cloudquery/cloudquery/issues/7531)) ([59d5575](https://github.com/cloudquery/cloudquery/commit/59d55758b0951553b8d246d1e78b4e3917ff1976)) -* **deps:** Update google.golang.org/genproto digest to 1c01626 ([#7533](https://github.com/cloudquery/cloudquery/issues/7533)) ([c549c27](https://github.com/cloudquery/cloudquery/commit/c549c275077f1cdfb9df0b3f3c129cbf0b150552)) -* **deps:** Update k8s.io/kube-openapi digest to 76d406a ([#7534](https://github.com/cloudquery/cloudquery/issues/7534)) ([6ffeb13](https://github.com/cloudquery/cloudquery/commit/6ffeb130028250fdb79d7d6d14e549be40378f9b)) -* **deps:** Update k8s.io/utils digest to 391b47c ([#7535](https://github.com/cloudquery/cloudquery/issues/7535)) ([3327bab](https://github.com/cloudquery/cloudquery/commit/3327babe15009e9e1f079daeceaff466a4f21661)) -* **deps:** Update kubernetes packages to v0.26.1 ([#7539](https://github.com/cloudquery/cloudquery/issues/7539)) ([523b8ed](https://github.com/cloudquery/cloudquery/commit/523b8ed3ca4025f4497e9112a0d1f414abac71cb)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.33.0 ([#7595](https://github.com/cloudquery/cloudquery/issues/7595)) ([c5adc75](https://github.com/cloudquery/cloudquery/commit/c5adc750d4b0242563997c04c582f8da27913095)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.33.1 ([#7614](https://github.com/cloudquery/cloudquery/issues/7614)) ([2fe665c](https://github.com/cloudquery/cloudquery/commit/2fe665cdd80d88c5699bb203bd7accd604dfba99)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.34.0 ([#7719](https://github.com/cloudquery/cloudquery/issues/7719)) ([6a33085](https://github.com/cloudquery/cloudquery/commit/6a33085c75adcf2387f7bbb5aa4f7a84ce7e2957)) -* **deps:** Update module github.com/imdario/mergo to v0.3.13 ([#7574](https://github.com/cloudquery/cloudquery/issues/7574)) ([fdf4df7](https://github.com/cloudquery/cloudquery/commit/fdf4df7515d4aa5057c101e99eac2da4feccd406)) - -## [3.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.0.2...plugins-source-k8s-v3.1.0) (2023-01-30) - - -### Features - -* **k8s:** Support running cloudquery k8s plugin in k8s cluster using serviceaccount ([#7296](https://github.com/cloudquery/cloudquery/issues/7296)) ([729f0fa](https://github.com/cloudquery/cloudquery/commit/729f0fa662f359ec4730379371bdc3e47ffcefde)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.29.0 ([#7121](https://github.com/cloudquery/cloudquery/issues/7121)) ([b7441c9](https://github.com/cloudquery/cloudquery/commit/b7441c93c274ae3a6009474a2b28f44a172dd6dc)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.30.0 ([#7222](https://github.com/cloudquery/cloudquery/issues/7222)) ([73ca21c](https://github.com/cloudquery/cloudquery/commit/73ca21c4259545f7e949c9d780d8184db475d2ac)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.31.0 ([#7228](https://github.com/cloudquery/cloudquery/issues/7228)) ([36e8549](https://github.com/cloudquery/cloudquery/commit/36e8549f722658d909865723630fad1b2821db62)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.32.0 ([#7334](https://github.com/cloudquery/cloudquery/issues/7334)) ([b684122](https://github.com/cloudquery/cloudquery/commit/b68412222219f9ca160c0753290709d52de7fcd6)) - -## [3.0.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.0.1...plugins-source-k8s-v3.0.2) (2023-01-24) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.28.0 ([#7009](https://github.com/cloudquery/cloudquery/issues/7009)) ([12ac005](https://github.com/cloudquery/cloudquery/commit/12ac005428a355d06a5939fbe06a82d49533e662)) - -## [3.0.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v3.0.0...plugins-source-k8s-v3.0.1) (2023-01-17) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.2 ([#6695](https://github.com/cloudquery/cloudquery/issues/6695)) ([694ab9f](https://github.com/cloudquery/cloudquery/commit/694ab9f3e20473146e3620d7b03bb17eb259d697)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.25.0 ([#6745](https://github.com/cloudquery/cloudquery/issues/6745)) ([9c41854](https://github.com/cloudquery/cloudquery/commit/9c418547c3bbff97449765e337182230fb5e40d5)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.25.1 ([#6805](https://github.com/cloudquery/cloudquery/issues/6805)) ([9da0ce2](https://github.com/cloudquery/cloudquery/commit/9da0ce283f50410eb9274375ec1d22131a80d937)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.26.0 ([#6839](https://github.com/cloudquery/cloudquery/issues/6839)) ([6ccda8d](https://github.com/cloudquery/cloudquery/commit/6ccda8d0bc6e7ce75f4a64a18911e349ccaac277)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.27.0 ([#6856](https://github.com/cloudquery/cloudquery/issues/6856)) ([545799b](https://github.com/cloudquery/cloudquery/commit/545799bb0481087e187b5f27c88f5dde9c99f2f0)) -* **k8s:** Fix inet-type panic ([#6841](https://github.com/cloudquery/cloudquery/issues/6841)) ([8c301f8](https://github.com/cloudquery/cloudquery/commit/8c301f854c5648403f5cae0965ef36fb3ab1a0b7)) - -## [3.0.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.5.4...plugins-source-k8s-v3.0.0) (2023-01-10) - - -### ⚠ BREAKING CHANGES - -* **deps:** `k8s_certificates_signing_requests` columns `status_certificate, spec_request` type changed from `IntArray` to `ByteArray` - -### Features - -* **k8s:** Migrate codegen to transformations ([#6493](https://github.com/cloudquery/cloudquery/issues/6493)) ([d766e56](https://github.com/cloudquery/cloudquery/commit/d766e56fb8519c378b0ba10cef734032796f9d4d)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.17.2 ([#6260](https://github.com/cloudquery/cloudquery/issues/6260)) ([805972a](https://github.com/cloudquery/cloudquery/commit/805972aa67ce54e3358501c6b7ee5d85e5f65cac)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.18.0 ([#6339](https://github.com/cloudquery/cloudquery/issues/6339)) ([158365a](https://github.com/cloudquery/cloudquery/commit/158365a78dfa4389074f716a0f581f18fedc1080)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.19.0 ([#6363](https://github.com/cloudquery/cloudquery/issues/6363)) ([ae6967c](https://github.com/cloudquery/cloudquery/commit/ae6967c22002c554a083f444eb611ac3e6d2698f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.20.0 ([#6376](https://github.com/cloudquery/cloudquery/issues/6376)) ([d6187ec](https://github.com/cloudquery/cloudquery/commit/d6187ec584f13be4fe9362dd393385b19d386113)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.21.0 ([#6382](https://github.com/cloudquery/cloudquery/issues/6382)) ([5baea40](https://github.com/cloudquery/cloudquery/commit/5baea40d2aec4e807db839c928be2e037d572bef)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.22.0 ([#6516](https://github.com/cloudquery/cloudquery/issues/6516)) ([b7e4e73](https://github.com/cloudquery/cloudquery/commit/b7e4e737a5f4d8f254960426ea8ba555d8f9b944)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.23.0 ([#6522](https://github.com/cloudquery/cloudquery/issues/6522)) ([ce24f1d](https://github.com/cloudquery/cloudquery/commit/ce24f1d64394cbb5ab07dcaa4af66c53f77f700f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.1 ([d8f704e](https://github.com/cloudquery/cloudquery/commit/d8f704e86d51d2edecb66f48301c126a91e199c7)) -* **k8s:** Fix a typo in source/k8s/views/resource.sql: cq_table -> _cq_table ([#6415](https://github.com/cloudquery/cloudquery/issues/6415)) ([0d1393c](https://github.com/cloudquery/cloudquery/commit/0d1393cd2c10ac3c9c2eb30779761e1454c94e50)) - -## [2.5.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.5.3...plugins-source-k8s-v2.5.4) (2023-01-03) - - -### Bug Fixes - -* **deps:** Update go-openapi packages ([#6203](https://github.com/cloudquery/cloudquery/issues/6203)) ([d4287b8](https://github.com/cloudquery/cloudquery/commit/d4287b8215c0994864f7e24e879f46e08008c871)) -* **deps:** Update k8s.io/kube-openapi digest to f3cff14 ([#6196](https://github.com/cloudquery/cloudquery/issues/6196)) ([b368920](https://github.com/cloudquery/cloudquery/commit/b3689209a945a6550e38b715f474d267f034bc20)) -* **deps:** Update k8s.io/utils digest to 99ec85e ([#6197](https://github.com/cloudquery/cloudquery/issues/6197)) ([1cf4eea](https://github.com/cloudquery/cloudquery/commit/1cf4eeae569901d455998300fa4c7ade50eb1f6a)) -* **deps:** Update kubernetes packages to v0.26.0 ([#6180](https://github.com/cloudquery/cloudquery/issues/6180)) ([56041bf](https://github.com/cloudquery/cloudquery/commit/56041bfaea5844c24387090e2bb9298a0a7237c5)) -* **deps:** Update module github.com/Azure/go-autorest/autorest to v0.11.28 ([#6206](https://github.com/cloudquery/cloudquery/issues/6206)) ([05ae9ea](https://github.com/cloudquery/cloudquery/commit/05ae9ea711eb5e0756a833a939c95787ab0e9baa)) -* **deps:** Update module github.com/Azure/go-autorest/autorest/adal to v0.9.21 ([#6208](https://github.com/cloudquery/cloudquery/issues/6208)) ([bca5689](https://github.com/cloudquery/cloudquery/commit/bca5689bda208414bfd942e1c672d3d787fd01ae)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.14.0 ([#6025](https://github.com/cloudquery/cloudquery/issues/6025)) ([35b2cfc](https://github.com/cloudquery/cloudquery/commit/35b2cfc7fc7bcdaceb7ee674e3a17f0f5673b366)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.15.0 ([#6071](https://github.com/cloudquery/cloudquery/issues/6071)) ([684b525](https://github.com/cloudquery/cloudquery/commit/684b525aaa285fcae70dd87af56679c1205adebe)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.15.1 ([#6079](https://github.com/cloudquery/cloudquery/issues/6079)) ([650659c](https://github.com/cloudquery/cloudquery/commit/650659c3c6766df571868e2ec3a2007cb76696eb)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.16.0 ([#6098](https://github.com/cloudquery/cloudquery/issues/6098)) ([7bacdf3](https://github.com/cloudquery/cloudquery/commit/7bacdf3364716eab08fa1a84ae4047b42edeee7e)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.16.1 ([#6214](https://github.com/cloudquery/cloudquery/issues/6214)) ([53b2415](https://github.com/cloudquery/cloudquery/commit/53b241508d7511d4b5fa74cc4262d180c1e6df66)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.17.0 ([#6256](https://github.com/cloudquery/cloudquery/issues/6256)) ([b19f6cd](https://github.com/cloudquery/cloudquery/commit/b19f6cd8e2c39994aeb19d78e78e927d6c3cf580)) -* **deps:** Update sigs.k8s.io/json digest to bc3834c ([#6198](https://github.com/cloudquery/cloudquery/issues/6198)) ([e50b262](https://github.com/cloudquery/cloudquery/commit/e50b262f732c3a75fcf803bab14e894d1b663f90)) - -## [2.5.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.5.2...plugins-source-k8s-v2.5.3) (2022-12-27) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.13.1 ([#5897](https://github.com/cloudquery/cloudquery/issues/5897)) ([ad15915](https://github.com/cloudquery/cloudquery/commit/ad15915f2951a75729859f6f1377ed789f8ba115)) - -## [2.5.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.5.1...plugins-source-k8s-v2.5.2) (2022-12-20) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.2 ([#5583](https://github.com/cloudquery/cloudquery/issues/5583)) ([d721c4e](https://github.com/cloudquery/cloudquery/commit/d721c4e06b8a97b5373215aca0e4ed64942ac489)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.3 ([#5639](https://github.com/cloudquery/cloudquery/issues/5639)) ([6452d0e](https://github.com/cloudquery/cloudquery/commit/6452d0ed5a44abad9d7530af6e79cde6504d0c4c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.4 ([#5649](https://github.com/cloudquery/cloudquery/issues/5649)) ([b4aa889](https://github.com/cloudquery/cloudquery/commit/b4aa889e396db3b0887d1684e4bc07da6050af43)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.5 ([#5661](https://github.com/cloudquery/cloudquery/issues/5661)) ([b354b8a](https://github.com/cloudquery/cloudquery/commit/b354b8a3683fa2bc918c1002afac487427d65a5f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.6 ([#5790](https://github.com/cloudquery/cloudquery/issues/5790)) ([8e2663c](https://github.com/cloudquery/cloudquery/commit/8e2663c17c3347afd5e53f665462adc3e709c96c)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.7 ([#5797](https://github.com/cloudquery/cloudquery/issues/5797)) ([15da529](https://github.com/cloudquery/cloudquery/commit/15da5294786fa2656228ca5bbc48ef1fc44e486b)) - -## [2.5.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.5.0...plugins-source-k8s-v2.5.1) (2022-12-13) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.11.1 ([#5458](https://github.com/cloudquery/cloudquery/issues/5458)) ([58b7432](https://github.com/cloudquery/cloudquery/commit/58b74321cd253c9a843c8c103f324abb93952195)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.11.2 ([#5497](https://github.com/cloudquery/cloudquery/issues/5497)) ([c1876cf](https://github.com/cloudquery/cloudquery/commit/c1876cf793b43d825a25fb3c9ba4996e4b09964f)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.0 ([#5539](https://github.com/cloudquery/cloudquery/issues/5539)) ([fb71293](https://github.com/cloudquery/cloudquery/commit/fb71293d5cfe1b2ef32ba83d604ac3c48e662bce)) - -## [2.5.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.4.4...plugins-source-k8s-v2.5.0) (2022-12-06) - - -### Features - -* **website:** Add plugins tables ([#5259](https://github.com/cloudquery/cloudquery/issues/5259)) ([c336f4e](https://github.com/cloudquery/cloudquery/commit/c336f4e25e192ffdd4c211d4a35b67b71d01d1f8)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.11.0 ([#5416](https://github.com/cloudquery/cloudquery/issues/5416)) ([2e7ca35](https://github.com/cloudquery/cloudquery/commit/2e7ca35922fdb14fd717f582aaaa9693dae2ef4c)) -* **deps:** Update module github.com/google/gnostic to v0.6.9 ([#5225](https://github.com/cloudquery/cloudquery/issues/5225)) ([a58c2de](https://github.com/cloudquery/cloudquery/commit/a58c2de01f0726e22b51eaaea39dbb6b8eb86e78)) - -## [2.4.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.4.3...plugins-source-k8s-v2.4.4) (2022-11-30) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.10.0 ([#5153](https://github.com/cloudquery/cloudquery/issues/5153)) ([ea1f77e](https://github.com/cloudquery/cloudquery/commit/ea1f77e910f430287600e74cedd7d3f4ae79eb18)) -* **deps:** Update plugin-sdk for k8s to v1.8.1 ([#5041](https://github.com/cloudquery/cloudquery/issues/5041)) ([f3903a5](https://github.com/cloudquery/cloudquery/commit/f3903a5875cf8a8dd255e0733ecf09ec66ca5f7a)) -* **deps:** Update plugin-sdk for k8s to v1.9.0 ([#5083](https://github.com/cloudquery/cloudquery/issues/5083)) ([36db672](https://github.com/cloudquery/cloudquery/commit/36db6728bb22a2710bdc8fabf5fe6291489b2d73)) - -## [2.4.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.4.2...plugins-source-k8s-v2.4.3) (2022-11-23) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.7.0 ([#4912](https://github.com/cloudquery/cloudquery/issues/4912)) ([9b9064f](https://github.com/cloudquery/cloudquery/commit/9b9064f25a8f1d440cd8f36e20ee9e8bf2b3b1d5)) -* **deps:** Update plugin-sdk for k8s to v1.8.0 ([#4975](https://github.com/cloudquery/cloudquery/issues/4975)) ([64b38ca](https://github.com/cloudquery/cloudquery/commit/64b38ca6a301197d8e33f87f91078c422721b280)) - -## [2.4.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.4.1...plugins-source-k8s-v2.4.2) (2022-11-21) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.6.0 ([#4850](https://github.com/cloudquery/cloudquery/issues/4850)) ([1261fff](https://github.com/cloudquery/cloudquery/commit/1261fffa26b98d9c6faa3f6d5e7ba4bc3f613f21)) - -## [2.4.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.4.0...plugins-source-k8s-v2.4.1) (2022-11-16) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.5.3 ([#4649](https://github.com/cloudquery/cloudquery/issues/4649)) ([0549ced](https://github.com/cloudquery/cloudquery/commit/0549cede951e1070a7de4a09853be71bc6a6fa27)) - -## [2.4.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.16...plugins-source-k8s-v2.4.0) (2022-11-14) - - -### Features - -* Regenerate k8s ([#4495](https://github.com/cloudquery/cloudquery/issues/4495)) ([c5c5e8c](https://github.com/cloudquery/cloudquery/commit/c5c5e8c5255ba4b2355e2f16cdeed390366c693f)) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.5.2 ([#4564](https://github.com/cloudquery/cloudquery/issues/4564)) ([7c2dd49](https://github.com/cloudquery/cloudquery/commit/7c2dd49a0362a730a5f1164f0d21bca365243867)) - -## [2.3.16](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.15...plugins-source-k8s-v2.3.16) (2022-11-14) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.5.1 ([#4505](https://github.com/cloudquery/cloudquery/issues/4505)) ([d79ffc3](https://github.com/cloudquery/cloudquery/commit/d79ffc359d4a45e0018c6788a99c95b74150a647)) - -## [2.3.15](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.14...plugins-source-k8s-v2.3.15) (2022-11-13) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.5.0 ([#4394](https://github.com/cloudquery/cloudquery/issues/4394)) ([9008751](https://github.com/cloudquery/cloudquery/commit/90087512bf8416269dc519b3b74e724b675662ae)) - -## [2.3.14](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.13...plugins-source-k8s-v2.3.14) (2022-11-10) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.4.0 ([#4235](https://github.com/cloudquery/cloudquery/issues/4235)) ([74b3279](https://github.com/cloudquery/cloudquery/commit/74b32795334d2a85bf16aad59618e704818b2b5d)) -* **deps:** Update plugin-sdk for k8s to v1.4.1 ([#4298](https://github.com/cloudquery/cloudquery/issues/4298)) ([dd5bdcd](https://github.com/cloudquery/cloudquery/commit/dd5bdcd8e04d4ae44cf5296cd5ff54874fc1fb5f)) - -## [2.3.13](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.12...plugins-source-k8s-v2.3.13) (2022-11-10) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.3.2 ([#4202](https://github.com/cloudquery/cloudquery/issues/4202)) ([95ed5ab](https://github.com/cloudquery/cloudquery/commit/95ed5ab692a13190447056fc511258ffc3fbc887)) - -## [2.3.12](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.11...plugins-source-k8s-v2.3.12) (2022-11-10) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.3.1 ([#4152](https://github.com/cloudquery/cloudquery/issues/4152)) ([8ea46ec](https://github.com/cloudquery/cloudquery/commit/8ea46ecdfeb822298280b056f35741ccb7bd074d)) - -## [2.3.11](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.10...plugins-source-k8s-v2.3.11) (2022-11-09) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.3.0 ([#4076](https://github.com/cloudquery/cloudquery/issues/4076)) ([1ec498e](https://github.com/cloudquery/cloudquery/commit/1ec498e0033ee58f6007520d16e7bed6c07beac0)) - -## [2.3.10](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.9...plugins-source-k8s-v2.3.10) (2022-11-09) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.2.0 ([#4045](https://github.com/cloudquery/cloudquery/issues/4045)) ([9cb878a](https://github.com/cloudquery/cloudquery/commit/9cb878ab31cd8520a6eae04940524326cb7e71e6)) - -## [2.3.9](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.8...plugins-source-k8s-v2.3.9) (2022-11-09) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for csv to v1.1.0 ([#3918](https://github.com/cloudquery/cloudquery/issues/3918)) ([f1acd68](https://github.com/cloudquery/cloudquery/commit/f1acd688fcd90011cc9be1be2285e3fe9369e341)) - -## [2.3.8](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.7...plugins-source-k8s-v2.3.8) (2022-11-08) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1.1.0 ([#3923](https://github.com/cloudquery/cloudquery/issues/3923)) ([8e9f9b2](https://github.com/cloudquery/cloudquery/commit/8e9f9b29af1f7c9044c11552debd06a616a970c1)) - -## [2.3.7](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.6...plugins-source-k8s-v2.3.7) (2022-11-08) - - -### Bug Fixes - -* **deps:** Update dependency cloudquery/cloudquery to v1.6.6 ([#3830](https://github.com/cloudquery/cloudquery/issues/3830)) ([2b30af3](https://github.com/cloudquery/cloudquery/commit/2b30af3b6269e827d4744748c898046330648521)) -* **deps:** Update plugin-sdk for k8s to v1.0.3 ([#3854](https://github.com/cloudquery/cloudquery/issues/3854)) ([650c43c](https://github.com/cloudquery/cloudquery/commit/650c43ca4434e05dfa88f36bf81530de5a93653b)) -* **deps:** Upgrade plugin-sdk to v1.0.4 for plugins ([#3889](https://github.com/cloudquery/cloudquery/issues/3889)) ([6767243](https://github.com/cloudquery/cloudquery/commit/6767243ec70bfae7a4c457bf4b5edf013c54c392)) - -## [2.3.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.5...plugins-source-k8s-v2.3.6) (2022-11-07) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v1 ([#3794](https://github.com/cloudquery/cloudquery/issues/3794)) ([e4bb6e9](https://github.com/cloudquery/cloudquery/commit/e4bb6e9f162fccfdd71a5f32635cbcc816d9dd85)) -* **k8s:** Use `automount_service_account_token` in policy ([#3817](https://github.com/cloudquery/cloudquery/issues/3817)) ([f465f23](https://github.com/cloudquery/cloudquery/commit/f465f231294ccdc350c507937d3a671f532b03d6)) - -## [2.3.5](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.4...plugins-source-k8s-v2.3.5) (2022-11-07) - - -### Bug Fixes - -* **deps:** Update SDK to v0.13.23 ([#3736](https://github.com/cloudquery/cloudquery/issues/3736)) ([d0f5ec9](https://github.com/cloudquery/cloudquery/commit/d0f5ec9270ffe172ad18f811aec6ab46c0a4c1a4)) - -## [2.3.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.3...plugins-source-k8s-v2.3.4) (2022-11-06) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.22 ([#3685](https://github.com/cloudquery/cloudquery/issues/3685)) ([932b631](https://github.com/cloudquery/cloudquery/commit/932b631cbb0f17975d92bfcb5c95fa8985c53a3f)) - -## [2.3.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.2...plugins-source-k8s-v2.3.3) (2022-11-06) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.21 ([#3638](https://github.com/cloudquery/cloudquery/issues/3638)) ([74b7f66](https://github.com/cloudquery/cloudquery/commit/74b7f665541881a6f7c2017e55a9c12671441d60)) - -## [2.3.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.1...plugins-source-k8s-v2.3.2) (2022-11-06) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.20 ([#3578](https://github.com/cloudquery/cloudquery/issues/3578)) ([d9bdd43](https://github.com/cloudquery/cloudquery/commit/d9bdd4379752dc55a12d25c6a3205509b95ed8ea)) - -## [2.3.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.3.0...plugins-source-k8s-v2.3.1) (2022-11-03) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.19 ([#3509](https://github.com/cloudquery/cloudquery/issues/3509)) ([94864a1](https://github.com/cloudquery/cloudquery/commit/94864a19d5545bdb2b09002e58320bd0837fcabb)) - -## [2.3.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.2.0...plugins-source-k8s-v2.3.0) (2022-11-01) - - -### Features - -* Migrate cli, plugins and destinations to new type system ([#3323](https://github.com/cloudquery/cloudquery/issues/3323)) ([f265a94](https://github.com/cloudquery/cloudquery/commit/f265a94448ad55c968b26ba8a19681bc81086c11)) - - -### Bug Fixes - -* **deps:** Update kubernetes packages to v0.25.3 ([#3375](https://github.com/cloudquery/cloudquery/issues/3375)) ([8401b8e](https://github.com/cloudquery/cloudquery/commit/8401b8edfeacf80032422f0d860627f4824ce102)) -* **deps:** Update plugin-sdk for k8s to v0.13.18 ([#3407](https://github.com/cloudquery/cloudquery/issues/3407)) ([e6d116d](https://github.com/cloudquery/cloudquery/commit/e6d116d3b26c762ef9b7b5b360d750ea1c620982)) - -## [2.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.1.2...plugins-source-k8s-v2.2.0) (2022-10-31) - - -### Features - -* Update all plugins to SDK with metrics and DFS scheduler ([#3286](https://github.com/cloudquery/cloudquery/issues/3286)) ([a35b8e8](https://github.com/cloudquery/cloudquery/commit/a35b8e89d625287a9b9406ff18cfac78ffdb1241)) - -## [2.1.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.1.1...plugins-source-k8s-v2.1.2) (2022-10-30) - - -### Bug Fixes - -* **k8s:** Migrate Grafana dashboards ([#2638](https://github.com/cloudquery/cloudquery/issues/2638)) ([38af08e](https://github.com/cloudquery/cloudquery/commit/38af08eaa216145ffe58407bbfdc4403f58e8167)) - -## [2.1.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.1.0...plugins-source-k8s-v2.1.1) (2022-10-27) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.14 ([#3219](https://github.com/cloudquery/cloudquery/issues/3219)) ([be559e7](https://github.com/cloudquery/cloudquery/commit/be559e7bc7aaf84273f5a39fae9daa5f8cf296aa)) - -## [2.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.0.3...plugins-source-k8s-v2.1.0) (2022-10-25) - - -### Features - -* Add k8s_core_secrets resource ([#3183](https://github.com/cloudquery/cloudquery/issues/3183)) ([c2aa5a6](https://github.com/cloudquery/cloudquery/commit/c2aa5a6d9ade3ec65414189b40cae33c7d1c6214)) - -## [2.0.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.0.2...plugins-source-k8s-v2.0.3) (2022-10-20) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.12 ([#3107](https://github.com/cloudquery/cloudquery/issues/3107)) ([88f0d9d](https://github.com/cloudquery/cloudquery/commit/88f0d9db429173f8c9e2f97e8e23bc98fba72e89)) - -## [2.0.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.0.1...plugins-source-k8s-v2.0.2) (2022-10-19) - - -### Bug Fixes - -* **deps:** Update plugin-sdk to v0.13.11 ([#3030](https://github.com/cloudquery/cloudquery/issues/3030)) ([9909c4a](https://github.com/cloudquery/cloudquery/commit/9909c4a0715a06b7c1d69c9bd23c500ac7b4adc1)) - -## [2.0.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v2.0.0...plugins-source-k8s-v2.0.1) (2022-10-18) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.9 ([#2934](https://github.com/cloudquery/cloudquery/issues/2934)) ([2d9d7de](https://github.com/cloudquery/cloudquery/commit/2d9d7de3fb0316ded27fed151e7e86a3d5605bb3)) - -## [2.0.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.2.3...plugins-source-k8s-v2.0.0) (2022-10-14) - - -### ⚠ BREAKING CHANGES - -* Official v1 release (#2335) - -### Features - -* Convert policies to v1 ([#2467](https://github.com/cloudquery/cloudquery/issues/2467)) ([8ae4547](https://github.com/cloudquery/cloudquery/commit/8ae45472977ec345e2dfbb29160b9d55ee475262)) -* **k8s:** Add jobs.spec_pod_failure_policy and pods.spec_host_users columns ([#2640](https://github.com/cloudquery/cloudquery/issues/2640)) ([7b2c4aa](https://github.com/cloudquery/cloudquery/commit/7b2c4aac79ca356efb41244c9ee3d8306c600dd2)) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for aws to v0.13.5 ([#2660](https://github.com/cloudquery/cloudquery/issues/2660)) ([748a0b3](https://github.com/cloudquery/cloudquery/commit/748a0b3f2cd8429696b38daa386bd0ca32fc3fdf)) -* **deps:** Update plugin-sdk for azure to v0.13.5 ([#2591](https://github.com/cloudquery/cloudquery/issues/2591)) ([c36f60a](https://github.com/cloudquery/cloudquery/commit/c36f60a36fc20823f471ced3ba1726d778bfcda2)) -* **deps:** Update plugin-sdk for cloudflare to v0.13.5 ([#2593](https://github.com/cloudquery/cloudquery/issues/2593)) ([ed96887](https://github.com/cloudquery/cloudquery/commit/ed968873a7310daca0dff9fafc94394cca9801e4)) -* **deps:** Update plugin-sdk for digitalocean to v0.13.5 ([#2594](https://github.com/cloudquery/cloudquery/issues/2594)) ([5570015](https://github.com/cloudquery/cloudquery/commit/55700155cf1afdbe7e2dd8cc9ae5477a992c1306)) -* **deps:** Update plugin-sdk for gcp to v0.13.5 ([#2595](https://github.com/cloudquery/cloudquery/issues/2595)) ([ec17c48](https://github.com/cloudquery/cloudquery/commit/ec17c48959bcdab3d1aed763beee1d0bf37a589e)) -* **deps:** Update plugin-sdk for k8s to v0.12.10 ([#2552](https://github.com/cloudquery/cloudquery/issues/2552)) ([1c0c2a7](https://github.com/cloudquery/cloudquery/commit/1c0c2a74f3063077f6247c6e492d014aee5e9949)) -* **deps:** Update plugin-sdk for k8s to v0.12.3 ([#2360](https://github.com/cloudquery/cloudquery/issues/2360)) ([0e61300](https://github.com/cloudquery/cloudquery/commit/0e613003694739501c8f5c43dee38263dc1350f5)) -* **deps:** Update plugin-sdk for k8s to v0.12.4 ([#2402](https://github.com/cloudquery/cloudquery/issues/2402)) ([4b8cf59](https://github.com/cloudquery/cloudquery/commit/4b8cf59807adc50289a0c995c59afac2da132388)) -* **deps:** Update plugin-sdk for k8s to v0.12.5 ([#2424](https://github.com/cloudquery/cloudquery/issues/2424)) ([539aafc](https://github.com/cloudquery/cloudquery/commit/539aafc7ee4aeba66567a6ad8f62ebb94d01dcee)) -* **deps:** Update plugin-sdk for k8s to v0.12.6 ([#2440](https://github.com/cloudquery/cloudquery/issues/2440)) ([1d8b267](https://github.com/cloudquery/cloudquery/commit/1d8b2675e11b5919da9e859b24bc33b9d7307c9e)) -* **deps:** Update plugin-sdk for k8s to v0.12.7 ([#2453](https://github.com/cloudquery/cloudquery/issues/2453)) ([d19d373](https://github.com/cloudquery/cloudquery/commit/d19d373fe8e019f5484f107a18ae342f0912663e)) -* **deps:** Update plugin-sdk for k8s to v0.12.8 ([#2503](https://github.com/cloudquery/cloudquery/issues/2503)) ([a50ffcc](https://github.com/cloudquery/cloudquery/commit/a50ffcc7c23246694bf77131d696a9a3c7f81176)) -* **deps:** Update plugin-sdk for k8s to v0.12.9 ([#2517](https://github.com/cloudquery/cloudquery/issues/2517)) ([71cdfe8](https://github.com/cloudquery/cloudquery/commit/71cdfe8879099923d18855bc664844030678ab8d)) -* **deps:** Update plugin-sdk for k8s to v0.13.1 ([#2598](https://github.com/cloudquery/cloudquery/issues/2598)) ([85c5ec7](https://github.com/cloudquery/cloudquery/commit/85c5ec74a7f2893ea1063598e3b364d259daa314)) -* **deps:** Update plugin-sdk for k8s to v0.13.6 ([#2730](https://github.com/cloudquery/cloudquery/issues/2730)) ([6debcec](https://github.com/cloudquery/cloudquery/commit/6debcec23ac4a8db69625b2e223b78c725424218)) -* **deps:** Update plugin-sdk for k8s to v0.13.8 ([#2786](https://github.com/cloudquery/cloudquery/issues/2786)) ([c2786d3](https://github.com/cloudquery/cloudquery/commit/c2786d38dcf564774e3bb4223edf282389d3a9f8)) -* **k8s:** Structure plugin so version is embedded by Go Releaser ([#2759](https://github.com/cloudquery/cloudquery/issues/2759)) ([8666bee](https://github.com/cloudquery/cloudquery/commit/8666beecb8cc7d3f95cc18bdb06f66280e81d7a0)) -* Update all source plugin to v0.12.2 ([#2316](https://github.com/cloudquery/cloudquery/issues/2316)) ([5099dcf](https://github.com/cloudquery/cloudquery/commit/5099dcff4683b45b81db721c6a172857b0f796ae)) -* Upgrade source SDK versions to v0.13.5 ([#2610](https://github.com/cloudquery/cloudquery/issues/2610)) ([611868e](https://github.com/cloudquery/cloudquery/commit/611868e7fbb707b524ccc5c04a7ff95fe122ae05)) - - -### Miscellaneous Chores - -* Official v1 release ([#2335](https://github.com/cloudquery/cloudquery/issues/2335)) ([e32de23](https://github.com/cloudquery/cloudquery/commit/e32de23a1c3da88ea36c327d6244721337c41570)) - -## [1.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.2.2...plugins-source-k8s-v1.2.3) (2022-10-14) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.8 ([#2786](https://github.com/cloudquery/cloudquery/issues/2786)) ([c2786d3](https://github.com/cloudquery/cloudquery/commit/c2786d38dcf564774e3bb4223edf282389d3a9f8)) - -## [1.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.2.1...plugins-source-k8s-v1.2.2) (2022-10-13) - - -### Bug Fixes - -* **k8s:** Structure plugin so version is embedded by Go Releaser ([#2759](https://github.com/cloudquery/cloudquery/issues/2759)) ([8666bee](https://github.com/cloudquery/cloudquery/commit/8666beecb8cc7d3f95cc18bdb06f66280e81d7a0)) - -## [1.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.2.0...plugins-source-k8s-v1.2.1) (2022-10-12) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.13.6 ([#2730](https://github.com/cloudquery/cloudquery/issues/2730)) ([6debcec](https://github.com/cloudquery/cloudquery/commit/6debcec23ac4a8db69625b2e223b78c725424218)) - -## [1.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.1.0...plugins-source-k8s-v1.2.0) (2022-10-12) - - -### Features - -* **k8s:** Add jobs.spec_pod_failure_policy and pods.spec_host_users columns ([#2640](https://github.com/cloudquery/cloudquery/issues/2640)) ([7b2c4aa](https://github.com/cloudquery/cloudquery/commit/7b2c4aac79ca356efb41244c9ee3d8306c600dd2)) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.12.10 ([#2552](https://github.com/cloudquery/cloudquery/issues/2552)) ([1c0c2a7](https://github.com/cloudquery/cloudquery/commit/1c0c2a74f3063077f6247c6e492d014aee5e9949)) -* **deps:** Update plugin-sdk for k8s to v0.13.1 ([#2598](https://github.com/cloudquery/cloudquery/issues/2598)) ([85c5ec7](https://github.com/cloudquery/cloudquery/commit/85c5ec74a7f2893ea1063598e3b364d259daa314)) -* Upgrade source SDK versions to v0.13.5 ([#2610](https://github.com/cloudquery/cloudquery/issues/2610)) ([611868e](https://github.com/cloudquery/cloudquery/commit/611868e7fbb707b524ccc5c04a7ff95fe122ae05)) - -## [1.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.0.0...plugins-source-k8s-v1.1.0) (2022-10-09) - - -### Features - -* Convert policies to v1 ([#2467](https://github.com/cloudquery/cloudquery/issues/2467)) ([8ae4547](https://github.com/cloudquery/cloudquery/commit/8ae45472977ec345e2dfbb29160b9d55ee475262)) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.12.3 ([#2360](https://github.com/cloudquery/cloudquery/issues/2360)) ([0e61300](https://github.com/cloudquery/cloudquery/commit/0e613003694739501c8f5c43dee38263dc1350f5)) -* **deps:** Update plugin-sdk for k8s to v0.12.4 ([#2402](https://github.com/cloudquery/cloudquery/issues/2402)) ([4b8cf59](https://github.com/cloudquery/cloudquery/commit/4b8cf59807adc50289a0c995c59afac2da132388)) -* **deps:** Update plugin-sdk for k8s to v0.12.5 ([#2424](https://github.com/cloudquery/cloudquery/issues/2424)) ([539aafc](https://github.com/cloudquery/cloudquery/commit/539aafc7ee4aeba66567a6ad8f62ebb94d01dcee)) -* **deps:** Update plugin-sdk for k8s to v0.12.6 ([#2440](https://github.com/cloudquery/cloudquery/issues/2440)) ([1d8b267](https://github.com/cloudquery/cloudquery/commit/1d8b2675e11b5919da9e859b24bc33b9d7307c9e)) -* **deps:** Update plugin-sdk for k8s to v0.12.7 ([#2453](https://github.com/cloudquery/cloudquery/issues/2453)) ([d19d373](https://github.com/cloudquery/cloudquery/commit/d19d373fe8e019f5484f107a18ae342f0912663e)) -* **deps:** Update plugin-sdk for k8s to v0.12.8 ([#2503](https://github.com/cloudquery/cloudquery/issues/2503)) ([a50ffcc](https://github.com/cloudquery/cloudquery/commit/a50ffcc7c23246694bf77131d696a9a3c7f81176)) -* **deps:** Update plugin-sdk for k8s to v0.12.9 ([#2517](https://github.com/cloudquery/cloudquery/issues/2517)) ([71cdfe8](https://github.com/cloudquery/cloudquery/commit/71cdfe8879099923d18855bc664844030678ab8d)) - -## [1.0.0](https://github.com/cloudquery/cloudquery/compare/plugins/source/k8s/plugins/source/k8s/v0.6.4...plugins-source-k8s-v1.0.0) (2022-10-04) - - -### ⚠ BREAKING CHANGES - -* [Official v1 release](https://www.cloudquery.io/blog/cloudquery-v1-release) - -### Features - -* [Official v1 release](https://www.cloudquery.io/blog/cloudquery-v1-release) - -## [1.0.2-pre.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.0.1-pre.0...plugins-source-k8s-v1.0.2-pre.0) (2022-10-03) - - -### Bug Fixes - -* **deps:** Update plugin-sdk for k8s to v0.11.6 ([#2259](https://github.com/cloudquery/cloudquery/issues/2259)) ([842dfb2](https://github.com/cloudquery/cloudquery/commit/842dfb2117a336e4e618773b165cb5d8bbd3cf7f)) - -## [1.0.1-pre.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v1.0.0-pre.0...plugins-source-k8s-v1.0.1-pre.0) (2022-10-03) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.11.5 ([#2235](https://github.com/cloudquery/cloudquery/issues/2235)) ([e20228f](https://github.com/cloudquery/cloudquery/commit/e20228ff0564b430183247e2a75bcaa3587e396f)) - -## [1.0.0-pre.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v0.6.4-pre.0...plugins-source-k8s-v1.0.0-pre.0) (2022-10-02) - - -### ⚠ BREAKING CHANGES - -* Migrate k8s plugin to v2 (#2035) - -### Features - -* Migrate k8s plugin to v2 ([#2035](https://github.com/cloudquery/cloudquery/issues/2035)) ([955b742](https://github.com/cloudquery/cloudquery/commit/955b742c5be5d1419b671b1723efaca8032f48b2)) - - -### Bug Fixes - -* **deps:** Update kubernetes packages to v0.25.2 ([#2176](https://github.com/cloudquery/cloudquery/issues/2176)) ([03e27da](https://github.com/cloudquery/cloudquery/commit/03e27da67867957c71c284e48827dab86e7e4bce)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.11.0 ([#2135](https://github.com/cloudquery/cloudquery/issues/2135)) ([1729467](https://github.com/cloudquery/cloudquery/commit/1729467b2119555e18b15d73c91cd501ccf7ecb8)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.11.2 ([#2162](https://github.com/cloudquery/cloudquery/issues/2162)) ([5701aa5](https://github.com/cloudquery/cloudquery/commit/5701aa5b0a8d04e9e99e3efe6e27d5f7ff29b216)) -* **deps:** Update module github.com/cloudquery/plugin-sdk to v0.11.4 ([#2216](https://github.com/cloudquery/cloudquery/issues/2216)) ([093fffb](https://github.com/cloudquery/cloudquery/commit/093fffb0254a36d5b1756d8e9612b1ca9aa13421)) - -## [0.6.4](https://github.com/cloudquery/cloudquery/compare/plugins/source/k8s-v0.6.3...plugins/source/k8s/v0.6.4) (2022-08-18) - - -### Features - -* Add website, docs and blog to our main repo ([#1159](https://github.com/cloudquery/cloudquery/issues/1159)) ([dd69948](https://github.com/cloudquery/cloudquery/commit/dd69948feced004497f127d284f2604de0354a1f)) - - -### Bug Fixes - -* Deprecate `cluster_name` field and enable mock tests ([#1434](https://github.com/cloudquery/cloudquery/issues/1434)) ([3f4b37e](https://github.com/cloudquery/cloudquery/commit/3f4b37e3ccc913abee8f54415bc32d485975d8ea)) - -## [0.6.3](https://github.com/cloudquery/cq-provider-k8s/compare/v0.6.2...v0.6.3) (2022-08-07) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.7 ([#258](https://github.com/cloudquery/cq-provider-k8s/issues/258)) ([94970ee](https://github.com/cloudquery/cq-provider-k8s/commit/94970ee22ba9456acd1db758eb9f6ae40c39b425)) - -## [0.6.2](https://github.com/cloudquery/cq-provider-k8s/compare/v0.6.1...v0.6.2) (2022-08-07) - - -### Features - -* Added api filter multiplexer ([#185](https://github.com/cloudquery/cq-provider-k8s/issues/185)) ([c937ef7](https://github.com/cloudquery/cq-provider-k8s/commit/c937ef739f138641cbc06ba0864b5cd977f9b217)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.6 ([#250](https://github.com/cloudquery/cq-provider-k8s/issues/250)) ([ff1e7cc](https://github.com/cloudquery/cq-provider-k8s/commit/ff1e7cca81c6dc417d8ba5ed5d2d376d483af4f6)) -* **deps:** Update module github.com/hashicorp/go-hclog to v1.2.2 ([#252](https://github.com/cloudquery/cq-provider-k8s/issues/252)) ([c648ffd](https://github.com/cloudquery/cq-provider-k8s/commit/c648ffd40fbdb0115249b34431d602292908a88d)) -* **deps:** Update tubone24/update_release digest to 2146f15 ([#242](https://github.com/cloudquery/cq-provider-k8s/issues/242)) ([db73394](https://github.com/cloudquery/cq-provider-k8s/commit/db73394fab41e1563087e901575edbaa1b1eb1d7)) - -## [0.6.1](https://github.com/cloudquery/cq-provider-k8s/compare/v0.6.0...v0.6.1) (2022-07-28) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.5 ([#246](https://github.com/cloudquery/cq-provider-k8s/issues/246)) ([a82810f](https://github.com/cloudquery/cq-provider-k8s/commit/a82810fcd9ca6460d1d691db33f6294bc3bcdd31)) - -## [0.6.0](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.25...v0.6.0) (2022-07-27) - - -### ⚠ BREAKING CHANGES - -* Update SDK to v0.14.1 (#231) - -### Features - -* Add dashboards ([#244](https://github.com/cloudquery/cq-provider-k8s/issues/244)) ([3f1e8cd](https://github.com/cloudquery/cq-provider-k8s/commit/3f1e8cd4830529b60a1478f42dafa549a1daede7)) - - -### Bug Fixes - -* Default execution_time in policies ([#239](https://github.com/cloudquery/cq-provider-k8s/issues/239)) ([c0c2612](https://github.com/cloudquery/cq-provider-k8s/commit/c0c2612fc4ed6f9439e54821bae3b5088d5141f2)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.2 ([#236](https://github.com/cloudquery/cq-provider-k8s/issues/236)) ([e75d84c](https://github.com/cloudquery/cq-provider-k8s/commit/e75d84c1b323de6dbd982e6ee69387a08d6ba51b)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.3 ([#238](https://github.com/cloudquery/cq-provider-k8s/issues/238)) ([2828e6d](https://github.com/cloudquery/cq-provider-k8s/commit/2828e6d427dd7bf21c0b04cb84b6fb94032c8d6f)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.14.4 ([#241](https://github.com/cloudquery/cq-provider-k8s/issues/241)) ([cbca1f5](https://github.com/cloudquery/cq-provider-k8s/commit/cbca1f543a93acaf0eab36da9486b73d1b703ef3)) -* **deps:** Update Terraform nginx to v1.23.1 ([#243](https://github.com/cloudquery/cq-provider-k8s/issues/243)) ([e386de7](https://github.com/cloudquery/cq-provider-k8s/commit/e386de787857848d883cbcb2d58a47f01861b819)) -* Policy minor fixes ([#237](https://github.com/cloudquery/cq-provider-k8s/issues/237)) ([bccf50b](https://github.com/cloudquery/cq-provider-k8s/commit/bccf50b933921f7576f06e790106e89052976ab2)) - - -### Miscellaneous Chores - -* Update SDK to v0.14.1 ([#231](https://github.com/cloudquery/cq-provider-k8s/issues/231)) ([424075e](https://github.com/cloudquery/cq-provider-k8s/commit/424075e0fd299207b9a8b5bd7e2416e3a0368ba3)) - -## [0.5.25](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.24...v0.5.25) (2022-07-18) - - -### Features - -* Policies ([#228](https://github.com/cloudquery/cq-provider-k8s/issues/228)) ([ef7089c](https://github.com/cloudquery/cq-provider-k8s/commit/ef7089cde22a49a1addf23ac484c65c7293b0e37)) - - -### Bug Fixes - -* **deps:** Update kubernetes packages to v0.24.3 ([#229](https://github.com/cloudquery/cq-provider-k8s/issues/229)) ([7b57dac](https://github.com/cloudquery/cq-provider-k8s/commit/7b57dac7b92cb2bd3ab97a5cc7dd07f8c540b3df)) -* **deps:** Update module github.com/cloudquery/faker/v3 to v3.7.7 ([#226](https://github.com/cloudquery/cq-provider-k8s/issues/226)) ([be36855](https://github.com/cloudquery/cq-provider-k8s/commit/be36855894547a156dad9e4b5b776137de877147)) - -## [0.5.24](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.23...v0.5.24) (2022-07-08) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.13.5 ([#224](https://github.com/cloudquery/cq-provider-k8s/issues/224)) ([43cd7db](https://github.com/cloudquery/cq-provider-k8s/commit/43cd7dbbe66b5bf714ddc75ca4245fa652c3c35f)) - -## [0.5.23](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.22...v0.5.23) (2022-07-05) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.13.4 ([#221](https://github.com/cloudquery/cq-provider-k8s/issues/221)) ([30d7640](https://github.com/cloudquery/cq-provider-k8s/commit/30d76402eebce815fb14b6a13585adb9b3695ee7)) - -## [0.5.22](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.21...v0.5.22) (2022-07-04) - - -### Bug Fixes - -* Client pick wrong context ([#173](https://github.com/cloudquery/cq-provider-k8s/issues/173)) ([051c535](https://github.com/cloudquery/cq-provider-k8s/commit/051c53502a0a25893f99401d8e3e774fd3a628aa)) - -## [0.5.21](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.20...v0.5.21) (2022-07-04) - - -### Bug Fixes - -* **deps:** Update kubernetes packages to v0.24.2 ([#212](https://github.com/cloudquery/cq-provider-k8s/issues/212)) ([526549e](https://github.com/cloudquery/cq-provider-k8s/commit/526549ecdc4a62ee1b57821144d5e55fd7fabe77)) - -## [0.5.20](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.19...v0.5.20) (2022-07-04) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.13.3 ([#216](https://github.com/cloudquery/cq-provider-k8s/issues/216)) ([5b2a98c](https://github.com/cloudquery/cq-provider-k8s/commit/5b2a98c58526cc5e65a183e4f79e28736d91fb34)) - -## [0.5.19](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.18...v0.5.19) (2022-07-03) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.13.2 ([#207](https://github.com/cloudquery/cq-provider-k8s/issues/207)) ([bb8589e](https://github.com/cloudquery/cq-provider-k8s/commit/bb8589e37204824cd66b3bbbde96d8d479920dd2)) - -## [0.5.18](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.17...v0.5.18) (2022-07-03) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.13.1 ([#203](https://github.com/cloudquery/cq-provider-k8s/issues/203)) ([b09fec7](https://github.com/cloudquery/cq-provider-k8s/commit/b09fec756d449f178b6349dfa65b2ac358f678af)) - -## [0.5.17](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.16...v0.5.17) (2022-06-30) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.13.0 ([#201](https://github.com/cloudquery/cq-provider-k8s/issues/201)) ([7477c04](https://github.com/cloudquery/cq-provider-k8s/commit/7477c04e1abad7284bb51bcdeadb72a2cdeac576)) - -## [0.5.16](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.15...v0.5.16) (2022-06-29) - - -### Bug Fixes - -* Docs to Yaml ([#198](https://github.com/cloudquery/cq-provider-k8s/issues/198)) ([4161749](https://github.com/cloudquery/cq-provider-k8s/commit/41617499310c319f38f68f3aba0b90ab84b166c6)) - -## [0.5.15](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.14...v0.5.15) (2022-06-27) - - -### Bug Fixes - -* **deps:** fix(deps): Update module github.com/cloudquery/cq-provider-sdk to v0.12.5 ([#195](https://github.com/cloudquery/cq-provider-k8s/issues/195)) ([378e199](https://github.com/cloudquery/cq-provider-k8s/commit/378e1996b3e03daccbfe0039746205de66200ab1)) - -## [0.5.14](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.13...v0.5.14) (2022-06-27) - - -### Bug Fixes - -* **deps:** fix(deps): Update module github.com/cloudquery/cq-provider-sdk to v0.12.4 ([#193](https://github.com/cloudquery/cq-provider-k8s/issues/193)) ([b79b78c](https://github.com/cloudquery/cq-provider-k8s/commit/b79b78cbbb49f3300df73bbd723eb893ce3fb96a)) - -## [0.5.13](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.12...v0.5.13) (2022-06-26) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.12.3 ([#188](https://github.com/cloudquery/cq-provider-k8s/issues/188)) ([e14fad1](https://github.com/cloudquery/cq-provider-k8s/commit/e14fad1a785648ecfc449c25da09bb5a3d83e036)) - -## [0.5.12](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.11...v0.5.12) (2022-06-26) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.12.2 ([#181](https://github.com/cloudquery/cq-provider-k8s/issues/181)) ([e718179](https://github.com/cloudquery/cq-provider-k8s/commit/e7181793fda41376d1336ab232206b2881feccf9)) - -## [0.5.11](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.10...v0.5.11) (2022-06-22) - - -### Features - -* YAML config support ([#182](https://github.com/cloudquery/cq-provider-k8s/issues/182)) ([e58d2cf](https://github.com/cloudquery/cq-provider-k8s/commit/e58d2cf35d50714b37a929bfa80290d63f84cfeb)) - -## [0.5.10](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.9...v0.5.10) (2022-06-20) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.11.4 ([#179](https://github.com/cloudquery/cq-provider-k8s/issues/179)) ([8fea786](https://github.com/cloudquery/cq-provider-k8s/commit/8fea7869bc8c13df6d6a592750a4fe50a5f0c979)) - -## [0.5.9](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.8...v0.5.9) (2022-06-15) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.11.2 ([#174](https://github.com/cloudquery/cq-provider-k8s/issues/174)) ([8496fae](https://github.com/cloudquery/cq-provider-k8s/commit/8496fae08888797b63aab1dca654517aac93c055)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.11.3 ([#176](https://github.com/cloudquery/cq-provider-k8s/issues/176)) ([cc27338](https://github.com/cloudquery/cq-provider-k8s/commit/cc27338575e69338ea3738967edd301ea7bd0e48)) - -## [0.5.8](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.7...v0.5.8) (2022-06-14) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.11.1 ([#171](https://github.com/cloudquery/cq-provider-k8s/issues/171)) ([55dd2ae](https://github.com/cloudquery/cq-provider-k8s/commit/55dd2ae1753763f89e860f7ae090a6e35bbd7e60)) - -## [0.5.7](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.6...v0.5.7) (2022-06-13) - - -### Bug Fixes - -* Added `not found` errors to classifier ([#166](https://github.com/cloudquery/cq-provider-k8s/issues/166)) ([8f81f7b](https://github.com/cloudquery/cq-provider-k8s/commit/8f81f7b4893b7b521baa33641bf8570ff3f49ce4)) - -## [0.5.6](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.5...v0.5.6) (2022-06-08) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.11.0 ([#164](https://github.com/cloudquery/cq-provider-k8s/issues/164)) ([0e67d72](https://github.com/cloudquery/cq-provider-k8s/commit/0e67d720a82be78347008418bf1e5eab9a577549)) - -## [0.5.5](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.4...v0.5.5) (2022-06-07) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.10 ([#162](https://github.com/cloudquery/cq-provider-k8s/issues/162)) ([c64c70f](https://github.com/cloudquery/cq-provider-k8s/commit/c64c70f886d0923c795c32eb8d37c5138aeb750e)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.11 ([#163](https://github.com/cloudquery/cq-provider-k8s/issues/163)) ([a261b87](https://github.com/cloudquery/cq-provider-k8s/commit/a261b8793cbb267105e73c2f0244c9bb49795722)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.9 ([#160](https://github.com/cloudquery/cq-provider-k8s/issues/160)) ([8590adf](https://github.com/cloudquery/cq-provider-k8s/commit/8590adf0b1bdf78a794dc1fcc433d28c4c153867)) - -## [0.5.4](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.3...v0.5.4) (2022-06-07) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.8 ([#158](https://github.com/cloudquery/cq-provider-k8s/issues/158)) ([b6f2887](https://github.com/cloudquery/cq-provider-k8s/commit/b6f288730d2ca3d435b5b54eadadf9d2266d0cbe)) - -## [0.5.3](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.2...v0.5.3) (2022-06-02) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.7 ([#149](https://github.com/cloudquery/cq-provider-k8s/issues/149)) ([8d9af3b](https://github.com/cloudquery/cq-provider-k8s/commit/8d9af3b6abf00ad4f2239c77d405776829778051)) -* Wrap provider errors ([#151](https://github.com/cloudquery/cq-provider-k8s/issues/151)) ([8d32030](https://github.com/cloudquery/cq-provider-k8s/commit/8d320303a935dcf7edde7125712f6e6cd2709950)) - -### [0.5.2](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.1...v0.5.2) (2022-06-01) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.6 ([#146](https://github.com/cloudquery/cq-provider-k8s/issues/146)) ([089a2d4](https://github.com/cloudquery/cq-provider-k8s/commit/089a2d4a4ec919406a18911e42b2dd347b5d38ee)) - -### [0.5.1](https://github.com/cloudquery/cq-provider-k8s/compare/v0.5.0...v0.5.1) (2022-05-31) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.2 ([#133](https://github.com/cloudquery/cq-provider-k8s/issues/133)) ([7c59b11](https://github.com/cloudquery/cq-provider-k8s/commit/7c59b1182147201b65630bfc709ebeb30944ae00)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.3 ([#135](https://github.com/cloudquery/cq-provider-k8s/issues/135)) ([26dbb7a](https://github.com/cloudquery/cq-provider-k8s/commit/26dbb7ae2bcf0384efc6f3ac55fff31eb9a97ecb)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.4 ([#138](https://github.com/cloudquery/cq-provider-k8s/issues/138)) ([884166a](https://github.com/cloudquery/cq-provider-k8s/commit/884166a3ddc5fdf2c53782166f0e8a6d87b0f0cd)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.5 ([#143](https://github.com/cloudquery/cq-provider-k8s/issues/143)) ([376ef7e](https://github.com/cloudquery/cq-provider-k8s/commit/376ef7e0d58b292cbaeafda6a266f96b48ce1d07)) -* Remove relation tables PK ([#121](https://github.com/cloudquery/cq-provider-k8s/issues/121)) ([668eb32](https://github.com/cloudquery/cq-provider-k8s/commit/668eb3204dd913cc545d00a428e15eee194c1435)) - -## [0.5.0](https://github.com/cloudquery/cq-provider-k8s/compare/v0.4.6...v0.5.0) (2022-05-24) - - -### ⚠ BREAKING CHANGES - -* Remove migrations (#130) - -### Features - -* Remove migrations ([#130](https://github.com/cloudquery/cq-provider-k8s/issues/130)) ([f423185](https://github.com/cloudquery/cq-provider-k8s/commit/f4231856924ecd6bfdbd092b658808da6fb80be9)) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.10.1 ([#129](https://github.com/cloudquery/cq-provider-k8s/issues/129)) ([7e6d47a](https://github.com/cloudquery/cq-provider-k8s/commit/7e6d47a78b419e756dcacc471e092fdb5ac2df66)) - -### [0.4.6](https://github.com/cloudquery/cq-provider-k8s/compare/v0.4.5...v0.4.6) (2022-05-23) - - -### Bug Fixes - -* Added ignoring of 404 error when not supported resource fetched ([#123](https://github.com/cloudquery/cq-provider-k8s/issues/123)) ([b0179a2](https://github.com/cloudquery/cq-provider-k8s/commit/b0179a2c67c13e0bad59ff5be4009017200e7392)) -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.9.5 ([#126](https://github.com/cloudquery/cq-provider-k8s/issues/126)) ([2dbab59](https://github.com/cloudquery/cq-provider-k8s/commit/2dbab59f4d688588f17b242da4094e1c007a6ded)) - -### [0.4.5](https://github.com/cloudquery/cq-provider-k8s/compare/v0.4.4...v0.4.5) (2022-05-17) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.9.4 ([#118](https://github.com/cloudquery/cq-provider-k8s/issues/118)) ([b22f2b3](https://github.com/cloudquery/cq-provider-k8s/commit/b22f2b390eccace7be59b29b381746ccf7c66502)) - -### [0.4.4](https://github.com/cloudquery/cq-provider-k8s/compare/v0.4.3...v0.4.4) (2022-05-10) - - -### Bug Fixes - -* **deps:** Update module github.com/cloudquery/cq-provider-sdk to v0.9.3 ([#88](https://github.com/cloudquery/cq-provider-k8s/issues/88)) ([9946a2e](https://github.com/cloudquery/cq-provider-k8s/commit/9946a2ecd574908d5646efa53ba007253f6a3c8b)) diff --git a/plugins/source/k8s/Makefile b/plugins/source/k8s/Makefile deleted file mode 100644 index ba350ef61508ec..00000000000000 --- a/plugins/source/k8s/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# Generate mocks for mock/unit testing -.PHONY: gen-mocks -gen-mocks: install-tools - go generate ./... - -.PHONY: build -build: - go build - -# Test unit -.PHONY: test -test: - go test -race -timeout 3m ./... - -# Install tools -.PHONY: install-tools -install-tools: - @echo Installing tools from tools/tool.go - @cat tools/tool.go | grep _ | awk -F'"' '{print $$2}' | xargs -tI % go install % - -.PHONY: gen-docs -gen-docs: build - @command -v cloudquery >/dev/null 2>&1 || { \ - echo "Error: 'cloudquery' command not found. Please install it before running gen-docs."; \ - echo "You can install it by following the instructions at: https://www.cloudquery.io/docs/quickstart"; \ - exit 1; \ - } - - rm -rf docs/tables - cloudquery tables --format markdown --output-dir docs test/config.yml - mv docs/$(shell basename $(CURDIR)) docs/tables - -.PHONY: lint -lint: - golangci-lint run --config ../../.golangci.yml - -.PHONY: gen-spec-schema -gen-spec-schema: - go run client/spec/gen/main.go - -# All gen targets -.PHONY: gen -gen: gen-spec-schema gen-mocks gen-docs diff --git a/plugins/source/k8s/README.md b/plugins/source/k8s/README.md deleted file mode 100644 index 675ea60342296b..00000000000000 --- a/plugins/source/k8s/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# K8s Source Plugin - -The K8s Source plugin for CloudQuery extracts configuration from a variety of K8s APIs and loads it into any supported CloudQuery destination (e.g. PostgreSQL, BigQuery, Snowflake, and [more](https://www.cloudquery.io/docs/plugins/destinations/overview)). - -## Links - -- [User Guide](https://docs.cloudquery.io/docs/plugins/sources/k8s/overview) \ No newline at end of file diff --git a/plugins/source/k8s/client/client.go b/plugins/source/k8s/client/client.go deleted file mode 100644 index ae8c8b065e15ec..00000000000000 --- a/plugins/source/k8s/client/client.go +++ /dev/null @@ -1,213 +0,0 @@ -package client - -import ( - "context" - "fmt" - "strings" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client/spec" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/rs/zerolog" - "golang.org/x/exp/maps" - v1 "k8s.io/api/core/v1" - apiextensionsclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - - // import all k8s auth options - _ "k8s.io/client-go/plugin/pkg/client/auth" - "k8s.io/client-go/rest" - "k8s.io/client-go/tools/clientcmd" - "k8s.io/client-go/tools/clientcmd/api" -) - -type Client struct { - logger zerolog.Logger - // map context_name -> Services struct - clients map[string]kubernetes.Interface - // map context_name -> namespaces - namespaces map[string][]v1.Namespace - // map context_name -> API extensions - apiExtensions map[string]apiextensionsclientset.Interface - - spec *spec.Spec - contexts []string - paths map[string]struct{} - - Context string - Namespace string -} - -func (c *Client) Logger() *zerolog.Logger { - return &c.logger -} - -func (c *Client) ID() string { - if c.Namespace != "" { - return fmt.Sprintf("context:%s:namespace%s", c.Context, c.Namespace) - } - return fmt.Sprintf("context:%s", c.Context) -} - -func (c *Client) Client() kubernetes.Interface { - return c.clients[c.Context] -} - -func (c *Client) APIExtensions() apiextensionsclientset.Interface { - return c.apiExtensions[c.Context] -} - -func (c *Client) Namespaces() []v1.Namespace { - return c.namespaces[c.Context] -} - -// Don't confuse `k8sContext` with `context.ctx`! k8s-context is a k8s-term that refers to a k8s cluster. -func (c *Client) WithContext(k8sContext string) *Client { - newC := *c - newC.logger = c.logger.With().Str("context", k8sContext).Logger() - newC.Context = k8sContext - return &newC -} - -func (c *Client) WithNamespace(namespace string) *Client { - newC := *c - newC.logger = c.logger.With().Str("namespace", namespace).Logger() - newC.Namespace = namespace - return &newC -} - -func Configure(ctx context.Context, logger zerolog.Logger, s spec.Spec) (schema.ClientMeta, error) { - kubeConfig := clientcmd.NewNonInteractiveDeferredLoadingClientConfig( - clientcmd.NewDefaultClientConfigLoadingRules(), - &clientcmd.ConfigOverrides{}, - ) - rawKubeConfig, err := kubeConfig.RawConfig() - if err != nil { - return nil, err - } - - contexts, err := loadContexts(&s, rawKubeConfig, logger) - if err != nil { - return nil, err - } - if len(contexts) == 0 { - return nil, fmt.Errorf("could not find any context. Try to add context, https://kubernetes.io/docs/reference/kubectl/cheatsheet/#kubectl-context-and-configuration") - } - - c := Client{ - logger: logger, - clients: make(map[string]kubernetes.Interface), - namespaces: make(map[string][]v1.Namespace), - apiExtensions: make(map[string]apiextensionsclientset.Interface), - spec: &s, - contexts: contexts, - Context: contexts[0], - paths: make(map[string]struct{}), - } - - for _, ctxName := range contexts { - logger.Info().Str("context", ctxName).Msg("creating k8s client for context") - restConfig, err := buildRESTConfig(logger, rawKubeConfig, ctxName) - if err != nil { - return nil, fmt.Errorf("failed to build k8s RES config for context %q: %w", ctxName, err) - } - kClient, err := kubernetes.NewForConfig(restConfig) - if err != nil { - return nil, fmt.Errorf("failed to build k8s client for context %q: %w", ctxName, err) - } - apiExtClient, err := apiextensionsclientset.NewForConfig(restConfig) - if err != nil { - return nil, fmt.Errorf("failed to build k8s API Extensions client for context %q: %w", ctxName, err) - } - c.paths, err = getAPIsMap(kClient) - if err != nil { - logger.Warn().Err(err).Msg("Failed to get OpenAPI schema. It might be not supported in the current version of Kubernetes. OpenAPI has been supported since Kubernetes 1.4") - } - namespaces, err := discoverNamespaces(ctx, kClient) - if err != nil { - return nil, fmt.Errorf("failed to discover namespaces for context %q: %w", ctxName, err) - } - - c.clients[ctxName] = kClient - c.namespaces[ctxName] = namespaces - c.apiExtensions[ctxName] = apiExtClient - } - - return &c, nil -} - -func loadContexts(s *spec.Spec, rawCfg api.Config, logger zerolog.Logger) ([]string, error) { - if len(s.Contexts) == 0 { - logger.Debug().Str("context", rawCfg.CurrentContext).Msg("no context set in configuration using current default defined context") - return []string{rawCfg.CurrentContext}, nil - } - - if len(s.Contexts) == 1 && s.Contexts[0] == "*" { - logger.Debug().Msg("loading all available configuration") - return maps.Keys(rawCfg.Contexts), nil - } - - // verify contexts - for _, cName := range s.Contexts { - if _, ok := rawCfg.Contexts[cName]; !ok { - return nil, fmt.Errorf("context %q doesn't exist in kube configuration", cName) - } - } - return s.Contexts, nil -} - -func discoverNamespaces(ctx context.Context, client kubernetes.Interface) ([]v1.Namespace, error) { - cl := client.CoreV1().Namespaces() - - opts := metav1.ListOptions{} - namespaces := make([]v1.Namespace, 0) - for { - result, err := cl.List(ctx, opts) - if err != nil { - return nil, err - } - namespaces = append(namespaces, result.Items...) - if result.GetContinue() == "" { - break - } - opts.Continue = result.GetContinue() - } - return namespaces, nil -} - -// buildRESTConfig creates a k8s REST client config from the given config and context name. -func buildRESTConfig(logger zerolog.Logger, kubeConfig api.Config, ctx string) (*rest.Config, error) { - override := &clientcmd.ConfigOverrides{CurrentContext: ctx} - clientConfig := clientcmd.NewNonInteractiveClientConfig( - kubeConfig, - override.CurrentContext, - override, - &clientcmd.ClientConfigLoadingRules{}, - ) - - restConfig, err := clientConfig.ClientConfig() - if err != nil { - logger.Warn().Err(err).Msg("Failed to create k8s client, fallback to use the in-cluster config") - restConfig, err = rest.InClusterConfig() - if err != nil { - return nil, err - } - } - - return restConfig, nil -} - -func getAPIsMap(client *kubernetes.Clientset) (map[string]struct{}, error) { - doc, err := client.OpenAPISchema() - if err != nil { - return nil, err - } - paths := make(map[string]struct{}) - for _, p := range doc.Paths.Path { - path := p.Name - if strings.HasPrefix(path, "/apis/") { - paths[path] = struct{}{} - } - } - return paths, nil -} diff --git a/plugins/source/k8s/client/columns.go b/plugins/source/k8s/client/columns.go deleted file mode 100644 index 09ea109b7e05e6..00000000000000 --- a/plugins/source/k8s/client/columns.go +++ /dev/null @@ -1,8 +0,0 @@ -package client - -import ( - "github.com/apache/arrow/go/v17/arrow" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -var ContextColumn = schema.Column{Name: "context", Type: arrow.BinaryTypes.String, Resolver: ResolveContext} diff --git a/plugins/source/k8s/client/helpers.go b/plugins/source/k8s/client/helpers.go deleted file mode 100644 index c7093028acbbcf..00000000000000 --- a/plugins/source/k8s/client/helpers.go +++ /dev/null @@ -1,158 +0,0 @@ -package client - -import ( - "context" - "reflect" - - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/thoas/go-funk" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" -) - -type OwnerReferences struct { - ResourceUID types.UID - v1.OwnerReference -} - -// ContextMultiplex returns a list of clients for each context from the cq config -func ContextMultiplex(meta schema.ClientMeta) []schema.ClientMeta { - client := meta.(*Client) - clients := make([]schema.ClientMeta, 0) - for _, ctxName := range client.contexts { - clients = append(clients, client.WithContext(ctxName)) - } - return clients -} - -func ContextNamespaceMultiplex(meta schema.ClientMeta) []schema.ClientMeta { - client := meta.(*Client) - clients := make([]schema.ClientMeta, 0) - for _, ctxName := range client.contexts { - for _, ns := range client.namespaces[ctxName] { - clients = append(clients, client.WithContext(ctxName).WithNamespace(ns.Name)) - } - } - return clients -} - -// APIFilterContextMultiplex returns a list of clients for each context from the cq config -func APIFilterContextMultiplex(path string) func(meta schema.ClientMeta) []schema.ClientMeta { - return func(meta schema.ClientMeta) []schema.ClientMeta { - client := meta.(*Client) - - // in kubernetes version below 1.4 paths is nil - if client.paths != nil { - if _, ok := client.paths[path]; !ok { - client.Logger().Warn().Str("path", path).Msg("The resource is not supported by current version of k8s") - return []schema.ClientMeta{} - } - } - - clients := make([]schema.ClientMeta, 0, len(client.contexts)) - for _, ctxName := range client.contexts { - clients = append(clients, client.WithContext(ctxName)) - } - return clients - } -} - -// ResolveContext is a resolver that fills the k8s context field. -func ResolveContext(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error { - client := meta.(*Client) - return r.Set(c.Name, client.Context) -} - -// In k8s, IP Addresses may sometimes be empty-strings or `None` - but postgresql doesn't like that. -// So, the resolver for ip-addresses should recognize that case and set null instead. -func StringToInetPathResolver(path string) schema.ColumnResolver { - return func(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error { - value := funk.Get(r.Item, path, funk.WithAllowZero()) - - stringValue, ok := value.(string) - if ok && stringValue != "" && stringValue != "None" { - return r.Set(c.Name, value) - } - - return r.Set(c.Name, nil) - } -} - -// In k8s, IP Addresses may sometimes be empty-strings or `None` - but postgresql doesn't like that. -// So, the resolver for ip-addresses should recognize that case and set null instead. -func StringToInetArrayPathResolver(path string) schema.ColumnResolver { - return func(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error { - value := funk.Get(r.Item, path, funk.WithAllowZero()) - - stringArrayValue, ok := value.([]string) - if !ok { - return r.Set(c.Name, nil) - } - - sanitized := []*string{} - - for i := range stringArrayValue { - if stringArrayValue[i] != "" && stringArrayValue[i] != "None" { - sanitized = append(sanitized, &stringArrayValue[i]) - } else { - sanitized = append(sanitized, nil) - } - } - - return r.Set(c.Name, sanitized) - } -} - -// In k8s, IP Addresses may sometimes be empty-strings or `None` - but postgresql doesn't like that. -// So, the resolver for ip-addresses should recognize that case and set null instead. -func StringToCidrPathResolver(path string) schema.ColumnResolver { - return func(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error { - value := funk.Get(r.Item, path, funk.WithAllowZero()) - - stringValue, ok := value.(string) - if ok && stringValue != "" && stringValue != "None" { - return r.Set(c.Name, value) - } - return r.Set(c.Name, nil) - } -} - -// In k8s, IP Addresses may sometimes be empty-strings or `None` - but postgresql doesn't like that. -// So, the resolver for ip-addresses should recognize that case and set null instead. -func StringToCidrArrayPathResolver(path string) schema.ColumnResolver { - return func(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error { - value := funk.Get(r.Item, path, funk.WithAllowZero()) - - stringArrayValue, ok := value.([]string) - if !ok { - return r.Set(c.Name, nil) - } - - sanitized := []*string{} - - for i := range stringArrayValue { - if stringArrayValue[i] != "" && stringArrayValue[i] != "None" { - sanitized = append(sanitized, &stringArrayValue[i]) - } else { - sanitized = append(sanitized, nil) - } - } - - return r.Set(c.Name, sanitized) - } -} - -// isK8sTimeStruct returns true if the given type is a metav1.Time struct or a pointer to it. -func isK8sTimeStruct(fieldType reflect.Type) bool { - fieldKind := fieldType.Kind() - - if fieldKind == reflect.Ptr { - return isK8sTimeStruct(fieldType.Elem()) - } - - if fieldKind == reflect.Struct && fieldType == reflect.TypeOf(v1.Time{}) { - return true - } - - return false -} diff --git a/plugins/source/k8s/client/spec/gen/main.go b/plugins/source/k8s/client/spec/gen/main.go deleted file mode 100644 index 106cdac80a7f74..00000000000000 --- a/plugins/source/k8s/client/spec/gen/main.go +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "log" - "path" - "runtime" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client/spec" - "github.com/cloudquery/codegen/jsonschema" -) - -func main() { - fmt.Println("Generating JSON schema for plugin spec") - jsonschema.GenerateIntoFile(new(spec.Spec), path.Join(currDir(), "..", "schema.json"), - jsonschema.WithAddGoComments("github.com/cloudquery/cloudquery/plugins/source/k8s/client/spec", path.Join(currDir(), "..")), - ) -} - -func currDir() string { - _, filename, _, ok := runtime.Caller(0) - if !ok { - log.Fatal("Failed to get caller information") - } - return path.Dir(filename) -} diff --git a/plugins/source/k8s/client/spec/schema.json b/plugins/source/k8s/client/spec/schema.json deleted file mode 100644 index a6fe5070754ead..00000000000000 --- a/plugins/source/k8s/client/spec/schema.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/cloudquery/cloudquery/plugins/source/k8s/client/spec/spec", - "$ref": "#/$defs/Spec", - "$defs": { - "Spec": { - "properties": { - "contexts": { - "oneOf": [ - { - "items": { - "type": "string", - "minLength": 1 - }, - "type": "array", - "description": "Specify K8s contexts to connect to.\nSpecifying `*` will connect to all contexts available in the K8s config file (usually `~/.kube/config`).\n\nDefault (empty or `null`) value results in using the default context from K8s's config file." - }, - { - "type": "null" - } - ] - }, - "concurrency": { - "type": "integer", - "minimum": 1, - "description": "The best effort maximum number of Go routines to use.\nLower this number to reduce memory usage.", - "default": 50000 - } - }, - "additionalProperties": false, - "type": "object", - "description": "CloudQuery Kubernetes source plugin config spec." - } - } -} diff --git a/plugins/source/k8s/client/spec/spec.go b/plugins/source/k8s/client/spec/spec.go deleted file mode 100644 index e8fb395c264ea3..00000000000000 --- a/plugins/source/k8s/client/spec/spec.go +++ /dev/null @@ -1,26 +0,0 @@ -package spec - -import _ "embed" - -// CloudQuery Kubernetes source plugin config spec. -type Spec struct { - // Specify K8s contexts to connect to. - // Specifying `*` will connect to all contexts available in the K8s config file (usually `~/.kube/config`). - // - // Default (empty or `null`) value results in using the default context from K8s's config file. - Contexts []string `yaml:"contexts,omitempty" json:"contexts" jsonschema:"minLength=1"` - - // The best effort maximum number of Go routines to use. - // Lower this number to reduce memory usage. - Concurrency int `yaml:"concurrency,omitempty" json:"concurrency" jsonschema:"minimum=1,default=50000"` -} - -func (s *Spec) SetDefaults() { - if s.Concurrency <= 0 { - const defaultConcurrency = 50000 - s.Concurrency = defaultConcurrency - } -} - -//go:embed schema.json -var JSONSchema string diff --git a/plugins/source/k8s/client/spec/spec_test.go b/plugins/source/k8s/client/spec/spec_test.go deleted file mode 100644 index aee1cf08b92de6..00000000000000 --- a/plugins/source/k8s/client/spec/spec_test.go +++ /dev/null @@ -1,67 +0,0 @@ -package spec - -import ( - "testing" - - "github.com/cloudquery/codegen/jsonschema" -) - -func TestSpecJSONSchema(t *testing.T) { - jsonschema.TestJSONSchema(t, JSONSchema, []jsonschema.TestCase{ - { - Name: "empty", - Spec: `{}`, - }, - { - Name: "empty contexts", - Spec: `{"contexts":[]}`, - }, - { - Name: "null contexts", - Spec: `{"contexts":null}`, - }, - { - Name: "bad contexts", - Err: true, - Spec: `{"contexts":123}`, - }, - { - Name: "empty contexts entry", - Err: true, - Spec: `{"contexts":[""]}`, - }, - { - Name: "null contexts entry", - Err: true, - Spec: `{"contexts":[null]}`, - }, - { - Name: "bad contexts entry", - Err: true, - Spec: `{"contexts":[123]}`, - }, - { - Name: "proper contexts entry", - Spec: `{"contexts":["some-ctx"]}`, - }, - { - Name: "zero concurrency", - Err: true, - Spec: `{"concurrency":0}`, - }, - { - Name: "null concurrency", - Err: true, - Spec: `{"concurrency":null}`, - }, - { - Name: "bad concurrency", - Err: true, - Spec: `{"concurrency":3.5}`, - }, - { - Name: "proper concurrency", - Spec: `{"concurrency":5}`, - }, - }) -} diff --git a/plugins/source/k8s/client/testing.go b/plugins/source/k8s/client/testing.go deleted file mode 100644 index b7be31f48d489d..00000000000000 --- a/plugins/source/k8s/client/testing.go +++ /dev/null @@ -1,85 +0,0 @@ -package client - -import ( - "context" - "os" - "testing" - "time" - - "github.com/cloudquery/plugin-sdk/v4/plugin" - "github.com/cloudquery/plugin-sdk/v4/scheduler" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/golang/mock/gomock" - "github.com/rs/zerolog" - v1 "k8s.io/api/core/v1" - apiextensionsclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" - "k8s.io/client-go/kubernetes" -) - -type TestOption func(*Client) - -func WithTestNamespaces(namespaces ...v1.Namespace) TestOption { - return func(c *Client) { - c.namespaces[c.Context] = namespaces - } -} - -func K8sMockTestHelper(t *testing.T, table *schema.Table, builder func(*testing.T, *gomock.Controller) kubernetes.Interface, opts ...TestOption) { - t.Helper() - table.IgnoreInTests = false - - mockController := gomock.NewController(t) - l := zerolog.New(zerolog.NewTestWriter(t)).Output( - zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.StampMicro}, - ).Level(zerolog.DebugLevel).With().Timestamp().Logger() - c := &Client{ - logger: l, - Context: "testContext", - contexts: []string{"testContext"}, - namespaces: map[string][]v1.Namespace{}, - } - c.clients = map[string]kubernetes.Interface{"testContext": builder(t, mockController)} - for _, opt := range opts { - opt(c) - } - sched := scheduler.NewScheduler(scheduler.WithLogger(l)) - tables := schema.Tables{table} - if err := transformers.TransformTables(tables); err != nil { - t.Fatal(err) - } - messages, err := sched.SyncAll(context.Background(), c, tables) - if err != nil { - t.Fatalf("failed to sync: %v", err) - } - plugin.ValidateNoEmptyColumns(t, tables, messages) -} - -func APIExtensionsMockTestHelper(t *testing.T, table *schema.Table, builder func(*testing.T, *gomock.Controller) apiextensionsclientset.Interface, opts ...TestOption) { - t.Helper() - table.IgnoreInTests = false - mockController := gomock.NewController(t) - l := zerolog.New(zerolog.NewTestWriter(t)).Output( - zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.StampMicro}, - ).Level(zerolog.DebugLevel).With().Timestamp().Logger() - c := &Client{ - logger: l, - Context: "testContext", - contexts: []string{"testContext"}, - namespaces: map[string][]v1.Namespace{}, - } - c.apiExtensions = map[string]apiextensionsclientset.Interface{"testContext": builder(t, mockController)} - for _, opt := range opts { - opt(c) - } - sched := scheduler.NewScheduler(scheduler.WithLogger(l)) - messages, err := sched.SyncAll(context.Background(), c, schema.Tables{table}) - if err != nil { - t.Fatalf("failed to sync: %v", err) - } - records := messages.GetInserts().GetRecordsForTable(table) - emptyColumns := schema.FindEmptyColumns(table, records) - if len(emptyColumns) > 0 { - t.Fatalf("empty columns: %v", emptyColumns) - } -} diff --git a/plugins/source/k8s/client/transformers.go b/plugins/source/k8s/client/transformers.go deleted file mode 100644 index e5c885d687a0d4..00000000000000 --- a/plugins/source/k8s/client/transformers.go +++ /dev/null @@ -1,42 +0,0 @@ -package client - -import ( - "reflect" - - "github.com/apache/arrow/go/v17/arrow" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -var ( - options = []transformers.StructTransformerOption{ - transformers.WithUnwrapAllEmbeddedStructs(), - transformers.WithSkipFields(skipFields...), - transformers.WithUnwrapStructFields("Spec", "Status"), - transformers.WithTypeTransformer(typeTransformer), - } - skipFields = []string{ - "GenerateName", - "SelfLink", - "CreationTimestamp", - "DeletionTimestamp", - "ZZZ_DeprecatedClusterName", - "ManagedFields", - } -) - -func TransformWithStruct(t any, opts ...transformers.StructTransformerOption) schema.Transform { - return transformers.TransformWithStruct(t, append(options, opts...)...) -} - -func WithMoreSkipFields(extra ...string) transformers.StructTransformerOption { - return transformers.WithSkipFields(append(skipFields, extra...)...) -} - -func typeTransformer(field reflect.StructField) (arrow.DataType, error) { - if isK8sTimeStruct(field.Type) { - return arrow.FixedWidthTypes.Timestamp_us, nil - } - - return transformers.DefaultTypeTransformer(field) -} diff --git a/plugins/source/k8s/dashboards/README.md b/plugins/source/k8s/dashboards/README.md deleted file mode 100644 index 77d3be9df83eef..00000000000000 --- a/plugins/source/k8s/dashboards/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# Kubernetes Dashboards - -This directory contains pre-built dashboards. Currently those are available only for Grafana, but you can create them in any other BI platform: - -Checkout those tutorials: - -* [Building a Cloud Asset Inventory with CloudQuery and Grafana](https://www.cloudquery.io/blog/open-source-cloud-asset-inventory-with-cloudquery-and-grafana) -* [Building a Cloud Asset Inventory with CloudQuery and Apache Superset](https://www.cloudquery.io/blog/cloud-asset-inventory-cloudquery-apache-superset) -* [Building a Cloud Asset Inventory with CloudQuery and AWS QuickSight](https://www.cloudquery.io/blog/cloud-asset-inventory-cloudquery-aws-quicksight) -* [Building a Cloud Asset Inventory with Metabase](https://www.cloudquery.io/blog/cloud-asset-inventory-cloudquery-metabase) - -## What's inside? - -### Kubernetes Asset Inventory - -Kubernetes Asset Inventory - -#### Installing the Inventory Dashboard - -1. Execute [this query]../views/resource.sql) to add the `k8s_resources` view. -2. Add the CloudQuery postgres database as a data source to Grafana (`Configuration -> Data Sources -> Add Data Source`) -3. Import [../dashboards/grafana/asset_inventory.json](../dashboards/grafana/asset_inventory.json) into Grafana (`Import -> Upload JSON File`). - -### Kubernetes Compliance and CSPM (Cloud Security Posture Management) Dashboard - -Kubernetes Compliance and CSPM Dashboard - -#### Installing the Compliance Dashboard - -1. Execute one more of the Kubernetes [policies](../policies/). -2. Add the CloudQuery postgres database as a data source to Grafana (`Configuration -> Data Sources -> Add Data Source`) -3. Import [../dashboards/grafana/compliance.json](../dashboards/grafana/compliance.json) into Grafana (`Import -> Upload JSON File`). diff --git a/plugins/source/k8s/dashboards/grafana/asset_inventory.json b/plugins/source/k8s/dashboards/grafana/asset_inventory.json deleted file mode 100644 index 735fac91534361..00000000000000 --- a/plugins/source/k8s/dashboards/grafana/asset_inventory.json +++ /dev/null @@ -1,431 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_POSTGRESQL", - "label": "PostgreSQL", - "description": "", - "type": "datasource", - "pluginId": "postgres", - "pluginName": "PostgreSQL" - } - ], - "__elements": [], - "__requires": [ - { - "type": "panel", - "id": "barchart", - "name": "Bar chart", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "8.4.7" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "postgres", - "name": "PostgreSQL", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": null, - "iteration": 1653764777747, - "links": [], - "liveNow": false, - "panels": [ - { - "datasource": "${DS_POSTGRESQL}", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 7, - "x": 0, - "y": 0 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "8.4.7", - "targets": [ - { - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "select count(*) from k8s_resources where context in (${contexts}) and _cq_table in (${cq_tables}) ;", - "refId": "A" - } - ], - "title": "Total Resources", - "type": "stat" - }, - { - "datasource": "${DS_POSTGRESQL}", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 8, - "x": 7, - "y": 0 - }, - "id": 8, - "options": { - "displayLabels": [ - "percent" - ], - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "pieType": "pie", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.4.7", - "targets": [ - { - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "select context, count(*) from k8s_resources where _cq_table in (${cq_tables}) group by context order by count desc;", - "refId": "A" - } - ], - "title": "Total Resources by Context", - "type": "piechart" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "_cq_table" - }, - "properties": [ - { - "id": "custom.width", - "value": 326 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "context" - }, - "properties": [ - { - "id": "custom.width", - "value": 188 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "_cq_sync_time" - }, - "properties": [ - { - "id": "custom.width", - "value": 270 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "_cq_id" - }, - "properties": [ - { - "id": "custom.width", - "value": 293 - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 9 - }, - "id": 2, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "8.4.7", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "select _cq_id, _cq_table, context, uid, _cq_sync_time from k8s_resources where context in (${contexts}) and _cq_table in (${cq_tables}) ;", - "refId": "A", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "column" - } - ] - ], - "timeColumn": "time", - "where": [ - { - "name": "$__timeFilter", - "params": [], - "type": "macro" - } - ] - } - ], - "title": "Kubernetes Resources", - "type": "table" - }, - { - "datasource": "${DS_POSTGRESQL}", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "align": "auto", - "displayMode": "auto" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 12, - "w": 6, - "x": 0, - "y": 21 - }, - "id": 4, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "8.4.7", - "targets": [ - { - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "select _cq_table, count(*) from k8s_resources where context in (${contexts}) group by _cq_table order by count desc;", - "refId": "A" - } - ], - "title": "Count by Resource Type", - "type": "table" - } - ], - "schemaVersion": 35, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": {}, - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "definition": "select distinct(context) from k8s_resources", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "contexts", - "options": [], - "query": "select distinct(context) from k8s_resources", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": {}, - "definition": "select distinct(_cq_table) from k8s_resources;", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "cq_tables", - "options": [], - "query": "select distinct(_cq_table) from k8s_resources;", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query", - "datasource": "${DS_POSTGRESQL}" - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Kubernetes Asset Inventory", - "uid": "eiYa2uch6R", - "version": 2, - "weekStart": "" -} \ No newline at end of file diff --git a/plugins/source/k8s/dashboards/grafana/asset_inventory.png b/plugins/source/k8s/dashboards/grafana/asset_inventory.png deleted file mode 100644 index cbcaa7c4e9cf9c..00000000000000 Binary files a/plugins/source/k8s/dashboards/grafana/asset_inventory.png and /dev/null differ diff --git a/plugins/source/k8s/dashboards/grafana/compliance.json b/plugins/source/k8s/dashboards/grafana/compliance.json deleted file mode 100644 index 02b2be30f9a493..00000000000000 --- a/plugins/source/k8s/dashboards/grafana/compliance.json +++ /dev/null @@ -1,767 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_POSTGRESQL", - "label": "PostgreSQL", - "description": "", - "type": "datasource", - "pluginId": "postgres", - "pluginName": "PostgreSQL" - } - ], - "__elements": [], - "__requires": [ - { - "type": "panel", - "id": "barchart", - "name": "Bar chart", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.0.2" - }, - { - "type": "datasource", - "id": "postgres", - "name": "PostgreSQL", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": null, - "iteration": 1658392796751, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 11, - "panels": [], - "title": "CloudQuery", - "type": "row" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "This panel will show OK if the k8s_resources view has been created and is accessible to the current Postgres user.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byFrameRefID", - "options": "A" - }, - "properties": [ - { - "id": "mappings", - "value": [ - { - "options": { - "0": { - "index": 1, - "text": "Not OK" - }, - "1": { - "index": 0, - "text": "OK" - } - }, - "type": "value" - } - ] - }, - { - "id": "thresholds", - "value": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 1 - } - ] - } - } - ] - } - ] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 0, - "y": 1 - }, - "id": 13, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'k8s_policy_results'", - "refId": "A" - } - ], - "title": "Data Source", - "type": "stat" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "Time since the most recent CloudQuery sync happened.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "dateTimeFromNow" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 8, - "y": 1 - }, - "id": 16, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^Time$/", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "time_series", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT _cq_sync_time AS time, 1 FROM k8s_core_pods ORDER BY time DESC LIMIT 1;", - "refId": "A" - } - ], - "title": "Last Sync", - "type": "stat" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "Time since the most recent policy execution happened.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "dateTimeFromNow" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 8, - "x": 16, - "y": 1 - }, - "id": 15, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^Time$/", - "values": false - }, - "text": {}, - "textMode": "value" - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "time_series", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT execution_time AS time, 1 FROM k8s_policy_results ORDER BY execution_time DESC LIMIT 1;", - "refId": "A" - } - ], - "title": "Last Policy Execution", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 3 - }, - "id": 9, - "panels": [], - "title": "Results", - "type": "row" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "axisSoftMin": 0, - "fillOpacity": 80, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineWidth": 1, - "scaleDistribution": { - "type": "linear" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "pass" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "green", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "fail" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "red", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 0, - "y": 4 - }, - "id": 5, - "options": { - "barRadius": 0, - "barWidth": 0.97, - "groupWidth": 0.7, - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom" - }, - "orientation": "auto", - "showValue": "auto", - "stacking": "percent", - "tooltip": { - "mode": "single", - "sort": "none" - }, - "xTickLabelRotation": 0, - "xTickLabelSpacing": 0 - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT framework, COUNT(CASE WHEN status = 'fail' THEN 1 ELSE NULL END) AS fail, COUNT(CASE WHEN status = 'pass' THEN 1 ELSE NULL END) AS pass from k8s_policy_results WHERE context IN (${contexts}) AND framework IN (${framework}) GROUP BY framework;", - "refId": "A" - } - ], - "title": "Policy Pass/Fail Distribution", - "transformations": [], - "type": "barchart" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "red", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 8, - "y": 4 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT execution_time AS time, COUNT(*) FROM k8s_policy_results WHERE context IN (${contexts}) AND framework IN (${framework}) AND status = 'fail' AND $__timeFilter(execution_time) GROUP BY execution_time;", - "refId": "A" - } - ], - "title": "Failed Checks", - "type": "stat" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 10, - "w": 8, - "x": 16, - "y": 4 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT execution_time AS time, COUNT(*) FROM k8s_policy_results WHERE context IN (${contexts}) AND framework IN (${framework}) AND status = 'pass' AND $__timeFilter(execution_time) GROUP BY execution_time;", - "refId": "A" - } - ], - "title": "Passed Checks", - "type": "stat" - }, - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "description": "All policies, benchmarks results.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "resource_id" - }, - "properties": [ - { - "id": "custom.width", - "value": 563 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "title" - }, - "properties": [ - { - "id": "custom.width", - "value": 462 - } - ] - } - ] - }, - "gridPos": { - "h": 12, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 2, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true, - "sortBy": [ - { - "desc": true, - "displayName": "status" - } - ] - }, - "pluginVersion": "9.0.2", - "targets": [ - { - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "format": "table", - "group": [], - "metricColumn": "none", - "rawQuery": true, - "rawSql": "SELECT * FROM k8s_policy_results WHERE context IN (${contexts}) AND framework IN (${framework}) AND status IN (${status});", - "refId": "A" - } - ], - "title": "Policy Results", - "type": "table" - } - ], - "refresh": "", - "schemaVersion": 36, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "current": {}, - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "definition": "SELECT context FROM k8s_policy_results", - "description": "", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "contexts", - "options": [], - "query": "SELECT context FROM k8s_policy_results", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 3, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "definition": "SELECT framework FROM k8s_policy_results", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "framework", - "options": [], - "query": "SELECT framework FROM k8s_policy_results", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": {}, - "datasource": { - "type": "postgres", - "uid": "${DS_POSTGRESQL}" - }, - "definition": "SELECT status FROM k8s_policy_results", - "hide": 0, - "includeAll": true, - "multi": true, - "name": "status", - "options": [], - "query": "select status from k8s_policy_results", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] - }, - "time": { - "from": "now-6h", - "to": "now" - }, - "timepicker": {}, - "timezone": "", - "title": "Kubernetes Compliance Dashboard", - "uid": "Ahf7ruQu0i", - "version": 4, - "weekStart": "" -} \ No newline at end of file diff --git a/plugins/source/k8s/dashboards/grafana/compliance.png b/plugins/source/k8s/dashboards/grafana/compliance.png deleted file mode 100644 index 939f712c5f9bce..00000000000000 Binary files a/plugins/source/k8s/dashboards/grafana/compliance.png and /dev/null differ diff --git a/plugins/source/k8s/docs/_authentication.md b/plugins/source/k8s/docs/_authentication.md deleted file mode 100644 index efc086861717c3..00000000000000 --- a/plugins/source/k8s/docs/_authentication.md +++ /dev/null @@ -1,53 +0,0 @@ -Similar to how `kubectl` works, `cloudquery` depends on a Kubernetes configuration file to connect to a Kubernetes cluster and `sync` its information. -By default, `cloudquery` uses the default Kubernetes configuration file (`~/.kube/config`). -You can also specify a different configuration by setting the `KUBECONFIG` environment variable before running `cloudquery sync`. - -```bash copy -export KUBECONFIG="" -``` - -### Kubernetes Service Account - -If `cloudquery` is running in a pod of the Kubernetes cluster, the Kubernetes Service Account can be used for direct authentication. To use the Kubernetes Service Account for direct authentication, a cluster role with all get and list privileges will need to be used. - -The below command creates a new cluster role with `get` and `list` privileges. - -```bash copy -kubectl apply -f - <`| -|webhooks|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_admissionregistration_validating_webhook_configurations.md b/plugins/source/k8s/docs/tables/k8s_admissionregistration_validating_webhook_configurations.md deleted file mode 100644 index fc14f6317b64c9..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_admissionregistration_validating_webhook_configurations.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_admissionregistration_validating_webhook_configurations - -This table shows data for Kubernetes (K8s) Admission Registration Validating Webhook Configurations. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|webhooks|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_apps_daemon_sets.md b/plugins/source/k8s/docs/tables/k8s_apps_daemon_sets.md deleted file mode 100644 index 77909e0ce2faeb..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_apps_daemon_sets.md +++ /dev/null @@ -1,40 +0,0 @@ -# Table: k8s_apps_daemon_sets - -This table shows data for Kubernetes (K8s) Apps Daemon Sets. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_selector|`json`| -|spec_template|`json`| -|spec_update_strategy|`json`| -|spec_min_ready_seconds|`int64`| -|spec_revision_history_limit|`int64`| -|status_current_number_scheduled|`int64`| -|status_number_misscheduled|`int64`| -|status_desired_number_scheduled|`int64`| -|status_number_ready|`int64`| -|status_observed_generation|`int64`| -|status_updated_number_scheduled|`int64`| -|status_number_available|`int64`| -|status_number_unavailable|`int64`| -|status_collision_count|`int64`| -|status_conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_apps_deployments.md b/plugins/source/k8s/docs/tables/k8s_apps_deployments.md deleted file mode 100644 index d1f75296dd3b63..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_apps_deployments.md +++ /dev/null @@ -1,41 +0,0 @@ -# Table: k8s_apps_deployments - -This table shows data for Kubernetes (K8s) Apps Deployments. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_replicas|`int64`| -|spec_selector|`json`| -|spec_template|`json`| -|spec_strategy|`json`| -|spec_min_ready_seconds|`int64`| -|spec_revision_history_limit|`int64`| -|spec_paused|`bool`| -|spec_progress_deadline_seconds|`int64`| -|status_observed_generation|`int64`| -|status_replicas|`int64`| -|status_updated_replicas|`int64`| -|status_ready_replicas|`int64`| -|status_available_replicas|`int64`| -|status_unavailable_replicas|`int64`| -|status_conditions|`json`| -|status_collision_count|`int64`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_apps_replica_sets.md b/plugins/source/k8s/docs/tables/k8s_apps_replica_sets.md deleted file mode 100644 index 3ff6bad637dacc..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_apps_replica_sets.md +++ /dev/null @@ -1,35 +0,0 @@ -# Table: k8s_apps_replica_sets - -This table shows data for Kubernetes (K8s) Apps Replica Sets. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_replicas|`int64`| -|spec_min_ready_seconds|`int64`| -|spec_selector|`json`| -|spec_template|`json`| -|status_replicas|`int64`| -|status_fully_labeled_replicas|`int64`| -|status_ready_replicas|`int64`| -|status_available_replicas|`int64`| -|status_observed_generation|`int64`| -|status_conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_apps_stateful_sets.md b/plugins/source/k8s/docs/tables/k8s_apps_stateful_sets.md deleted file mode 100644 index 53ebc7eab0ad59..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_apps_stateful_sets.md +++ /dev/null @@ -1,46 +0,0 @@ -# Table: k8s_apps_stateful_sets - -This table shows data for Kubernetes (K8s) Apps Stateful Sets. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_replicas|`int64`| -|spec_selector|`json`| -|spec_template|`json`| -|spec_volume_claim_templates|`json`| -|spec_service_name|`utf8`| -|spec_pod_management_policy|`utf8`| -|spec_update_strategy|`json`| -|spec_revision_history_limit|`int64`| -|spec_min_ready_seconds|`int64`| -|spec_persistent_volume_claim_retention_policy|`json`| -|spec_ordinals|`json`| -|status_observed_generation|`int64`| -|status_replicas|`int64`| -|status_ready_replicas|`int64`| -|status_current_replicas|`int64`| -|status_updated_replicas|`int64`| -|status_current_revision|`utf8`| -|status_update_revision|`utf8`| -|status_collision_count|`int64`| -|status_conditions|`json`| -|status_available_replicas|`int64`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_autoscaling_hpas.md b/plugins/source/k8s/docs/tables/k8s_autoscaling_hpas.md deleted file mode 100644 index 7f8cd0e4f0c0dd..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_autoscaling_hpas.md +++ /dev/null @@ -1,34 +0,0 @@ -# Table: k8s_autoscaling_hpas - -This table shows data for Kubernetes (K8s) Autoscaling Horizontal Pod Autoscalers (HPAs). - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_scale_target_ref|`json`| -|spec_min_replicas|`int64`| -|spec_max_replicas|`int64`| -|spec_target_cpu_utilization_percentage|`int64`| -|status_observed_generation|`int64`| -|status_last_scale_time|`timestamp[us, tz=UTC]`| -|status_current_replicas|`int64`| -|status_desired_replicas|`int64`| -|status_current_cpu_utilization_percentage|`int64`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_batch_cron_jobs.md b/plugins/source/k8s/docs/tables/k8s_batch_cron_jobs.md deleted file mode 100644 index d84a78f4bd167d..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_batch_cron_jobs.md +++ /dev/null @@ -1,36 +0,0 @@ -# Table: k8s_batch_cron_jobs - -This table shows data for Kubernetes (K8s) Batch Cron Jobs. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_schedule|`utf8`| -|spec_time_zone|`utf8`| -|spec_starting_deadline_seconds|`int64`| -|spec_concurrency_policy|`utf8`| -|spec_suspend|`bool`| -|spec_job_template|`json`| -|spec_successful_jobs_history_limit|`int64`| -|spec_failed_jobs_history_limit|`int64`| -|status_active|`json`| -|status_last_schedule_time|`timestamp[us, tz=UTC]`| -|status_last_successful_time|`timestamp[us, tz=UTC]`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_batch_jobs.md b/plugins/source/k8s/docs/tables/k8s_batch_jobs.md deleted file mode 100644 index 04fddccea1612c..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_batch_jobs.md +++ /dev/null @@ -1,50 +0,0 @@ -# Table: k8s_batch_jobs - -This table shows data for Kubernetes (K8s) Batch Jobs. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_parallelism|`int64`| -|spec_completions|`int64`| -|spec_active_deadline_seconds|`int64`| -|spec_pod_failure_policy|`json`| -|spec_backoff_limit|`int64`| -|spec_backoff_limit_per_index|`int64`| -|spec_max_failed_indexes|`int64`| -|spec_selector|`json`| -|spec_manual_selector|`bool`| -|spec_template|`json`| -|spec_ttl_seconds_after_finished|`int64`| -|spec_completion_mode|`utf8`| -|spec_suspend|`bool`| -|spec_pod_replacement_policy|`utf8`| -|status_conditions|`json`| -|status_start_time|`timestamp[us, tz=UTC]`| -|status_completion_time|`timestamp[us, tz=UTC]`| -|status_active|`int64`| -|status_succeeded|`int64`| -|status_failed|`int64`| -|status_terminating|`int64`| -|status_completed_indexes|`utf8`| -|status_failed_indexes|`utf8`| -|status_uncounted_terminated_pods|`json`| -|status_ready|`int64`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_certificates_signing_requests.md b/plugins/source/k8s/docs/tables/k8s_certificates_signing_requests.md deleted file mode 100644 index 7292e73c6768e3..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_certificates_signing_requests.md +++ /dev/null @@ -1,35 +0,0 @@ -# Table: k8s_certificates_signing_requests - -This table shows data for Kubernetes (K8s) Certificates Signing Requests. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_request|`binary`| -|spec_signer_name|`utf8`| -|spec_expiration_seconds|`int64`| -|spec_usages|`list`| -|spec_username|`utf8`| -|spec_uid|`utf8`| -|spec_groups|`list`| -|spec_extra|`json`| -|status_conditions|`json`| -|status_certificate|`binary`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_coordination_leases.md b/plugins/source/k8s/docs/tables/k8s_coordination_leases.md deleted file mode 100644 index 391d8084a9897a..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_coordination_leases.md +++ /dev/null @@ -1,30 +0,0 @@ -# Table: k8s_coordination_leases - -This table shows data for Kubernetes (K8s) Coordination Leases. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_holder_identity|`utf8`| -|spec_lease_duration_seconds|`int64`| -|spec_acquire_time|`json`| -|spec_renew_time|`json`| -|spec_lease_transitions|`int64`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_component_statuses.md b/plugins/source/k8s/docs/tables/k8s_core_component_statuses.md deleted file mode 100644 index b548e07ab57b1a..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_component_statuses.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_core_component_statuses - -This table shows data for Kubernetes (K8s) Core Component Statuses. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_config_maps.md b/plugins/source/k8s/docs/tables/k8s_core_config_maps.md deleted file mode 100644 index ed266ba203437b..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_config_maps.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: k8s_core_config_maps - -This table shows data for Kubernetes (K8s) Core Config Maps. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|immutable|`bool`| -|data|`json`| -|binary_data|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_endpoints.md b/plugins/source/k8s/docs/tables/k8s_core_endpoints.md deleted file mode 100644 index d5ccea3799d50d..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_endpoints.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_core_endpoints - -This table shows data for Kubernetes (K8s) Core Endpoints. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|subsets|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_events.md b/plugins/source/k8s/docs/tables/k8s_core_events.md deleted file mode 100644 index 3050253bc9ff3e..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_events.md +++ /dev/null @@ -1,39 +0,0 @@ -# Table: k8s_core_events - -This table shows data for Kubernetes (K8s) Core Events. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|involved_object|`json`| -|reason|`utf8`| -|message|`utf8`| -|source|`json`| -|first_timestamp|`timestamp[us, tz=UTC]`| -|last_timestamp|`timestamp[us, tz=UTC]`| -|count|`int64`| -|type|`utf8`| -|event_time|`json`| -|series|`json`| -|action|`utf8`| -|related|`json`| -|reporting_component|`utf8`| -|reporting_instance|`utf8`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_limit_ranges.md b/plugins/source/k8s/docs/tables/k8s_core_limit_ranges.md deleted file mode 100644 index 1f67cbc605b01e..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_limit_ranges.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_core_limit_ranges - -This table shows data for Kubernetes (K8s) Core Limit Ranges. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_limits|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_namespaces.md b/plugins/source/k8s/docs/tables/k8s_core_namespaces.md deleted file mode 100644 index 81c3bd63b248fd..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_namespaces.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: k8s_core_namespaces - -This table shows data for Kubernetes (K8s) Core Namespaces. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_finalizers|`list`| -|status_phase|`utf8`| -|status_conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_nodes.md b/plugins/source/k8s/docs/tables/k8s_core_nodes.md deleted file mode 100644 index ebc7fb89316f36..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_nodes.md +++ /dev/null @@ -1,42 +0,0 @@ -# Table: k8s_core_nodes - -This table shows data for Kubernetes (K8s) Core Nodes. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|spec_pod_cidr|`inet`| -|spec_pod_cidrs|`list`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_provider_id|`utf8`| -|spec_unschedulable|`bool`| -|spec_taints|`json`| -|spec_config_source|`json`| -|status_capacity|`json`| -|status_allocatable|`json`| -|status_phase|`utf8`| -|status_conditions|`json`| -|status_addresses|`json`| -|status_daemon_endpoints|`json`| -|status_node_info|`json`| -|status_images|`json`| -|status_volumes_in_use|`list`| -|status_volumes_attached|`json`| -|status_config|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_pod_templates.md b/plugins/source/k8s/docs/tables/k8s_core_pod_templates.md deleted file mode 100644 index 81c60fe682e5ec..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_pod_templates.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_core_pod_templates - -This table shows data for Kubernetes (K8s) Core Pod Templates. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|template|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_pods.md b/plugins/source/k8s/docs/tables/k8s_core_pods.md deleted file mode 100644 index 9391be2c0ccd8c..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_pods.md +++ /dev/null @@ -1,79 +0,0 @@ -# Table: k8s_core_pods - -This table shows data for Kubernetes (K8s) Core Pods. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|status_host_ip|`inet`| -|status_pod_ip|`inet`| -|status_pod_ips|`list`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_volumes|`json`| -|spec_init_containers|`json`| -|spec_containers|`json`| -|spec_ephemeral_containers|`json`| -|spec_restart_policy|`utf8`| -|spec_termination_grace_period_seconds|`int64`| -|spec_active_deadline_seconds|`int64`| -|spec_dns_policy|`utf8`| -|spec_node_selector|`json`| -|spec_service_account_name|`utf8`| -|spec_automount_service_account_token|`bool`| -|spec_node_name|`utf8`| -|spec_host_network|`bool`| -|spec_host_pid|`bool`| -|spec_host_ipc|`bool`| -|spec_share_process_namespace|`bool`| -|spec_security_context|`json`| -|spec_image_pull_secrets|`json`| -|spec_hostname|`utf8`| -|spec_subdomain|`utf8`| -|spec_affinity|`json`| -|spec_scheduler_name|`utf8`| -|spec_tolerations|`json`| -|spec_host_aliases|`json`| -|spec_priority_class_name|`utf8`| -|spec_priority|`int64`| -|spec_dns_config|`json`| -|spec_readiness_gates|`json`| -|spec_runtime_class_name|`utf8`| -|spec_enable_service_links|`bool`| -|spec_preemption_policy|`utf8`| -|spec_overhead|`json`| -|spec_topology_spread_constraints|`json`| -|spec_set_hostname_as_fqdn|`bool`| -|spec_os|`json`| -|spec_host_users|`bool`| -|spec_scheduling_gates|`json`| -|spec_resource_claims|`json`| -|status_phase|`utf8`| -|status_conditions|`json`| -|status_message|`utf8`| -|status_reason|`utf8`| -|status_nominated_node_name|`utf8`| -|status_host_ips|`json`| -|status_start_time|`timestamp[us, tz=UTC]`| -|status_init_container_statuses|`json`| -|status_container_statuses|`json`| -|status_qos_class|`utf8`| -|status_ephemeral_container_statuses|`json`| -|status_resize|`utf8`| -|status_resource_claim_statuses|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_pvcs.md b/plugins/source/k8s/docs/tables/k8s_core_pvcs.md deleted file mode 100644 index 14989679e6e5ce..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_pvcs.md +++ /dev/null @@ -1,42 +0,0 @@ -# Table: k8s_core_pvcs - -This table shows data for Kubernetes (K8s) Core Persistent Volume Claims (PVCs). - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_access_modes|`list`| -|spec_selector|`json`| -|spec_resources|`json`| -|spec_volume_name|`utf8`| -|spec_storage_class_name|`utf8`| -|spec_volume_mode|`utf8`| -|spec_data_source|`json`| -|spec_data_source_ref|`json`| -|spec_volume_attributes_class_name|`utf8`| -|status_phase|`utf8`| -|status_access_modes|`list`| -|status_capacity|`json`| -|status_conditions|`json`| -|status_allocated_resources|`json`| -|status_allocated_resource_statuses|`json`| -|status_current_volume_attributes_class_name|`utf8`| -|status_modify_volume_status|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_pvs.md b/plugins/source/k8s/docs/tables/k8s_core_pvs.md deleted file mode 100644 index 44b0edeb6ea0a9..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_pvs.md +++ /dev/null @@ -1,39 +0,0 @@ -# Table: k8s_core_pvs - -This table shows data for Kubernetes (K8s) Core Persistent Volumes (PVs). - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_capacity|`json`| -|spec_persistent_volume_source|`json`| -|spec_access_modes|`list`| -|spec_claim_ref|`json`| -|spec_persistent_volume_reclaim_policy|`utf8`| -|spec_storage_class_name|`utf8`| -|spec_mount_options|`list`| -|spec_volume_mode|`utf8`| -|spec_node_affinity|`json`| -|spec_volume_attributes_class_name|`utf8`| -|status_phase|`utf8`| -|status_message|`utf8`| -|status_reason|`utf8`| -|status_last_phase_transition_time|`timestamp[us, tz=UTC]`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_replication_controllers.md b/plugins/source/k8s/docs/tables/k8s_core_replication_controllers.md deleted file mode 100644 index ba7ad355b54c14..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_replication_controllers.md +++ /dev/null @@ -1,35 +0,0 @@ -# Table: k8s_core_replication_controllers - -This table shows data for Kubernetes (K8s) Core Replication Controllers. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_replicas|`int64`| -|spec_min_ready_seconds|`int64`| -|spec_selector|`json`| -|spec_template|`json`| -|status_replicas|`int64`| -|status_fully_labeled_replicas|`int64`| -|status_ready_replicas|`int64`| -|status_available_replicas|`int64`| -|status_observed_generation|`int64`| -|status_conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_resource_quotas.md b/plugins/source/k8s/docs/tables/k8s_core_resource_quotas.md deleted file mode 100644 index 2a7f6fb87df7ae..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_resource_quotas.md +++ /dev/null @@ -1,30 +0,0 @@ -# Table: k8s_core_resource_quotas - -This table shows data for Kubernetes (K8s) Core Resource Quotas. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_hard|`json`| -|spec_scopes|`list`| -|spec_scope_selector|`json`| -|status_hard|`json`| -|status_used|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_secrets.md b/plugins/source/k8s/docs/tables/k8s_core_secrets.md deleted file mode 100644 index dd55c72f91face..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_secrets.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: k8s_core_secrets - -This table shows data for Kubernetes (K8s) Core Secrets. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|immutable|`bool`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_service_accounts.md b/plugins/source/k8s/docs/tables/k8s_core_service_accounts.md deleted file mode 100644 index bdeb2a2e013364..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_service_accounts.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: k8s_core_service_accounts - -This table shows data for Kubernetes (K8s) Core Service Accounts. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|secrets|`json`| -|image_pull_secrets|`json`| -|automount_service_account_token|`bool`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_core_services.md b/plugins/source/k8s/docs/tables/k8s_core_services.md deleted file mode 100644 index 87852181f66c6d..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_core_services.md +++ /dev/null @@ -1,46 +0,0 @@ -# Table: k8s_core_services - -This table shows data for Kubernetes (K8s) Core Services. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|spec_cluster_ip|`inet`| -|spec_cluster_ips|`list`| -|spec_external_ips|`list`| -|spec_load_balancer_ip|`inet`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_ports|`json`| -|spec_selector|`json`| -|spec_type|`utf8`| -|spec_session_affinity|`utf8`| -|spec_load_balancer_source_ranges|`list`| -|spec_external_name|`utf8`| -|spec_external_traffic_policy|`utf8`| -|spec_health_check_node_port|`int64`| -|spec_publish_not_ready_addresses|`bool`| -|spec_session_affinity_config|`json`| -|spec_ip_families|`list`| -|spec_ip_family_policy|`utf8`| -|spec_allocate_load_balancer_node_ports|`bool`| -|spec_load_balancer_class|`utf8`| -|spec_internal_traffic_policy|`utf8`| -|status_load_balancer|`json`| -|status_conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_crds.md b/plugins/source/k8s/docs/tables/k8s_crds.md deleted file mode 100644 index 61aa729a3f5b33..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_crds.md +++ /dev/null @@ -1,34 +0,0 @@ -# Table: k8s_crds - -This table shows data for Kubernetes (K8s) Custom Resource Definitions (CRDs). - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_group|`utf8`| -|spec_names|`json`| -|spec_scope|`utf8`| -|spec_versions|`json`| -|spec_conversion|`json`| -|spec_preserve_unknown_fields|`bool`| -|status_conditions|`json`| -|status_accepted_names|`json`| -|status_stored_versions|`list`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_discovery_endpoint_slices.md b/plugins/source/k8s/docs/tables/k8s_discovery_endpoint_slices.md deleted file mode 100644 index 73c272846de597..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_discovery_endpoint_slices.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: k8s_discovery_endpoint_slices - -This table shows data for Kubernetes (K8s) Discovery Endpoint Slices. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|address_type|`utf8`| -|endpoints|`json`| -|ports|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_networking_ingress_classes.md b/plugins/source/k8s/docs/tables/k8s_networking_ingress_classes.md deleted file mode 100644 index da2b3ba4c4586f..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_networking_ingress_classes.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: k8s_networking_ingress_classes - -This table shows data for Kubernetes (K8s) Networking Ingress Classes. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_controller|`utf8`| -|spec_parameters|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_networking_ingresses.md b/plugins/source/k8s/docs/tables/k8s_networking_ingresses.md deleted file mode 100644 index 61b75f818e969a..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_networking_ingresses.md +++ /dev/null @@ -1,30 +0,0 @@ -# Table: k8s_networking_ingresses - -This table shows data for Kubernetes (K8s) Networking Ingresses. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_ingress_class_name|`utf8`| -|spec_default_backend|`json`| -|spec_tls|`json`| -|spec_rules|`json`| -|status_load_balancer|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_networking_network_policies.md b/plugins/source/k8s/docs/tables/k8s_networking_network_policies.md deleted file mode 100644 index 91b254d1dbe850..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_networking_network_policies.md +++ /dev/null @@ -1,29 +0,0 @@ -# Table: k8s_networking_network_policies - -This table shows data for Kubernetes (K8s) Networking Network Policies. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_pod_selector|`json`| -|spec_ingress|`json`| -|spec_egress|`json`| -|spec_policy_types|`list`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_nodes_runtime_classes.md b/plugins/source/k8s/docs/tables/k8s_nodes_runtime_classes.md deleted file mode 100644 index bc3de6ce3ccc6c..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_nodes_runtime_classes.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: k8s_nodes_runtime_classes - -This table shows data for Kubernetes (K8s) Nodes Runtime Classes. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|handler|`utf8`| -|overhead|`json`| -|scheduling|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_policy_pod_disruption_budgets.md b/plugins/source/k8s/docs/tables/k8s_policy_pod_disruption_budgets.md deleted file mode 100644 index 6a1c4d464b0a57..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_policy_pod_disruption_budgets.md +++ /dev/null @@ -1,36 +0,0 @@ -# Table: k8s_policy_pod_disruption_budgets - -This table shows data for Kubernetes (K8s) Policy Pod Disruption Budgets. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_min_available|`json`| -|spec_selector|`json`| -|spec_max_unavailable|`json`| -|spec_unhealthy_pod_eviction_policy|`utf8`| -|status_observed_generation|`int64`| -|status_disrupted_pods|`json`| -|status_disruptions_allowed|`int64`| -|status_current_healthy|`int64`| -|status_desired_healthy|`int64`| -|status_expected_pods|`int64`| -|status_conditions|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_rbac_cluster_role_bindings.md b/plugins/source/k8s/docs/tables/k8s_rbac_cluster_role_bindings.md deleted file mode 100644 index 26c802595b1aba..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_rbac_cluster_role_bindings.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: k8s_rbac_cluster_role_bindings - -This table shows data for Kubernetes (K8s) Role-Based Access Control (RBAC) Cluster Role Bindings. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|subjects|`json`| -|role_ref|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_rbac_cluster_roles.md b/plugins/source/k8s/docs/tables/k8s_rbac_cluster_roles.md deleted file mode 100644 index 77dd87c712e8cb..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_rbac_cluster_roles.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: k8s_rbac_cluster_roles - -This table shows data for Kubernetes (K8s) Role-Based Access Control (RBAC) Cluster Roles. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|rules|`json`| -|aggregation_rule|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_rbac_role_bindings.md b/plugins/source/k8s/docs/tables/k8s_rbac_role_bindings.md deleted file mode 100644 index 80718680b9654c..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_rbac_role_bindings.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: k8s_rbac_role_bindings - -This table shows data for Kubernetes (K8s) Role-Based Access Control (RBAC) Role Bindings. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|subjects|`json`| -|role_ref|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_rbac_roles.md b/plugins/source/k8s/docs/tables/k8s_rbac_roles.md deleted file mode 100644 index 512454db6101bb..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_rbac_roles.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_rbac_roles - -This table shows data for Kubernetes (K8s) Role-Based Access Control (RBAC) Roles. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|rules|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_storage_csi_drivers.md b/plugins/source/k8s/docs/tables/k8s_storage_csi_drivers.md deleted file mode 100644 index 0e3315919d28e3..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_storage_csi_drivers.md +++ /dev/null @@ -1,33 +0,0 @@ -# Table: k8s_storage_csi_drivers - -This table shows data for Kubernetes (K8s) Storage Container Storage Interface (CSI) Drivers. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_attach_required|`bool`| -|spec_pod_info_on_mount|`bool`| -|spec_volume_lifecycle_modes|`list`| -|spec_storage_capacity|`bool`| -|spec_fs_group_policy|`utf8`| -|spec_token_requests|`json`| -|spec_requires_republish|`bool`| -|spec_se_linux_mount|`bool`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_storage_csi_nodes.md b/plugins/source/k8s/docs/tables/k8s_storage_csi_nodes.md deleted file mode 100644 index 805dff8aadb1c4..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_storage_csi_nodes.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: k8s_storage_csi_nodes - -This table shows data for Kubernetes (K8s) Storage Container Storage Interface (CSI) Nodes. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_drivers|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_storage_csi_storage_capacities.md b/plugins/source/k8s/docs/tables/k8s_storage_csi_storage_capacities.md deleted file mode 100644 index 8227417541385e..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_storage_csi_storage_capacities.md +++ /dev/null @@ -1,29 +0,0 @@ -# Table: k8s_storage_csi_storage_capacities - -This table shows data for Kubernetes (K8s) Storage Container Storage Interface (CSI) Storage Capacities. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|node_topology|`json`| -|storage_class_name|`utf8`| -|capacity|`json`| -|maximum_volume_size|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_storage_storage_classes.md b/plugins/source/k8s/docs/tables/k8s_storage_storage_classes.md deleted file mode 100644 index 7355814e4d1245..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_storage_storage_classes.md +++ /dev/null @@ -1,32 +0,0 @@ -# Table: k8s_storage_storage_classes - -This table shows data for Kubernetes (K8s) Storage Storage Classes. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|provisioner|`utf8`| -|parameters|`json`| -|reclaim_policy|`utf8`| -|mount_options|`list`| -|allow_volume_expansion|`bool`| -|volume_binding_mode|`utf8`| -|allowed_topologies|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/docs/tables/k8s_storage_volume_attachments.md b/plugins/source/k8s/docs/tables/k8s_storage_volume_attachments.md deleted file mode 100644 index d1093843961ab4..00000000000000 --- a/plugins/source/k8s/docs/tables/k8s_storage_volume_attachments.md +++ /dev/null @@ -1,32 +0,0 @@ -# Table: k8s_storage_volume_attachments - -This table shows data for Kubernetes (K8s) Storage Volume Attachments. - -The primary key for this table is **uid**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|context|`utf8`| -|kind|`utf8`| -|api_version|`utf8`| -|name|`utf8`| -|namespace|`utf8`| -|uid (PK)|`utf8`| -|resource_version|`utf8`| -|generation|`int64`| -|deletion_grace_period_seconds|`int64`| -|labels|`json`| -|annotations|`json`| -|owner_references|`json`| -|finalizers|`list`| -|spec_attacher|`utf8`| -|spec_source|`json`| -|spec_node_name|`utf8`| -|status_attached|`bool`| -|status_attachment_metadata|`json`| -|status_attach_error|`json`| -|status_detach_error|`json`| \ No newline at end of file diff --git a/plugins/source/k8s/go.mod b/plugins/source/k8s/go.mod deleted file mode 100644 index 69fb1f7c181711..00000000000000 --- a/plugins/source/k8s/go.mod +++ /dev/null @@ -1,122 +0,0 @@ -module github.com/cloudquery/cloudquery/plugins/source/k8s - -go 1.22.4 - -require ( - github.com/apache/arrow/go/v17 v17.0.0 - github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 - github.com/golang/mock v1.6.0 - github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 - github.com/rs/zerolog v1.33.0 - github.com/thoas/go-funk v0.9.3 - golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 - k8s.io/api v0.29.1 - k8s.io/apiextensions-apiserver v0.29.1 - k8s.io/apimachinery v0.29.1 - k8s.io/client-go v0.29.1 -) - -require ( - github.com/adrg/xdg v0.4.0 // indirect - github.com/apache/arrow/go/v13 v13.0.0 // indirect - github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect - github.com/aws/aws-sdk-go-v2 v1.30.3 // indirect - github.com/aws/aws-sdk-go-v2/config v1.27.27 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect - github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect - github.com/aws/aws-sdk-go-v2/service/marketplacemetering v1.23.3 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect - github.com/aws/smithy-go v1.20.3 // indirect - github.com/bahlo/generic-list-go v0.2.0 // indirect - github.com/buger/jsonparser v1.1.1 // indirect - github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect - github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/emicklei/go-restful/v3 v3.11.2 // indirect - github.com/ghodss/yaml v1.0.0 // indirect - github.com/go-logr/logr v1.4.2 // indirect - github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-openapi/jsonpointer v0.20.2 // indirect - github.com/go-openapi/jsonreference v0.20.4 // indirect - github.com/go-openapi/swag v0.22.8 // indirect - github.com/goccy/go-json v0.10.3 // indirect - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/protobuf v1.5.4 // indirect - github.com/google/flatbuffers v24.3.25+incompatible // indirect - github.com/google/gofuzz v1.2.0 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect - github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-retryablehttp v0.7.7 // indirect - github.com/imdario/mergo v0.3.16 // indirect - github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/invopop/jsonschema v0.12.0 // indirect - github.com/josharian/intern v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.17.9 // indirect - github.com/klauspost/cpuid/v2 v2.2.8 // indirect - github.com/mailru/easyjson v0.7.7 // indirect - github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.20 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect - github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/oapi-codegen/runtime v1.1.1 // indirect - github.com/pierrec/lz4/v4 v4.1.21 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 // indirect - github.com/spf13/cobra v1.8.1 // indirect - github.com/spf13/pflag v1.0.5 // indirect - github.com/stretchr/testify v1.9.0 // indirect - github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect - github.com/zeebo/xxh3 v1.0.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.4.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.28.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 // indirect - go.opentelemetry.io/otel/log v0.4.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/sdk v1.28.0 // indirect - go.opentelemetry.io/otel/sdk/log v0.4.0 // indirect - go.opentelemetry.io/otel/sdk/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect - go.opentelemetry.io/proto/otlp v1.3.1 // indirect - golang.org/x/mod v0.19.0 // indirect - golang.org/x/net v0.27.0 // indirect - golang.org/x/oauth2 v0.20.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/term v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.23.0 // indirect - golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect - google.golang.org/grpc v1.65.0 // indirect - google.golang.org/protobuf v1.34.2 // indirect - gopkg.in/inf.v0 v0.9.1 // indirect - gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect - k8s.io/klog/v2 v2.120.1 // indirect - k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 // indirect - k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect - sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect - sigs.k8s.io/yaml v1.4.0 // indirect -) - -// github.com/cloudquery/jsonschema @ cqmain -replace github.com/invopop/jsonschema => github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 diff --git a/plugins/source/k8s/go.sum b/plugins/source/k8s/go.sum deleted file mode 100644 index 5432fc89f72f7f..00000000000000 --- a/plugins/source/k8s/go.sum +++ /dev/null @@ -1,320 +0,0 @@ -github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= -github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls= -github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E= -github.com/apache/arrow/go/v13 v13.0.0 h1:kELrvDQuKZo8csdWYqBQfyi431x6Zs/YJTEgUuSVcWk= -github.com/apache/arrow/go/v13 v13.0.0/go.mod h1:W69eByFNO0ZR30q1/7Sr9d83zcVZmF2MiP3fFYAWJOc= -github.com/apache/arrow/go/v17 v17.0.0 h1:RRR2bdqKcdbss9Gxy2NS/hK8i4LDMh23L6BbkN5+F54= -github.com/apache/arrow/go/v17 v17.0.0/go.mod h1:jR7QHkODl15PfYyjM2nU+yTLScZ/qfj7OSUZmJ8putc= -github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= -github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= -github.com/aws/aws-sdk-go-v2 v1.30.3 h1:jUeBtG0Ih+ZIFH0F4UkmL9w3cSpaMv9tYYDbzILP8dY= -github.com/aws/aws-sdk-go-v2 v1.30.3/go.mod h1:nIQjQVp5sfpQcTc9mPSr1B0PaWK5ByX9MOoDadSN4lc= -github.com/aws/aws-sdk-go-v2/config v1.27.27 h1:HdqgGt1OAP0HkEDDShEl0oSYa9ZZBSOmKpdpsDMdO90= -github.com/aws/aws-sdk-go-v2/config v1.27.27/go.mod h1:MVYamCg76dFNINkZFu4n4RjDixhVr51HLj4ErWzrVwg= -github.com/aws/aws-sdk-go-v2/credentials v1.17.27 h1:2raNba6gr2IfA0eqqiP2XiQ0UVOpGPgDSi0I9iAP+UI= -github.com/aws/aws-sdk-go-v2/credentials v1.17.27/go.mod h1:gniiwbGahQByxan6YjQUMcW4Aov6bLC3m+evgcoN4r4= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 h1:KreluoV8FZDEtI6Co2xuNk/UqI9iwMrOx/87PBNIKqw= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11/go.mod h1:SeSUYBLsMYFoRvHE0Tjvn7kbxaUhl75CJi1sbfhMxkU= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 h1:SoNJ4RlFEQEbtDcCEt+QG56MY4fm4W8rYirAmq+/DdU= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15/go.mod h1:U9ke74k1n2bf+RIgoX1SXFed1HLs51OgUSs+Ph0KJP8= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 h1:C6WHdGnTDIYETAm5iErQUiVNsclNx9qbJVPIt03B6bI= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15/go.mod h1:ZQLZqhcu+JhSrA9/NXRm8SkDvsycE+JkV3WGY41e+IM= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= -github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 h1:dT3MqvGhSoaIhRseqw2I0yH81l7wiR2vjs57O51EAm8= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3/go.mod h1:GlAeCkHwugxdHaueRr4nhPuY+WW+gR8UjlcqzPr1SPI= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 h1:HGErhhrxZlQ044RiM+WdoZxp0p+EGM62y3L6pwA4olE= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17/go.mod h1:RkZEx4l0EHYDJpWppMJ3nD9wZJAa8/0lq9aVC+r2UII= -github.com/aws/aws-sdk-go-v2/service/marketplacemetering v1.23.3 h1:ZkaFS2PmZFk710zqw7Yki2douIA6fL5JVvy7rP4q9qg= -github.com/aws/aws-sdk-go-v2/service/marketplacemetering v1.23.3/go.mod h1:ZK5KBD+u8g1Frfqe1atGaH19dSnY9SbHuSUimYv1cy0= -github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 h1:BXx0ZIxvrJdSgSvKTZ+yRBeSqqgPM89VPlulEcl37tM= -github.com/aws/aws-sdk-go-v2/service/sso v1.22.4/go.mod h1:ooyCOXjvJEsUw7x+ZDHeISPMhtwI3ZCB7ggFMcFfWLU= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 h1:yiwVzJW2ZxZTurVbYWA7QOrAaCYQR72t0wrSBfoesUE= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4/go.mod h1:0oxfLkpz3rQ/CHlx5hB7H69YUpFiI1tql6Q6Ne+1bCw= -github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 h1:ZsDKRLXGWHk8WdtyYMoGNO7bTudrvuKpDKgMVRlepGE= -github.com/aws/aws-sdk-go-v2/service/sts v1.30.3/go.mod h1:zwySh8fpFyXp9yOr/KVzxOl8SRqgf/IDw5aUt9UKFcQ= -github.com/aws/smithy-go v1.20.3 h1:ryHwveWzPV5BIof6fyDvor6V3iUL7nTfiTKXHiW05nE= -github.com/aws/smithy-go v1.20.3/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= -github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= -github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= -github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= -github.com/bradleyjkemp/cupaloy/v2 v2.8.0 h1:any4BmKE+jGIaMpnU8YgH/I2LPiLBufr6oMMlVBbn9M= -github.com/bradleyjkemp/cupaloy/v2 v2.8.0/go.mod h1:bm7JXdkRd4BHJk9HpwqAI8BoAY1lps46Enkdqw6aRX0= -github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs= -github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= -github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= -github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= -github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= -github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= -github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= -github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= -github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= -github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dlclark/regexp2 v1.11.0 h1:G/nrcoOa7ZXlpoa/91N3X7mM3r8eIlMBBJZvsz/mxKI= -github.com/dlclark/regexp2 v1.11.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8= -github.com/emicklei/go-restful/v3 v3.11.2 h1:1onLa9DcsMYO9P+CXaL0dStDqQ2EHHXLiz+BtnqkLAU= -github.com/emicklei/go-restful/v3 v3.11.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= -github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= -github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= -github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-openapi/jsonpointer v0.20.2 h1:mQc3nmndL8ZBzStEo3JYF8wzmeWffDH4VbXz58sAx6Q= -github.com/go-openapi/jsonpointer v0.20.2/go.mod h1:bHen+N0u1KEO3YlmqOjTT9Adn1RfD91Ar825/PuiRVs= -github.com/go-openapi/jsonreference v0.20.4 h1:bKlDxQxQJgwpUSgOENiMPzCTBVuc7vTdXSSgNeAhojU= -github.com/go-openapi/jsonreference v0.20.4/go.mod h1:5pZJyJP2MnYCpoeoMAql78cCHauHj0V9Lhc506VOpw4= -github.com/go-openapi/swag v0.22.8 h1:/9RjDSQ0vbFR+NyjGMkFTsA1IA0fmhKSThmfGZjicbw= -github.com/go-openapi/swag v0.22.8/go.mod h1:6QT22icPLEqAM/z/TChgb4WAveCHF92+2gF0CNjHpPI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= -github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= -github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= -github.com/google/flatbuffers v24.3.25+incompatible h1:CX395cjN9Kke9mmalRoL3d81AtFUxJM+yDthflgJGkI= -github.com/google/flatbuffers v24.3.25+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= -github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 h1:0VpGH+cDhbDtdcweoyCVsF3fhN8kejK6rFe/2FFX2nU= -github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49/go.mod h1:BkkQ4L1KS1xMt2aWSPStnn55ChGC0DPOn2FQYj+f25M= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= -github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y= -github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 h1:pRhl55Yx1eC7BZ1N+BBWwnKaMyD8uC+34TLdndZMAKk= -github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0/go.mod h1:XKMd7iuf/RGPSMJ/U4HP0zS2Z9Fh8Ps9a+6X26m/tmI= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= -github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= -github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= -github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISHxT2Q8+VepXU= -github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= -github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= -github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= -github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= -github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= -github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= -github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= -github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA= -github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= -github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM= -github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= -github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= -github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= -github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= -github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= -github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= -github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= -github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= -github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg= -github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= -github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ= -github.com/pierrec/lz4/v4 v4.1.21/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= -github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= -github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/santhosh-tekuri/jsonschema/v6 v6.0.1 h1:PKK9DyHxif4LZo+uQSgXNqs0jj5+xZwwfKHgph2lxBw= -github.com/santhosh-tekuri/jsonschema/v6 v6.0.1/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= -github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= -github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= -github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= -github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/thoas/go-funk v0.9.3 h1:7+nAEx3kn5ZJcnDm2Bh23N2yOtweO14bi//dvRtgLpw= -github.com/thoas/go-funk v0.9.3/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= -github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc= -github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= -github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= -github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0= -github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.4.0 h1:zBPZAISA9NOc5cE8zydqDiS0itvg/P/0Hn9m72a5gvM= -go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.4.0/go.mod h1:gcj2fFjEsqpV3fXuzAA+0Ze1p2/4MJ4T7d77AmkvueQ= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.28.0 h1:aLmmtjRke7LPDQ3lvpFz+kNEH43faFhzW7v8BFIEydg= -go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.28.0/go.mod h1:TC1pyCt6G9Sjb4bQpShH+P5R53pO6ZuGnHuuln9xMeE= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 h1:3Q/xZUyC1BBkualc9ROb4G8qkH90LXEIICcs5zv1OYY= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0/go.mod h1:s75jGIWA9OfCMzF0xr+ZgfrB5FEbbV7UuYo32ahUiFI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 h1:j9+03ymgYhPKmeXGk5Zu+cIZOlVzd9Zv7QIiyItjFBU= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0/go.mod h1:Y5+XiUG4Emn1hTfciPzGPJaSI+RpDts6BnCIir0SLqk= -go.opentelemetry.io/otel/log v0.4.0 h1:/vZ+3Utqh18e8TPjuc3ecg284078KWrR8BRz+PQAj3o= -go.opentelemetry.io/otel/log v0.4.0/go.mod h1:DhGnQvky7pHy82MIRV43iXh3FlKN8UUKftn0KbLOq6I= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= -go.opentelemetry.io/otel/sdk v1.28.0 h1:b9d7hIry8yZsgtbmM0DKyPWMMUMlK9NEKuIG4aBqWyE= -go.opentelemetry.io/otel/sdk v1.28.0/go.mod h1:oYj7ClPUA7Iw3m+r7GeEjz0qckQRJK2B8zjcZEfu7Pg= -go.opentelemetry.io/otel/sdk/log v0.4.0 h1:1mMI22L82zLqf6KtkjrRy5BbagOTWdJsqMY/HSqILAA= -go.opentelemetry.io/otel/sdk/log v0.4.0/go.mod h1:AYJ9FVF0hNOgAVzUG/ybg/QttnXhUePWAupmCqtdESo= -go.opentelemetry.io/otel/sdk/metric v1.28.0 h1:OkuaKgKrgAbYrrY0t92c+cC+2F6hsFNnCQArXCKlg08= -go.opentelemetry.io/otel/sdk/metric v1.28.0/go.mod h1:cWPjykihLAPvXKi4iZc1dpER3Jdq2Z0YLse3moQUCpg= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= -go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8= -golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8= -golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= -golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= -golang.org/x/oauth2 v0.20.0 h1:4mQdhULixXKP1rwYBW0vAijoXnkTG0BLCDRzfe1idMo= -golang.org/x/oauth2 v0.20.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= -golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= -golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg= -golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= -golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= -gonum.org/v1/gonum v0.15.0 h1:2lYxjRbTYyxkJxlhC+LvJIx3SsANPdRybu1tGj9/OrQ= -gonum.org/v1/gonum v0.15.0/go.mod h1:xzZVBJBtS+Mz4q0Yl2LJTk+OxOg4jiXZ7qBoM0uISGo= -google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094 h1:0+ozOGcrp+Y8Aq8TLNN2Aliibms5LEzsq99ZZmAGYm0= -google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094/go.mod h1:fJ/e3If/Q67Mj99hin0hMhiNyCRmt6BQ2aWIJshUSJw= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 h1:BwIjyKYGsK9dMCBOorzRri8MQwmi7mT9rGHsCEinZkA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY= -google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= -google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= -gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= -gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -k8s.io/api v0.29.1 h1:DAjwWX/9YT7NQD4INu49ROJuZAAAP/Ijki48GUPzxqw= -k8s.io/api v0.29.1/go.mod h1:7Kl10vBRUXhnQQI8YR/R327zXC8eJ7887/+Ybta+RoQ= -k8s.io/apiextensions-apiserver v0.29.1 h1:S9xOtyk9M3Sk1tIpQMu9wXHm5O2MX6Y1kIpPMimZBZw= -k8s.io/apiextensions-apiserver v0.29.1/go.mod h1:zZECpujY5yTW58co8V2EQR4BD6A9pktVgHhvc0uLfeU= -k8s.io/apimachinery v0.29.1 h1:KY4/E6km/wLBguvCZv8cKTeOwwOBqFNjwJIdMkMbbRc= -k8s.io/apimachinery v0.29.1/go.mod h1:6HVkd1FwxIagpYrHSwJlQqZI3G9LfYWRPAkUvLnXTKU= -k8s.io/client-go v0.29.1 h1:19B/+2NGEwnFLzt0uB5kNJnfTsbV8w6TgQRz9l7ti7A= -k8s.io/client-go v0.29.1/go.mod h1:TDG/psL9hdet0TI9mGyHJSgRkW3H9JZk2dNEUS7bRks= -k8s.io/klog/v2 v2.120.1 h1:QXU6cPEOIslTGvZaXvFWiP9VKyeet3sawzTOvdXb4Vw= -k8s.io/klog/v2 v2.120.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 h1:BZqlfIlq5YbRMFko6/PM7FjZpUb45WallggurYhKGag= -k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340/go.mod h1:yD4MZYeKMBwQKVht279WycxKyM84kkAx2DPrTXaeb98= -k8s.io/utils v0.0.0-20240102154912-e7106e64919e h1:eQ/4ljkx21sObifjzXwlPKpdGLrCfRziVtos3ofG/sQ= -k8s.io/utils v0.0.0-20240102154912-e7106e64919e/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= -sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4= -sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08= -sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= -sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= diff --git a/plugins/source/k8s/main.go b/plugins/source/k8s/main.go deleted file mode 100644 index 7567d5d45f599e..00000000000000 --- a/plugins/source/k8s/main.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "context" - "log" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/plugin" - "github.com/cloudquery/plugin-sdk/v4/serve" -) - -func main() { - if err := serve.Plugin(plugin.Plugin()).Serve(context.Background()); err != nil { - log.Fatal(err) - } -} diff --git a/plugins/source/k8s/mockgen.go b/plugins/source/k8s/mockgen.go deleted file mode 100644 index 390e89a7ce1774..00000000000000 --- a/plugins/source/k8s/mockgen.go +++ /dev/null @@ -1,114 +0,0 @@ -package main - -//go:generate mockgen --destination=mocks/admissionregistration/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" AdmissionregistrationV1Interface -//go:generate mockgen --destination=mocks/admissionregistration/v1/mutating_webhook_configuration.go --package=v1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" MutatingWebhookConfigurationsGetter,MutatingWebhookConfigurationInterface -//go:generate mockgen --destination=mocks/admissionregistration/v1/validating_webhook_configuration.go --package=v1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" ValidatingWebhookConfigurationsGetter,ValidatingWebhookConfigurationInterface - -//go:generate mockgen --destination=mocks/admissionregistration/v1beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" AdmissionregistrationV1beta1Interface - -//go:generate mockgen --destination=mocks/apiserverinternal/v1alpha1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1" InternalV1alpha1Interface - -//go:generate mockgen --destination=mocks/apps/v1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1" AppsV1Interface -//go:generate mockgen --destination=mocks/apps/v1/daemonset.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1" DaemonSetsGetter,DaemonSetInterface -//go:generate mockgen --destination=mocks/apps/v1/deployment.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1" DeploymentsGetter,DeploymentInterface -//go:generate mockgen --destination=mocks/apps/v1/replicaset.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1" ReplicaSetsGetter,ReplicaSetInterface -//go:generate mockgen --destination=mocks/apps/v1/statefulset.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1" StatefulSetsGetter,StatefulSetInterface - -//go:generate mockgen --destination=mocks/apps/v1beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1beta1" AppsV1beta1Interface - -//go:generate mockgen --destination=mocks/apps/v1beta2/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/apps/v1beta2" AppsV1beta2Interface - -//go:generate mockgen --destination=mocks/authentication/v1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/authentication/v1" AuthenticationV1Interface - -//go:generate mockgen --destination=mocks/authentication/v1beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" AuthenticationV1beta1Interface - -//go:generate mockgen --destination=mocks/authorization/v1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/authorization/v1" AuthorizationV1Interface - -//go:generate mockgen --destination=mocks/authorization/v1beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/authorization/v1beta1" AuthorizationV1beta1Interface - -//go:generate mockgen --destination=mocks/autoscaling/v1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/autoscaling/v1" AutoscalingV1Interface -//go:generate mockgen --destination=mocks/autoscaling/v1/hpa.go --package=mocks "k8s.io/client-go/kubernetes/typed/autoscaling/v1" HorizontalPodAutoscalersGetter,HorizontalPodAutoscalerInterface - -//go:generate mockgen --destination=mocks/autoscaling/v2/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/autoscaling/v2" AutoscalingV2Interface - -//go:generate mockgen --destination=mocks/autoscaling/v2beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" AutoscalingV2beta1Interface - -//go:generate mockgen --destination=mocks/autoscaling/v2beta2/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2" AutoscalingV2beta2Interface - -//go:generate mockgen --destination=mocks/batch/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/batch/v1" BatchV1Interface -//go:generate mockgen --destination=mocks/batch/v1/cronjobs.go --package=v1 "k8s.io/client-go/kubernetes/typed/batch/v1" CronJobsGetter,CronJobInterface -//go:generate mockgen --destination=mocks/batch/v1/jobs.go --package=v1 "k8s.io/client-go/kubernetes/typed/batch/v1" JobsGetter,JobInterface - -//go:generate mockgen --destination=mocks/batch/v1beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/batch/v1beta1" BatchV1beta1Interface - -//go:generate mockgen --destination=mocks/certificates/v1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/certificates/v1" CertificatesV1Interface -//go:generate mockgen --destination=mocks/certificates/v1/csrs.go --package=mocks "k8s.io/client-go/kubernetes/typed/certificates/v1" CertificateSigningRequestsGetter,CertificateSigningRequestInterface - -//go:generate mockgen --destination=mocks/certificates/v1beta1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/certificates/v1beta1" CertificatesV1beta1Interface - -//go:generate mockgen --destination=mocks/coordination/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/coordination/v1" CoordinationV1Interface -//go:generate mockgen --destination=mocks/coordination/v1/lease.go --package=v1 "k8s.io/client-go/kubernetes/typed/coordination/v1" LeasesGetter,LeaseInterface - -//go:generate mockgen --destination=mocks/core/v1/client.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" CoreV1Interface -//go:generate mockgen --destination=mocks/core/v1/componentstatus.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" ComponentStatusesGetter,ComponentStatusInterface -//go:generate mockgen --destination=mocks/core/v1/configmaps.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" ConfigMapsGetter,ConfigMapInterface -//go:generate mockgen --destination=mocks/core/v1/endpoints.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" EndpointsGetter,EndpointsInterface -//go:generate mockgen --destination=mocks/core/v1/events.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" EventsGetter,EventInterface -//go:generate mockgen --destination=mocks/core/v1/limitrange.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" LimitRangesGetter,LimitRangeInterface -//go:generate mockgen --destination=mocks/core/v1/namespace.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" NamespacesGetter,NamespaceInterface -//go:generate mockgen --destination=mocks/core/v1/node.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" NodesGetter,NodeInterface -//go:generate mockgen --destination=mocks/core/v1/persistentvolume.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" PersistentVolumesGetter,PersistentVolumeInterface -//go:generate mockgen --destination=mocks/core/v1/persistentvolumeclaim.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" PersistentVolumeClaimsGetter,PersistentVolumeClaimInterface -//go:generate mockgen --destination=mocks/core/v1/pod.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" PodsGetter,PodInterface -//go:generate mockgen --destination=mocks/core/v1/podtemplate.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" PodTemplatesGetter,PodTemplateInterface -//go:generate mockgen --destination=mocks/core/v1/replicationcontroller.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" ReplicationControllersGetter,ReplicationControllerInterface -//go:generate mockgen --destination=mocks/core/v1/resourceauota.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" ResourceQuotasGetter,ResourceQuotaInterface -//go:generate mockgen --destination=mocks/core/v1/secret.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" SecretsGetter,SecretInterface -//go:generate mockgen --destination=mocks/core/v1/service.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" ServicesGetter,ServiceInterface -//go:generate mockgen --destination=mocks/core/v1/serviceaccount.go --package=mocks "k8s.io/client-go/kubernetes/typed/core/v1" ServiceAccountsGetter,ServiceAccountInterface - -//go:generate mockgen --destination=mocks/discovery/client.go --package=mocks "k8s.io/client-go/discovery" DiscoveryInterface - -//go:generate mockgen --destination=mocks/discovery/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/discovery/v1" DiscoveryV1Interface -//go:generate mockgen --destination=mocks/discovery/v1/endpointslice.go --package=v1 "k8s.io/client-go/kubernetes/typed/discovery/v1" EndpointSlicesGetter,EndpointSliceInterface -//go:generate mockgen --destination=mocks/discovery/v1/event.go --package=v1 "k8s.io/client-go/kubernetes/typed/events/v1" EventsGetter,EventInterface,EventsV1Interface - -//go:generate mockgen --destination=mocks/discovery/v1beta1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/discovery/v1beta1" DiscoveryV1beta1Interface -//go:generate mockgen --destination=mocks/discovery/v1beta1/event.go --package=v1 "k8s.io/client-go/kubernetes/typed/events/v1beta1" EventsV1beta1Interface - -//go:generate mockgen --destination=mocks/extensions/v1beta1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" ExtensionsV1beta1Interface - -//go:generate mockgen --destination=mocks/flowcontrol/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1" FlowcontrolV1Interface - -//go:generate mockgen --destination=mocks/interface.go --package=mocks "k8s.io/client-go/kubernetes" Interface - -//go:generate mockgen --destination=mocks/networking/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/networking/v1" NetworkingV1Interface -//go:generate mockgen --destination=mocks/networking/v1/ingress.go --package=v1 "k8s.io/client-go/kubernetes/typed/networking/v1" IngressesGetter,IngressInterface -//go:generate mockgen --destination=mocks/networking/v1/ingressclass.go --package=v1 "k8s.io/client-go/kubernetes/typed/networking/v1" IngressClassesGetter,IngressClassInterface -//go:generate mockgen --destination=mocks/networking/v1/networkpolicy.go --package=v1 "k8s.io/client-go/kubernetes/typed/networking/v1" NetworkPoliciesGetter,NetworkPolicyInterface -//go:generate mockgen --destination=mocks/networking/v1alpha1/client.go --package=v1alpha1 "k8s.io/client-go/kubernetes/typed/networking/v1alpha1" NetworkingV1alpha1Interface -//go:generate mockgen --destination=mocks/networking/v1beta1/client.go --package=v1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1" NetworkingV1beta1Interface - -//go:generate mockgen --destination=mocks/node/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/node/v1" NodeV1Interface -//go:generate mockgen --destination=mocks/node/v1/runtime.go --package=v1 "k8s.io/client-go/kubernetes/typed/node/v1" RuntimeClassesGetter,RuntimeClassInterface -//go:generate mockgen --destination=mocks/node/v1alpha1/client.go --package=v1alpha1 "k8s.io/client-go/kubernetes/typed/node/v1alpha1" NodeV1alpha1Interface - -//go:generate mockgen --destination=mocks/rbac/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" RbacV1Interface -//go:generate mockgen --destination=mocks/rbac/v1/clusterrole.go --package=v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" ClusterRolesGetter,ClusterRoleInterface -//go:generate mockgen --destination=mocks/rbac/v1/clusterrolebinding.go --package=v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" ClusterRoleBindingsGetter,ClusterRoleBindingInterface -//go:generate mockgen --destination=mocks/rbac/v1/role.go --package=v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" RolesGetter,RoleInterface -//go:generate mockgen --destination=mocks/rbac/v1/rolebinding.go --package=v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" RoleBindingsGetter,RoleBindingInterface - -//go:generate mockgen --destination=mocks/storage/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/storage/v1" StorageV1Interface -//go:generate mockgen --destination=mocks/storage/v1/csidriver.go --package=v1 "k8s.io/client-go/kubernetes/typed/storage/v1" CSIDriversGetter,CSIDriverInterface -//go:generate mockgen --destination=mocks/storage/v1/csinode.go --package=v1 "k8s.io/client-go/kubernetes/typed/storage/v1" CSINodesGetter,CSINodeInterface -//go:generate mockgen --destination=mocks/storage/v1/csistoragecapacity.go --package=v1 "k8s.io/client-go/kubernetes/typed/storage/v1" CSIStorageCapacitiesGetter,CSIStorageCapacityInterface -//go:generate mockgen --destination=mocks/storage/v1/storageclass.go --package=v1 "k8s.io/client-go/kubernetes/typed/storage/v1" StorageClassesGetter,StorageClassInterface -//go:generate mockgen --destination=mocks/storage/v1/volumeattachment.go --package=v1 "k8s.io/client-go/kubernetes/typed/storage/v1" VolumeAttachmentsGetter,VolumeAttachmentInterface - -//go:generate mockgen --destination=mocks/policy/v1/client.go --package=v1 "k8s.io/client-go/kubernetes/typed/policy/v1" PolicyV1Interface -//go:generate mockgen --destination=mocks/policy/v1/poddisruptionbudgets.go --package=v1 "k8s.io/client-go/kubernetes/typed/policy/v1" PodDisruptionBudgetsGetter,PodDisruptionBudgetInterface - -//go:generate mockgen --destination=mocks/apiextensions/interface.go --package=apiextensions "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" Interface -//go:generate mockgen --destination=mocks/apiextensions/v1/apiextensions.go --package=v1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1" ApiextensionsV1Interface -//go:generate mockgen --destination=mocks/apiextensions/v1/custom_resource_definitions.go --package=v1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1" CustomResourceDefinitionInterface diff --git a/plugins/source/k8s/mocks/admissionregistration/v1/client.go b/plugins/source/k8s/mocks/admissionregistration/v1/client.go deleted file mode 100644 index 986f6b4d69196f..00000000000000 --- a/plugins/source/k8s/mocks/admissionregistration/v1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/admissionregistration/v1 (interfaces: AdmissionregistrationV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" - rest "k8s.io/client-go/rest" -) - -// MockAdmissionregistrationV1Interface is a mock of AdmissionregistrationV1Interface interface. -type MockAdmissionregistrationV1Interface struct { - ctrl *gomock.Controller - recorder *MockAdmissionregistrationV1InterfaceMockRecorder -} - -// MockAdmissionregistrationV1InterfaceMockRecorder is the mock recorder for MockAdmissionregistrationV1Interface. -type MockAdmissionregistrationV1InterfaceMockRecorder struct { - mock *MockAdmissionregistrationV1Interface -} - -// NewMockAdmissionregistrationV1Interface creates a new mock instance. -func NewMockAdmissionregistrationV1Interface(ctrl *gomock.Controller) *MockAdmissionregistrationV1Interface { - mock := &MockAdmissionregistrationV1Interface{ctrl: ctrl} - mock.recorder = &MockAdmissionregistrationV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAdmissionregistrationV1Interface) EXPECT() *MockAdmissionregistrationV1InterfaceMockRecorder { - return m.recorder -} - -// MutatingWebhookConfigurations mocks base method. -func (m *MockAdmissionregistrationV1Interface) MutatingWebhookConfigurations() v1.MutatingWebhookConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MutatingWebhookConfigurations") - ret0, _ := ret[0].(v1.MutatingWebhookConfigurationInterface) - return ret0 -} - -// MutatingWebhookConfigurations indicates an expected call of MutatingWebhookConfigurations. -func (mr *MockAdmissionregistrationV1InterfaceMockRecorder) MutatingWebhookConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MutatingWebhookConfigurations", reflect.TypeOf((*MockAdmissionregistrationV1Interface)(nil).MutatingWebhookConfigurations)) -} - -// RESTClient mocks base method. -func (m *MockAdmissionregistrationV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAdmissionregistrationV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAdmissionregistrationV1Interface)(nil).RESTClient)) -} - -// ValidatingWebhookConfigurations mocks base method. -func (m *MockAdmissionregistrationV1Interface) ValidatingWebhookConfigurations() v1.ValidatingWebhookConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatingWebhookConfigurations") - ret0, _ := ret[0].(v1.ValidatingWebhookConfigurationInterface) - return ret0 -} - -// ValidatingWebhookConfigurations indicates an expected call of ValidatingWebhookConfigurations. -func (mr *MockAdmissionregistrationV1InterfaceMockRecorder) ValidatingWebhookConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatingWebhookConfigurations", reflect.TypeOf((*MockAdmissionregistrationV1Interface)(nil).ValidatingWebhookConfigurations)) -} diff --git a/plugins/source/k8s/mocks/admissionregistration/v1/mutating_webhook_configuration.go b/plugins/source/k8s/mocks/admissionregistration/v1/mutating_webhook_configuration.go deleted file mode 100644 index 649b2d6da325b0..00000000000000 --- a/plugins/source/k8s/mocks/admissionregistration/v1/mutating_webhook_configuration.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/admissionregistration/v1 (interfaces: MutatingWebhookConfigurationsGetter,MutatingWebhookConfigurationInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/admissionregistration/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" - v12 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" -) - -// MockMutatingWebhookConfigurationsGetter is a mock of MutatingWebhookConfigurationsGetter interface. -type MockMutatingWebhookConfigurationsGetter struct { - ctrl *gomock.Controller - recorder *MockMutatingWebhookConfigurationsGetterMockRecorder -} - -// MockMutatingWebhookConfigurationsGetterMockRecorder is the mock recorder for MockMutatingWebhookConfigurationsGetter. -type MockMutatingWebhookConfigurationsGetterMockRecorder struct { - mock *MockMutatingWebhookConfigurationsGetter -} - -// NewMockMutatingWebhookConfigurationsGetter creates a new mock instance. -func NewMockMutatingWebhookConfigurationsGetter(ctrl *gomock.Controller) *MockMutatingWebhookConfigurationsGetter { - mock := &MockMutatingWebhookConfigurationsGetter{ctrl: ctrl} - mock.recorder = &MockMutatingWebhookConfigurationsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMutatingWebhookConfigurationsGetter) EXPECT() *MockMutatingWebhookConfigurationsGetterMockRecorder { - return m.recorder -} - -// MutatingWebhookConfigurations mocks base method. -func (m *MockMutatingWebhookConfigurationsGetter) MutatingWebhookConfigurations() v12.MutatingWebhookConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MutatingWebhookConfigurations") - ret0, _ := ret[0].(v12.MutatingWebhookConfigurationInterface) - return ret0 -} - -// MutatingWebhookConfigurations indicates an expected call of MutatingWebhookConfigurations. -func (mr *MockMutatingWebhookConfigurationsGetterMockRecorder) MutatingWebhookConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MutatingWebhookConfigurations", reflect.TypeOf((*MockMutatingWebhookConfigurationsGetter)(nil).MutatingWebhookConfigurations)) -} - -// MockMutatingWebhookConfigurationInterface is a mock of MutatingWebhookConfigurationInterface interface. -type MockMutatingWebhookConfigurationInterface struct { - ctrl *gomock.Controller - recorder *MockMutatingWebhookConfigurationInterfaceMockRecorder -} - -// MockMutatingWebhookConfigurationInterfaceMockRecorder is the mock recorder for MockMutatingWebhookConfigurationInterface. -type MockMutatingWebhookConfigurationInterfaceMockRecorder struct { - mock *MockMutatingWebhookConfigurationInterface -} - -// NewMockMutatingWebhookConfigurationInterface creates a new mock instance. -func NewMockMutatingWebhookConfigurationInterface(ctrl *gomock.Controller) *MockMutatingWebhookConfigurationInterface { - mock := &MockMutatingWebhookConfigurationInterface{ctrl: ctrl} - mock.recorder = &MockMutatingWebhookConfigurationInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockMutatingWebhookConfigurationInterface) EXPECT() *MockMutatingWebhookConfigurationInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Apply(arg0 context.Context, arg1 *v11.MutatingWebhookConfigurationApplyConfiguration, arg2 v10.ApplyOptions) (*v1.MutatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.MutatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Create(arg0 context.Context, arg1 *v1.MutatingWebhookConfiguration, arg2 v10.CreateOptions) (*v1.MutatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.MutatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.MutatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.MutatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.MutatingWebhookConfigurationList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.MutatingWebhookConfigurationList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.MutatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.MutatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Update(arg0 context.Context, arg1 *v1.MutatingWebhookConfiguration, arg2 v10.UpdateOptions) (*v1.MutatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.MutatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockMutatingWebhookConfigurationInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockMutatingWebhookConfigurationInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockMutatingWebhookConfigurationInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/admissionregistration/v1/validating_webhook_configuration.go b/plugins/source/k8s/mocks/admissionregistration/v1/validating_webhook_configuration.go deleted file mode 100644 index 600550c802c2c2..00000000000000 --- a/plugins/source/k8s/mocks/admissionregistration/v1/validating_webhook_configuration.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/admissionregistration/v1 (interfaces: ValidatingWebhookConfigurationsGetter,ValidatingWebhookConfigurationInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/admissionregistration/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" - v12 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" -) - -// MockValidatingWebhookConfigurationsGetter is a mock of ValidatingWebhookConfigurationsGetter interface. -type MockValidatingWebhookConfigurationsGetter struct { - ctrl *gomock.Controller - recorder *MockValidatingWebhookConfigurationsGetterMockRecorder -} - -// MockValidatingWebhookConfigurationsGetterMockRecorder is the mock recorder for MockValidatingWebhookConfigurationsGetter. -type MockValidatingWebhookConfigurationsGetterMockRecorder struct { - mock *MockValidatingWebhookConfigurationsGetter -} - -// NewMockValidatingWebhookConfigurationsGetter creates a new mock instance. -func NewMockValidatingWebhookConfigurationsGetter(ctrl *gomock.Controller) *MockValidatingWebhookConfigurationsGetter { - mock := &MockValidatingWebhookConfigurationsGetter{ctrl: ctrl} - mock.recorder = &MockValidatingWebhookConfigurationsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockValidatingWebhookConfigurationsGetter) EXPECT() *MockValidatingWebhookConfigurationsGetterMockRecorder { - return m.recorder -} - -// ValidatingWebhookConfigurations mocks base method. -func (m *MockValidatingWebhookConfigurationsGetter) ValidatingWebhookConfigurations() v12.ValidatingWebhookConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatingWebhookConfigurations") - ret0, _ := ret[0].(v12.ValidatingWebhookConfigurationInterface) - return ret0 -} - -// ValidatingWebhookConfigurations indicates an expected call of ValidatingWebhookConfigurations. -func (mr *MockValidatingWebhookConfigurationsGetterMockRecorder) ValidatingWebhookConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatingWebhookConfigurations", reflect.TypeOf((*MockValidatingWebhookConfigurationsGetter)(nil).ValidatingWebhookConfigurations)) -} - -// MockValidatingWebhookConfigurationInterface is a mock of ValidatingWebhookConfigurationInterface interface. -type MockValidatingWebhookConfigurationInterface struct { - ctrl *gomock.Controller - recorder *MockValidatingWebhookConfigurationInterfaceMockRecorder -} - -// MockValidatingWebhookConfigurationInterfaceMockRecorder is the mock recorder for MockValidatingWebhookConfigurationInterface. -type MockValidatingWebhookConfigurationInterfaceMockRecorder struct { - mock *MockValidatingWebhookConfigurationInterface -} - -// NewMockValidatingWebhookConfigurationInterface creates a new mock instance. -func NewMockValidatingWebhookConfigurationInterface(ctrl *gomock.Controller) *MockValidatingWebhookConfigurationInterface { - mock := &MockValidatingWebhookConfigurationInterface{ctrl: ctrl} - mock.recorder = &MockValidatingWebhookConfigurationInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockValidatingWebhookConfigurationInterface) EXPECT() *MockValidatingWebhookConfigurationInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Apply(arg0 context.Context, arg1 *v11.ValidatingWebhookConfigurationApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ValidatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ValidatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Create(arg0 context.Context, arg1 *v1.ValidatingWebhookConfiguration, arg2 v10.CreateOptions) (*v1.ValidatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ValidatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.ValidatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ValidatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ValidatingWebhookConfigurationList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ValidatingWebhookConfigurationList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.ValidatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ValidatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Update(arg0 context.Context, arg1 *v1.ValidatingWebhookConfiguration, arg2 v10.UpdateOptions) (*v1.ValidatingWebhookConfiguration, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ValidatingWebhookConfiguration) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockValidatingWebhookConfigurationInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockValidatingWebhookConfigurationInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockValidatingWebhookConfigurationInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/admissionregistration/v1beta1/client.go b/plugins/source/k8s/mocks/admissionregistration/v1beta1/client.go deleted file mode 100644 index a1909c3a874b35..00000000000000 --- a/plugins/source/k8s/mocks/admissionregistration/v1beta1/client.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1 (interfaces: AdmissionregistrationV1beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockAdmissionregistrationV1beta1Interface is a mock of AdmissionregistrationV1beta1Interface interface. -type MockAdmissionregistrationV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockAdmissionregistrationV1beta1InterfaceMockRecorder -} - -// MockAdmissionregistrationV1beta1InterfaceMockRecorder is the mock recorder for MockAdmissionregistrationV1beta1Interface. -type MockAdmissionregistrationV1beta1InterfaceMockRecorder struct { - mock *MockAdmissionregistrationV1beta1Interface -} - -// NewMockAdmissionregistrationV1beta1Interface creates a new mock instance. -func NewMockAdmissionregistrationV1beta1Interface(ctrl *gomock.Controller) *MockAdmissionregistrationV1beta1Interface { - mock := &MockAdmissionregistrationV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockAdmissionregistrationV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAdmissionregistrationV1beta1Interface) EXPECT() *MockAdmissionregistrationV1beta1InterfaceMockRecorder { - return m.recorder -} - -// MutatingWebhookConfigurations mocks base method. -func (m *MockAdmissionregistrationV1beta1Interface) MutatingWebhookConfigurations() v1beta1.MutatingWebhookConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "MutatingWebhookConfigurations") - ret0, _ := ret[0].(v1beta1.MutatingWebhookConfigurationInterface) - return ret0 -} - -// MutatingWebhookConfigurations indicates an expected call of MutatingWebhookConfigurations. -func (mr *MockAdmissionregistrationV1beta1InterfaceMockRecorder) MutatingWebhookConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MutatingWebhookConfigurations", reflect.TypeOf((*MockAdmissionregistrationV1beta1Interface)(nil).MutatingWebhookConfigurations)) -} - -// RESTClient mocks base method. -func (m *MockAdmissionregistrationV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAdmissionregistrationV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAdmissionregistrationV1beta1Interface)(nil).RESTClient)) -} - -// ValidatingAdmissionPolicies mocks base method. -func (m *MockAdmissionregistrationV1beta1Interface) ValidatingAdmissionPolicies() v1beta1.ValidatingAdmissionPolicyInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatingAdmissionPolicies") - ret0, _ := ret[0].(v1beta1.ValidatingAdmissionPolicyInterface) - return ret0 -} - -// ValidatingAdmissionPolicies indicates an expected call of ValidatingAdmissionPolicies. -func (mr *MockAdmissionregistrationV1beta1InterfaceMockRecorder) ValidatingAdmissionPolicies() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatingAdmissionPolicies", reflect.TypeOf((*MockAdmissionregistrationV1beta1Interface)(nil).ValidatingAdmissionPolicies)) -} - -// ValidatingAdmissionPolicyBindings mocks base method. -func (m *MockAdmissionregistrationV1beta1Interface) ValidatingAdmissionPolicyBindings() v1beta1.ValidatingAdmissionPolicyBindingInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatingAdmissionPolicyBindings") - ret0, _ := ret[0].(v1beta1.ValidatingAdmissionPolicyBindingInterface) - return ret0 -} - -// ValidatingAdmissionPolicyBindings indicates an expected call of ValidatingAdmissionPolicyBindings. -func (mr *MockAdmissionregistrationV1beta1InterfaceMockRecorder) ValidatingAdmissionPolicyBindings() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatingAdmissionPolicyBindings", reflect.TypeOf((*MockAdmissionregistrationV1beta1Interface)(nil).ValidatingAdmissionPolicyBindings)) -} - -// ValidatingWebhookConfigurations mocks base method. -func (m *MockAdmissionregistrationV1beta1Interface) ValidatingWebhookConfigurations() v1beta1.ValidatingWebhookConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ValidatingWebhookConfigurations") - ret0, _ := ret[0].(v1beta1.ValidatingWebhookConfigurationInterface) - return ret0 -} - -// ValidatingWebhookConfigurations indicates an expected call of ValidatingWebhookConfigurations. -func (mr *MockAdmissionregistrationV1beta1InterfaceMockRecorder) ValidatingWebhookConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatingWebhookConfigurations", reflect.TypeOf((*MockAdmissionregistrationV1beta1Interface)(nil).ValidatingWebhookConfigurations)) -} diff --git a/plugins/source/k8s/mocks/apiextensions/interface.go b/plugins/source/k8s/mocks/apiextensions/interface.go deleted file mode 100644 index 1e040c53f21c3f..00000000000000 --- a/plugins/source/k8s/mocks/apiextensions/interface.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset (interfaces: Interface) - -// Package apiextensions is a generated GoMock package. -package apiextensions - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1" - v1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1" - discovery "k8s.io/client-go/discovery" -) - -// MockInterface is a mock of Interface interface. -type MockInterface struct { - ctrl *gomock.Controller - recorder *MockInterfaceMockRecorder -} - -// MockInterfaceMockRecorder is the mock recorder for MockInterface. -type MockInterfaceMockRecorder struct { - mock *MockInterface -} - -// NewMockInterface creates a new mock instance. -func NewMockInterface(ctrl *gomock.Controller) *MockInterface { - mock := &MockInterface{ctrl: ctrl} - mock.recorder = &MockInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { - return m.recorder -} - -// ApiextensionsV1 mocks base method. -func (m *MockInterface) ApiextensionsV1() v1.ApiextensionsV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApiextensionsV1") - ret0, _ := ret[0].(v1.ApiextensionsV1Interface) - return ret0 -} - -// ApiextensionsV1 indicates an expected call of ApiextensionsV1. -func (mr *MockInterfaceMockRecorder) ApiextensionsV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApiextensionsV1", reflect.TypeOf((*MockInterface)(nil).ApiextensionsV1)) -} - -// ApiextensionsV1beta1 mocks base method. -func (m *MockInterface) ApiextensionsV1beta1() v1beta1.ApiextensionsV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApiextensionsV1beta1") - ret0, _ := ret[0].(v1beta1.ApiextensionsV1beta1Interface) - return ret0 -} - -// ApiextensionsV1beta1 indicates an expected call of ApiextensionsV1beta1. -func (mr *MockInterfaceMockRecorder) ApiextensionsV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApiextensionsV1beta1", reflect.TypeOf((*MockInterface)(nil).ApiextensionsV1beta1)) -} - -// Discovery mocks base method. -func (m *MockInterface) Discovery() discovery.DiscoveryInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Discovery") - ret0, _ := ret[0].(discovery.DiscoveryInterface) - return ret0 -} - -// Discovery indicates an expected call of Discovery. -func (mr *MockInterfaceMockRecorder) Discovery() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Discovery", reflect.TypeOf((*MockInterface)(nil).Discovery)) -} diff --git a/plugins/source/k8s/mocks/apiextensions/v1/apiextensions.go b/plugins/source/k8s/mocks/apiextensions/v1/apiextensions.go deleted file mode 100644 index b737439270cf07..00000000000000 --- a/plugins/source/k8s/mocks/apiextensions/v1/apiextensions.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1 (interfaces: ApiextensionsV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1" - rest "k8s.io/client-go/rest" -) - -// MockApiextensionsV1Interface is a mock of ApiextensionsV1Interface interface. -type MockApiextensionsV1Interface struct { - ctrl *gomock.Controller - recorder *MockApiextensionsV1InterfaceMockRecorder -} - -// MockApiextensionsV1InterfaceMockRecorder is the mock recorder for MockApiextensionsV1Interface. -type MockApiextensionsV1InterfaceMockRecorder struct { - mock *MockApiextensionsV1Interface -} - -// NewMockApiextensionsV1Interface creates a new mock instance. -func NewMockApiextensionsV1Interface(ctrl *gomock.Controller) *MockApiextensionsV1Interface { - mock := &MockApiextensionsV1Interface{ctrl: ctrl} - mock.recorder = &MockApiextensionsV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockApiextensionsV1Interface) EXPECT() *MockApiextensionsV1InterfaceMockRecorder { - return m.recorder -} - -// CustomResourceDefinitions mocks base method. -func (m *MockApiextensionsV1Interface) CustomResourceDefinitions() v1.CustomResourceDefinitionInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CustomResourceDefinitions") - ret0, _ := ret[0].(v1.CustomResourceDefinitionInterface) - return ret0 -} - -// CustomResourceDefinitions indicates an expected call of CustomResourceDefinitions. -func (mr *MockApiextensionsV1InterfaceMockRecorder) CustomResourceDefinitions() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CustomResourceDefinitions", reflect.TypeOf((*MockApiextensionsV1Interface)(nil).CustomResourceDefinitions)) -} - -// RESTClient mocks base method. -func (m *MockApiextensionsV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockApiextensionsV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockApiextensionsV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/apiextensions/v1/custom_resource_definitions.go b/plugins/source/k8s/mocks/apiextensions/v1/custom_resource_definitions.go deleted file mode 100644 index c1492c9e8c401a..00000000000000 --- a/plugins/source/k8s/mocks/apiextensions/v1/custom_resource_definitions.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1 (interfaces: CustomResourceDefinitionInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - v10 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" -) - -// MockCustomResourceDefinitionInterface is a mock of CustomResourceDefinitionInterface interface. -type MockCustomResourceDefinitionInterface struct { - ctrl *gomock.Controller - recorder *MockCustomResourceDefinitionInterfaceMockRecorder -} - -// MockCustomResourceDefinitionInterfaceMockRecorder is the mock recorder for MockCustomResourceDefinitionInterface. -type MockCustomResourceDefinitionInterfaceMockRecorder struct { - mock *MockCustomResourceDefinitionInterface -} - -// NewMockCustomResourceDefinitionInterface creates a new mock instance. -func NewMockCustomResourceDefinitionInterface(ctrl *gomock.Controller) *MockCustomResourceDefinitionInterface { - mock := &MockCustomResourceDefinitionInterface{ctrl: ctrl} - mock.recorder = &MockCustomResourceDefinitionInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCustomResourceDefinitionInterface) EXPECT() *MockCustomResourceDefinitionInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockCustomResourceDefinitionInterface) Apply(arg0 context.Context, arg1 *v10.CustomResourceDefinitionApplyConfiguration, arg2 v11.ApplyOptions) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockCustomResourceDefinitionInterface) ApplyStatus(arg0 context.Context, arg1 *v10.CustomResourceDefinitionApplyConfiguration, arg2 v11.ApplyOptions) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockCustomResourceDefinitionInterface) Create(arg0 context.Context, arg1 *v1.CustomResourceDefinition, arg2 v11.CreateOptions) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockCustomResourceDefinitionInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockCustomResourceDefinitionInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockCustomResourceDefinitionInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockCustomResourceDefinitionInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.CustomResourceDefinitionList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.CustomResourceDefinitionList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockCustomResourceDefinitionInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockCustomResourceDefinitionInterface) Update(arg0 context.Context, arg1 *v1.CustomResourceDefinition, arg2 v11.UpdateOptions) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockCustomResourceDefinitionInterface) UpdateStatus(arg0 context.Context, arg1 *v1.CustomResourceDefinition, arg2 v11.UpdateOptions) (*v1.CustomResourceDefinition, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CustomResourceDefinition) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockCustomResourceDefinitionInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockCustomResourceDefinitionInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockCustomResourceDefinitionInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/apiserverinternal/v1alpha1/client.go b/plugins/source/k8s/mocks/apiserverinternal/v1alpha1/client.go deleted file mode 100644 index 2655faa7da7858..00000000000000 --- a/plugins/source/k8s/mocks/apiserverinternal/v1alpha1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1 (interfaces: InternalV1alpha1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1alpha1 "k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1" - rest "k8s.io/client-go/rest" -) - -// MockInternalV1alpha1Interface is a mock of InternalV1alpha1Interface interface. -type MockInternalV1alpha1Interface struct { - ctrl *gomock.Controller - recorder *MockInternalV1alpha1InterfaceMockRecorder -} - -// MockInternalV1alpha1InterfaceMockRecorder is the mock recorder for MockInternalV1alpha1Interface. -type MockInternalV1alpha1InterfaceMockRecorder struct { - mock *MockInternalV1alpha1Interface -} - -// NewMockInternalV1alpha1Interface creates a new mock instance. -func NewMockInternalV1alpha1Interface(ctrl *gomock.Controller) *MockInternalV1alpha1Interface { - mock := &MockInternalV1alpha1Interface{ctrl: ctrl} - mock.recorder = &MockInternalV1alpha1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockInternalV1alpha1Interface) EXPECT() *MockInternalV1alpha1InterfaceMockRecorder { - return m.recorder -} - -// RESTClient mocks base method. -func (m *MockInternalV1alpha1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockInternalV1alpha1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockInternalV1alpha1Interface)(nil).RESTClient)) -} - -// StorageVersions mocks base method. -func (m *MockInternalV1alpha1Interface) StorageVersions() v1alpha1.StorageVersionInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StorageVersions") - ret0, _ := ret[0].(v1alpha1.StorageVersionInterface) - return ret0 -} - -// StorageVersions indicates an expected call of StorageVersions. -func (mr *MockInternalV1alpha1InterfaceMockRecorder) StorageVersions() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageVersions", reflect.TypeOf((*MockInternalV1alpha1Interface)(nil).StorageVersions)) -} diff --git a/plugins/source/k8s/mocks/apps/v1/client.go b/plugins/source/k8s/mocks/apps/v1/client.go deleted file mode 100644 index b6d8cc0309dd60..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1/client.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: AppsV1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/apps/v1" - rest "k8s.io/client-go/rest" -) - -// MockAppsV1Interface is a mock of AppsV1Interface interface. -type MockAppsV1Interface struct { - ctrl *gomock.Controller - recorder *MockAppsV1InterfaceMockRecorder -} - -// MockAppsV1InterfaceMockRecorder is the mock recorder for MockAppsV1Interface. -type MockAppsV1InterfaceMockRecorder struct { - mock *MockAppsV1Interface -} - -// NewMockAppsV1Interface creates a new mock instance. -func NewMockAppsV1Interface(ctrl *gomock.Controller) *MockAppsV1Interface { - mock := &MockAppsV1Interface{ctrl: ctrl} - mock.recorder = &MockAppsV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAppsV1Interface) EXPECT() *MockAppsV1InterfaceMockRecorder { - return m.recorder -} - -// ControllerRevisions mocks base method. -func (m *MockAppsV1Interface) ControllerRevisions(arg0 string) v1.ControllerRevisionInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ControllerRevisions", arg0) - ret0, _ := ret[0].(v1.ControllerRevisionInterface) - return ret0 -} - -// ControllerRevisions indicates an expected call of ControllerRevisions. -func (mr *MockAppsV1InterfaceMockRecorder) ControllerRevisions(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerRevisions", reflect.TypeOf((*MockAppsV1Interface)(nil).ControllerRevisions), arg0) -} - -// DaemonSets mocks base method. -func (m *MockAppsV1Interface) DaemonSets(arg0 string) v1.DaemonSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DaemonSets", arg0) - ret0, _ := ret[0].(v1.DaemonSetInterface) - return ret0 -} - -// DaemonSets indicates an expected call of DaemonSets. -func (mr *MockAppsV1InterfaceMockRecorder) DaemonSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonSets", reflect.TypeOf((*MockAppsV1Interface)(nil).DaemonSets), arg0) -} - -// Deployments mocks base method. -func (m *MockAppsV1Interface) Deployments(arg0 string) v1.DeploymentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Deployments", arg0) - ret0, _ := ret[0].(v1.DeploymentInterface) - return ret0 -} - -// Deployments indicates an expected call of Deployments. -func (mr *MockAppsV1InterfaceMockRecorder) Deployments(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deployments", reflect.TypeOf((*MockAppsV1Interface)(nil).Deployments), arg0) -} - -// RESTClient mocks base method. -func (m *MockAppsV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAppsV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAppsV1Interface)(nil).RESTClient)) -} - -// ReplicaSets mocks base method. -func (m *MockAppsV1Interface) ReplicaSets(arg0 string) v1.ReplicaSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReplicaSets", arg0) - ret0, _ := ret[0].(v1.ReplicaSetInterface) - return ret0 -} - -// ReplicaSets indicates an expected call of ReplicaSets. -func (mr *MockAppsV1InterfaceMockRecorder) ReplicaSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicaSets", reflect.TypeOf((*MockAppsV1Interface)(nil).ReplicaSets), arg0) -} - -// StatefulSets mocks base method. -func (m *MockAppsV1Interface) StatefulSets(arg0 string) v1.StatefulSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StatefulSets", arg0) - ret0, _ := ret[0].(v1.StatefulSetInterface) - return ret0 -} - -// StatefulSets indicates an expected call of StatefulSets. -func (mr *MockAppsV1InterfaceMockRecorder) StatefulSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatefulSets", reflect.TypeOf((*MockAppsV1Interface)(nil).StatefulSets), arg0) -} diff --git a/plugins/source/k8s/mocks/apps/v1/daemonset.go b/plugins/source/k8s/mocks/apps/v1/daemonset.go deleted file mode 100644 index fbab2dd8717749..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1/daemonset.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: DaemonSetsGetter,DaemonSetInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/apps/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/apps/v1" - v12 "k8s.io/client-go/kubernetes/typed/apps/v1" -) - -// MockDaemonSetsGetter is a mock of DaemonSetsGetter interface. -type MockDaemonSetsGetter struct { - ctrl *gomock.Controller - recorder *MockDaemonSetsGetterMockRecorder -} - -// MockDaemonSetsGetterMockRecorder is the mock recorder for MockDaemonSetsGetter. -type MockDaemonSetsGetterMockRecorder struct { - mock *MockDaemonSetsGetter -} - -// NewMockDaemonSetsGetter creates a new mock instance. -func NewMockDaemonSetsGetter(ctrl *gomock.Controller) *MockDaemonSetsGetter { - mock := &MockDaemonSetsGetter{ctrl: ctrl} - mock.recorder = &MockDaemonSetsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDaemonSetsGetter) EXPECT() *MockDaemonSetsGetterMockRecorder { - return m.recorder -} - -// DaemonSets mocks base method. -func (m *MockDaemonSetsGetter) DaemonSets(arg0 string) v12.DaemonSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DaemonSets", arg0) - ret0, _ := ret[0].(v12.DaemonSetInterface) - return ret0 -} - -// DaemonSets indicates an expected call of DaemonSets. -func (mr *MockDaemonSetsGetterMockRecorder) DaemonSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonSets", reflect.TypeOf((*MockDaemonSetsGetter)(nil).DaemonSets), arg0) -} - -// MockDaemonSetInterface is a mock of DaemonSetInterface interface. -type MockDaemonSetInterface struct { - ctrl *gomock.Controller - recorder *MockDaemonSetInterfaceMockRecorder -} - -// MockDaemonSetInterfaceMockRecorder is the mock recorder for MockDaemonSetInterface. -type MockDaemonSetInterfaceMockRecorder struct { - mock *MockDaemonSetInterface -} - -// NewMockDaemonSetInterface creates a new mock instance. -func NewMockDaemonSetInterface(ctrl *gomock.Controller) *MockDaemonSetInterface { - mock := &MockDaemonSetInterface{ctrl: ctrl} - mock.recorder = &MockDaemonSetInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDaemonSetInterface) EXPECT() *MockDaemonSetInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockDaemonSetInterface) Apply(arg0 context.Context, arg1 *v11.DaemonSetApplyConfiguration, arg2 v10.ApplyOptions) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockDaemonSetInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockDaemonSetInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockDaemonSetInterface) ApplyStatus(arg0 context.Context, arg1 *v11.DaemonSetApplyConfiguration, arg2 v10.ApplyOptions) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockDaemonSetInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockDaemonSetInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockDaemonSetInterface) Create(arg0 context.Context, arg1 *v1.DaemonSet, arg2 v10.CreateOptions) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockDaemonSetInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockDaemonSetInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockDaemonSetInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockDaemonSetInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDaemonSetInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockDaemonSetInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockDaemonSetInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockDaemonSetInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockDaemonSetInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockDaemonSetInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDaemonSetInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockDaemonSetInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.DaemonSetList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.DaemonSetList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockDaemonSetInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockDaemonSetInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockDaemonSetInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockDaemonSetInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockDaemonSetInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockDaemonSetInterface) Update(arg0 context.Context, arg1 *v1.DaemonSet, arg2 v10.UpdateOptions) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockDaemonSetInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockDaemonSetInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockDaemonSetInterface) UpdateStatus(arg0 context.Context, arg1 *v1.DaemonSet, arg2 v10.UpdateOptions) (*v1.DaemonSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.DaemonSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockDaemonSetInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockDaemonSetInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockDaemonSetInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockDaemonSetInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockDaemonSetInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/apps/v1/deployment.go b/plugins/source/k8s/mocks/apps/v1/deployment.go deleted file mode 100644 index d4b668c3dd3dbb..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1/deployment.go +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: DeploymentsGetter,DeploymentInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/apps/v1" - v10 "k8s.io/api/autoscaling/v1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v12 "k8s.io/client-go/applyconfigurations/apps/v1" - v13 "k8s.io/client-go/applyconfigurations/autoscaling/v1" - v14 "k8s.io/client-go/kubernetes/typed/apps/v1" -) - -// MockDeploymentsGetter is a mock of DeploymentsGetter interface. -type MockDeploymentsGetter struct { - ctrl *gomock.Controller - recorder *MockDeploymentsGetterMockRecorder -} - -// MockDeploymentsGetterMockRecorder is the mock recorder for MockDeploymentsGetter. -type MockDeploymentsGetterMockRecorder struct { - mock *MockDeploymentsGetter -} - -// NewMockDeploymentsGetter creates a new mock instance. -func NewMockDeploymentsGetter(ctrl *gomock.Controller) *MockDeploymentsGetter { - mock := &MockDeploymentsGetter{ctrl: ctrl} - mock.recorder = &MockDeploymentsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDeploymentsGetter) EXPECT() *MockDeploymentsGetterMockRecorder { - return m.recorder -} - -// Deployments mocks base method. -func (m *MockDeploymentsGetter) Deployments(arg0 string) v14.DeploymentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Deployments", arg0) - ret0, _ := ret[0].(v14.DeploymentInterface) - return ret0 -} - -// Deployments indicates an expected call of Deployments. -func (mr *MockDeploymentsGetterMockRecorder) Deployments(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deployments", reflect.TypeOf((*MockDeploymentsGetter)(nil).Deployments), arg0) -} - -// MockDeploymentInterface is a mock of DeploymentInterface interface. -type MockDeploymentInterface struct { - ctrl *gomock.Controller - recorder *MockDeploymentInterfaceMockRecorder -} - -// MockDeploymentInterfaceMockRecorder is the mock recorder for MockDeploymentInterface. -type MockDeploymentInterfaceMockRecorder struct { - mock *MockDeploymentInterface -} - -// NewMockDeploymentInterface creates a new mock instance. -func NewMockDeploymentInterface(ctrl *gomock.Controller) *MockDeploymentInterface { - mock := &MockDeploymentInterface{ctrl: ctrl} - mock.recorder = &MockDeploymentInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDeploymentInterface) EXPECT() *MockDeploymentInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockDeploymentInterface) Apply(arg0 context.Context, arg1 *v12.DeploymentApplyConfiguration, arg2 v11.ApplyOptions) (*v1.Deployment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockDeploymentInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockDeploymentInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyScale mocks base method. -func (m *MockDeploymentInterface) ApplyScale(arg0 context.Context, arg1 string, arg2 *v13.ScaleApplyConfiguration, arg3 v11.ApplyOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyScale indicates an expected call of ApplyScale. -func (mr *MockDeploymentInterfaceMockRecorder) ApplyScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyScale", reflect.TypeOf((*MockDeploymentInterface)(nil).ApplyScale), arg0, arg1, arg2, arg3) -} - -// ApplyStatus mocks base method. -func (m *MockDeploymentInterface) ApplyStatus(arg0 context.Context, arg1 *v12.DeploymentApplyConfiguration, arg2 v11.ApplyOptions) (*v1.Deployment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockDeploymentInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockDeploymentInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockDeploymentInterface) Create(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.CreateOptions) (*v1.Deployment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockDeploymentInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockDeploymentInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockDeploymentInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockDeploymentInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDeploymentInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockDeploymentInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockDeploymentInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockDeploymentInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockDeploymentInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.Deployment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockDeploymentInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDeploymentInterface)(nil).Get), arg0, arg1, arg2) -} - -// GetScale mocks base method. -func (m *MockDeploymentInterface) GetScale(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetScale", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetScale indicates an expected call of GetScale. -func (mr *MockDeploymentInterfaceMockRecorder) GetScale(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScale", reflect.TypeOf((*MockDeploymentInterface)(nil).GetScale), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockDeploymentInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.DeploymentList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.DeploymentList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockDeploymentInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockDeploymentInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockDeploymentInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v1.Deployment, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockDeploymentInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockDeploymentInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockDeploymentInterface) Update(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.UpdateOptions) (*v1.Deployment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockDeploymentInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockDeploymentInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateScale mocks base method. -func (m *MockDeploymentInterface) UpdateScale(arg0 context.Context, arg1 string, arg2 *v10.Scale, arg3 v11.UpdateOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateScale indicates an expected call of UpdateScale. -func (mr *MockDeploymentInterfaceMockRecorder) UpdateScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScale", reflect.TypeOf((*MockDeploymentInterface)(nil).UpdateScale), arg0, arg1, arg2, arg3) -} - -// UpdateStatus mocks base method. -func (m *MockDeploymentInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.UpdateOptions) (*v1.Deployment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Deployment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockDeploymentInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockDeploymentInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockDeploymentInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockDeploymentInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockDeploymentInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/apps/v1/replicaset.go b/plugins/source/k8s/mocks/apps/v1/replicaset.go deleted file mode 100644 index fbeec47b2fbf58..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1/replicaset.go +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: ReplicaSetsGetter,ReplicaSetInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/apps/v1" - v10 "k8s.io/api/autoscaling/v1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v12 "k8s.io/client-go/applyconfigurations/apps/v1" - v13 "k8s.io/client-go/applyconfigurations/autoscaling/v1" - v14 "k8s.io/client-go/kubernetes/typed/apps/v1" -) - -// MockReplicaSetsGetter is a mock of ReplicaSetsGetter interface. -type MockReplicaSetsGetter struct { - ctrl *gomock.Controller - recorder *MockReplicaSetsGetterMockRecorder -} - -// MockReplicaSetsGetterMockRecorder is the mock recorder for MockReplicaSetsGetter. -type MockReplicaSetsGetterMockRecorder struct { - mock *MockReplicaSetsGetter -} - -// NewMockReplicaSetsGetter creates a new mock instance. -func NewMockReplicaSetsGetter(ctrl *gomock.Controller) *MockReplicaSetsGetter { - mock := &MockReplicaSetsGetter{ctrl: ctrl} - mock.recorder = &MockReplicaSetsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockReplicaSetsGetter) EXPECT() *MockReplicaSetsGetterMockRecorder { - return m.recorder -} - -// ReplicaSets mocks base method. -func (m *MockReplicaSetsGetter) ReplicaSets(arg0 string) v14.ReplicaSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReplicaSets", arg0) - ret0, _ := ret[0].(v14.ReplicaSetInterface) - return ret0 -} - -// ReplicaSets indicates an expected call of ReplicaSets. -func (mr *MockReplicaSetsGetterMockRecorder) ReplicaSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicaSets", reflect.TypeOf((*MockReplicaSetsGetter)(nil).ReplicaSets), arg0) -} - -// MockReplicaSetInterface is a mock of ReplicaSetInterface interface. -type MockReplicaSetInterface struct { - ctrl *gomock.Controller - recorder *MockReplicaSetInterfaceMockRecorder -} - -// MockReplicaSetInterfaceMockRecorder is the mock recorder for MockReplicaSetInterface. -type MockReplicaSetInterfaceMockRecorder struct { - mock *MockReplicaSetInterface -} - -// NewMockReplicaSetInterface creates a new mock instance. -func NewMockReplicaSetInterface(ctrl *gomock.Controller) *MockReplicaSetInterface { - mock := &MockReplicaSetInterface{ctrl: ctrl} - mock.recorder = &MockReplicaSetInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockReplicaSetInterface) EXPECT() *MockReplicaSetInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockReplicaSetInterface) Apply(arg0 context.Context, arg1 *v12.ReplicaSetApplyConfiguration, arg2 v11.ApplyOptions) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockReplicaSetInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockReplicaSetInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyScale mocks base method. -func (m *MockReplicaSetInterface) ApplyScale(arg0 context.Context, arg1 string, arg2 *v13.ScaleApplyConfiguration, arg3 v11.ApplyOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyScale indicates an expected call of ApplyScale. -func (mr *MockReplicaSetInterfaceMockRecorder) ApplyScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyScale", reflect.TypeOf((*MockReplicaSetInterface)(nil).ApplyScale), arg0, arg1, arg2, arg3) -} - -// ApplyStatus mocks base method. -func (m *MockReplicaSetInterface) ApplyStatus(arg0 context.Context, arg1 *v12.ReplicaSetApplyConfiguration, arg2 v11.ApplyOptions) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockReplicaSetInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockReplicaSetInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockReplicaSetInterface) Create(arg0 context.Context, arg1 *v1.ReplicaSet, arg2 v11.CreateOptions) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockReplicaSetInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockReplicaSetInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockReplicaSetInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockReplicaSetInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockReplicaSetInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockReplicaSetInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockReplicaSetInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockReplicaSetInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockReplicaSetInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockReplicaSetInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockReplicaSetInterface)(nil).Get), arg0, arg1, arg2) -} - -// GetScale mocks base method. -func (m *MockReplicaSetInterface) GetScale(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetScale", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetScale indicates an expected call of GetScale. -func (mr *MockReplicaSetInterfaceMockRecorder) GetScale(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScale", reflect.TypeOf((*MockReplicaSetInterface)(nil).GetScale), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockReplicaSetInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.ReplicaSetList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ReplicaSetList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockReplicaSetInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockReplicaSetInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockReplicaSetInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockReplicaSetInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockReplicaSetInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockReplicaSetInterface) Update(arg0 context.Context, arg1 *v1.ReplicaSet, arg2 v11.UpdateOptions) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockReplicaSetInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockReplicaSetInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateScale mocks base method. -func (m *MockReplicaSetInterface) UpdateScale(arg0 context.Context, arg1 string, arg2 *v10.Scale, arg3 v11.UpdateOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateScale indicates an expected call of UpdateScale. -func (mr *MockReplicaSetInterfaceMockRecorder) UpdateScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScale", reflect.TypeOf((*MockReplicaSetInterface)(nil).UpdateScale), arg0, arg1, arg2, arg3) -} - -// UpdateStatus mocks base method. -func (m *MockReplicaSetInterface) UpdateStatus(arg0 context.Context, arg1 *v1.ReplicaSet, arg2 v11.UpdateOptions) (*v1.ReplicaSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ReplicaSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockReplicaSetInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockReplicaSetInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockReplicaSetInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockReplicaSetInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockReplicaSetInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/apps/v1/statefulset.go b/plugins/source/k8s/mocks/apps/v1/statefulset.go deleted file mode 100644 index 2372842846deb2..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1/statefulset.go +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: StatefulSetsGetter,StatefulSetInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/apps/v1" - v10 "k8s.io/api/autoscaling/v1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v12 "k8s.io/client-go/applyconfigurations/apps/v1" - v13 "k8s.io/client-go/applyconfigurations/autoscaling/v1" - v14 "k8s.io/client-go/kubernetes/typed/apps/v1" -) - -// MockStatefulSetsGetter is a mock of StatefulSetsGetter interface. -type MockStatefulSetsGetter struct { - ctrl *gomock.Controller - recorder *MockStatefulSetsGetterMockRecorder -} - -// MockStatefulSetsGetterMockRecorder is the mock recorder for MockStatefulSetsGetter. -type MockStatefulSetsGetterMockRecorder struct { - mock *MockStatefulSetsGetter -} - -// NewMockStatefulSetsGetter creates a new mock instance. -func NewMockStatefulSetsGetter(ctrl *gomock.Controller) *MockStatefulSetsGetter { - mock := &MockStatefulSetsGetter{ctrl: ctrl} - mock.recorder = &MockStatefulSetsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockStatefulSetsGetter) EXPECT() *MockStatefulSetsGetterMockRecorder { - return m.recorder -} - -// StatefulSets mocks base method. -func (m *MockStatefulSetsGetter) StatefulSets(arg0 string) v14.StatefulSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StatefulSets", arg0) - ret0, _ := ret[0].(v14.StatefulSetInterface) - return ret0 -} - -// StatefulSets indicates an expected call of StatefulSets. -func (mr *MockStatefulSetsGetterMockRecorder) StatefulSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatefulSets", reflect.TypeOf((*MockStatefulSetsGetter)(nil).StatefulSets), arg0) -} - -// MockStatefulSetInterface is a mock of StatefulSetInterface interface. -type MockStatefulSetInterface struct { - ctrl *gomock.Controller - recorder *MockStatefulSetInterfaceMockRecorder -} - -// MockStatefulSetInterfaceMockRecorder is the mock recorder for MockStatefulSetInterface. -type MockStatefulSetInterfaceMockRecorder struct { - mock *MockStatefulSetInterface -} - -// NewMockStatefulSetInterface creates a new mock instance. -func NewMockStatefulSetInterface(ctrl *gomock.Controller) *MockStatefulSetInterface { - mock := &MockStatefulSetInterface{ctrl: ctrl} - mock.recorder = &MockStatefulSetInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockStatefulSetInterface) EXPECT() *MockStatefulSetInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockStatefulSetInterface) Apply(arg0 context.Context, arg1 *v12.StatefulSetApplyConfiguration, arg2 v11.ApplyOptions) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockStatefulSetInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockStatefulSetInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyScale mocks base method. -func (m *MockStatefulSetInterface) ApplyScale(arg0 context.Context, arg1 string, arg2 *v13.ScaleApplyConfiguration, arg3 v11.ApplyOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyScale indicates an expected call of ApplyScale. -func (mr *MockStatefulSetInterfaceMockRecorder) ApplyScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyScale", reflect.TypeOf((*MockStatefulSetInterface)(nil).ApplyScale), arg0, arg1, arg2, arg3) -} - -// ApplyStatus mocks base method. -func (m *MockStatefulSetInterface) ApplyStatus(arg0 context.Context, arg1 *v12.StatefulSetApplyConfiguration, arg2 v11.ApplyOptions) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockStatefulSetInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockStatefulSetInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockStatefulSetInterface) Create(arg0 context.Context, arg1 *v1.StatefulSet, arg2 v11.CreateOptions) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockStatefulSetInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockStatefulSetInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockStatefulSetInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockStatefulSetInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStatefulSetInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockStatefulSetInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockStatefulSetInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockStatefulSetInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockStatefulSetInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockStatefulSetInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStatefulSetInterface)(nil).Get), arg0, arg1, arg2) -} - -// GetScale mocks base method. -func (m *MockStatefulSetInterface) GetScale(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetScale", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetScale indicates an expected call of GetScale. -func (mr *MockStatefulSetInterfaceMockRecorder) GetScale(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScale", reflect.TypeOf((*MockStatefulSetInterface)(nil).GetScale), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockStatefulSetInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.StatefulSetList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.StatefulSetList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockStatefulSetInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStatefulSetInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockStatefulSetInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockStatefulSetInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockStatefulSetInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockStatefulSetInterface) Update(arg0 context.Context, arg1 *v1.StatefulSet, arg2 v11.UpdateOptions) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockStatefulSetInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStatefulSetInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateScale mocks base method. -func (m *MockStatefulSetInterface) UpdateScale(arg0 context.Context, arg1 string, arg2 *v10.Scale, arg3 v11.UpdateOptions) (*v10.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v10.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateScale indicates an expected call of UpdateScale. -func (mr *MockStatefulSetInterfaceMockRecorder) UpdateScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScale", reflect.TypeOf((*MockStatefulSetInterface)(nil).UpdateScale), arg0, arg1, arg2, arg3) -} - -// UpdateStatus mocks base method. -func (m *MockStatefulSetInterface) UpdateStatus(arg0 context.Context, arg1 *v1.StatefulSet, arg2 v11.UpdateOptions) (*v1.StatefulSet, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StatefulSet) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockStatefulSetInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockStatefulSetInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockStatefulSetInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockStatefulSetInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockStatefulSetInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/apps/v1beta1/client.go b/plugins/source/k8s/mocks/apps/v1beta1/client.go deleted file mode 100644 index 93d07941b8bf17..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1beta1/client.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1beta1 (interfaces: AppsV1beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/apps/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockAppsV1beta1Interface is a mock of AppsV1beta1Interface interface. -type MockAppsV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockAppsV1beta1InterfaceMockRecorder -} - -// MockAppsV1beta1InterfaceMockRecorder is the mock recorder for MockAppsV1beta1Interface. -type MockAppsV1beta1InterfaceMockRecorder struct { - mock *MockAppsV1beta1Interface -} - -// NewMockAppsV1beta1Interface creates a new mock instance. -func NewMockAppsV1beta1Interface(ctrl *gomock.Controller) *MockAppsV1beta1Interface { - mock := &MockAppsV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockAppsV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAppsV1beta1Interface) EXPECT() *MockAppsV1beta1InterfaceMockRecorder { - return m.recorder -} - -// ControllerRevisions mocks base method. -func (m *MockAppsV1beta1Interface) ControllerRevisions(arg0 string) v1beta1.ControllerRevisionInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ControllerRevisions", arg0) - ret0, _ := ret[0].(v1beta1.ControllerRevisionInterface) - return ret0 -} - -// ControllerRevisions indicates an expected call of ControllerRevisions. -func (mr *MockAppsV1beta1InterfaceMockRecorder) ControllerRevisions(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerRevisions", reflect.TypeOf((*MockAppsV1beta1Interface)(nil).ControllerRevisions), arg0) -} - -// Deployments mocks base method. -func (m *MockAppsV1beta1Interface) Deployments(arg0 string) v1beta1.DeploymentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Deployments", arg0) - ret0, _ := ret[0].(v1beta1.DeploymentInterface) - return ret0 -} - -// Deployments indicates an expected call of Deployments. -func (mr *MockAppsV1beta1InterfaceMockRecorder) Deployments(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deployments", reflect.TypeOf((*MockAppsV1beta1Interface)(nil).Deployments), arg0) -} - -// RESTClient mocks base method. -func (m *MockAppsV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAppsV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAppsV1beta1Interface)(nil).RESTClient)) -} - -// StatefulSets mocks base method. -func (m *MockAppsV1beta1Interface) StatefulSets(arg0 string) v1beta1.StatefulSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StatefulSets", arg0) - ret0, _ := ret[0].(v1beta1.StatefulSetInterface) - return ret0 -} - -// StatefulSets indicates an expected call of StatefulSets. -func (mr *MockAppsV1beta1InterfaceMockRecorder) StatefulSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatefulSets", reflect.TypeOf((*MockAppsV1beta1Interface)(nil).StatefulSets), arg0) -} diff --git a/plugins/source/k8s/mocks/apps/v1beta2/client.go b/plugins/source/k8s/mocks/apps/v1beta2/client.go deleted file mode 100644 index 0d1daca582a16d..00000000000000 --- a/plugins/source/k8s/mocks/apps/v1beta2/client.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/apps/v1beta2 (interfaces: AppsV1beta2Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2" - rest "k8s.io/client-go/rest" -) - -// MockAppsV1beta2Interface is a mock of AppsV1beta2Interface interface. -type MockAppsV1beta2Interface struct { - ctrl *gomock.Controller - recorder *MockAppsV1beta2InterfaceMockRecorder -} - -// MockAppsV1beta2InterfaceMockRecorder is the mock recorder for MockAppsV1beta2Interface. -type MockAppsV1beta2InterfaceMockRecorder struct { - mock *MockAppsV1beta2Interface -} - -// NewMockAppsV1beta2Interface creates a new mock instance. -func NewMockAppsV1beta2Interface(ctrl *gomock.Controller) *MockAppsV1beta2Interface { - mock := &MockAppsV1beta2Interface{ctrl: ctrl} - mock.recorder = &MockAppsV1beta2InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAppsV1beta2Interface) EXPECT() *MockAppsV1beta2InterfaceMockRecorder { - return m.recorder -} - -// ControllerRevisions mocks base method. -func (m *MockAppsV1beta2Interface) ControllerRevisions(arg0 string) v1beta2.ControllerRevisionInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ControllerRevisions", arg0) - ret0, _ := ret[0].(v1beta2.ControllerRevisionInterface) - return ret0 -} - -// ControllerRevisions indicates an expected call of ControllerRevisions. -func (mr *MockAppsV1beta2InterfaceMockRecorder) ControllerRevisions(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerRevisions", reflect.TypeOf((*MockAppsV1beta2Interface)(nil).ControllerRevisions), arg0) -} - -// DaemonSets mocks base method. -func (m *MockAppsV1beta2Interface) DaemonSets(arg0 string) v1beta2.DaemonSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DaemonSets", arg0) - ret0, _ := ret[0].(v1beta2.DaemonSetInterface) - return ret0 -} - -// DaemonSets indicates an expected call of DaemonSets. -func (mr *MockAppsV1beta2InterfaceMockRecorder) DaemonSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonSets", reflect.TypeOf((*MockAppsV1beta2Interface)(nil).DaemonSets), arg0) -} - -// Deployments mocks base method. -func (m *MockAppsV1beta2Interface) Deployments(arg0 string) v1beta2.DeploymentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Deployments", arg0) - ret0, _ := ret[0].(v1beta2.DeploymentInterface) - return ret0 -} - -// Deployments indicates an expected call of Deployments. -func (mr *MockAppsV1beta2InterfaceMockRecorder) Deployments(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deployments", reflect.TypeOf((*MockAppsV1beta2Interface)(nil).Deployments), arg0) -} - -// RESTClient mocks base method. -func (m *MockAppsV1beta2Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAppsV1beta2InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAppsV1beta2Interface)(nil).RESTClient)) -} - -// ReplicaSets mocks base method. -func (m *MockAppsV1beta2Interface) ReplicaSets(arg0 string) v1beta2.ReplicaSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReplicaSets", arg0) - ret0, _ := ret[0].(v1beta2.ReplicaSetInterface) - return ret0 -} - -// ReplicaSets indicates an expected call of ReplicaSets. -func (mr *MockAppsV1beta2InterfaceMockRecorder) ReplicaSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicaSets", reflect.TypeOf((*MockAppsV1beta2Interface)(nil).ReplicaSets), arg0) -} - -// StatefulSets mocks base method. -func (m *MockAppsV1beta2Interface) StatefulSets(arg0 string) v1beta2.StatefulSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StatefulSets", arg0) - ret0, _ := ret[0].(v1beta2.StatefulSetInterface) - return ret0 -} - -// StatefulSets indicates an expected call of StatefulSets. -func (mr *MockAppsV1beta2InterfaceMockRecorder) StatefulSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatefulSets", reflect.TypeOf((*MockAppsV1beta2Interface)(nil).StatefulSets), arg0) -} diff --git a/plugins/source/k8s/mocks/authentication/v1/client.go b/plugins/source/k8s/mocks/authentication/v1/client.go deleted file mode 100644 index 1c14a5d41198ba..00000000000000 --- a/plugins/source/k8s/mocks/authentication/v1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/authentication/v1 (interfaces: AuthenticationV1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/authentication/v1" - rest "k8s.io/client-go/rest" -) - -// MockAuthenticationV1Interface is a mock of AuthenticationV1Interface interface. -type MockAuthenticationV1Interface struct { - ctrl *gomock.Controller - recorder *MockAuthenticationV1InterfaceMockRecorder -} - -// MockAuthenticationV1InterfaceMockRecorder is the mock recorder for MockAuthenticationV1Interface. -type MockAuthenticationV1InterfaceMockRecorder struct { - mock *MockAuthenticationV1Interface -} - -// NewMockAuthenticationV1Interface creates a new mock instance. -func NewMockAuthenticationV1Interface(ctrl *gomock.Controller) *MockAuthenticationV1Interface { - mock := &MockAuthenticationV1Interface{ctrl: ctrl} - mock.recorder = &MockAuthenticationV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAuthenticationV1Interface) EXPECT() *MockAuthenticationV1InterfaceMockRecorder { - return m.recorder -} - -// RESTClient mocks base method. -func (m *MockAuthenticationV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAuthenticationV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAuthenticationV1Interface)(nil).RESTClient)) -} - -// SelfSubjectReviews mocks base method. -func (m *MockAuthenticationV1Interface) SelfSubjectReviews() v1.SelfSubjectReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelfSubjectReviews") - ret0, _ := ret[0].(v1.SelfSubjectReviewInterface) - return ret0 -} - -// SelfSubjectReviews indicates an expected call of SelfSubjectReviews. -func (mr *MockAuthenticationV1InterfaceMockRecorder) SelfSubjectReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectReviews", reflect.TypeOf((*MockAuthenticationV1Interface)(nil).SelfSubjectReviews)) -} - -// TokenReviews mocks base method. -func (m *MockAuthenticationV1Interface) TokenReviews() v1.TokenReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TokenReviews") - ret0, _ := ret[0].(v1.TokenReviewInterface) - return ret0 -} - -// TokenReviews indicates an expected call of TokenReviews. -func (mr *MockAuthenticationV1InterfaceMockRecorder) TokenReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenReviews", reflect.TypeOf((*MockAuthenticationV1Interface)(nil).TokenReviews)) -} diff --git a/plugins/source/k8s/mocks/authentication/v1beta1/client.go b/plugins/source/k8s/mocks/authentication/v1beta1/client.go deleted file mode 100644 index afbb88f1ddb728..00000000000000 --- a/plugins/source/k8s/mocks/authentication/v1beta1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/authentication/v1beta1 (interfaces: AuthenticationV1beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockAuthenticationV1beta1Interface is a mock of AuthenticationV1beta1Interface interface. -type MockAuthenticationV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockAuthenticationV1beta1InterfaceMockRecorder -} - -// MockAuthenticationV1beta1InterfaceMockRecorder is the mock recorder for MockAuthenticationV1beta1Interface. -type MockAuthenticationV1beta1InterfaceMockRecorder struct { - mock *MockAuthenticationV1beta1Interface -} - -// NewMockAuthenticationV1beta1Interface creates a new mock instance. -func NewMockAuthenticationV1beta1Interface(ctrl *gomock.Controller) *MockAuthenticationV1beta1Interface { - mock := &MockAuthenticationV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockAuthenticationV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAuthenticationV1beta1Interface) EXPECT() *MockAuthenticationV1beta1InterfaceMockRecorder { - return m.recorder -} - -// RESTClient mocks base method. -func (m *MockAuthenticationV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAuthenticationV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAuthenticationV1beta1Interface)(nil).RESTClient)) -} - -// SelfSubjectReviews mocks base method. -func (m *MockAuthenticationV1beta1Interface) SelfSubjectReviews() v1beta1.SelfSubjectReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelfSubjectReviews") - ret0, _ := ret[0].(v1beta1.SelfSubjectReviewInterface) - return ret0 -} - -// SelfSubjectReviews indicates an expected call of SelfSubjectReviews. -func (mr *MockAuthenticationV1beta1InterfaceMockRecorder) SelfSubjectReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectReviews", reflect.TypeOf((*MockAuthenticationV1beta1Interface)(nil).SelfSubjectReviews)) -} - -// TokenReviews mocks base method. -func (m *MockAuthenticationV1beta1Interface) TokenReviews() v1beta1.TokenReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TokenReviews") - ret0, _ := ret[0].(v1beta1.TokenReviewInterface) - return ret0 -} - -// TokenReviews indicates an expected call of TokenReviews. -func (mr *MockAuthenticationV1beta1InterfaceMockRecorder) TokenReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TokenReviews", reflect.TypeOf((*MockAuthenticationV1beta1Interface)(nil).TokenReviews)) -} diff --git a/plugins/source/k8s/mocks/authorization/v1/client.go b/plugins/source/k8s/mocks/authorization/v1/client.go deleted file mode 100644 index c4ceb49779991a..00000000000000 --- a/plugins/source/k8s/mocks/authorization/v1/client.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/authorization/v1 (interfaces: AuthorizationV1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/authorization/v1" - rest "k8s.io/client-go/rest" -) - -// MockAuthorizationV1Interface is a mock of AuthorizationV1Interface interface. -type MockAuthorizationV1Interface struct { - ctrl *gomock.Controller - recorder *MockAuthorizationV1InterfaceMockRecorder -} - -// MockAuthorizationV1InterfaceMockRecorder is the mock recorder for MockAuthorizationV1Interface. -type MockAuthorizationV1InterfaceMockRecorder struct { - mock *MockAuthorizationV1Interface -} - -// NewMockAuthorizationV1Interface creates a new mock instance. -func NewMockAuthorizationV1Interface(ctrl *gomock.Controller) *MockAuthorizationV1Interface { - mock := &MockAuthorizationV1Interface{ctrl: ctrl} - mock.recorder = &MockAuthorizationV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAuthorizationV1Interface) EXPECT() *MockAuthorizationV1InterfaceMockRecorder { - return m.recorder -} - -// LocalSubjectAccessReviews mocks base method. -func (m *MockAuthorizationV1Interface) LocalSubjectAccessReviews(arg0 string) v1.LocalSubjectAccessReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LocalSubjectAccessReviews", arg0) - ret0, _ := ret[0].(v1.LocalSubjectAccessReviewInterface) - return ret0 -} - -// LocalSubjectAccessReviews indicates an expected call of LocalSubjectAccessReviews. -func (mr *MockAuthorizationV1InterfaceMockRecorder) LocalSubjectAccessReviews(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalSubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).LocalSubjectAccessReviews), arg0) -} - -// RESTClient mocks base method. -func (m *MockAuthorizationV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAuthorizationV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).RESTClient)) -} - -// SelfSubjectAccessReviews mocks base method. -func (m *MockAuthorizationV1Interface) SelfSubjectAccessReviews() v1.SelfSubjectAccessReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelfSubjectAccessReviews") - ret0, _ := ret[0].(v1.SelfSubjectAccessReviewInterface) - return ret0 -} - -// SelfSubjectAccessReviews indicates an expected call of SelfSubjectAccessReviews. -func (mr *MockAuthorizationV1InterfaceMockRecorder) SelfSubjectAccessReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).SelfSubjectAccessReviews)) -} - -// SelfSubjectRulesReviews mocks base method. -func (m *MockAuthorizationV1Interface) SelfSubjectRulesReviews() v1.SelfSubjectRulesReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelfSubjectRulesReviews") - ret0, _ := ret[0].(v1.SelfSubjectRulesReviewInterface) - return ret0 -} - -// SelfSubjectRulesReviews indicates an expected call of SelfSubjectRulesReviews. -func (mr *MockAuthorizationV1InterfaceMockRecorder) SelfSubjectRulesReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectRulesReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).SelfSubjectRulesReviews)) -} - -// SubjectAccessReviews mocks base method. -func (m *MockAuthorizationV1Interface) SubjectAccessReviews() v1.SubjectAccessReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SubjectAccessReviews") - ret0, _ := ret[0].(v1.SubjectAccessReviewInterface) - return ret0 -} - -// SubjectAccessReviews indicates an expected call of SubjectAccessReviews. -func (mr *MockAuthorizationV1InterfaceMockRecorder) SubjectAccessReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1Interface)(nil).SubjectAccessReviews)) -} diff --git a/plugins/source/k8s/mocks/authorization/v1beta1/client.go b/plugins/source/k8s/mocks/authorization/v1beta1/client.go deleted file mode 100644 index 5677329f652922..00000000000000 --- a/plugins/source/k8s/mocks/authorization/v1beta1/client.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/authorization/v1beta1 (interfaces: AuthorizationV1beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockAuthorizationV1beta1Interface is a mock of AuthorizationV1beta1Interface interface. -type MockAuthorizationV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockAuthorizationV1beta1InterfaceMockRecorder -} - -// MockAuthorizationV1beta1InterfaceMockRecorder is the mock recorder for MockAuthorizationV1beta1Interface. -type MockAuthorizationV1beta1InterfaceMockRecorder struct { - mock *MockAuthorizationV1beta1Interface -} - -// NewMockAuthorizationV1beta1Interface creates a new mock instance. -func NewMockAuthorizationV1beta1Interface(ctrl *gomock.Controller) *MockAuthorizationV1beta1Interface { - mock := &MockAuthorizationV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockAuthorizationV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAuthorizationV1beta1Interface) EXPECT() *MockAuthorizationV1beta1InterfaceMockRecorder { - return m.recorder -} - -// LocalSubjectAccessReviews mocks base method. -func (m *MockAuthorizationV1beta1Interface) LocalSubjectAccessReviews(arg0 string) v1beta1.LocalSubjectAccessReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LocalSubjectAccessReviews", arg0) - ret0, _ := ret[0].(v1beta1.LocalSubjectAccessReviewInterface) - return ret0 -} - -// LocalSubjectAccessReviews indicates an expected call of LocalSubjectAccessReviews. -func (mr *MockAuthorizationV1beta1InterfaceMockRecorder) LocalSubjectAccessReviews(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalSubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1beta1Interface)(nil).LocalSubjectAccessReviews), arg0) -} - -// RESTClient mocks base method. -func (m *MockAuthorizationV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAuthorizationV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAuthorizationV1beta1Interface)(nil).RESTClient)) -} - -// SelfSubjectAccessReviews mocks base method. -func (m *MockAuthorizationV1beta1Interface) SelfSubjectAccessReviews() v1beta1.SelfSubjectAccessReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelfSubjectAccessReviews") - ret0, _ := ret[0].(v1beta1.SelfSubjectAccessReviewInterface) - return ret0 -} - -// SelfSubjectAccessReviews indicates an expected call of SelfSubjectAccessReviews. -func (mr *MockAuthorizationV1beta1InterfaceMockRecorder) SelfSubjectAccessReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1beta1Interface)(nil).SelfSubjectAccessReviews)) -} - -// SelfSubjectRulesReviews mocks base method. -func (m *MockAuthorizationV1beta1Interface) SelfSubjectRulesReviews() v1beta1.SelfSubjectRulesReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SelfSubjectRulesReviews") - ret0, _ := ret[0].(v1beta1.SelfSubjectRulesReviewInterface) - return ret0 -} - -// SelfSubjectRulesReviews indicates an expected call of SelfSubjectRulesReviews. -func (mr *MockAuthorizationV1beta1InterfaceMockRecorder) SelfSubjectRulesReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfSubjectRulesReviews", reflect.TypeOf((*MockAuthorizationV1beta1Interface)(nil).SelfSubjectRulesReviews)) -} - -// SubjectAccessReviews mocks base method. -func (m *MockAuthorizationV1beta1Interface) SubjectAccessReviews() v1beta1.SubjectAccessReviewInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SubjectAccessReviews") - ret0, _ := ret[0].(v1beta1.SubjectAccessReviewInterface) - return ret0 -} - -// SubjectAccessReviews indicates an expected call of SubjectAccessReviews. -func (mr *MockAuthorizationV1beta1InterfaceMockRecorder) SubjectAccessReviews() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubjectAccessReviews", reflect.TypeOf((*MockAuthorizationV1beta1Interface)(nil).SubjectAccessReviews)) -} diff --git a/plugins/source/k8s/mocks/autoscaling/v1/client.go b/plugins/source/k8s/mocks/autoscaling/v1/client.go deleted file mode 100644 index b0a12a28b78da5..00000000000000 --- a/plugins/source/k8s/mocks/autoscaling/v1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/autoscaling/v1 (interfaces: AutoscalingV1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1" - rest "k8s.io/client-go/rest" -) - -// MockAutoscalingV1Interface is a mock of AutoscalingV1Interface interface. -type MockAutoscalingV1Interface struct { - ctrl *gomock.Controller - recorder *MockAutoscalingV1InterfaceMockRecorder -} - -// MockAutoscalingV1InterfaceMockRecorder is the mock recorder for MockAutoscalingV1Interface. -type MockAutoscalingV1InterfaceMockRecorder struct { - mock *MockAutoscalingV1Interface -} - -// NewMockAutoscalingV1Interface creates a new mock instance. -func NewMockAutoscalingV1Interface(ctrl *gomock.Controller) *MockAutoscalingV1Interface { - mock := &MockAutoscalingV1Interface{ctrl: ctrl} - mock.recorder = &MockAutoscalingV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAutoscalingV1Interface) EXPECT() *MockAutoscalingV1InterfaceMockRecorder { - return m.recorder -} - -// HorizontalPodAutoscalers mocks base method. -func (m *MockAutoscalingV1Interface) HorizontalPodAutoscalers(arg0 string) v1.HorizontalPodAutoscalerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HorizontalPodAutoscalers", arg0) - ret0, _ := ret[0].(v1.HorizontalPodAutoscalerInterface) - return ret0 -} - -// HorizontalPodAutoscalers indicates an expected call of HorizontalPodAutoscalers. -func (mr *MockAutoscalingV1InterfaceMockRecorder) HorizontalPodAutoscalers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HorizontalPodAutoscalers", reflect.TypeOf((*MockAutoscalingV1Interface)(nil).HorizontalPodAutoscalers), arg0) -} - -// RESTClient mocks base method. -func (m *MockAutoscalingV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAutoscalingV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAutoscalingV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/autoscaling/v1/hpa.go b/plugins/source/k8s/mocks/autoscaling/v1/hpa.go deleted file mode 100644 index a9fa9263f7e4f5..00000000000000 --- a/plugins/source/k8s/mocks/autoscaling/v1/hpa.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/autoscaling/v1 (interfaces: HorizontalPodAutoscalersGetter,HorizontalPodAutoscalerInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/autoscaling/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/autoscaling/v1" - v12 "k8s.io/client-go/kubernetes/typed/autoscaling/v1" -) - -// MockHorizontalPodAutoscalersGetter is a mock of HorizontalPodAutoscalersGetter interface. -type MockHorizontalPodAutoscalersGetter struct { - ctrl *gomock.Controller - recorder *MockHorizontalPodAutoscalersGetterMockRecorder -} - -// MockHorizontalPodAutoscalersGetterMockRecorder is the mock recorder for MockHorizontalPodAutoscalersGetter. -type MockHorizontalPodAutoscalersGetterMockRecorder struct { - mock *MockHorizontalPodAutoscalersGetter -} - -// NewMockHorizontalPodAutoscalersGetter creates a new mock instance. -func NewMockHorizontalPodAutoscalersGetter(ctrl *gomock.Controller) *MockHorizontalPodAutoscalersGetter { - mock := &MockHorizontalPodAutoscalersGetter{ctrl: ctrl} - mock.recorder = &MockHorizontalPodAutoscalersGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockHorizontalPodAutoscalersGetter) EXPECT() *MockHorizontalPodAutoscalersGetterMockRecorder { - return m.recorder -} - -// HorizontalPodAutoscalers mocks base method. -func (m *MockHorizontalPodAutoscalersGetter) HorizontalPodAutoscalers(arg0 string) v12.HorizontalPodAutoscalerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HorizontalPodAutoscalers", arg0) - ret0, _ := ret[0].(v12.HorizontalPodAutoscalerInterface) - return ret0 -} - -// HorizontalPodAutoscalers indicates an expected call of HorizontalPodAutoscalers. -func (mr *MockHorizontalPodAutoscalersGetterMockRecorder) HorizontalPodAutoscalers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HorizontalPodAutoscalers", reflect.TypeOf((*MockHorizontalPodAutoscalersGetter)(nil).HorizontalPodAutoscalers), arg0) -} - -// MockHorizontalPodAutoscalerInterface is a mock of HorizontalPodAutoscalerInterface interface. -type MockHorizontalPodAutoscalerInterface struct { - ctrl *gomock.Controller - recorder *MockHorizontalPodAutoscalerInterfaceMockRecorder -} - -// MockHorizontalPodAutoscalerInterfaceMockRecorder is the mock recorder for MockHorizontalPodAutoscalerInterface. -type MockHorizontalPodAutoscalerInterfaceMockRecorder struct { - mock *MockHorizontalPodAutoscalerInterface -} - -// NewMockHorizontalPodAutoscalerInterface creates a new mock instance. -func NewMockHorizontalPodAutoscalerInterface(ctrl *gomock.Controller) *MockHorizontalPodAutoscalerInterface { - mock := &MockHorizontalPodAutoscalerInterface{ctrl: ctrl} - mock.recorder = &MockHorizontalPodAutoscalerInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockHorizontalPodAutoscalerInterface) EXPECT() *MockHorizontalPodAutoscalerInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Apply(arg0 context.Context, arg1 *v11.HorizontalPodAutoscalerApplyConfiguration, arg2 v10.ApplyOptions) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) ApplyStatus(arg0 context.Context, arg1 *v11.HorizontalPodAutoscalerApplyConfiguration, arg2 v10.ApplyOptions) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Create(arg0 context.Context, arg1 *v1.HorizontalPodAutoscaler, arg2 v10.CreateOptions) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.HorizontalPodAutoscalerList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscalerList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Update(arg0 context.Context, arg1 *v1.HorizontalPodAutoscaler, arg2 v10.UpdateOptions) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) UpdateStatus(arg0 context.Context, arg1 *v1.HorizontalPodAutoscaler, arg2 v10.UpdateOptions) (*v1.HorizontalPodAutoscaler, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.HorizontalPodAutoscaler) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockHorizontalPodAutoscalerInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockHorizontalPodAutoscalerInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockHorizontalPodAutoscalerInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/autoscaling/v2/client.go b/plugins/source/k8s/mocks/autoscaling/v2/client.go deleted file mode 100644 index 2ecec6ef859e9a..00000000000000 --- a/plugins/source/k8s/mocks/autoscaling/v2/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/autoscaling/v2 (interfaces: AutoscalingV2Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2" - rest "k8s.io/client-go/rest" -) - -// MockAutoscalingV2Interface is a mock of AutoscalingV2Interface interface. -type MockAutoscalingV2Interface struct { - ctrl *gomock.Controller - recorder *MockAutoscalingV2InterfaceMockRecorder -} - -// MockAutoscalingV2InterfaceMockRecorder is the mock recorder for MockAutoscalingV2Interface. -type MockAutoscalingV2InterfaceMockRecorder struct { - mock *MockAutoscalingV2Interface -} - -// NewMockAutoscalingV2Interface creates a new mock instance. -func NewMockAutoscalingV2Interface(ctrl *gomock.Controller) *MockAutoscalingV2Interface { - mock := &MockAutoscalingV2Interface{ctrl: ctrl} - mock.recorder = &MockAutoscalingV2InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAutoscalingV2Interface) EXPECT() *MockAutoscalingV2InterfaceMockRecorder { - return m.recorder -} - -// HorizontalPodAutoscalers mocks base method. -func (m *MockAutoscalingV2Interface) HorizontalPodAutoscalers(arg0 string) v2.HorizontalPodAutoscalerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HorizontalPodAutoscalers", arg0) - ret0, _ := ret[0].(v2.HorizontalPodAutoscalerInterface) - return ret0 -} - -// HorizontalPodAutoscalers indicates an expected call of HorizontalPodAutoscalers. -func (mr *MockAutoscalingV2InterfaceMockRecorder) HorizontalPodAutoscalers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HorizontalPodAutoscalers", reflect.TypeOf((*MockAutoscalingV2Interface)(nil).HorizontalPodAutoscalers), arg0) -} - -// RESTClient mocks base method. -func (m *MockAutoscalingV2Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAutoscalingV2InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAutoscalingV2Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/autoscaling/v2beta1/client.go b/plugins/source/k8s/mocks/autoscaling/v2beta1/client.go deleted file mode 100644 index 0dfabb4c171ad8..00000000000000 --- a/plugins/source/k8s/mocks/autoscaling/v2beta1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1 (interfaces: AutoscalingV2beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" - rest "k8s.io/client-go/rest" -) - -// MockAutoscalingV2beta1Interface is a mock of AutoscalingV2beta1Interface interface. -type MockAutoscalingV2beta1Interface struct { - ctrl *gomock.Controller - recorder *MockAutoscalingV2beta1InterfaceMockRecorder -} - -// MockAutoscalingV2beta1InterfaceMockRecorder is the mock recorder for MockAutoscalingV2beta1Interface. -type MockAutoscalingV2beta1InterfaceMockRecorder struct { - mock *MockAutoscalingV2beta1Interface -} - -// NewMockAutoscalingV2beta1Interface creates a new mock instance. -func NewMockAutoscalingV2beta1Interface(ctrl *gomock.Controller) *MockAutoscalingV2beta1Interface { - mock := &MockAutoscalingV2beta1Interface{ctrl: ctrl} - mock.recorder = &MockAutoscalingV2beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAutoscalingV2beta1Interface) EXPECT() *MockAutoscalingV2beta1InterfaceMockRecorder { - return m.recorder -} - -// HorizontalPodAutoscalers mocks base method. -func (m *MockAutoscalingV2beta1Interface) HorizontalPodAutoscalers(arg0 string) v2beta1.HorizontalPodAutoscalerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HorizontalPodAutoscalers", arg0) - ret0, _ := ret[0].(v2beta1.HorizontalPodAutoscalerInterface) - return ret0 -} - -// HorizontalPodAutoscalers indicates an expected call of HorizontalPodAutoscalers. -func (mr *MockAutoscalingV2beta1InterfaceMockRecorder) HorizontalPodAutoscalers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HorizontalPodAutoscalers", reflect.TypeOf((*MockAutoscalingV2beta1Interface)(nil).HorizontalPodAutoscalers), arg0) -} - -// RESTClient mocks base method. -func (m *MockAutoscalingV2beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAutoscalingV2beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAutoscalingV2beta1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/autoscaling/v2beta2/client.go b/plugins/source/k8s/mocks/autoscaling/v2beta2/client.go deleted file mode 100644 index c48f0d897714f2..00000000000000 --- a/plugins/source/k8s/mocks/autoscaling/v2beta2/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2 (interfaces: AutoscalingV2beta2Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2" - rest "k8s.io/client-go/rest" -) - -// MockAutoscalingV2beta2Interface is a mock of AutoscalingV2beta2Interface interface. -type MockAutoscalingV2beta2Interface struct { - ctrl *gomock.Controller - recorder *MockAutoscalingV2beta2InterfaceMockRecorder -} - -// MockAutoscalingV2beta2InterfaceMockRecorder is the mock recorder for MockAutoscalingV2beta2Interface. -type MockAutoscalingV2beta2InterfaceMockRecorder struct { - mock *MockAutoscalingV2beta2Interface -} - -// NewMockAutoscalingV2beta2Interface creates a new mock instance. -func NewMockAutoscalingV2beta2Interface(ctrl *gomock.Controller) *MockAutoscalingV2beta2Interface { - mock := &MockAutoscalingV2beta2Interface{ctrl: ctrl} - mock.recorder = &MockAutoscalingV2beta2InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockAutoscalingV2beta2Interface) EXPECT() *MockAutoscalingV2beta2InterfaceMockRecorder { - return m.recorder -} - -// HorizontalPodAutoscalers mocks base method. -func (m *MockAutoscalingV2beta2Interface) HorizontalPodAutoscalers(arg0 string) v2beta2.HorizontalPodAutoscalerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "HorizontalPodAutoscalers", arg0) - ret0, _ := ret[0].(v2beta2.HorizontalPodAutoscalerInterface) - return ret0 -} - -// HorizontalPodAutoscalers indicates an expected call of HorizontalPodAutoscalers. -func (mr *MockAutoscalingV2beta2InterfaceMockRecorder) HorizontalPodAutoscalers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HorizontalPodAutoscalers", reflect.TypeOf((*MockAutoscalingV2beta2Interface)(nil).HorizontalPodAutoscalers), arg0) -} - -// RESTClient mocks base method. -func (m *MockAutoscalingV2beta2Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockAutoscalingV2beta2InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAutoscalingV2beta2Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/batch/v1/client.go b/plugins/source/k8s/mocks/batch/v1/client.go deleted file mode 100644 index 2a264738d59d78..00000000000000 --- a/plugins/source/k8s/mocks/batch/v1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/batch/v1 (interfaces: BatchV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/batch/v1" - rest "k8s.io/client-go/rest" -) - -// MockBatchV1Interface is a mock of BatchV1Interface interface. -type MockBatchV1Interface struct { - ctrl *gomock.Controller - recorder *MockBatchV1InterfaceMockRecorder -} - -// MockBatchV1InterfaceMockRecorder is the mock recorder for MockBatchV1Interface. -type MockBatchV1InterfaceMockRecorder struct { - mock *MockBatchV1Interface -} - -// NewMockBatchV1Interface creates a new mock instance. -func NewMockBatchV1Interface(ctrl *gomock.Controller) *MockBatchV1Interface { - mock := &MockBatchV1Interface{ctrl: ctrl} - mock.recorder = &MockBatchV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockBatchV1Interface) EXPECT() *MockBatchV1InterfaceMockRecorder { - return m.recorder -} - -// CronJobs mocks base method. -func (m *MockBatchV1Interface) CronJobs(arg0 string) v1.CronJobInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CronJobs", arg0) - ret0, _ := ret[0].(v1.CronJobInterface) - return ret0 -} - -// CronJobs indicates an expected call of CronJobs. -func (mr *MockBatchV1InterfaceMockRecorder) CronJobs(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CronJobs", reflect.TypeOf((*MockBatchV1Interface)(nil).CronJobs), arg0) -} - -// Jobs mocks base method. -func (m *MockBatchV1Interface) Jobs(arg0 string) v1.JobInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Jobs", arg0) - ret0, _ := ret[0].(v1.JobInterface) - return ret0 -} - -// Jobs indicates an expected call of Jobs. -func (mr *MockBatchV1InterfaceMockRecorder) Jobs(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Jobs", reflect.TypeOf((*MockBatchV1Interface)(nil).Jobs), arg0) -} - -// RESTClient mocks base method. -func (m *MockBatchV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockBatchV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockBatchV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/batch/v1/cronjobs.go b/plugins/source/k8s/mocks/batch/v1/cronjobs.go deleted file mode 100644 index 930be2579c7e8b..00000000000000 --- a/plugins/source/k8s/mocks/batch/v1/cronjobs.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/batch/v1 (interfaces: CronJobsGetter,CronJobInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/batch/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/batch/v1" - v12 "k8s.io/client-go/kubernetes/typed/batch/v1" -) - -// MockCronJobsGetter is a mock of CronJobsGetter interface. -type MockCronJobsGetter struct { - ctrl *gomock.Controller - recorder *MockCronJobsGetterMockRecorder -} - -// MockCronJobsGetterMockRecorder is the mock recorder for MockCronJobsGetter. -type MockCronJobsGetterMockRecorder struct { - mock *MockCronJobsGetter -} - -// NewMockCronJobsGetter creates a new mock instance. -func NewMockCronJobsGetter(ctrl *gomock.Controller) *MockCronJobsGetter { - mock := &MockCronJobsGetter{ctrl: ctrl} - mock.recorder = &MockCronJobsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCronJobsGetter) EXPECT() *MockCronJobsGetterMockRecorder { - return m.recorder -} - -// CronJobs mocks base method. -func (m *MockCronJobsGetter) CronJobs(arg0 string) v12.CronJobInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CronJobs", arg0) - ret0, _ := ret[0].(v12.CronJobInterface) - return ret0 -} - -// CronJobs indicates an expected call of CronJobs. -func (mr *MockCronJobsGetterMockRecorder) CronJobs(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CronJobs", reflect.TypeOf((*MockCronJobsGetter)(nil).CronJobs), arg0) -} - -// MockCronJobInterface is a mock of CronJobInterface interface. -type MockCronJobInterface struct { - ctrl *gomock.Controller - recorder *MockCronJobInterfaceMockRecorder -} - -// MockCronJobInterfaceMockRecorder is the mock recorder for MockCronJobInterface. -type MockCronJobInterfaceMockRecorder struct { - mock *MockCronJobInterface -} - -// NewMockCronJobInterface creates a new mock instance. -func NewMockCronJobInterface(ctrl *gomock.Controller) *MockCronJobInterface { - mock := &MockCronJobInterface{ctrl: ctrl} - mock.recorder = &MockCronJobInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCronJobInterface) EXPECT() *MockCronJobInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockCronJobInterface) Apply(arg0 context.Context, arg1 *v11.CronJobApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CronJob, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockCronJobInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCronJobInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockCronJobInterface) ApplyStatus(arg0 context.Context, arg1 *v11.CronJobApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CronJob, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockCronJobInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockCronJobInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockCronJobInterface) Create(arg0 context.Context, arg1 *v1.CronJob, arg2 v10.CreateOptions) (*v1.CronJob, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockCronJobInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCronJobInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockCronJobInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockCronJobInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockCronJobInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockCronJobInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockCronJobInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockCronJobInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockCronJobInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.CronJob, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockCronJobInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCronJobInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockCronJobInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.CronJobList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.CronJobList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockCronJobInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCronJobInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockCronJobInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.CronJob, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockCronJobInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockCronJobInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockCronJobInterface) Update(arg0 context.Context, arg1 *v1.CronJob, arg2 v10.UpdateOptions) (*v1.CronJob, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockCronJobInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCronJobInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockCronJobInterface) UpdateStatus(arg0 context.Context, arg1 *v1.CronJob, arg2 v10.UpdateOptions) (*v1.CronJob, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CronJob) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockCronJobInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockCronJobInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockCronJobInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockCronJobInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockCronJobInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/batch/v1/jobs.go b/plugins/source/k8s/mocks/batch/v1/jobs.go deleted file mode 100644 index 76d87ffa10db0f..00000000000000 --- a/plugins/source/k8s/mocks/batch/v1/jobs.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/batch/v1 (interfaces: JobsGetter,JobInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/batch/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/batch/v1" - v12 "k8s.io/client-go/kubernetes/typed/batch/v1" -) - -// MockJobsGetter is a mock of JobsGetter interface. -type MockJobsGetter struct { - ctrl *gomock.Controller - recorder *MockJobsGetterMockRecorder -} - -// MockJobsGetterMockRecorder is the mock recorder for MockJobsGetter. -type MockJobsGetterMockRecorder struct { - mock *MockJobsGetter -} - -// NewMockJobsGetter creates a new mock instance. -func NewMockJobsGetter(ctrl *gomock.Controller) *MockJobsGetter { - mock := &MockJobsGetter{ctrl: ctrl} - mock.recorder = &MockJobsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockJobsGetter) EXPECT() *MockJobsGetterMockRecorder { - return m.recorder -} - -// Jobs mocks base method. -func (m *MockJobsGetter) Jobs(arg0 string) v12.JobInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Jobs", arg0) - ret0, _ := ret[0].(v12.JobInterface) - return ret0 -} - -// Jobs indicates an expected call of Jobs. -func (mr *MockJobsGetterMockRecorder) Jobs(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Jobs", reflect.TypeOf((*MockJobsGetter)(nil).Jobs), arg0) -} - -// MockJobInterface is a mock of JobInterface interface. -type MockJobInterface struct { - ctrl *gomock.Controller - recorder *MockJobInterfaceMockRecorder -} - -// MockJobInterfaceMockRecorder is the mock recorder for MockJobInterface. -type MockJobInterfaceMockRecorder struct { - mock *MockJobInterface -} - -// NewMockJobInterface creates a new mock instance. -func NewMockJobInterface(ctrl *gomock.Controller) *MockJobInterface { - mock := &MockJobInterface{ctrl: ctrl} - mock.recorder = &MockJobInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockJobInterface) EXPECT() *MockJobInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockJobInterface) Apply(arg0 context.Context, arg1 *v11.JobApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Job, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockJobInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockJobInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockJobInterface) ApplyStatus(arg0 context.Context, arg1 *v11.JobApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Job, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockJobInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockJobInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockJobInterface) Create(arg0 context.Context, arg1 *v1.Job, arg2 v10.CreateOptions) (*v1.Job, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockJobInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockJobInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockJobInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockJobInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockJobInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockJobInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockJobInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockJobInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockJobInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Job, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockJobInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockJobInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockJobInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.JobList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.JobList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockJobInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockJobInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockJobInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Job, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockJobInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockJobInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockJobInterface) Update(arg0 context.Context, arg1 *v1.Job, arg2 v10.UpdateOptions) (*v1.Job, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockJobInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockJobInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockJobInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Job, arg2 v10.UpdateOptions) (*v1.Job, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Job) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockJobInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockJobInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockJobInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockJobInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockJobInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/batch/v1beta1/client.go b/plugins/source/k8s/mocks/batch/v1beta1/client.go deleted file mode 100644 index 1268d0f917e72c..00000000000000 --- a/plugins/source/k8s/mocks/batch/v1beta1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/batch/v1beta1 (interfaces: BatchV1beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockBatchV1beta1Interface is a mock of BatchV1beta1Interface interface. -type MockBatchV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockBatchV1beta1InterfaceMockRecorder -} - -// MockBatchV1beta1InterfaceMockRecorder is the mock recorder for MockBatchV1beta1Interface. -type MockBatchV1beta1InterfaceMockRecorder struct { - mock *MockBatchV1beta1Interface -} - -// NewMockBatchV1beta1Interface creates a new mock instance. -func NewMockBatchV1beta1Interface(ctrl *gomock.Controller) *MockBatchV1beta1Interface { - mock := &MockBatchV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockBatchV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockBatchV1beta1Interface) EXPECT() *MockBatchV1beta1InterfaceMockRecorder { - return m.recorder -} - -// CronJobs mocks base method. -func (m *MockBatchV1beta1Interface) CronJobs(arg0 string) v1beta1.CronJobInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CronJobs", arg0) - ret0, _ := ret[0].(v1beta1.CronJobInterface) - return ret0 -} - -// CronJobs indicates an expected call of CronJobs. -func (mr *MockBatchV1beta1InterfaceMockRecorder) CronJobs(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CronJobs", reflect.TypeOf((*MockBatchV1beta1Interface)(nil).CronJobs), arg0) -} - -// RESTClient mocks base method. -func (m *MockBatchV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockBatchV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockBatchV1beta1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/certificates/v1/client.go b/plugins/source/k8s/mocks/certificates/v1/client.go deleted file mode 100644 index 717eb17dbfa2b9..00000000000000 --- a/plugins/source/k8s/mocks/certificates/v1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/certificates/v1 (interfaces: CertificatesV1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/certificates/v1" - rest "k8s.io/client-go/rest" -) - -// MockCertificatesV1Interface is a mock of CertificatesV1Interface interface. -type MockCertificatesV1Interface struct { - ctrl *gomock.Controller - recorder *MockCertificatesV1InterfaceMockRecorder -} - -// MockCertificatesV1InterfaceMockRecorder is the mock recorder for MockCertificatesV1Interface. -type MockCertificatesV1InterfaceMockRecorder struct { - mock *MockCertificatesV1Interface -} - -// NewMockCertificatesV1Interface creates a new mock instance. -func NewMockCertificatesV1Interface(ctrl *gomock.Controller) *MockCertificatesV1Interface { - mock := &MockCertificatesV1Interface{ctrl: ctrl} - mock.recorder = &MockCertificatesV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCertificatesV1Interface) EXPECT() *MockCertificatesV1InterfaceMockRecorder { - return m.recorder -} - -// CertificateSigningRequests mocks base method. -func (m *MockCertificatesV1Interface) CertificateSigningRequests() v1.CertificateSigningRequestInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CertificateSigningRequests") - ret0, _ := ret[0].(v1.CertificateSigningRequestInterface) - return ret0 -} - -// CertificateSigningRequests indicates an expected call of CertificateSigningRequests. -func (mr *MockCertificatesV1InterfaceMockRecorder) CertificateSigningRequests() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CertificateSigningRequests", reflect.TypeOf((*MockCertificatesV1Interface)(nil).CertificateSigningRequests)) -} - -// RESTClient mocks base method. -func (m *MockCertificatesV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockCertificatesV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockCertificatesV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/certificates/v1/csrs.go b/plugins/source/k8s/mocks/certificates/v1/csrs.go deleted file mode 100644 index ec300a7b684189..00000000000000 --- a/plugins/source/k8s/mocks/certificates/v1/csrs.go +++ /dev/null @@ -1,261 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/certificates/v1 (interfaces: CertificateSigningRequestsGetter,CertificateSigningRequestInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/certificates/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/certificates/v1" - v12 "k8s.io/client-go/kubernetes/typed/certificates/v1" -) - -// MockCertificateSigningRequestsGetter is a mock of CertificateSigningRequestsGetter interface. -type MockCertificateSigningRequestsGetter struct { - ctrl *gomock.Controller - recorder *MockCertificateSigningRequestsGetterMockRecorder -} - -// MockCertificateSigningRequestsGetterMockRecorder is the mock recorder for MockCertificateSigningRequestsGetter. -type MockCertificateSigningRequestsGetterMockRecorder struct { - mock *MockCertificateSigningRequestsGetter -} - -// NewMockCertificateSigningRequestsGetter creates a new mock instance. -func NewMockCertificateSigningRequestsGetter(ctrl *gomock.Controller) *MockCertificateSigningRequestsGetter { - mock := &MockCertificateSigningRequestsGetter{ctrl: ctrl} - mock.recorder = &MockCertificateSigningRequestsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCertificateSigningRequestsGetter) EXPECT() *MockCertificateSigningRequestsGetterMockRecorder { - return m.recorder -} - -// CertificateSigningRequests mocks base method. -func (m *MockCertificateSigningRequestsGetter) CertificateSigningRequests() v12.CertificateSigningRequestInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CertificateSigningRequests") - ret0, _ := ret[0].(v12.CertificateSigningRequestInterface) - return ret0 -} - -// CertificateSigningRequests indicates an expected call of CertificateSigningRequests. -func (mr *MockCertificateSigningRequestsGetterMockRecorder) CertificateSigningRequests() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CertificateSigningRequests", reflect.TypeOf((*MockCertificateSigningRequestsGetter)(nil).CertificateSigningRequests)) -} - -// MockCertificateSigningRequestInterface is a mock of CertificateSigningRequestInterface interface. -type MockCertificateSigningRequestInterface struct { - ctrl *gomock.Controller - recorder *MockCertificateSigningRequestInterfaceMockRecorder -} - -// MockCertificateSigningRequestInterfaceMockRecorder is the mock recorder for MockCertificateSigningRequestInterface. -type MockCertificateSigningRequestInterfaceMockRecorder struct { - mock *MockCertificateSigningRequestInterface -} - -// NewMockCertificateSigningRequestInterface creates a new mock instance. -func NewMockCertificateSigningRequestInterface(ctrl *gomock.Controller) *MockCertificateSigningRequestInterface { - mock := &MockCertificateSigningRequestInterface{ctrl: ctrl} - mock.recorder = &MockCertificateSigningRequestInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCertificateSigningRequestInterface) EXPECT() *MockCertificateSigningRequestInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockCertificateSigningRequestInterface) Apply(arg0 context.Context, arg1 *v11.CertificateSigningRequestApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockCertificateSigningRequestInterface) ApplyStatus(arg0 context.Context, arg1 *v11.CertificateSigningRequestApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockCertificateSigningRequestInterface) Create(arg0 context.Context, arg1 *v1.CertificateSigningRequest, arg2 v10.CreateOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockCertificateSigningRequestInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockCertificateSigningRequestInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockCertificateSigningRequestInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockCertificateSigningRequestInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.CertificateSigningRequestList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.CertificateSigningRequestList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockCertificateSigningRequestInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockCertificateSigningRequestInterface) Update(arg0 context.Context, arg1 *v1.CertificateSigningRequest, arg2 v10.UpdateOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateApproval mocks base method. -func (m *MockCertificateSigningRequestInterface) UpdateApproval(arg0 context.Context, arg1 string, arg2 *v1.CertificateSigningRequest, arg3 v10.UpdateOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateApproval", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateApproval indicates an expected call of UpdateApproval. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) UpdateApproval(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateApproval", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).UpdateApproval), arg0, arg1, arg2, arg3) -} - -// UpdateStatus mocks base method. -func (m *MockCertificateSigningRequestInterface) UpdateStatus(arg0 context.Context, arg1 *v1.CertificateSigningRequest, arg2 v10.UpdateOptions) (*v1.CertificateSigningRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CertificateSigningRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockCertificateSigningRequestInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockCertificateSigningRequestInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockCertificateSigningRequestInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/certificates/v1beta1/client.go b/plugins/source/k8s/mocks/certificates/v1beta1/client.go deleted file mode 100644 index 9cbdc7e253961b..00000000000000 --- a/plugins/source/k8s/mocks/certificates/v1beta1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/certificates/v1beta1 (interfaces: CertificatesV1beta1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockCertificatesV1beta1Interface is a mock of CertificatesV1beta1Interface interface. -type MockCertificatesV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockCertificatesV1beta1InterfaceMockRecorder -} - -// MockCertificatesV1beta1InterfaceMockRecorder is the mock recorder for MockCertificatesV1beta1Interface. -type MockCertificatesV1beta1InterfaceMockRecorder struct { - mock *MockCertificatesV1beta1Interface -} - -// NewMockCertificatesV1beta1Interface creates a new mock instance. -func NewMockCertificatesV1beta1Interface(ctrl *gomock.Controller) *MockCertificatesV1beta1Interface { - mock := &MockCertificatesV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockCertificatesV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCertificatesV1beta1Interface) EXPECT() *MockCertificatesV1beta1InterfaceMockRecorder { - return m.recorder -} - -// CertificateSigningRequests mocks base method. -func (m *MockCertificatesV1beta1Interface) CertificateSigningRequests() v1beta1.CertificateSigningRequestInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CertificateSigningRequests") - ret0, _ := ret[0].(v1beta1.CertificateSigningRequestInterface) - return ret0 -} - -// CertificateSigningRequests indicates an expected call of CertificateSigningRequests. -func (mr *MockCertificatesV1beta1InterfaceMockRecorder) CertificateSigningRequests() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CertificateSigningRequests", reflect.TypeOf((*MockCertificatesV1beta1Interface)(nil).CertificateSigningRequests)) -} - -// RESTClient mocks base method. -func (m *MockCertificatesV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockCertificatesV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockCertificatesV1beta1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/coordination/v1/client.go b/plugins/source/k8s/mocks/coordination/v1/client.go deleted file mode 100644 index ac69cf8ec87f5a..00000000000000 --- a/plugins/source/k8s/mocks/coordination/v1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/coordination/v1 (interfaces: CoordinationV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/coordination/v1" - rest "k8s.io/client-go/rest" -) - -// MockCoordinationV1Interface is a mock of CoordinationV1Interface interface. -type MockCoordinationV1Interface struct { - ctrl *gomock.Controller - recorder *MockCoordinationV1InterfaceMockRecorder -} - -// MockCoordinationV1InterfaceMockRecorder is the mock recorder for MockCoordinationV1Interface. -type MockCoordinationV1InterfaceMockRecorder struct { - mock *MockCoordinationV1Interface -} - -// NewMockCoordinationV1Interface creates a new mock instance. -func NewMockCoordinationV1Interface(ctrl *gomock.Controller) *MockCoordinationV1Interface { - mock := &MockCoordinationV1Interface{ctrl: ctrl} - mock.recorder = &MockCoordinationV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCoordinationV1Interface) EXPECT() *MockCoordinationV1InterfaceMockRecorder { - return m.recorder -} - -// Leases mocks base method. -func (m *MockCoordinationV1Interface) Leases(arg0 string) v1.LeaseInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Leases", arg0) - ret0, _ := ret[0].(v1.LeaseInterface) - return ret0 -} - -// Leases indicates an expected call of Leases. -func (mr *MockCoordinationV1InterfaceMockRecorder) Leases(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Leases", reflect.TypeOf((*MockCoordinationV1Interface)(nil).Leases), arg0) -} - -// RESTClient mocks base method. -func (m *MockCoordinationV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockCoordinationV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockCoordinationV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/coordination/v1/lease.go b/plugins/source/k8s/mocks/coordination/v1/lease.go deleted file mode 100644 index 004cb769d16759..00000000000000 --- a/plugins/source/k8s/mocks/coordination/v1/lease.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/coordination/v1 (interfaces: LeasesGetter,LeaseInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/coordination/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/coordination/v1" - v12 "k8s.io/client-go/kubernetes/typed/coordination/v1" -) - -// MockLeasesGetter is a mock of LeasesGetter interface. -type MockLeasesGetter struct { - ctrl *gomock.Controller - recorder *MockLeasesGetterMockRecorder -} - -// MockLeasesGetterMockRecorder is the mock recorder for MockLeasesGetter. -type MockLeasesGetterMockRecorder struct { - mock *MockLeasesGetter -} - -// NewMockLeasesGetter creates a new mock instance. -func NewMockLeasesGetter(ctrl *gomock.Controller) *MockLeasesGetter { - mock := &MockLeasesGetter{ctrl: ctrl} - mock.recorder = &MockLeasesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockLeasesGetter) EXPECT() *MockLeasesGetterMockRecorder { - return m.recorder -} - -// Leases mocks base method. -func (m *MockLeasesGetter) Leases(arg0 string) v12.LeaseInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Leases", arg0) - ret0, _ := ret[0].(v12.LeaseInterface) - return ret0 -} - -// Leases indicates an expected call of Leases. -func (mr *MockLeasesGetterMockRecorder) Leases(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Leases", reflect.TypeOf((*MockLeasesGetter)(nil).Leases), arg0) -} - -// MockLeaseInterface is a mock of LeaseInterface interface. -type MockLeaseInterface struct { - ctrl *gomock.Controller - recorder *MockLeaseInterfaceMockRecorder -} - -// MockLeaseInterfaceMockRecorder is the mock recorder for MockLeaseInterface. -type MockLeaseInterfaceMockRecorder struct { - mock *MockLeaseInterface -} - -// NewMockLeaseInterface creates a new mock instance. -func NewMockLeaseInterface(ctrl *gomock.Controller) *MockLeaseInterface { - mock := &MockLeaseInterface{ctrl: ctrl} - mock.recorder = &MockLeaseInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockLeaseInterface) EXPECT() *MockLeaseInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockLeaseInterface) Apply(arg0 context.Context, arg1 *v11.LeaseApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Lease, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Lease) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockLeaseInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockLeaseInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockLeaseInterface) Create(arg0 context.Context, arg1 *v1.Lease, arg2 v10.CreateOptions) (*v1.Lease, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Lease) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockLeaseInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockLeaseInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockLeaseInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockLeaseInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockLeaseInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockLeaseInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockLeaseInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockLeaseInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockLeaseInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Lease, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Lease) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockLeaseInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockLeaseInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockLeaseInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.LeaseList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.LeaseList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockLeaseInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockLeaseInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockLeaseInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Lease, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Lease) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockLeaseInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockLeaseInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockLeaseInterface) Update(arg0 context.Context, arg1 *v1.Lease, arg2 v10.UpdateOptions) (*v1.Lease, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Lease) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockLeaseInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockLeaseInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockLeaseInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockLeaseInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockLeaseInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/client.go b/plugins/source/k8s/mocks/core/v1/client.go deleted file mode 100644 index b9f75da4447094..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/client.go +++ /dev/null @@ -1,274 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: CoreV1Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/core/v1" - rest "k8s.io/client-go/rest" -) - -// MockCoreV1Interface is a mock of CoreV1Interface interface. -type MockCoreV1Interface struct { - ctrl *gomock.Controller - recorder *MockCoreV1InterfaceMockRecorder -} - -// MockCoreV1InterfaceMockRecorder is the mock recorder for MockCoreV1Interface. -type MockCoreV1InterfaceMockRecorder struct { - mock *MockCoreV1Interface -} - -// NewMockCoreV1Interface creates a new mock instance. -func NewMockCoreV1Interface(ctrl *gomock.Controller) *MockCoreV1Interface { - mock := &MockCoreV1Interface{ctrl: ctrl} - mock.recorder = &MockCoreV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCoreV1Interface) EXPECT() *MockCoreV1InterfaceMockRecorder { - return m.recorder -} - -// ComponentStatuses mocks base method. -func (m *MockCoreV1Interface) ComponentStatuses() v1.ComponentStatusInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ComponentStatuses") - ret0, _ := ret[0].(v1.ComponentStatusInterface) - return ret0 -} - -// ComponentStatuses indicates an expected call of ComponentStatuses. -func (mr *MockCoreV1InterfaceMockRecorder) ComponentStatuses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ComponentStatuses", reflect.TypeOf((*MockCoreV1Interface)(nil).ComponentStatuses)) -} - -// ConfigMaps mocks base method. -func (m *MockCoreV1Interface) ConfigMaps(arg0 string) v1.ConfigMapInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ConfigMaps", arg0) - ret0, _ := ret[0].(v1.ConfigMapInterface) - return ret0 -} - -// ConfigMaps indicates an expected call of ConfigMaps. -func (mr *MockCoreV1InterfaceMockRecorder) ConfigMaps(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigMaps", reflect.TypeOf((*MockCoreV1Interface)(nil).ConfigMaps), arg0) -} - -// Endpoints mocks base method. -func (m *MockCoreV1Interface) Endpoints(arg0 string) v1.EndpointsInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Endpoints", arg0) - ret0, _ := ret[0].(v1.EndpointsInterface) - return ret0 -} - -// Endpoints indicates an expected call of Endpoints. -func (mr *MockCoreV1InterfaceMockRecorder) Endpoints(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endpoints", reflect.TypeOf((*MockCoreV1Interface)(nil).Endpoints), arg0) -} - -// Events mocks base method. -func (m *MockCoreV1Interface) Events(arg0 string) v1.EventInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Events", arg0) - ret0, _ := ret[0].(v1.EventInterface) - return ret0 -} - -// Events indicates an expected call of Events. -func (mr *MockCoreV1InterfaceMockRecorder) Events(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockCoreV1Interface)(nil).Events), arg0) -} - -// LimitRanges mocks base method. -func (m *MockCoreV1Interface) LimitRanges(arg0 string) v1.LimitRangeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LimitRanges", arg0) - ret0, _ := ret[0].(v1.LimitRangeInterface) - return ret0 -} - -// LimitRanges indicates an expected call of LimitRanges. -func (mr *MockCoreV1InterfaceMockRecorder) LimitRanges(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LimitRanges", reflect.TypeOf((*MockCoreV1Interface)(nil).LimitRanges), arg0) -} - -// Namespaces mocks base method. -func (m *MockCoreV1Interface) Namespaces() v1.NamespaceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Namespaces") - ret0, _ := ret[0].(v1.NamespaceInterface) - return ret0 -} - -// Namespaces indicates an expected call of Namespaces. -func (mr *MockCoreV1InterfaceMockRecorder) Namespaces() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespaces", reflect.TypeOf((*MockCoreV1Interface)(nil).Namespaces)) -} - -// Nodes mocks base method. -func (m *MockCoreV1Interface) Nodes() v1.NodeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Nodes") - ret0, _ := ret[0].(v1.NodeInterface) - return ret0 -} - -// Nodes indicates an expected call of Nodes. -func (mr *MockCoreV1InterfaceMockRecorder) Nodes() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Nodes", reflect.TypeOf((*MockCoreV1Interface)(nil).Nodes)) -} - -// PersistentVolumeClaims mocks base method. -func (m *MockCoreV1Interface) PersistentVolumeClaims(arg0 string) v1.PersistentVolumeClaimInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PersistentVolumeClaims", arg0) - ret0, _ := ret[0].(v1.PersistentVolumeClaimInterface) - return ret0 -} - -// PersistentVolumeClaims indicates an expected call of PersistentVolumeClaims. -func (mr *MockCoreV1InterfaceMockRecorder) PersistentVolumeClaims(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistentVolumeClaims", reflect.TypeOf((*MockCoreV1Interface)(nil).PersistentVolumeClaims), arg0) -} - -// PersistentVolumes mocks base method. -func (m *MockCoreV1Interface) PersistentVolumes() v1.PersistentVolumeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PersistentVolumes") - ret0, _ := ret[0].(v1.PersistentVolumeInterface) - return ret0 -} - -// PersistentVolumes indicates an expected call of PersistentVolumes. -func (mr *MockCoreV1InterfaceMockRecorder) PersistentVolumes() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistentVolumes", reflect.TypeOf((*MockCoreV1Interface)(nil).PersistentVolumes)) -} - -// PodTemplates mocks base method. -func (m *MockCoreV1Interface) PodTemplates(arg0 string) v1.PodTemplateInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PodTemplates", arg0) - ret0, _ := ret[0].(v1.PodTemplateInterface) - return ret0 -} - -// PodTemplates indicates an expected call of PodTemplates. -func (mr *MockCoreV1InterfaceMockRecorder) PodTemplates(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodTemplates", reflect.TypeOf((*MockCoreV1Interface)(nil).PodTemplates), arg0) -} - -// Pods mocks base method. -func (m *MockCoreV1Interface) Pods(arg0 string) v1.PodInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Pods", arg0) - ret0, _ := ret[0].(v1.PodInterface) - return ret0 -} - -// Pods indicates an expected call of Pods. -func (mr *MockCoreV1InterfaceMockRecorder) Pods(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pods", reflect.TypeOf((*MockCoreV1Interface)(nil).Pods), arg0) -} - -// RESTClient mocks base method. -func (m *MockCoreV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockCoreV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockCoreV1Interface)(nil).RESTClient)) -} - -// ReplicationControllers mocks base method. -func (m *MockCoreV1Interface) ReplicationControllers(arg0 string) v1.ReplicationControllerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReplicationControllers", arg0) - ret0, _ := ret[0].(v1.ReplicationControllerInterface) - return ret0 -} - -// ReplicationControllers indicates an expected call of ReplicationControllers. -func (mr *MockCoreV1InterfaceMockRecorder) ReplicationControllers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicationControllers", reflect.TypeOf((*MockCoreV1Interface)(nil).ReplicationControllers), arg0) -} - -// ResourceQuotas mocks base method. -func (m *MockCoreV1Interface) ResourceQuotas(arg0 string) v1.ResourceQuotaInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ResourceQuotas", arg0) - ret0, _ := ret[0].(v1.ResourceQuotaInterface) - return ret0 -} - -// ResourceQuotas indicates an expected call of ResourceQuotas. -func (mr *MockCoreV1InterfaceMockRecorder) ResourceQuotas(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResourceQuotas", reflect.TypeOf((*MockCoreV1Interface)(nil).ResourceQuotas), arg0) -} - -// Secrets mocks base method. -func (m *MockCoreV1Interface) Secrets(arg0 string) v1.SecretInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Secrets", arg0) - ret0, _ := ret[0].(v1.SecretInterface) - return ret0 -} - -// Secrets indicates an expected call of Secrets. -func (mr *MockCoreV1InterfaceMockRecorder) Secrets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Secrets", reflect.TypeOf((*MockCoreV1Interface)(nil).Secrets), arg0) -} - -// ServiceAccounts mocks base method. -func (m *MockCoreV1Interface) ServiceAccounts(arg0 string) v1.ServiceAccountInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceAccounts", arg0) - ret0, _ := ret[0].(v1.ServiceAccountInterface) - return ret0 -} - -// ServiceAccounts indicates an expected call of ServiceAccounts. -func (mr *MockCoreV1InterfaceMockRecorder) ServiceAccounts(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceAccounts", reflect.TypeOf((*MockCoreV1Interface)(nil).ServiceAccounts), arg0) -} - -// Services mocks base method. -func (m *MockCoreV1Interface) Services(arg0 string) v1.ServiceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Services", arg0) - ret0, _ := ret[0].(v1.ServiceInterface) - return ret0 -} - -// Services indicates an expected call of Services. -func (mr *MockCoreV1InterfaceMockRecorder) Services(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockCoreV1Interface)(nil).Services), arg0) -} diff --git a/plugins/source/k8s/mocks/core/v1/componentstatus.go b/plugins/source/k8s/mocks/core/v1/componentstatus.go deleted file mode 100644 index 8fe03db7c7374f..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/componentstatus.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ComponentStatusesGetter,ComponentStatusInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockComponentStatusesGetter is a mock of ComponentStatusesGetter interface. -type MockComponentStatusesGetter struct { - ctrl *gomock.Controller - recorder *MockComponentStatusesGetterMockRecorder -} - -// MockComponentStatusesGetterMockRecorder is the mock recorder for MockComponentStatusesGetter. -type MockComponentStatusesGetterMockRecorder struct { - mock *MockComponentStatusesGetter -} - -// NewMockComponentStatusesGetter creates a new mock instance. -func NewMockComponentStatusesGetter(ctrl *gomock.Controller) *MockComponentStatusesGetter { - mock := &MockComponentStatusesGetter{ctrl: ctrl} - mock.recorder = &MockComponentStatusesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockComponentStatusesGetter) EXPECT() *MockComponentStatusesGetterMockRecorder { - return m.recorder -} - -// ComponentStatuses mocks base method. -func (m *MockComponentStatusesGetter) ComponentStatuses() v12.ComponentStatusInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ComponentStatuses") - ret0, _ := ret[0].(v12.ComponentStatusInterface) - return ret0 -} - -// ComponentStatuses indicates an expected call of ComponentStatuses. -func (mr *MockComponentStatusesGetterMockRecorder) ComponentStatuses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ComponentStatuses", reflect.TypeOf((*MockComponentStatusesGetter)(nil).ComponentStatuses)) -} - -// MockComponentStatusInterface is a mock of ComponentStatusInterface interface. -type MockComponentStatusInterface struct { - ctrl *gomock.Controller - recorder *MockComponentStatusInterfaceMockRecorder -} - -// MockComponentStatusInterfaceMockRecorder is the mock recorder for MockComponentStatusInterface. -type MockComponentStatusInterfaceMockRecorder struct { - mock *MockComponentStatusInterface -} - -// NewMockComponentStatusInterface creates a new mock instance. -func NewMockComponentStatusInterface(ctrl *gomock.Controller) *MockComponentStatusInterface { - mock := &MockComponentStatusInterface{ctrl: ctrl} - mock.recorder = &MockComponentStatusInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockComponentStatusInterface) EXPECT() *MockComponentStatusInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockComponentStatusInterface) Apply(arg0 context.Context, arg1 *v11.ComponentStatusApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ComponentStatus, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ComponentStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockComponentStatusInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockComponentStatusInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockComponentStatusInterface) Create(arg0 context.Context, arg1 *v1.ComponentStatus, arg2 v10.CreateOptions) (*v1.ComponentStatus, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ComponentStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockComponentStatusInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockComponentStatusInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockComponentStatusInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockComponentStatusInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockComponentStatusInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockComponentStatusInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockComponentStatusInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockComponentStatusInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockComponentStatusInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.ComponentStatus, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ComponentStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockComponentStatusInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockComponentStatusInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockComponentStatusInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ComponentStatusList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ComponentStatusList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockComponentStatusInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockComponentStatusInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockComponentStatusInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.ComponentStatus, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ComponentStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockComponentStatusInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockComponentStatusInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockComponentStatusInterface) Update(arg0 context.Context, arg1 *v1.ComponentStatus, arg2 v10.UpdateOptions) (*v1.ComponentStatus, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ComponentStatus) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockComponentStatusInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockComponentStatusInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockComponentStatusInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockComponentStatusInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockComponentStatusInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/configmaps.go b/plugins/source/k8s/mocks/core/v1/configmaps.go deleted file mode 100644 index b4f576dd0a9305..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/configmaps.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ConfigMapsGetter,ConfigMapInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockConfigMapsGetter is a mock of ConfigMapsGetter interface. -type MockConfigMapsGetter struct { - ctrl *gomock.Controller - recorder *MockConfigMapsGetterMockRecorder -} - -// MockConfigMapsGetterMockRecorder is the mock recorder for MockConfigMapsGetter. -type MockConfigMapsGetterMockRecorder struct { - mock *MockConfigMapsGetter -} - -// NewMockConfigMapsGetter creates a new mock instance. -func NewMockConfigMapsGetter(ctrl *gomock.Controller) *MockConfigMapsGetter { - mock := &MockConfigMapsGetter{ctrl: ctrl} - mock.recorder = &MockConfigMapsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockConfigMapsGetter) EXPECT() *MockConfigMapsGetterMockRecorder { - return m.recorder -} - -// ConfigMaps mocks base method. -func (m *MockConfigMapsGetter) ConfigMaps(arg0 string) v12.ConfigMapInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ConfigMaps", arg0) - ret0, _ := ret[0].(v12.ConfigMapInterface) - return ret0 -} - -// ConfigMaps indicates an expected call of ConfigMaps. -func (mr *MockConfigMapsGetterMockRecorder) ConfigMaps(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConfigMaps", reflect.TypeOf((*MockConfigMapsGetter)(nil).ConfigMaps), arg0) -} - -// MockConfigMapInterface is a mock of ConfigMapInterface interface. -type MockConfigMapInterface struct { - ctrl *gomock.Controller - recorder *MockConfigMapInterfaceMockRecorder -} - -// MockConfigMapInterfaceMockRecorder is the mock recorder for MockConfigMapInterface. -type MockConfigMapInterfaceMockRecorder struct { - mock *MockConfigMapInterface -} - -// NewMockConfigMapInterface creates a new mock instance. -func NewMockConfigMapInterface(ctrl *gomock.Controller) *MockConfigMapInterface { - mock := &MockConfigMapInterface{ctrl: ctrl} - mock.recorder = &MockConfigMapInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockConfigMapInterface) EXPECT() *MockConfigMapInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockConfigMapInterface) Apply(arg0 context.Context, arg1 *v11.ConfigMapApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ConfigMap, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ConfigMap) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockConfigMapInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockConfigMapInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockConfigMapInterface) Create(arg0 context.Context, arg1 *v1.ConfigMap, arg2 v10.CreateOptions) (*v1.ConfigMap, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ConfigMap) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockConfigMapInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockConfigMapInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockConfigMapInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockConfigMapInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockConfigMapInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockConfigMapInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockConfigMapInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockConfigMapInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockConfigMapInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.ConfigMap, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ConfigMap) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockConfigMapInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockConfigMapInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockConfigMapInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ConfigMapList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ConfigMapList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockConfigMapInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockConfigMapInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockConfigMapInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.ConfigMap, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ConfigMap) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockConfigMapInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockConfigMapInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockConfigMapInterface) Update(arg0 context.Context, arg1 *v1.ConfigMap, arg2 v10.UpdateOptions) (*v1.ConfigMap, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ConfigMap) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockConfigMapInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockConfigMapInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockConfigMapInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockConfigMapInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockConfigMapInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/endpoints.go b/plugins/source/k8s/mocks/core/v1/endpoints.go deleted file mode 100644 index 93d306a05025f2..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/endpoints.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: EndpointsGetter,EndpointsInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockEndpointsGetter is a mock of EndpointsGetter interface. -type MockEndpointsGetter struct { - ctrl *gomock.Controller - recorder *MockEndpointsGetterMockRecorder -} - -// MockEndpointsGetterMockRecorder is the mock recorder for MockEndpointsGetter. -type MockEndpointsGetterMockRecorder struct { - mock *MockEndpointsGetter -} - -// NewMockEndpointsGetter creates a new mock instance. -func NewMockEndpointsGetter(ctrl *gomock.Controller) *MockEndpointsGetter { - mock := &MockEndpointsGetter{ctrl: ctrl} - mock.recorder = &MockEndpointsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEndpointsGetter) EXPECT() *MockEndpointsGetterMockRecorder { - return m.recorder -} - -// Endpoints mocks base method. -func (m *MockEndpointsGetter) Endpoints(arg0 string) v12.EndpointsInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Endpoints", arg0) - ret0, _ := ret[0].(v12.EndpointsInterface) - return ret0 -} - -// Endpoints indicates an expected call of Endpoints. -func (mr *MockEndpointsGetterMockRecorder) Endpoints(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endpoints", reflect.TypeOf((*MockEndpointsGetter)(nil).Endpoints), arg0) -} - -// MockEndpointsInterface is a mock of EndpointsInterface interface. -type MockEndpointsInterface struct { - ctrl *gomock.Controller - recorder *MockEndpointsInterfaceMockRecorder -} - -// MockEndpointsInterfaceMockRecorder is the mock recorder for MockEndpointsInterface. -type MockEndpointsInterfaceMockRecorder struct { - mock *MockEndpointsInterface -} - -// NewMockEndpointsInterface creates a new mock instance. -func NewMockEndpointsInterface(ctrl *gomock.Controller) *MockEndpointsInterface { - mock := &MockEndpointsInterface{ctrl: ctrl} - mock.recorder = &MockEndpointsInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEndpointsInterface) EXPECT() *MockEndpointsInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockEndpointsInterface) Apply(arg0 context.Context, arg1 *v11.EndpointsApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Endpoints, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Endpoints) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockEndpointsInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockEndpointsInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockEndpointsInterface) Create(arg0 context.Context, arg1 *v1.Endpoints, arg2 v10.CreateOptions) (*v1.Endpoints, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Endpoints) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockEndpointsInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockEndpointsInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockEndpointsInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockEndpointsInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockEndpointsInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockEndpointsInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockEndpointsInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockEndpointsInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockEndpointsInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Endpoints, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Endpoints) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockEndpointsInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockEndpointsInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockEndpointsInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.EndpointsList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.EndpointsList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockEndpointsInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockEndpointsInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockEndpointsInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Endpoints, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Endpoints) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockEndpointsInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockEndpointsInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockEndpointsInterface) Update(arg0 context.Context, arg1 *v1.Endpoints, arg2 v10.UpdateOptions) (*v1.Endpoints, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Endpoints) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockEndpointsInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockEndpointsInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockEndpointsInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockEndpointsInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockEndpointsInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/events.go b/plugins/source/k8s/mocks/core/v1/events.go deleted file mode 100644 index a18eca8fccd552..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/events.go +++ /dev/null @@ -1,292 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: EventsGetter,EventInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - fields "k8s.io/apimachinery/pkg/fields" - runtime "k8s.io/apimachinery/pkg/runtime" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockEventsGetter is a mock of EventsGetter interface. -type MockEventsGetter struct { - ctrl *gomock.Controller - recorder *MockEventsGetterMockRecorder -} - -// MockEventsGetterMockRecorder is the mock recorder for MockEventsGetter. -type MockEventsGetterMockRecorder struct { - mock *MockEventsGetter -} - -// NewMockEventsGetter creates a new mock instance. -func NewMockEventsGetter(ctrl *gomock.Controller) *MockEventsGetter { - mock := &MockEventsGetter{ctrl: ctrl} - mock.recorder = &MockEventsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEventsGetter) EXPECT() *MockEventsGetterMockRecorder { - return m.recorder -} - -// Events mocks base method. -func (m *MockEventsGetter) Events(arg0 string) v12.EventInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Events", arg0) - ret0, _ := ret[0].(v12.EventInterface) - return ret0 -} - -// Events indicates an expected call of Events. -func (mr *MockEventsGetterMockRecorder) Events(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockEventsGetter)(nil).Events), arg0) -} - -// MockEventInterface is a mock of EventInterface interface. -type MockEventInterface struct { - ctrl *gomock.Controller - recorder *MockEventInterfaceMockRecorder -} - -// MockEventInterfaceMockRecorder is the mock recorder for MockEventInterface. -type MockEventInterfaceMockRecorder struct { - mock *MockEventInterface -} - -// NewMockEventInterface creates a new mock instance. -func NewMockEventInterface(ctrl *gomock.Controller) *MockEventInterface { - mock := &MockEventInterface{ctrl: ctrl} - mock.recorder = &MockEventInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEventInterface) EXPECT() *MockEventInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockEventInterface) Apply(arg0 context.Context, arg1 *v11.EventApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockEventInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockEventInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockEventInterface) Create(arg0 context.Context, arg1 *v1.Event, arg2 v10.CreateOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockEventInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockEventInterface)(nil).Create), arg0, arg1, arg2) -} - -// CreateWithEventNamespace mocks base method. -func (m *MockEventInterface) CreateWithEventNamespace(arg0 *v1.Event) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateWithEventNamespace", arg0) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateWithEventNamespace indicates an expected call of CreateWithEventNamespace. -func (mr *MockEventInterfaceMockRecorder) CreateWithEventNamespace(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateWithEventNamespace", reflect.TypeOf((*MockEventInterface)(nil).CreateWithEventNamespace), arg0) -} - -// Delete mocks base method. -func (m *MockEventInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockEventInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockEventInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockEventInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockEventInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockEventInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockEventInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockEventInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockEventInterface)(nil).Get), arg0, arg1, arg2) -} - -// GetFieldSelector mocks base method. -func (m *MockEventInterface) GetFieldSelector(arg0, arg1, arg2, arg3 *string) fields.Selector { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetFieldSelector", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(fields.Selector) - return ret0 -} - -// GetFieldSelector indicates an expected call of GetFieldSelector. -func (mr *MockEventInterfaceMockRecorder) GetFieldSelector(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFieldSelector", reflect.TypeOf((*MockEventInterface)(nil).GetFieldSelector), arg0, arg1, arg2, arg3) -} - -// List mocks base method. -func (m *MockEventInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.EventList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.EventList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockEventInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockEventInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockEventInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Event, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockEventInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockEventInterface)(nil).Patch), varargs...) -} - -// PatchWithEventNamespace mocks base method. -func (m *MockEventInterface) PatchWithEventNamespace(arg0 *v1.Event, arg1 []byte) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PatchWithEventNamespace", arg0, arg1) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// PatchWithEventNamespace indicates an expected call of PatchWithEventNamespace. -func (mr *MockEventInterfaceMockRecorder) PatchWithEventNamespace(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchWithEventNamespace", reflect.TypeOf((*MockEventInterface)(nil).PatchWithEventNamespace), arg0, arg1) -} - -// Search mocks base method. -func (m *MockEventInterface) Search(arg0 *runtime.Scheme, arg1 runtime.Object) (*v1.EventList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Search", arg0, arg1) - ret0, _ := ret[0].(*v1.EventList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Search indicates an expected call of Search. -func (mr *MockEventInterfaceMockRecorder) Search(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Search", reflect.TypeOf((*MockEventInterface)(nil).Search), arg0, arg1) -} - -// Update mocks base method. -func (m *MockEventInterface) Update(arg0 context.Context, arg1 *v1.Event, arg2 v10.UpdateOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockEventInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockEventInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateWithEventNamespace mocks base method. -func (m *MockEventInterface) UpdateWithEventNamespace(arg0 *v1.Event) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateWithEventNamespace", arg0) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateWithEventNamespace indicates an expected call of UpdateWithEventNamespace. -func (mr *MockEventInterfaceMockRecorder) UpdateWithEventNamespace(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWithEventNamespace", reflect.TypeOf((*MockEventInterface)(nil).UpdateWithEventNamespace), arg0) -} - -// Watch mocks base method. -func (m *MockEventInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockEventInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockEventInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/limitrange.go b/plugins/source/k8s/mocks/core/v1/limitrange.go deleted file mode 100644 index 20a4e9b0c34d2d..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/limitrange.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: LimitRangesGetter,LimitRangeInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockLimitRangesGetter is a mock of LimitRangesGetter interface. -type MockLimitRangesGetter struct { - ctrl *gomock.Controller - recorder *MockLimitRangesGetterMockRecorder -} - -// MockLimitRangesGetterMockRecorder is the mock recorder for MockLimitRangesGetter. -type MockLimitRangesGetterMockRecorder struct { - mock *MockLimitRangesGetter -} - -// NewMockLimitRangesGetter creates a new mock instance. -func NewMockLimitRangesGetter(ctrl *gomock.Controller) *MockLimitRangesGetter { - mock := &MockLimitRangesGetter{ctrl: ctrl} - mock.recorder = &MockLimitRangesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockLimitRangesGetter) EXPECT() *MockLimitRangesGetterMockRecorder { - return m.recorder -} - -// LimitRanges mocks base method. -func (m *MockLimitRangesGetter) LimitRanges(arg0 string) v12.LimitRangeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "LimitRanges", arg0) - ret0, _ := ret[0].(v12.LimitRangeInterface) - return ret0 -} - -// LimitRanges indicates an expected call of LimitRanges. -func (mr *MockLimitRangesGetterMockRecorder) LimitRanges(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LimitRanges", reflect.TypeOf((*MockLimitRangesGetter)(nil).LimitRanges), arg0) -} - -// MockLimitRangeInterface is a mock of LimitRangeInterface interface. -type MockLimitRangeInterface struct { - ctrl *gomock.Controller - recorder *MockLimitRangeInterfaceMockRecorder -} - -// MockLimitRangeInterfaceMockRecorder is the mock recorder for MockLimitRangeInterface. -type MockLimitRangeInterfaceMockRecorder struct { - mock *MockLimitRangeInterface -} - -// NewMockLimitRangeInterface creates a new mock instance. -func NewMockLimitRangeInterface(ctrl *gomock.Controller) *MockLimitRangeInterface { - mock := &MockLimitRangeInterface{ctrl: ctrl} - mock.recorder = &MockLimitRangeInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockLimitRangeInterface) EXPECT() *MockLimitRangeInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockLimitRangeInterface) Apply(arg0 context.Context, arg1 *v11.LimitRangeApplyConfiguration, arg2 v10.ApplyOptions) (*v1.LimitRange, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.LimitRange) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockLimitRangeInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockLimitRangeInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockLimitRangeInterface) Create(arg0 context.Context, arg1 *v1.LimitRange, arg2 v10.CreateOptions) (*v1.LimitRange, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.LimitRange) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockLimitRangeInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockLimitRangeInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockLimitRangeInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockLimitRangeInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockLimitRangeInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockLimitRangeInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockLimitRangeInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockLimitRangeInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockLimitRangeInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.LimitRange, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.LimitRange) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockLimitRangeInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockLimitRangeInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockLimitRangeInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.LimitRangeList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.LimitRangeList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockLimitRangeInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockLimitRangeInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockLimitRangeInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.LimitRange, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.LimitRange) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockLimitRangeInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockLimitRangeInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockLimitRangeInterface) Update(arg0 context.Context, arg1 *v1.LimitRange, arg2 v10.UpdateOptions) (*v1.LimitRange, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.LimitRange) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockLimitRangeInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockLimitRangeInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockLimitRangeInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockLimitRangeInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockLimitRangeInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/namespace.go b/plugins/source/k8s/mocks/core/v1/namespace.go deleted file mode 100644 index 4a9fe4debd45a0..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/namespace.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: NamespacesGetter,NamespaceInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockNamespacesGetter is a mock of NamespacesGetter interface. -type MockNamespacesGetter struct { - ctrl *gomock.Controller - recorder *MockNamespacesGetterMockRecorder -} - -// MockNamespacesGetterMockRecorder is the mock recorder for MockNamespacesGetter. -type MockNamespacesGetterMockRecorder struct { - mock *MockNamespacesGetter -} - -// NewMockNamespacesGetter creates a new mock instance. -func NewMockNamespacesGetter(ctrl *gomock.Controller) *MockNamespacesGetter { - mock := &MockNamespacesGetter{ctrl: ctrl} - mock.recorder = &MockNamespacesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNamespacesGetter) EXPECT() *MockNamespacesGetterMockRecorder { - return m.recorder -} - -// Namespaces mocks base method. -func (m *MockNamespacesGetter) Namespaces() v12.NamespaceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Namespaces") - ret0, _ := ret[0].(v12.NamespaceInterface) - return ret0 -} - -// Namespaces indicates an expected call of Namespaces. -func (mr *MockNamespacesGetterMockRecorder) Namespaces() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespaces", reflect.TypeOf((*MockNamespacesGetter)(nil).Namespaces)) -} - -// MockNamespaceInterface is a mock of NamespaceInterface interface. -type MockNamespaceInterface struct { - ctrl *gomock.Controller - recorder *MockNamespaceInterfaceMockRecorder -} - -// MockNamespaceInterfaceMockRecorder is the mock recorder for MockNamespaceInterface. -type MockNamespaceInterfaceMockRecorder struct { - mock *MockNamespaceInterface -} - -// NewMockNamespaceInterface creates a new mock instance. -func NewMockNamespaceInterface(ctrl *gomock.Controller) *MockNamespaceInterface { - mock := &MockNamespaceInterface{ctrl: ctrl} - mock.recorder = &MockNamespaceInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNamespaceInterface) EXPECT() *MockNamespaceInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockNamespaceInterface) Apply(arg0 context.Context, arg1 *v11.NamespaceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockNamespaceInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockNamespaceInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockNamespaceInterface) ApplyStatus(arg0 context.Context, arg1 *v11.NamespaceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockNamespaceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockNamespaceInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockNamespaceInterface) Create(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.CreateOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockNamespaceInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockNamespaceInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockNamespaceInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockNamespaceInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockNamespaceInterface)(nil).Delete), arg0, arg1, arg2) -} - -// Finalize mocks base method. -func (m *MockNamespaceInterface) Finalize(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Finalize", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Finalize indicates an expected call of Finalize. -func (mr *MockNamespaceInterfaceMockRecorder) Finalize(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockNamespaceInterface)(nil).Finalize), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockNamespaceInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockNamespaceInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNamespaceInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockNamespaceInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.NamespaceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.NamespaceList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockNamespaceInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockNamespaceInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockNamespaceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Namespace, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockNamespaceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockNamespaceInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockNamespaceInterface) Update(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockNamespaceInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockNamespaceInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockNamespaceInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Namespace) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockNamespaceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockNamespaceInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockNamespaceInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockNamespaceInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockNamespaceInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/node.go b/plugins/source/k8s/mocks/core/v1/node.go deleted file mode 100644 index 38ffb0ff4b46fe..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/node.go +++ /dev/null @@ -1,261 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: NodesGetter,NodeInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockNodesGetter is a mock of NodesGetter interface. -type MockNodesGetter struct { - ctrl *gomock.Controller - recorder *MockNodesGetterMockRecorder -} - -// MockNodesGetterMockRecorder is the mock recorder for MockNodesGetter. -type MockNodesGetterMockRecorder struct { - mock *MockNodesGetter -} - -// NewMockNodesGetter creates a new mock instance. -func NewMockNodesGetter(ctrl *gomock.Controller) *MockNodesGetter { - mock := &MockNodesGetter{ctrl: ctrl} - mock.recorder = &MockNodesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNodesGetter) EXPECT() *MockNodesGetterMockRecorder { - return m.recorder -} - -// Nodes mocks base method. -func (m *MockNodesGetter) Nodes() v12.NodeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Nodes") - ret0, _ := ret[0].(v12.NodeInterface) - return ret0 -} - -// Nodes indicates an expected call of Nodes. -func (mr *MockNodesGetterMockRecorder) Nodes() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Nodes", reflect.TypeOf((*MockNodesGetter)(nil).Nodes)) -} - -// MockNodeInterface is a mock of NodeInterface interface. -type MockNodeInterface struct { - ctrl *gomock.Controller - recorder *MockNodeInterfaceMockRecorder -} - -// MockNodeInterfaceMockRecorder is the mock recorder for MockNodeInterface. -type MockNodeInterfaceMockRecorder struct { - mock *MockNodeInterface -} - -// NewMockNodeInterface creates a new mock instance. -func NewMockNodeInterface(ctrl *gomock.Controller) *MockNodeInterface { - mock := &MockNodeInterface{ctrl: ctrl} - mock.recorder = &MockNodeInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNodeInterface) EXPECT() *MockNodeInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockNodeInterface) Apply(arg0 context.Context, arg1 *v11.NodeApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockNodeInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockNodeInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockNodeInterface) ApplyStatus(arg0 context.Context, arg1 *v11.NodeApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockNodeInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockNodeInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockNodeInterface) Create(arg0 context.Context, arg1 *v1.Node, arg2 v10.CreateOptions) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockNodeInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockNodeInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockNodeInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockNodeInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockNodeInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockNodeInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockNodeInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockNodeInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockNodeInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockNodeInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNodeInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockNodeInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.NodeList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.NodeList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockNodeInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockNodeInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockNodeInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Node, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockNodeInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockNodeInterface)(nil).Patch), varargs...) -} - -// PatchStatus mocks base method. -func (m *MockNodeInterface) PatchStatus(arg0 context.Context, arg1 string, arg2 []byte) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PatchStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// PatchStatus indicates an expected call of PatchStatus. -func (mr *MockNodeInterfaceMockRecorder) PatchStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchStatus", reflect.TypeOf((*MockNodeInterface)(nil).PatchStatus), arg0, arg1, arg2) -} - -// Update mocks base method. -func (m *MockNodeInterface) Update(arg0 context.Context, arg1 *v1.Node, arg2 v10.UpdateOptions) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockNodeInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockNodeInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockNodeInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Node, arg2 v10.UpdateOptions) (*v1.Node, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Node) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockNodeInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockNodeInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockNodeInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockNodeInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockNodeInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/persistentvolume.go b/plugins/source/k8s/mocks/core/v1/persistentvolume.go deleted file mode 100644 index d1cb71ebcd7b3e..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/persistentvolume.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: PersistentVolumesGetter,PersistentVolumeInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockPersistentVolumesGetter is a mock of PersistentVolumesGetter interface. -type MockPersistentVolumesGetter struct { - ctrl *gomock.Controller - recorder *MockPersistentVolumesGetterMockRecorder -} - -// MockPersistentVolumesGetterMockRecorder is the mock recorder for MockPersistentVolumesGetter. -type MockPersistentVolumesGetterMockRecorder struct { - mock *MockPersistentVolumesGetter -} - -// NewMockPersistentVolumesGetter creates a new mock instance. -func NewMockPersistentVolumesGetter(ctrl *gomock.Controller) *MockPersistentVolumesGetter { - mock := &MockPersistentVolumesGetter{ctrl: ctrl} - mock.recorder = &MockPersistentVolumesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPersistentVolumesGetter) EXPECT() *MockPersistentVolumesGetterMockRecorder { - return m.recorder -} - -// PersistentVolumes mocks base method. -func (m *MockPersistentVolumesGetter) PersistentVolumes() v12.PersistentVolumeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PersistentVolumes") - ret0, _ := ret[0].(v12.PersistentVolumeInterface) - return ret0 -} - -// PersistentVolumes indicates an expected call of PersistentVolumes. -func (mr *MockPersistentVolumesGetterMockRecorder) PersistentVolumes() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistentVolumes", reflect.TypeOf((*MockPersistentVolumesGetter)(nil).PersistentVolumes)) -} - -// MockPersistentVolumeInterface is a mock of PersistentVolumeInterface interface. -type MockPersistentVolumeInterface struct { - ctrl *gomock.Controller - recorder *MockPersistentVolumeInterfaceMockRecorder -} - -// MockPersistentVolumeInterfaceMockRecorder is the mock recorder for MockPersistentVolumeInterface. -type MockPersistentVolumeInterfaceMockRecorder struct { - mock *MockPersistentVolumeInterface -} - -// NewMockPersistentVolumeInterface creates a new mock instance. -func NewMockPersistentVolumeInterface(ctrl *gomock.Controller) *MockPersistentVolumeInterface { - mock := &MockPersistentVolumeInterface{ctrl: ctrl} - mock.recorder = &MockPersistentVolumeInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPersistentVolumeInterface) EXPECT() *MockPersistentVolumeInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockPersistentVolumeInterface) Apply(arg0 context.Context, arg1 *v11.PersistentVolumeApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockPersistentVolumeInterface) ApplyStatus(arg0 context.Context, arg1 *v11.PersistentVolumeApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockPersistentVolumeInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockPersistentVolumeInterface) Create(arg0 context.Context, arg1 *v1.PersistentVolume, arg2 v10.CreateOptions) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockPersistentVolumeInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockPersistentVolumeInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockPersistentVolumeInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockPersistentVolumeInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockPersistentVolumeInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.PersistentVolumeList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.PersistentVolumeList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockPersistentVolumeInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockPersistentVolumeInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockPersistentVolumeInterface) Update(arg0 context.Context, arg1 *v1.PersistentVolume, arg2 v10.UpdateOptions) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockPersistentVolumeInterface) UpdateStatus(arg0 context.Context, arg1 *v1.PersistentVolume, arg2 v10.UpdateOptions) (*v1.PersistentVolume, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolume) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockPersistentVolumeInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockPersistentVolumeInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockPersistentVolumeInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockPersistentVolumeInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/persistentvolumeclaim.go b/plugins/source/k8s/mocks/core/v1/persistentvolumeclaim.go deleted file mode 100644 index 1282d41e0b0a30..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/persistentvolumeclaim.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: PersistentVolumeClaimsGetter,PersistentVolumeClaimInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockPersistentVolumeClaimsGetter is a mock of PersistentVolumeClaimsGetter interface. -type MockPersistentVolumeClaimsGetter struct { - ctrl *gomock.Controller - recorder *MockPersistentVolumeClaimsGetterMockRecorder -} - -// MockPersistentVolumeClaimsGetterMockRecorder is the mock recorder for MockPersistentVolumeClaimsGetter. -type MockPersistentVolumeClaimsGetterMockRecorder struct { - mock *MockPersistentVolumeClaimsGetter -} - -// NewMockPersistentVolumeClaimsGetter creates a new mock instance. -func NewMockPersistentVolumeClaimsGetter(ctrl *gomock.Controller) *MockPersistentVolumeClaimsGetter { - mock := &MockPersistentVolumeClaimsGetter{ctrl: ctrl} - mock.recorder = &MockPersistentVolumeClaimsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPersistentVolumeClaimsGetter) EXPECT() *MockPersistentVolumeClaimsGetterMockRecorder { - return m.recorder -} - -// PersistentVolumeClaims mocks base method. -func (m *MockPersistentVolumeClaimsGetter) PersistentVolumeClaims(arg0 string) v12.PersistentVolumeClaimInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PersistentVolumeClaims", arg0) - ret0, _ := ret[0].(v12.PersistentVolumeClaimInterface) - return ret0 -} - -// PersistentVolumeClaims indicates an expected call of PersistentVolumeClaims. -func (mr *MockPersistentVolumeClaimsGetterMockRecorder) PersistentVolumeClaims(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistentVolumeClaims", reflect.TypeOf((*MockPersistentVolumeClaimsGetter)(nil).PersistentVolumeClaims), arg0) -} - -// MockPersistentVolumeClaimInterface is a mock of PersistentVolumeClaimInterface interface. -type MockPersistentVolumeClaimInterface struct { - ctrl *gomock.Controller - recorder *MockPersistentVolumeClaimInterfaceMockRecorder -} - -// MockPersistentVolumeClaimInterfaceMockRecorder is the mock recorder for MockPersistentVolumeClaimInterface. -type MockPersistentVolumeClaimInterfaceMockRecorder struct { - mock *MockPersistentVolumeClaimInterface -} - -// NewMockPersistentVolumeClaimInterface creates a new mock instance. -func NewMockPersistentVolumeClaimInterface(ctrl *gomock.Controller) *MockPersistentVolumeClaimInterface { - mock := &MockPersistentVolumeClaimInterface{ctrl: ctrl} - mock.recorder = &MockPersistentVolumeClaimInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPersistentVolumeClaimInterface) EXPECT() *MockPersistentVolumeClaimInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockPersistentVolumeClaimInterface) Apply(arg0 context.Context, arg1 *v11.PersistentVolumeClaimApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockPersistentVolumeClaimInterface) ApplyStatus(arg0 context.Context, arg1 *v11.PersistentVolumeClaimApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockPersistentVolumeClaimInterface) Create(arg0 context.Context, arg1 *v1.PersistentVolumeClaim, arg2 v10.CreateOptions) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockPersistentVolumeClaimInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockPersistentVolumeClaimInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockPersistentVolumeClaimInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockPersistentVolumeClaimInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.PersistentVolumeClaimList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.PersistentVolumeClaimList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockPersistentVolumeClaimInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockPersistentVolumeClaimInterface) Update(arg0 context.Context, arg1 *v1.PersistentVolumeClaim, arg2 v10.UpdateOptions) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockPersistentVolumeClaimInterface) UpdateStatus(arg0 context.Context, arg1 *v1.PersistentVolumeClaim, arg2 v10.UpdateOptions) (*v1.PersistentVolumeClaim, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PersistentVolumeClaim) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockPersistentVolumeClaimInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockPersistentVolumeClaimInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockPersistentVolumeClaimInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/pod.go b/plugins/source/k8s/mocks/core/v1/pod.go deleted file mode 100644 index 123c25ebf9e3fe..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/pod.go +++ /dev/null @@ -1,348 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: PodsGetter,PodInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/api/policy/v1" - v1beta1 "k8s.io/api/policy/v1beta1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v12 "k8s.io/client-go/applyconfigurations/core/v1" - v13 "k8s.io/client-go/kubernetes/typed/core/v1" - rest "k8s.io/client-go/rest" -) - -// MockPodsGetter is a mock of PodsGetter interface. -type MockPodsGetter struct { - ctrl *gomock.Controller - recorder *MockPodsGetterMockRecorder -} - -// MockPodsGetterMockRecorder is the mock recorder for MockPodsGetter. -type MockPodsGetterMockRecorder struct { - mock *MockPodsGetter -} - -// NewMockPodsGetter creates a new mock instance. -func NewMockPodsGetter(ctrl *gomock.Controller) *MockPodsGetter { - mock := &MockPodsGetter{ctrl: ctrl} - mock.recorder = &MockPodsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPodsGetter) EXPECT() *MockPodsGetterMockRecorder { - return m.recorder -} - -// Pods mocks base method. -func (m *MockPodsGetter) Pods(arg0 string) v13.PodInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Pods", arg0) - ret0, _ := ret[0].(v13.PodInterface) - return ret0 -} - -// Pods indicates an expected call of Pods. -func (mr *MockPodsGetterMockRecorder) Pods(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pods", reflect.TypeOf((*MockPodsGetter)(nil).Pods), arg0) -} - -// MockPodInterface is a mock of PodInterface interface. -type MockPodInterface struct { - ctrl *gomock.Controller - recorder *MockPodInterfaceMockRecorder -} - -// MockPodInterfaceMockRecorder is the mock recorder for MockPodInterface. -type MockPodInterfaceMockRecorder struct { - mock *MockPodInterface -} - -// NewMockPodInterface creates a new mock instance. -func NewMockPodInterface(ctrl *gomock.Controller) *MockPodInterface { - mock := &MockPodInterface{ctrl: ctrl} - mock.recorder = &MockPodInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPodInterface) EXPECT() *MockPodInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockPodInterface) Apply(arg0 context.Context, arg1 *v12.PodApplyConfiguration, arg2 v11.ApplyOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockPodInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockPodInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockPodInterface) ApplyStatus(arg0 context.Context, arg1 *v12.PodApplyConfiguration, arg2 v11.ApplyOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockPodInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockPodInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Bind mocks base method. -func (m *MockPodInterface) Bind(arg0 context.Context, arg1 *v1.Binding, arg2 v11.CreateOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Bind", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Bind indicates an expected call of Bind. -func (mr *MockPodInterfaceMockRecorder) Bind(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bind", reflect.TypeOf((*MockPodInterface)(nil).Bind), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockPodInterface) Create(arg0 context.Context, arg1 *v1.Pod, arg2 v11.CreateOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockPodInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPodInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockPodInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockPodInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPodInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockPodInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockPodInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockPodInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Evict mocks base method. -func (m *MockPodInterface) Evict(arg0 context.Context, arg1 *v1beta1.Eviction) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Evict", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// Evict indicates an expected call of Evict. -func (mr *MockPodInterfaceMockRecorder) Evict(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Evict", reflect.TypeOf((*MockPodInterface)(nil).Evict), arg0, arg1) -} - -// EvictV1 mocks base method. -func (m *MockPodInterface) EvictV1(arg0 context.Context, arg1 *v10.Eviction) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EvictV1", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// EvictV1 indicates an expected call of EvictV1. -func (mr *MockPodInterfaceMockRecorder) EvictV1(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictV1", reflect.TypeOf((*MockPodInterface)(nil).EvictV1), arg0, arg1) -} - -// EvictV1beta1 mocks base method. -func (m *MockPodInterface) EvictV1beta1(arg0 context.Context, arg1 *v1beta1.Eviction) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EvictV1beta1", arg0, arg1) - ret0, _ := ret[0].(error) - return ret0 -} - -// EvictV1beta1 indicates an expected call of EvictV1beta1. -func (mr *MockPodInterfaceMockRecorder) EvictV1beta1(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictV1beta1", reflect.TypeOf((*MockPodInterface)(nil).EvictV1beta1), arg0, arg1) -} - -// Get mocks base method. -func (m *MockPodInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockPodInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPodInterface)(nil).Get), arg0, arg1, arg2) -} - -// GetLogs mocks base method. -func (m *MockPodInterface) GetLogs(arg0 string, arg1 *v1.PodLogOptions) *rest.Request { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetLogs", arg0, arg1) - ret0, _ := ret[0].(*rest.Request) - return ret0 -} - -// GetLogs indicates an expected call of GetLogs. -func (mr *MockPodInterfaceMockRecorder) GetLogs(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogs", reflect.TypeOf((*MockPodInterface)(nil).GetLogs), arg0, arg1) -} - -// List mocks base method. -func (m *MockPodInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.PodList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.PodList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockPodInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPodInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockPodInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v1.Pod, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockPodInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockPodInterface)(nil).Patch), varargs...) -} - -// ProxyGet mocks base method. -func (m *MockPodInterface) ProxyGet(arg0, arg1, arg2, arg3 string, arg4 map[string]string) rest.ResponseWrapper { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProxyGet", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(rest.ResponseWrapper) - return ret0 -} - -// ProxyGet indicates an expected call of ProxyGet. -func (mr *MockPodInterfaceMockRecorder) ProxyGet(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProxyGet", reflect.TypeOf((*MockPodInterface)(nil).ProxyGet), arg0, arg1, arg2, arg3, arg4) -} - -// Update mocks base method. -func (m *MockPodInterface) Update(arg0 context.Context, arg1 *v1.Pod, arg2 v11.UpdateOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockPodInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPodInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateEphemeralContainers mocks base method. -func (m *MockPodInterface) UpdateEphemeralContainers(arg0 context.Context, arg1 string, arg2 *v1.Pod, arg3 v11.UpdateOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateEphemeralContainers", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateEphemeralContainers indicates an expected call of UpdateEphemeralContainers. -func (mr *MockPodInterfaceMockRecorder) UpdateEphemeralContainers(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateEphemeralContainers", reflect.TypeOf((*MockPodInterface)(nil).UpdateEphemeralContainers), arg0, arg1, arg2, arg3) -} - -// UpdateStatus mocks base method. -func (m *MockPodInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Pod, arg2 v11.UpdateOptions) (*v1.Pod, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Pod) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockPodInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockPodInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockPodInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockPodInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockPodInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/podtemplate.go b/plugins/source/k8s/mocks/core/v1/podtemplate.go deleted file mode 100644 index 78ef04d5128da7..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/podtemplate.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: PodTemplatesGetter,PodTemplateInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockPodTemplatesGetter is a mock of PodTemplatesGetter interface. -type MockPodTemplatesGetter struct { - ctrl *gomock.Controller - recorder *MockPodTemplatesGetterMockRecorder -} - -// MockPodTemplatesGetterMockRecorder is the mock recorder for MockPodTemplatesGetter. -type MockPodTemplatesGetterMockRecorder struct { - mock *MockPodTemplatesGetter -} - -// NewMockPodTemplatesGetter creates a new mock instance. -func NewMockPodTemplatesGetter(ctrl *gomock.Controller) *MockPodTemplatesGetter { - mock := &MockPodTemplatesGetter{ctrl: ctrl} - mock.recorder = &MockPodTemplatesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPodTemplatesGetter) EXPECT() *MockPodTemplatesGetterMockRecorder { - return m.recorder -} - -// PodTemplates mocks base method. -func (m *MockPodTemplatesGetter) PodTemplates(arg0 string) v12.PodTemplateInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PodTemplates", arg0) - ret0, _ := ret[0].(v12.PodTemplateInterface) - return ret0 -} - -// PodTemplates indicates an expected call of PodTemplates. -func (mr *MockPodTemplatesGetterMockRecorder) PodTemplates(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodTemplates", reflect.TypeOf((*MockPodTemplatesGetter)(nil).PodTemplates), arg0) -} - -// MockPodTemplateInterface is a mock of PodTemplateInterface interface. -type MockPodTemplateInterface struct { - ctrl *gomock.Controller - recorder *MockPodTemplateInterfaceMockRecorder -} - -// MockPodTemplateInterfaceMockRecorder is the mock recorder for MockPodTemplateInterface. -type MockPodTemplateInterfaceMockRecorder struct { - mock *MockPodTemplateInterface -} - -// NewMockPodTemplateInterface creates a new mock instance. -func NewMockPodTemplateInterface(ctrl *gomock.Controller) *MockPodTemplateInterface { - mock := &MockPodTemplateInterface{ctrl: ctrl} - mock.recorder = &MockPodTemplateInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPodTemplateInterface) EXPECT() *MockPodTemplateInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockPodTemplateInterface) Apply(arg0 context.Context, arg1 *v11.PodTemplateApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PodTemplate, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodTemplate) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockPodTemplateInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockPodTemplateInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockPodTemplateInterface) Create(arg0 context.Context, arg1 *v1.PodTemplate, arg2 v10.CreateOptions) (*v1.PodTemplate, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodTemplate) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockPodTemplateInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPodTemplateInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockPodTemplateInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockPodTemplateInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPodTemplateInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockPodTemplateInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockPodTemplateInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockPodTemplateInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockPodTemplateInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.PodTemplate, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodTemplate) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockPodTemplateInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPodTemplateInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockPodTemplateInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.PodTemplateList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.PodTemplateList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockPodTemplateInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPodTemplateInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockPodTemplateInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.PodTemplate, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.PodTemplate) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockPodTemplateInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockPodTemplateInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockPodTemplateInterface) Update(arg0 context.Context, arg1 *v1.PodTemplate, arg2 v10.UpdateOptions) (*v1.PodTemplate, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodTemplate) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockPodTemplateInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPodTemplateInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockPodTemplateInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockPodTemplateInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockPodTemplateInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/replicationcontroller.go b/plugins/source/k8s/mocks/core/v1/replicationcontroller.go deleted file mode 100644 index e3a26672c52e17..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/replicationcontroller.go +++ /dev/null @@ -1,277 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ReplicationControllersGetter,ReplicationControllerInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/autoscaling/v1" - v10 "k8s.io/api/core/v1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v12 "k8s.io/client-go/applyconfigurations/core/v1" - v13 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockReplicationControllersGetter is a mock of ReplicationControllersGetter interface. -type MockReplicationControllersGetter struct { - ctrl *gomock.Controller - recorder *MockReplicationControllersGetterMockRecorder -} - -// MockReplicationControllersGetterMockRecorder is the mock recorder for MockReplicationControllersGetter. -type MockReplicationControllersGetterMockRecorder struct { - mock *MockReplicationControllersGetter -} - -// NewMockReplicationControllersGetter creates a new mock instance. -func NewMockReplicationControllersGetter(ctrl *gomock.Controller) *MockReplicationControllersGetter { - mock := &MockReplicationControllersGetter{ctrl: ctrl} - mock.recorder = &MockReplicationControllersGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockReplicationControllersGetter) EXPECT() *MockReplicationControllersGetterMockRecorder { - return m.recorder -} - -// ReplicationControllers mocks base method. -func (m *MockReplicationControllersGetter) ReplicationControllers(arg0 string) v13.ReplicationControllerInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReplicationControllers", arg0) - ret0, _ := ret[0].(v13.ReplicationControllerInterface) - return ret0 -} - -// ReplicationControllers indicates an expected call of ReplicationControllers. -func (mr *MockReplicationControllersGetterMockRecorder) ReplicationControllers(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicationControllers", reflect.TypeOf((*MockReplicationControllersGetter)(nil).ReplicationControllers), arg0) -} - -// MockReplicationControllerInterface is a mock of ReplicationControllerInterface interface. -type MockReplicationControllerInterface struct { - ctrl *gomock.Controller - recorder *MockReplicationControllerInterfaceMockRecorder -} - -// MockReplicationControllerInterfaceMockRecorder is the mock recorder for MockReplicationControllerInterface. -type MockReplicationControllerInterfaceMockRecorder struct { - mock *MockReplicationControllerInterface -} - -// NewMockReplicationControllerInterface creates a new mock instance. -func NewMockReplicationControllerInterface(ctrl *gomock.Controller) *MockReplicationControllerInterface { - mock := &MockReplicationControllerInterface{ctrl: ctrl} - mock.recorder = &MockReplicationControllerInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockReplicationControllerInterface) EXPECT() *MockReplicationControllerInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockReplicationControllerInterface) Apply(arg0 context.Context, arg1 *v12.ReplicationControllerApplyConfiguration, arg2 v11.ApplyOptions) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockReplicationControllerInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockReplicationControllerInterface) ApplyStatus(arg0 context.Context, arg1 *v12.ReplicationControllerApplyConfiguration, arg2 v11.ApplyOptions) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockReplicationControllerInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockReplicationControllerInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockReplicationControllerInterface) Create(arg0 context.Context, arg1 *v10.ReplicationController, arg2 v11.CreateOptions) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockReplicationControllerInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockReplicationControllerInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockReplicationControllerInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockReplicationControllerInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockReplicationControllerInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockReplicationControllerInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockReplicationControllerInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockReplicationControllerInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Get), arg0, arg1, arg2) -} - -// GetScale mocks base method. -func (m *MockReplicationControllerInterface) GetScale(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "GetScale", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// GetScale indicates an expected call of GetScale. -func (mr *MockReplicationControllerInterfaceMockRecorder) GetScale(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScale", reflect.TypeOf((*MockReplicationControllerInterface)(nil).GetScale), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockReplicationControllerInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v10.ReplicationControllerList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v10.ReplicationControllerList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockReplicationControllerInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockReplicationControllerInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockReplicationControllerInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockReplicationControllerInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockReplicationControllerInterface) Update(arg0 context.Context, arg1 *v10.ReplicationController, arg2 v11.UpdateOptions) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockReplicationControllerInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateScale mocks base method. -func (m *MockReplicationControllerInterface) UpdateScale(arg0 context.Context, arg1 string, arg2 *v1.Scale, arg3 v11.UpdateOptions) (*v1.Scale, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateScale", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v1.Scale) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateScale indicates an expected call of UpdateScale. -func (mr *MockReplicationControllerInterfaceMockRecorder) UpdateScale(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScale", reflect.TypeOf((*MockReplicationControllerInterface)(nil).UpdateScale), arg0, arg1, arg2, arg3) -} - -// UpdateStatus mocks base method. -func (m *MockReplicationControllerInterface) UpdateStatus(arg0 context.Context, arg1 *v10.ReplicationController, arg2 v11.UpdateOptions) (*v10.ReplicationController, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ReplicationController) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockReplicationControllerInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockReplicationControllerInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockReplicationControllerInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockReplicationControllerInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockReplicationControllerInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/resourceauota.go b/plugins/source/k8s/mocks/core/v1/resourceauota.go deleted file mode 100644 index 46f342ea1a8ecc..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/resourceauota.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ResourceQuotasGetter,ResourceQuotaInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockResourceQuotasGetter is a mock of ResourceQuotasGetter interface. -type MockResourceQuotasGetter struct { - ctrl *gomock.Controller - recorder *MockResourceQuotasGetterMockRecorder -} - -// MockResourceQuotasGetterMockRecorder is the mock recorder for MockResourceQuotasGetter. -type MockResourceQuotasGetterMockRecorder struct { - mock *MockResourceQuotasGetter -} - -// NewMockResourceQuotasGetter creates a new mock instance. -func NewMockResourceQuotasGetter(ctrl *gomock.Controller) *MockResourceQuotasGetter { - mock := &MockResourceQuotasGetter{ctrl: ctrl} - mock.recorder = &MockResourceQuotasGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockResourceQuotasGetter) EXPECT() *MockResourceQuotasGetterMockRecorder { - return m.recorder -} - -// ResourceQuotas mocks base method. -func (m *MockResourceQuotasGetter) ResourceQuotas(arg0 string) v12.ResourceQuotaInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ResourceQuotas", arg0) - ret0, _ := ret[0].(v12.ResourceQuotaInterface) - return ret0 -} - -// ResourceQuotas indicates an expected call of ResourceQuotas. -func (mr *MockResourceQuotasGetterMockRecorder) ResourceQuotas(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResourceQuotas", reflect.TypeOf((*MockResourceQuotasGetter)(nil).ResourceQuotas), arg0) -} - -// MockResourceQuotaInterface is a mock of ResourceQuotaInterface interface. -type MockResourceQuotaInterface struct { - ctrl *gomock.Controller - recorder *MockResourceQuotaInterfaceMockRecorder -} - -// MockResourceQuotaInterfaceMockRecorder is the mock recorder for MockResourceQuotaInterface. -type MockResourceQuotaInterfaceMockRecorder struct { - mock *MockResourceQuotaInterface -} - -// NewMockResourceQuotaInterface creates a new mock instance. -func NewMockResourceQuotaInterface(ctrl *gomock.Controller) *MockResourceQuotaInterface { - mock := &MockResourceQuotaInterface{ctrl: ctrl} - mock.recorder = &MockResourceQuotaInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockResourceQuotaInterface) EXPECT() *MockResourceQuotaInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockResourceQuotaInterface) Apply(arg0 context.Context, arg1 *v11.ResourceQuotaApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockResourceQuotaInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockResourceQuotaInterface) ApplyStatus(arg0 context.Context, arg1 *v11.ResourceQuotaApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockResourceQuotaInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockResourceQuotaInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockResourceQuotaInterface) Create(arg0 context.Context, arg1 *v1.ResourceQuota, arg2 v10.CreateOptions) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockResourceQuotaInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockResourceQuotaInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockResourceQuotaInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockResourceQuotaInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockResourceQuotaInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockResourceQuotaInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockResourceQuotaInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockResourceQuotaInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockResourceQuotaInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ResourceQuotaList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ResourceQuotaList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockResourceQuotaInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockResourceQuotaInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockResourceQuotaInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockResourceQuotaInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockResourceQuotaInterface) Update(arg0 context.Context, arg1 *v1.ResourceQuota, arg2 v10.UpdateOptions) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockResourceQuotaInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockResourceQuotaInterface) UpdateStatus(arg0 context.Context, arg1 *v1.ResourceQuota, arg2 v10.UpdateOptions) (*v1.ResourceQuota, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ResourceQuota) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockResourceQuotaInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockResourceQuotaInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockResourceQuotaInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockResourceQuotaInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockResourceQuotaInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/secret.go b/plugins/source/k8s/mocks/core/v1/secret.go deleted file mode 100644 index e018f1d5bf4596..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/secret.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: SecretsGetter,SecretInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockSecretsGetter is a mock of SecretsGetter interface. -type MockSecretsGetter struct { - ctrl *gomock.Controller - recorder *MockSecretsGetterMockRecorder -} - -// MockSecretsGetterMockRecorder is the mock recorder for MockSecretsGetter. -type MockSecretsGetterMockRecorder struct { - mock *MockSecretsGetter -} - -// NewMockSecretsGetter creates a new mock instance. -func NewMockSecretsGetter(ctrl *gomock.Controller) *MockSecretsGetter { - mock := &MockSecretsGetter{ctrl: ctrl} - mock.recorder = &MockSecretsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockSecretsGetter) EXPECT() *MockSecretsGetterMockRecorder { - return m.recorder -} - -// Secrets mocks base method. -func (m *MockSecretsGetter) Secrets(arg0 string) v12.SecretInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Secrets", arg0) - ret0, _ := ret[0].(v12.SecretInterface) - return ret0 -} - -// Secrets indicates an expected call of Secrets. -func (mr *MockSecretsGetterMockRecorder) Secrets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Secrets", reflect.TypeOf((*MockSecretsGetter)(nil).Secrets), arg0) -} - -// MockSecretInterface is a mock of SecretInterface interface. -type MockSecretInterface struct { - ctrl *gomock.Controller - recorder *MockSecretInterfaceMockRecorder -} - -// MockSecretInterfaceMockRecorder is the mock recorder for MockSecretInterface. -type MockSecretInterfaceMockRecorder struct { - mock *MockSecretInterface -} - -// NewMockSecretInterface creates a new mock instance. -func NewMockSecretInterface(ctrl *gomock.Controller) *MockSecretInterface { - mock := &MockSecretInterface{ctrl: ctrl} - mock.recorder = &MockSecretInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockSecretInterface) EXPECT() *MockSecretInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockSecretInterface) Apply(arg0 context.Context, arg1 *v11.SecretApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Secret, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockSecretInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockSecretInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockSecretInterface) Create(arg0 context.Context, arg1 *v1.Secret, arg2 v10.CreateOptions) (*v1.Secret, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockSecretInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSecretInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockSecretInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockSecretInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockSecretInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockSecretInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockSecretInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockSecretInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockSecretInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Secret, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockSecretInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockSecretInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockSecretInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.SecretList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.SecretList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockSecretInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockSecretInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockSecretInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Secret, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockSecretInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockSecretInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockSecretInterface) Update(arg0 context.Context, arg1 *v1.Secret, arg2 v10.UpdateOptions) (*v1.Secret, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Secret) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockSecretInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockSecretInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockSecretInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockSecretInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockSecretInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/service.go b/plugins/source/k8s/mocks/core/v1/service.go deleted file mode 100644 index dd1ec0a98c7c56..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/service.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ServicesGetter,ServiceInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/core/v1" - v12 "k8s.io/client-go/kubernetes/typed/core/v1" - rest "k8s.io/client-go/rest" -) - -// MockServicesGetter is a mock of ServicesGetter interface. -type MockServicesGetter struct { - ctrl *gomock.Controller - recorder *MockServicesGetterMockRecorder -} - -// MockServicesGetterMockRecorder is the mock recorder for MockServicesGetter. -type MockServicesGetterMockRecorder struct { - mock *MockServicesGetter -} - -// NewMockServicesGetter creates a new mock instance. -func NewMockServicesGetter(ctrl *gomock.Controller) *MockServicesGetter { - mock := &MockServicesGetter{ctrl: ctrl} - mock.recorder = &MockServicesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockServicesGetter) EXPECT() *MockServicesGetterMockRecorder { - return m.recorder -} - -// Services mocks base method. -func (m *MockServicesGetter) Services(arg0 string) v12.ServiceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Services", arg0) - ret0, _ := ret[0].(v12.ServiceInterface) - return ret0 -} - -// Services indicates an expected call of Services. -func (mr *MockServicesGetterMockRecorder) Services(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Services", reflect.TypeOf((*MockServicesGetter)(nil).Services), arg0) -} - -// MockServiceInterface is a mock of ServiceInterface interface. -type MockServiceInterface struct { - ctrl *gomock.Controller - recorder *MockServiceInterfaceMockRecorder -} - -// MockServiceInterfaceMockRecorder is the mock recorder for MockServiceInterface. -type MockServiceInterfaceMockRecorder struct { - mock *MockServiceInterface -} - -// NewMockServiceInterface creates a new mock instance. -func NewMockServiceInterface(ctrl *gomock.Controller) *MockServiceInterface { - mock := &MockServiceInterface{ctrl: ctrl} - mock.recorder = &MockServiceInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockServiceInterface) EXPECT() *MockServiceInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockServiceInterface) Apply(arg0 context.Context, arg1 *v11.ServiceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockServiceInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockServiceInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockServiceInterface) ApplyStatus(arg0 context.Context, arg1 *v11.ServiceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockServiceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockServiceInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockServiceInterface) Create(arg0 context.Context, arg1 *v1.Service, arg2 v10.CreateOptions) (*v1.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockServiceInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockServiceInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockServiceInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockServiceInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockServiceInterface)(nil).Delete), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockServiceInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockServiceInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockServiceInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockServiceInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ServiceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ServiceList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockServiceInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockServiceInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockServiceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Service, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockServiceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockServiceInterface)(nil).Patch), varargs...) -} - -// ProxyGet mocks base method. -func (m *MockServiceInterface) ProxyGet(arg0, arg1, arg2, arg3 string, arg4 map[string]string) rest.ResponseWrapper { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ProxyGet", arg0, arg1, arg2, arg3, arg4) - ret0, _ := ret[0].(rest.ResponseWrapper) - return ret0 -} - -// ProxyGet indicates an expected call of ProxyGet. -func (mr *MockServiceInterfaceMockRecorder) ProxyGet(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProxyGet", reflect.TypeOf((*MockServiceInterface)(nil).ProxyGet), arg0, arg1, arg2, arg3, arg4) -} - -// Update mocks base method. -func (m *MockServiceInterface) Update(arg0 context.Context, arg1 *v1.Service, arg2 v10.UpdateOptions) (*v1.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockServiceInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockServiceInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockServiceInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Service, arg2 v10.UpdateOptions) (*v1.Service, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Service) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockServiceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockServiceInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockServiceInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockServiceInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockServiceInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/core/v1/serviceaccount.go b/plugins/source/k8s/mocks/core/v1/serviceaccount.go deleted file mode 100644 index 2b3a311b47e90e..00000000000000 --- a/plugins/source/k8s/mocks/core/v1/serviceaccount.go +++ /dev/null @@ -1,232 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: ServiceAccountsGetter,ServiceAccountInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/authentication/v1" - v10 "k8s.io/api/core/v1" - v11 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v12 "k8s.io/client-go/applyconfigurations/core/v1" - v13 "k8s.io/client-go/kubernetes/typed/core/v1" -) - -// MockServiceAccountsGetter is a mock of ServiceAccountsGetter interface. -type MockServiceAccountsGetter struct { - ctrl *gomock.Controller - recorder *MockServiceAccountsGetterMockRecorder -} - -// MockServiceAccountsGetterMockRecorder is the mock recorder for MockServiceAccountsGetter. -type MockServiceAccountsGetterMockRecorder struct { - mock *MockServiceAccountsGetter -} - -// NewMockServiceAccountsGetter creates a new mock instance. -func NewMockServiceAccountsGetter(ctrl *gomock.Controller) *MockServiceAccountsGetter { - mock := &MockServiceAccountsGetter{ctrl: ctrl} - mock.recorder = &MockServiceAccountsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockServiceAccountsGetter) EXPECT() *MockServiceAccountsGetterMockRecorder { - return m.recorder -} - -// ServiceAccounts mocks base method. -func (m *MockServiceAccountsGetter) ServiceAccounts(arg0 string) v13.ServiceAccountInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceAccounts", arg0) - ret0, _ := ret[0].(v13.ServiceAccountInterface) - return ret0 -} - -// ServiceAccounts indicates an expected call of ServiceAccounts. -func (mr *MockServiceAccountsGetterMockRecorder) ServiceAccounts(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceAccounts", reflect.TypeOf((*MockServiceAccountsGetter)(nil).ServiceAccounts), arg0) -} - -// MockServiceAccountInterface is a mock of ServiceAccountInterface interface. -type MockServiceAccountInterface struct { - ctrl *gomock.Controller - recorder *MockServiceAccountInterfaceMockRecorder -} - -// MockServiceAccountInterfaceMockRecorder is the mock recorder for MockServiceAccountInterface. -type MockServiceAccountInterfaceMockRecorder struct { - mock *MockServiceAccountInterface -} - -// NewMockServiceAccountInterface creates a new mock instance. -func NewMockServiceAccountInterface(ctrl *gomock.Controller) *MockServiceAccountInterface { - mock := &MockServiceAccountInterface{ctrl: ctrl} - mock.recorder = &MockServiceAccountInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockServiceAccountInterface) EXPECT() *MockServiceAccountInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockServiceAccountInterface) Apply(arg0 context.Context, arg1 *v12.ServiceAccountApplyConfiguration, arg2 v11.ApplyOptions) (*v10.ServiceAccount, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ServiceAccount) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockServiceAccountInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockServiceAccountInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockServiceAccountInterface) Create(arg0 context.Context, arg1 *v10.ServiceAccount, arg2 v11.CreateOptions) (*v10.ServiceAccount, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ServiceAccount) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockServiceAccountInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockServiceAccountInterface)(nil).Create), arg0, arg1, arg2) -} - -// CreateToken mocks base method. -func (m *MockServiceAccountInterface) CreateToken(arg0 context.Context, arg1 string, arg2 *v1.TokenRequest, arg3 v11.CreateOptions) (*v1.TokenRequest, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CreateToken", arg0, arg1, arg2, arg3) - ret0, _ := ret[0].(*v1.TokenRequest) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// CreateToken indicates an expected call of CreateToken. -func (mr *MockServiceAccountInterfaceMockRecorder) CreateToken(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateToken", reflect.TypeOf((*MockServiceAccountInterface)(nil).CreateToken), arg0, arg1, arg2, arg3) -} - -// Delete mocks base method. -func (m *MockServiceAccountInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockServiceAccountInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockServiceAccountInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockServiceAccountInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockServiceAccountInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockServiceAccountInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockServiceAccountInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.ServiceAccount, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ServiceAccount) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockServiceAccountInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockServiceAccountInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockServiceAccountInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v10.ServiceAccountList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v10.ServiceAccountList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockServiceAccountInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockServiceAccountInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockServiceAccountInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v10.ServiceAccount, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v10.ServiceAccount) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockServiceAccountInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockServiceAccountInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockServiceAccountInterface) Update(arg0 context.Context, arg1 *v10.ServiceAccount, arg2 v11.UpdateOptions) (*v10.ServiceAccount, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v10.ServiceAccount) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockServiceAccountInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockServiceAccountInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockServiceAccountInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockServiceAccountInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockServiceAccountInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/discovery/client.go b/plugins/source/k8s/mocks/discovery/client.go deleted file mode 100644 index 0c0dfd539a285c..00000000000000 --- a/plugins/source/k8s/mocks/discovery/client.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/discovery (interfaces: DiscoveryInterface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - openapi_v2 "github.com/google/gnostic-models/openapiv2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" - version "k8s.io/apimachinery/pkg/version" - discovery "k8s.io/client-go/discovery" - openapi "k8s.io/client-go/openapi" - rest "k8s.io/client-go/rest" -) - -// MockDiscoveryInterface is a mock of DiscoveryInterface interface. -type MockDiscoveryInterface struct { - ctrl *gomock.Controller - recorder *MockDiscoveryInterfaceMockRecorder -} - -// MockDiscoveryInterfaceMockRecorder is the mock recorder for MockDiscoveryInterface. -type MockDiscoveryInterfaceMockRecorder struct { - mock *MockDiscoveryInterface -} - -// NewMockDiscoveryInterface creates a new mock instance. -func NewMockDiscoveryInterface(ctrl *gomock.Controller) *MockDiscoveryInterface { - mock := &MockDiscoveryInterface{ctrl: ctrl} - mock.recorder = &MockDiscoveryInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDiscoveryInterface) EXPECT() *MockDiscoveryInterfaceMockRecorder { - return m.recorder -} - -// OpenAPISchema mocks base method. -func (m *MockDiscoveryInterface) OpenAPISchema() (*openapi_v2.Document, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "OpenAPISchema") - ret0, _ := ret[0].(*openapi_v2.Document) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// OpenAPISchema indicates an expected call of OpenAPISchema. -func (mr *MockDiscoveryInterfaceMockRecorder) OpenAPISchema() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenAPISchema", reflect.TypeOf((*MockDiscoveryInterface)(nil).OpenAPISchema)) -} - -// OpenAPIV3 mocks base method. -func (m *MockDiscoveryInterface) OpenAPIV3() openapi.Client { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "OpenAPIV3") - ret0, _ := ret[0].(openapi.Client) - return ret0 -} - -// OpenAPIV3 indicates an expected call of OpenAPIV3. -func (mr *MockDiscoveryInterfaceMockRecorder) OpenAPIV3() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenAPIV3", reflect.TypeOf((*MockDiscoveryInterface)(nil).OpenAPIV3)) -} - -// RESTClient mocks base method. -func (m *MockDiscoveryInterface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockDiscoveryInterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockDiscoveryInterface)(nil).RESTClient)) -} - -// ServerGroups mocks base method. -func (m *MockDiscoveryInterface) ServerGroups() (*v1.APIGroupList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServerGroups") - ret0, _ := ret[0].(*v1.APIGroupList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServerGroups indicates an expected call of ServerGroups. -func (mr *MockDiscoveryInterfaceMockRecorder) ServerGroups() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerGroups", reflect.TypeOf((*MockDiscoveryInterface)(nil).ServerGroups)) -} - -// ServerGroupsAndResources mocks base method. -func (m *MockDiscoveryInterface) ServerGroupsAndResources() ([]*v1.APIGroup, []*v1.APIResourceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServerGroupsAndResources") - ret0, _ := ret[0].([]*v1.APIGroup) - ret1, _ := ret[1].([]*v1.APIResourceList) - ret2, _ := ret[2].(error) - return ret0, ret1, ret2 -} - -// ServerGroupsAndResources indicates an expected call of ServerGroupsAndResources. -func (mr *MockDiscoveryInterfaceMockRecorder) ServerGroupsAndResources() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerGroupsAndResources", reflect.TypeOf((*MockDiscoveryInterface)(nil).ServerGroupsAndResources)) -} - -// ServerPreferredNamespacedResources mocks base method. -func (m *MockDiscoveryInterface) ServerPreferredNamespacedResources() ([]*v1.APIResourceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServerPreferredNamespacedResources") - ret0, _ := ret[0].([]*v1.APIResourceList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServerPreferredNamespacedResources indicates an expected call of ServerPreferredNamespacedResources. -func (mr *MockDiscoveryInterfaceMockRecorder) ServerPreferredNamespacedResources() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerPreferredNamespacedResources", reflect.TypeOf((*MockDiscoveryInterface)(nil).ServerPreferredNamespacedResources)) -} - -// ServerPreferredResources mocks base method. -func (m *MockDiscoveryInterface) ServerPreferredResources() ([]*v1.APIResourceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServerPreferredResources") - ret0, _ := ret[0].([]*v1.APIResourceList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServerPreferredResources indicates an expected call of ServerPreferredResources. -func (mr *MockDiscoveryInterfaceMockRecorder) ServerPreferredResources() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerPreferredResources", reflect.TypeOf((*MockDiscoveryInterface)(nil).ServerPreferredResources)) -} - -// ServerResourcesForGroupVersion mocks base method. -func (m *MockDiscoveryInterface) ServerResourcesForGroupVersion(arg0 string) (*v1.APIResourceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServerResourcesForGroupVersion", arg0) - ret0, _ := ret[0].(*v1.APIResourceList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServerResourcesForGroupVersion indicates an expected call of ServerResourcesForGroupVersion. -func (mr *MockDiscoveryInterfaceMockRecorder) ServerResourcesForGroupVersion(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerResourcesForGroupVersion", reflect.TypeOf((*MockDiscoveryInterface)(nil).ServerResourcesForGroupVersion), arg0) -} - -// ServerVersion mocks base method. -func (m *MockDiscoveryInterface) ServerVersion() (*version.Info, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServerVersion") - ret0, _ := ret[0].(*version.Info) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ServerVersion indicates an expected call of ServerVersion. -func (mr *MockDiscoveryInterfaceMockRecorder) ServerVersion() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServerVersion", reflect.TypeOf((*MockDiscoveryInterface)(nil).ServerVersion)) -} - -// WithLegacy mocks base method. -func (m *MockDiscoveryInterface) WithLegacy() discovery.DiscoveryInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "WithLegacy") - ret0, _ := ret[0].(discovery.DiscoveryInterface) - return ret0 -} - -// WithLegacy indicates an expected call of WithLegacy. -func (mr *MockDiscoveryInterfaceMockRecorder) WithLegacy() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithLegacy", reflect.TypeOf((*MockDiscoveryInterface)(nil).WithLegacy)) -} diff --git a/plugins/source/k8s/mocks/discovery/v1/client.go b/plugins/source/k8s/mocks/discovery/v1/client.go deleted file mode 100644 index 03a50816f65d06..00000000000000 --- a/plugins/source/k8s/mocks/discovery/v1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/discovery/v1 (interfaces: DiscoveryV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/discovery/v1" - rest "k8s.io/client-go/rest" -) - -// MockDiscoveryV1Interface is a mock of DiscoveryV1Interface interface. -type MockDiscoveryV1Interface struct { - ctrl *gomock.Controller - recorder *MockDiscoveryV1InterfaceMockRecorder -} - -// MockDiscoveryV1InterfaceMockRecorder is the mock recorder for MockDiscoveryV1Interface. -type MockDiscoveryV1InterfaceMockRecorder struct { - mock *MockDiscoveryV1Interface -} - -// NewMockDiscoveryV1Interface creates a new mock instance. -func NewMockDiscoveryV1Interface(ctrl *gomock.Controller) *MockDiscoveryV1Interface { - mock := &MockDiscoveryV1Interface{ctrl: ctrl} - mock.recorder = &MockDiscoveryV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDiscoveryV1Interface) EXPECT() *MockDiscoveryV1InterfaceMockRecorder { - return m.recorder -} - -// EndpointSlices mocks base method. -func (m *MockDiscoveryV1Interface) EndpointSlices(arg0 string) v1.EndpointSliceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EndpointSlices", arg0) - ret0, _ := ret[0].(v1.EndpointSliceInterface) - return ret0 -} - -// EndpointSlices indicates an expected call of EndpointSlices. -func (mr *MockDiscoveryV1InterfaceMockRecorder) EndpointSlices(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointSlices", reflect.TypeOf((*MockDiscoveryV1Interface)(nil).EndpointSlices), arg0) -} - -// RESTClient mocks base method. -func (m *MockDiscoveryV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockDiscoveryV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockDiscoveryV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/discovery/v1/endpointslice.go b/plugins/source/k8s/mocks/discovery/v1/endpointslice.go deleted file mode 100644 index 44749cc67ebfd1..00000000000000 --- a/plugins/source/k8s/mocks/discovery/v1/endpointslice.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/discovery/v1 (interfaces: EndpointSlicesGetter,EndpointSliceInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/discovery/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/discovery/v1" - v12 "k8s.io/client-go/kubernetes/typed/discovery/v1" -) - -// MockEndpointSlicesGetter is a mock of EndpointSlicesGetter interface. -type MockEndpointSlicesGetter struct { - ctrl *gomock.Controller - recorder *MockEndpointSlicesGetterMockRecorder -} - -// MockEndpointSlicesGetterMockRecorder is the mock recorder for MockEndpointSlicesGetter. -type MockEndpointSlicesGetterMockRecorder struct { - mock *MockEndpointSlicesGetter -} - -// NewMockEndpointSlicesGetter creates a new mock instance. -func NewMockEndpointSlicesGetter(ctrl *gomock.Controller) *MockEndpointSlicesGetter { - mock := &MockEndpointSlicesGetter{ctrl: ctrl} - mock.recorder = &MockEndpointSlicesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEndpointSlicesGetter) EXPECT() *MockEndpointSlicesGetterMockRecorder { - return m.recorder -} - -// EndpointSlices mocks base method. -func (m *MockEndpointSlicesGetter) EndpointSlices(arg0 string) v12.EndpointSliceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EndpointSlices", arg0) - ret0, _ := ret[0].(v12.EndpointSliceInterface) - return ret0 -} - -// EndpointSlices indicates an expected call of EndpointSlices. -func (mr *MockEndpointSlicesGetterMockRecorder) EndpointSlices(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointSlices", reflect.TypeOf((*MockEndpointSlicesGetter)(nil).EndpointSlices), arg0) -} - -// MockEndpointSliceInterface is a mock of EndpointSliceInterface interface. -type MockEndpointSliceInterface struct { - ctrl *gomock.Controller - recorder *MockEndpointSliceInterfaceMockRecorder -} - -// MockEndpointSliceInterfaceMockRecorder is the mock recorder for MockEndpointSliceInterface. -type MockEndpointSliceInterfaceMockRecorder struct { - mock *MockEndpointSliceInterface -} - -// NewMockEndpointSliceInterface creates a new mock instance. -func NewMockEndpointSliceInterface(ctrl *gomock.Controller) *MockEndpointSliceInterface { - mock := &MockEndpointSliceInterface{ctrl: ctrl} - mock.recorder = &MockEndpointSliceInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEndpointSliceInterface) EXPECT() *MockEndpointSliceInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockEndpointSliceInterface) Apply(arg0 context.Context, arg1 *v11.EndpointSliceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.EndpointSlice, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.EndpointSlice) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockEndpointSliceInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockEndpointSliceInterface) Create(arg0 context.Context, arg1 *v1.EndpointSlice, arg2 v10.CreateOptions) (*v1.EndpointSlice, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.EndpointSlice) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockEndpointSliceInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockEndpointSliceInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockEndpointSliceInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockEndpointSliceInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockEndpointSliceInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockEndpointSliceInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockEndpointSliceInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.EndpointSlice, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.EndpointSlice) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockEndpointSliceInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockEndpointSliceInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.EndpointSliceList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.EndpointSliceList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockEndpointSliceInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockEndpointSliceInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockEndpointSliceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.EndpointSlice, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.EndpointSlice) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockEndpointSliceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockEndpointSliceInterface) Update(arg0 context.Context, arg1 *v1.EndpointSlice, arg2 v10.UpdateOptions) (*v1.EndpointSlice, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.EndpointSlice) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockEndpointSliceInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockEndpointSliceInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockEndpointSliceInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockEndpointSliceInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/discovery/v1/event.go b/plugins/source/k8s/mocks/discovery/v1/event.go deleted file mode 100644 index b0f849b9f8e433..00000000000000 --- a/plugins/source/k8s/mocks/discovery/v1/event.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/events/v1 (interfaces: EventsGetter,EventInterface,EventsV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/events/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/events/v1" - v12 "k8s.io/client-go/kubernetes/typed/events/v1" - rest "k8s.io/client-go/rest" -) - -// MockEventsGetter is a mock of EventsGetter interface. -type MockEventsGetter struct { - ctrl *gomock.Controller - recorder *MockEventsGetterMockRecorder -} - -// MockEventsGetterMockRecorder is the mock recorder for MockEventsGetter. -type MockEventsGetterMockRecorder struct { - mock *MockEventsGetter -} - -// NewMockEventsGetter creates a new mock instance. -func NewMockEventsGetter(ctrl *gomock.Controller) *MockEventsGetter { - mock := &MockEventsGetter{ctrl: ctrl} - mock.recorder = &MockEventsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEventsGetter) EXPECT() *MockEventsGetterMockRecorder { - return m.recorder -} - -// Events mocks base method. -func (m *MockEventsGetter) Events(arg0 string) v12.EventInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Events", arg0) - ret0, _ := ret[0].(v12.EventInterface) - return ret0 -} - -// Events indicates an expected call of Events. -func (mr *MockEventsGetterMockRecorder) Events(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockEventsGetter)(nil).Events), arg0) -} - -// MockEventInterface is a mock of EventInterface interface. -type MockEventInterface struct { - ctrl *gomock.Controller - recorder *MockEventInterfaceMockRecorder -} - -// MockEventInterfaceMockRecorder is the mock recorder for MockEventInterface. -type MockEventInterfaceMockRecorder struct { - mock *MockEventInterface -} - -// NewMockEventInterface creates a new mock instance. -func NewMockEventInterface(ctrl *gomock.Controller) *MockEventInterface { - mock := &MockEventInterface{ctrl: ctrl} - mock.recorder = &MockEventInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEventInterface) EXPECT() *MockEventInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockEventInterface) Apply(arg0 context.Context, arg1 *v11.EventApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockEventInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockEventInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockEventInterface) Create(arg0 context.Context, arg1 *v1.Event, arg2 v10.CreateOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockEventInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockEventInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockEventInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockEventInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockEventInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockEventInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockEventInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockEventInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockEventInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockEventInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockEventInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockEventInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.EventList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.EventList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockEventInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockEventInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockEventInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Event, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockEventInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockEventInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockEventInterface) Update(arg0 context.Context, arg1 *v1.Event, arg2 v10.UpdateOptions) (*v1.Event, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Event) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockEventInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockEventInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockEventInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockEventInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockEventInterface)(nil).Watch), arg0, arg1) -} - -// MockEventsV1Interface is a mock of EventsV1Interface interface. -type MockEventsV1Interface struct { - ctrl *gomock.Controller - recorder *MockEventsV1InterfaceMockRecorder -} - -// MockEventsV1InterfaceMockRecorder is the mock recorder for MockEventsV1Interface. -type MockEventsV1InterfaceMockRecorder struct { - mock *MockEventsV1Interface -} - -// NewMockEventsV1Interface creates a new mock instance. -func NewMockEventsV1Interface(ctrl *gomock.Controller) *MockEventsV1Interface { - mock := &MockEventsV1Interface{ctrl: ctrl} - mock.recorder = &MockEventsV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEventsV1Interface) EXPECT() *MockEventsV1InterfaceMockRecorder { - return m.recorder -} - -// Events mocks base method. -func (m *MockEventsV1Interface) Events(arg0 string) v12.EventInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Events", arg0) - ret0, _ := ret[0].(v12.EventInterface) - return ret0 -} - -// Events indicates an expected call of Events. -func (mr *MockEventsV1InterfaceMockRecorder) Events(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockEventsV1Interface)(nil).Events), arg0) -} - -// RESTClient mocks base method. -func (m *MockEventsV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockEventsV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockEventsV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/discovery/v1beta1/client.go b/plugins/source/k8s/mocks/discovery/v1beta1/client.go deleted file mode 100644 index 38c46023d2d374..00000000000000 --- a/plugins/source/k8s/mocks/discovery/v1beta1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/discovery/v1beta1 (interfaces: DiscoveryV1beta1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/discovery/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockDiscoveryV1beta1Interface is a mock of DiscoveryV1beta1Interface interface. -type MockDiscoveryV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockDiscoveryV1beta1InterfaceMockRecorder -} - -// MockDiscoveryV1beta1InterfaceMockRecorder is the mock recorder for MockDiscoveryV1beta1Interface. -type MockDiscoveryV1beta1InterfaceMockRecorder struct { - mock *MockDiscoveryV1beta1Interface -} - -// NewMockDiscoveryV1beta1Interface creates a new mock instance. -func NewMockDiscoveryV1beta1Interface(ctrl *gomock.Controller) *MockDiscoveryV1beta1Interface { - mock := &MockDiscoveryV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockDiscoveryV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockDiscoveryV1beta1Interface) EXPECT() *MockDiscoveryV1beta1InterfaceMockRecorder { - return m.recorder -} - -// EndpointSlices mocks base method. -func (m *MockDiscoveryV1beta1Interface) EndpointSlices(arg0 string) v1beta1.EndpointSliceInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EndpointSlices", arg0) - ret0, _ := ret[0].(v1beta1.EndpointSliceInterface) - return ret0 -} - -// EndpointSlices indicates an expected call of EndpointSlices. -func (mr *MockDiscoveryV1beta1InterfaceMockRecorder) EndpointSlices(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndpointSlices", reflect.TypeOf((*MockDiscoveryV1beta1Interface)(nil).EndpointSlices), arg0) -} - -// RESTClient mocks base method. -func (m *MockDiscoveryV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockDiscoveryV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockDiscoveryV1beta1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/discovery/v1beta1/event.go b/plugins/source/k8s/mocks/discovery/v1beta1/event.go deleted file mode 100644 index 7fbf9507a6a85c..00000000000000 --- a/plugins/source/k8s/mocks/discovery/v1beta1/event.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/events/v1beta1 (interfaces: EventsV1beta1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/events/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockEventsV1beta1Interface is a mock of EventsV1beta1Interface interface. -type MockEventsV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockEventsV1beta1InterfaceMockRecorder -} - -// MockEventsV1beta1InterfaceMockRecorder is the mock recorder for MockEventsV1beta1Interface. -type MockEventsV1beta1InterfaceMockRecorder struct { - mock *MockEventsV1beta1Interface -} - -// NewMockEventsV1beta1Interface creates a new mock instance. -func NewMockEventsV1beta1Interface(ctrl *gomock.Controller) *MockEventsV1beta1Interface { - mock := &MockEventsV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockEventsV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockEventsV1beta1Interface) EXPECT() *MockEventsV1beta1InterfaceMockRecorder { - return m.recorder -} - -// Events mocks base method. -func (m *MockEventsV1beta1Interface) Events(arg0 string) v1beta1.EventInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Events", arg0) - ret0, _ := ret[0].(v1beta1.EventInterface) - return ret0 -} - -// Events indicates an expected call of Events. -func (mr *MockEventsV1beta1InterfaceMockRecorder) Events(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockEventsV1beta1Interface)(nil).Events), arg0) -} - -// RESTClient mocks base method. -func (m *MockEventsV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockEventsV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockEventsV1beta1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/extensions/v1beta1/client.go b/plugins/source/k8s/mocks/extensions/v1beta1/client.go deleted file mode 100644 index 9f500d96dc7231..00000000000000 --- a/plugins/source/k8s/mocks/extensions/v1beta1/client.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/extensions/v1beta1 (interfaces: ExtensionsV1beta1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockExtensionsV1beta1Interface is a mock of ExtensionsV1beta1Interface interface. -type MockExtensionsV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockExtensionsV1beta1InterfaceMockRecorder -} - -// MockExtensionsV1beta1InterfaceMockRecorder is the mock recorder for MockExtensionsV1beta1Interface. -type MockExtensionsV1beta1InterfaceMockRecorder struct { - mock *MockExtensionsV1beta1Interface -} - -// NewMockExtensionsV1beta1Interface creates a new mock instance. -func NewMockExtensionsV1beta1Interface(ctrl *gomock.Controller) *MockExtensionsV1beta1Interface { - mock := &MockExtensionsV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockExtensionsV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockExtensionsV1beta1Interface) EXPECT() *MockExtensionsV1beta1InterfaceMockRecorder { - return m.recorder -} - -// DaemonSets mocks base method. -func (m *MockExtensionsV1beta1Interface) DaemonSets(arg0 string) v1beta1.DaemonSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DaemonSets", arg0) - ret0, _ := ret[0].(v1beta1.DaemonSetInterface) - return ret0 -} - -// DaemonSets indicates an expected call of DaemonSets. -func (mr *MockExtensionsV1beta1InterfaceMockRecorder) DaemonSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonSets", reflect.TypeOf((*MockExtensionsV1beta1Interface)(nil).DaemonSets), arg0) -} - -// Deployments mocks base method. -func (m *MockExtensionsV1beta1Interface) Deployments(arg0 string) v1beta1.DeploymentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Deployments", arg0) - ret0, _ := ret[0].(v1beta1.DeploymentInterface) - return ret0 -} - -// Deployments indicates an expected call of Deployments. -func (mr *MockExtensionsV1beta1InterfaceMockRecorder) Deployments(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deployments", reflect.TypeOf((*MockExtensionsV1beta1Interface)(nil).Deployments), arg0) -} - -// Ingresses mocks base method. -func (m *MockExtensionsV1beta1Interface) Ingresses(arg0 string) v1beta1.IngressInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Ingresses", arg0) - ret0, _ := ret[0].(v1beta1.IngressInterface) - return ret0 -} - -// Ingresses indicates an expected call of Ingresses. -func (mr *MockExtensionsV1beta1InterfaceMockRecorder) Ingresses(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ingresses", reflect.TypeOf((*MockExtensionsV1beta1Interface)(nil).Ingresses), arg0) -} - -// NetworkPolicies mocks base method. -func (m *MockExtensionsV1beta1Interface) NetworkPolicies(arg0 string) v1beta1.NetworkPolicyInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NetworkPolicies", arg0) - ret0, _ := ret[0].(v1beta1.NetworkPolicyInterface) - return ret0 -} - -// NetworkPolicies indicates an expected call of NetworkPolicies. -func (mr *MockExtensionsV1beta1InterfaceMockRecorder) NetworkPolicies(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkPolicies", reflect.TypeOf((*MockExtensionsV1beta1Interface)(nil).NetworkPolicies), arg0) -} - -// RESTClient mocks base method. -func (m *MockExtensionsV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockExtensionsV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockExtensionsV1beta1Interface)(nil).RESTClient)) -} - -// ReplicaSets mocks base method. -func (m *MockExtensionsV1beta1Interface) ReplicaSets(arg0 string) v1beta1.ReplicaSetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ReplicaSets", arg0) - ret0, _ := ret[0].(v1beta1.ReplicaSetInterface) - return ret0 -} - -// ReplicaSets indicates an expected call of ReplicaSets. -func (mr *MockExtensionsV1beta1InterfaceMockRecorder) ReplicaSets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicaSets", reflect.TypeOf((*MockExtensionsV1beta1Interface)(nil).ReplicaSets), arg0) -} diff --git a/plugins/source/k8s/mocks/flowcontrol/v1/client.go b/plugins/source/k8s/mocks/flowcontrol/v1/client.go deleted file mode 100644 index 69d55bcaabac85..00000000000000 --- a/plugins/source/k8s/mocks/flowcontrol/v1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/flowcontrol/v1 (interfaces: FlowcontrolV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1" - rest "k8s.io/client-go/rest" -) - -// MockFlowcontrolV1Interface is a mock of FlowcontrolV1Interface interface. -type MockFlowcontrolV1Interface struct { - ctrl *gomock.Controller - recorder *MockFlowcontrolV1InterfaceMockRecorder -} - -// MockFlowcontrolV1InterfaceMockRecorder is the mock recorder for MockFlowcontrolV1Interface. -type MockFlowcontrolV1InterfaceMockRecorder struct { - mock *MockFlowcontrolV1Interface -} - -// NewMockFlowcontrolV1Interface creates a new mock instance. -func NewMockFlowcontrolV1Interface(ctrl *gomock.Controller) *MockFlowcontrolV1Interface { - mock := &MockFlowcontrolV1Interface{ctrl: ctrl} - mock.recorder = &MockFlowcontrolV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockFlowcontrolV1Interface) EXPECT() *MockFlowcontrolV1InterfaceMockRecorder { - return m.recorder -} - -// FlowSchemas mocks base method. -func (m *MockFlowcontrolV1Interface) FlowSchemas() v1.FlowSchemaInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FlowSchemas") - ret0, _ := ret[0].(v1.FlowSchemaInterface) - return ret0 -} - -// FlowSchemas indicates an expected call of FlowSchemas. -func (mr *MockFlowcontrolV1InterfaceMockRecorder) FlowSchemas() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlowSchemas", reflect.TypeOf((*MockFlowcontrolV1Interface)(nil).FlowSchemas)) -} - -// PriorityLevelConfigurations mocks base method. -func (m *MockFlowcontrolV1Interface) PriorityLevelConfigurations() v1.PriorityLevelConfigurationInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PriorityLevelConfigurations") - ret0, _ := ret[0].(v1.PriorityLevelConfigurationInterface) - return ret0 -} - -// PriorityLevelConfigurations indicates an expected call of PriorityLevelConfigurations. -func (mr *MockFlowcontrolV1InterfaceMockRecorder) PriorityLevelConfigurations() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PriorityLevelConfigurations", reflect.TypeOf((*MockFlowcontrolV1Interface)(nil).PriorityLevelConfigurations)) -} - -// RESTClient mocks base method. -func (m *MockFlowcontrolV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockFlowcontrolV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockFlowcontrolV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/interface.go b/plugins/source/k8s/mocks/interface.go deleted file mode 100644 index 7aa9a37aa25fcc..00000000000000 --- a/plugins/source/k8s/mocks/interface.go +++ /dev/null @@ -1,814 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes (interfaces: Interface) - -// Package mocks is a generated GoMock package. -package mocks - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - discovery "k8s.io/client-go/discovery" - v1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1" - v1alpha1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1alpha1" - v1beta1 "k8s.io/client-go/kubernetes/typed/admissionregistration/v1beta1" - v1alpha10 "k8s.io/client-go/kubernetes/typed/apiserverinternal/v1alpha1" - v10 "k8s.io/client-go/kubernetes/typed/apps/v1" - v1beta10 "k8s.io/client-go/kubernetes/typed/apps/v1beta1" - v1beta2 "k8s.io/client-go/kubernetes/typed/apps/v1beta2" - v11 "k8s.io/client-go/kubernetes/typed/authentication/v1" - v1alpha11 "k8s.io/client-go/kubernetes/typed/authentication/v1alpha1" - v1beta11 "k8s.io/client-go/kubernetes/typed/authentication/v1beta1" - v12 "k8s.io/client-go/kubernetes/typed/authorization/v1" - v1beta12 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1" - v13 "k8s.io/client-go/kubernetes/typed/autoscaling/v1" - v2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2" - v2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" - v2beta2 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta2" - v14 "k8s.io/client-go/kubernetes/typed/batch/v1" - v1beta13 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" - v15 "k8s.io/client-go/kubernetes/typed/certificates/v1" - v1alpha12 "k8s.io/client-go/kubernetes/typed/certificates/v1alpha1" - v1beta14 "k8s.io/client-go/kubernetes/typed/certificates/v1beta1" - v16 "k8s.io/client-go/kubernetes/typed/coordination/v1" - v1beta15 "k8s.io/client-go/kubernetes/typed/coordination/v1beta1" - v17 "k8s.io/client-go/kubernetes/typed/core/v1" - v18 "k8s.io/client-go/kubernetes/typed/discovery/v1" - v1beta16 "k8s.io/client-go/kubernetes/typed/discovery/v1beta1" - v19 "k8s.io/client-go/kubernetes/typed/events/v1" - v1beta17 "k8s.io/client-go/kubernetes/typed/events/v1beta1" - v1beta18 "k8s.io/client-go/kubernetes/typed/extensions/v1beta1" - v110 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1" - v1beta19 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta1" - v1beta20 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta2" - v1beta3 "k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta3" - v111 "k8s.io/client-go/kubernetes/typed/networking/v1" - v1alpha13 "k8s.io/client-go/kubernetes/typed/networking/v1alpha1" - v1beta110 "k8s.io/client-go/kubernetes/typed/networking/v1beta1" - v112 "k8s.io/client-go/kubernetes/typed/node/v1" - v1alpha14 "k8s.io/client-go/kubernetes/typed/node/v1alpha1" - v1beta111 "k8s.io/client-go/kubernetes/typed/node/v1beta1" - v113 "k8s.io/client-go/kubernetes/typed/policy/v1" - v1beta112 "k8s.io/client-go/kubernetes/typed/policy/v1beta1" - v114 "k8s.io/client-go/kubernetes/typed/rbac/v1" - v1alpha15 "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1" - v1beta113 "k8s.io/client-go/kubernetes/typed/rbac/v1beta1" - v1alpha2 "k8s.io/client-go/kubernetes/typed/resource/v1alpha2" - v115 "k8s.io/client-go/kubernetes/typed/scheduling/v1" - v1alpha16 "k8s.io/client-go/kubernetes/typed/scheduling/v1alpha1" - v1beta114 "k8s.io/client-go/kubernetes/typed/scheduling/v1beta1" - v116 "k8s.io/client-go/kubernetes/typed/storage/v1" - v1alpha17 "k8s.io/client-go/kubernetes/typed/storage/v1alpha1" - v1beta115 "k8s.io/client-go/kubernetes/typed/storage/v1beta1" -) - -// MockInterface is a mock of Interface interface. -type MockInterface struct { - ctrl *gomock.Controller - recorder *MockInterfaceMockRecorder -} - -// MockInterfaceMockRecorder is the mock recorder for MockInterface. -type MockInterfaceMockRecorder struct { - mock *MockInterface -} - -// NewMockInterface creates a new mock instance. -func NewMockInterface(ctrl *gomock.Controller) *MockInterface { - mock := &MockInterface{ctrl: ctrl} - mock.recorder = &MockInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { - return m.recorder -} - -// AdmissionregistrationV1 mocks base method. -func (m *MockInterface) AdmissionregistrationV1() v1.AdmissionregistrationV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdmissionregistrationV1") - ret0, _ := ret[0].(v1.AdmissionregistrationV1Interface) - return ret0 -} - -// AdmissionregistrationV1 indicates an expected call of AdmissionregistrationV1. -func (mr *MockInterfaceMockRecorder) AdmissionregistrationV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdmissionregistrationV1", reflect.TypeOf((*MockInterface)(nil).AdmissionregistrationV1)) -} - -// AdmissionregistrationV1alpha1 mocks base method. -func (m *MockInterface) AdmissionregistrationV1alpha1() v1alpha1.AdmissionregistrationV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdmissionregistrationV1alpha1") - ret0, _ := ret[0].(v1alpha1.AdmissionregistrationV1alpha1Interface) - return ret0 -} - -// AdmissionregistrationV1alpha1 indicates an expected call of AdmissionregistrationV1alpha1. -func (mr *MockInterfaceMockRecorder) AdmissionregistrationV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdmissionregistrationV1alpha1", reflect.TypeOf((*MockInterface)(nil).AdmissionregistrationV1alpha1)) -} - -// AdmissionregistrationV1beta1 mocks base method. -func (m *MockInterface) AdmissionregistrationV1beta1() v1beta1.AdmissionregistrationV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AdmissionregistrationV1beta1") - ret0, _ := ret[0].(v1beta1.AdmissionregistrationV1beta1Interface) - return ret0 -} - -// AdmissionregistrationV1beta1 indicates an expected call of AdmissionregistrationV1beta1. -func (mr *MockInterfaceMockRecorder) AdmissionregistrationV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdmissionregistrationV1beta1", reflect.TypeOf((*MockInterface)(nil).AdmissionregistrationV1beta1)) -} - -// AppsV1 mocks base method. -func (m *MockInterface) AppsV1() v10.AppsV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AppsV1") - ret0, _ := ret[0].(v10.AppsV1Interface) - return ret0 -} - -// AppsV1 indicates an expected call of AppsV1. -func (mr *MockInterfaceMockRecorder) AppsV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppsV1", reflect.TypeOf((*MockInterface)(nil).AppsV1)) -} - -// AppsV1beta1 mocks base method. -func (m *MockInterface) AppsV1beta1() v1beta10.AppsV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AppsV1beta1") - ret0, _ := ret[0].(v1beta10.AppsV1beta1Interface) - return ret0 -} - -// AppsV1beta1 indicates an expected call of AppsV1beta1. -func (mr *MockInterfaceMockRecorder) AppsV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppsV1beta1", reflect.TypeOf((*MockInterface)(nil).AppsV1beta1)) -} - -// AppsV1beta2 mocks base method. -func (m *MockInterface) AppsV1beta2() v1beta2.AppsV1beta2Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AppsV1beta2") - ret0, _ := ret[0].(v1beta2.AppsV1beta2Interface) - return ret0 -} - -// AppsV1beta2 indicates an expected call of AppsV1beta2. -func (mr *MockInterfaceMockRecorder) AppsV1beta2() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppsV1beta2", reflect.TypeOf((*MockInterface)(nil).AppsV1beta2)) -} - -// AuthenticationV1 mocks base method. -func (m *MockInterface) AuthenticationV1() v11.AuthenticationV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthenticationV1") - ret0, _ := ret[0].(v11.AuthenticationV1Interface) - return ret0 -} - -// AuthenticationV1 indicates an expected call of AuthenticationV1. -func (mr *MockInterfaceMockRecorder) AuthenticationV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticationV1", reflect.TypeOf((*MockInterface)(nil).AuthenticationV1)) -} - -// AuthenticationV1alpha1 mocks base method. -func (m *MockInterface) AuthenticationV1alpha1() v1alpha11.AuthenticationV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthenticationV1alpha1") - ret0, _ := ret[0].(v1alpha11.AuthenticationV1alpha1Interface) - return ret0 -} - -// AuthenticationV1alpha1 indicates an expected call of AuthenticationV1alpha1. -func (mr *MockInterfaceMockRecorder) AuthenticationV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticationV1alpha1", reflect.TypeOf((*MockInterface)(nil).AuthenticationV1alpha1)) -} - -// AuthenticationV1beta1 mocks base method. -func (m *MockInterface) AuthenticationV1beta1() v1beta11.AuthenticationV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthenticationV1beta1") - ret0, _ := ret[0].(v1beta11.AuthenticationV1beta1Interface) - return ret0 -} - -// AuthenticationV1beta1 indicates an expected call of AuthenticationV1beta1. -func (mr *MockInterfaceMockRecorder) AuthenticationV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthenticationV1beta1", reflect.TypeOf((*MockInterface)(nil).AuthenticationV1beta1)) -} - -// AuthorizationV1 mocks base method. -func (m *MockInterface) AuthorizationV1() v12.AuthorizationV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthorizationV1") - ret0, _ := ret[0].(v12.AuthorizationV1Interface) - return ret0 -} - -// AuthorizationV1 indicates an expected call of AuthorizationV1. -func (mr *MockInterfaceMockRecorder) AuthorizationV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizationV1", reflect.TypeOf((*MockInterface)(nil).AuthorizationV1)) -} - -// AuthorizationV1beta1 mocks base method. -func (m *MockInterface) AuthorizationV1beta1() v1beta12.AuthorizationV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AuthorizationV1beta1") - ret0, _ := ret[0].(v1beta12.AuthorizationV1beta1Interface) - return ret0 -} - -// AuthorizationV1beta1 indicates an expected call of AuthorizationV1beta1. -func (mr *MockInterfaceMockRecorder) AuthorizationV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizationV1beta1", reflect.TypeOf((*MockInterface)(nil).AuthorizationV1beta1)) -} - -// AutoscalingV1 mocks base method. -func (m *MockInterface) AutoscalingV1() v13.AutoscalingV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AutoscalingV1") - ret0, _ := ret[0].(v13.AutoscalingV1Interface) - return ret0 -} - -// AutoscalingV1 indicates an expected call of AutoscalingV1. -func (mr *MockInterfaceMockRecorder) AutoscalingV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalingV1", reflect.TypeOf((*MockInterface)(nil).AutoscalingV1)) -} - -// AutoscalingV2 mocks base method. -func (m *MockInterface) AutoscalingV2() v2.AutoscalingV2Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AutoscalingV2") - ret0, _ := ret[0].(v2.AutoscalingV2Interface) - return ret0 -} - -// AutoscalingV2 indicates an expected call of AutoscalingV2. -func (mr *MockInterfaceMockRecorder) AutoscalingV2() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalingV2", reflect.TypeOf((*MockInterface)(nil).AutoscalingV2)) -} - -// AutoscalingV2beta1 mocks base method. -func (m *MockInterface) AutoscalingV2beta1() v2beta1.AutoscalingV2beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AutoscalingV2beta1") - ret0, _ := ret[0].(v2beta1.AutoscalingV2beta1Interface) - return ret0 -} - -// AutoscalingV2beta1 indicates an expected call of AutoscalingV2beta1. -func (mr *MockInterfaceMockRecorder) AutoscalingV2beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalingV2beta1", reflect.TypeOf((*MockInterface)(nil).AutoscalingV2beta1)) -} - -// AutoscalingV2beta2 mocks base method. -func (m *MockInterface) AutoscalingV2beta2() v2beta2.AutoscalingV2beta2Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "AutoscalingV2beta2") - ret0, _ := ret[0].(v2beta2.AutoscalingV2beta2Interface) - return ret0 -} - -// AutoscalingV2beta2 indicates an expected call of AutoscalingV2beta2. -func (mr *MockInterfaceMockRecorder) AutoscalingV2beta2() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AutoscalingV2beta2", reflect.TypeOf((*MockInterface)(nil).AutoscalingV2beta2)) -} - -// BatchV1 mocks base method. -func (m *MockInterface) BatchV1() v14.BatchV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BatchV1") - ret0, _ := ret[0].(v14.BatchV1Interface) - return ret0 -} - -// BatchV1 indicates an expected call of BatchV1. -func (mr *MockInterfaceMockRecorder) BatchV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchV1", reflect.TypeOf((*MockInterface)(nil).BatchV1)) -} - -// BatchV1beta1 mocks base method. -func (m *MockInterface) BatchV1beta1() v1beta13.BatchV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BatchV1beta1") - ret0, _ := ret[0].(v1beta13.BatchV1beta1Interface) - return ret0 -} - -// BatchV1beta1 indicates an expected call of BatchV1beta1. -func (mr *MockInterfaceMockRecorder) BatchV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchV1beta1", reflect.TypeOf((*MockInterface)(nil).BatchV1beta1)) -} - -// CertificatesV1 mocks base method. -func (m *MockInterface) CertificatesV1() v15.CertificatesV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CertificatesV1") - ret0, _ := ret[0].(v15.CertificatesV1Interface) - return ret0 -} - -// CertificatesV1 indicates an expected call of CertificatesV1. -func (mr *MockInterfaceMockRecorder) CertificatesV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CertificatesV1", reflect.TypeOf((*MockInterface)(nil).CertificatesV1)) -} - -// CertificatesV1alpha1 mocks base method. -func (m *MockInterface) CertificatesV1alpha1() v1alpha12.CertificatesV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CertificatesV1alpha1") - ret0, _ := ret[0].(v1alpha12.CertificatesV1alpha1Interface) - return ret0 -} - -// CertificatesV1alpha1 indicates an expected call of CertificatesV1alpha1. -func (mr *MockInterfaceMockRecorder) CertificatesV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CertificatesV1alpha1", reflect.TypeOf((*MockInterface)(nil).CertificatesV1alpha1)) -} - -// CertificatesV1beta1 mocks base method. -func (m *MockInterface) CertificatesV1beta1() v1beta14.CertificatesV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CertificatesV1beta1") - ret0, _ := ret[0].(v1beta14.CertificatesV1beta1Interface) - return ret0 -} - -// CertificatesV1beta1 indicates an expected call of CertificatesV1beta1. -func (mr *MockInterfaceMockRecorder) CertificatesV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CertificatesV1beta1", reflect.TypeOf((*MockInterface)(nil).CertificatesV1beta1)) -} - -// CoordinationV1 mocks base method. -func (m *MockInterface) CoordinationV1() v16.CoordinationV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CoordinationV1") - ret0, _ := ret[0].(v16.CoordinationV1Interface) - return ret0 -} - -// CoordinationV1 indicates an expected call of CoordinationV1. -func (mr *MockInterfaceMockRecorder) CoordinationV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CoordinationV1", reflect.TypeOf((*MockInterface)(nil).CoordinationV1)) -} - -// CoordinationV1beta1 mocks base method. -func (m *MockInterface) CoordinationV1beta1() v1beta15.CoordinationV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CoordinationV1beta1") - ret0, _ := ret[0].(v1beta15.CoordinationV1beta1Interface) - return ret0 -} - -// CoordinationV1beta1 indicates an expected call of CoordinationV1beta1. -func (mr *MockInterfaceMockRecorder) CoordinationV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CoordinationV1beta1", reflect.TypeOf((*MockInterface)(nil).CoordinationV1beta1)) -} - -// CoreV1 mocks base method. -func (m *MockInterface) CoreV1() v17.CoreV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CoreV1") - ret0, _ := ret[0].(v17.CoreV1Interface) - return ret0 -} - -// CoreV1 indicates an expected call of CoreV1. -func (mr *MockInterfaceMockRecorder) CoreV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CoreV1", reflect.TypeOf((*MockInterface)(nil).CoreV1)) -} - -// Discovery mocks base method. -func (m *MockInterface) Discovery() discovery.DiscoveryInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Discovery") - ret0, _ := ret[0].(discovery.DiscoveryInterface) - return ret0 -} - -// Discovery indicates an expected call of Discovery. -func (mr *MockInterfaceMockRecorder) Discovery() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Discovery", reflect.TypeOf((*MockInterface)(nil).Discovery)) -} - -// DiscoveryV1 mocks base method. -func (m *MockInterface) DiscoveryV1() v18.DiscoveryV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DiscoveryV1") - ret0, _ := ret[0].(v18.DiscoveryV1Interface) - return ret0 -} - -// DiscoveryV1 indicates an expected call of DiscoveryV1. -func (mr *MockInterfaceMockRecorder) DiscoveryV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoveryV1", reflect.TypeOf((*MockInterface)(nil).DiscoveryV1)) -} - -// DiscoveryV1beta1 mocks base method. -func (m *MockInterface) DiscoveryV1beta1() v1beta16.DiscoveryV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DiscoveryV1beta1") - ret0, _ := ret[0].(v1beta16.DiscoveryV1beta1Interface) - return ret0 -} - -// DiscoveryV1beta1 indicates an expected call of DiscoveryV1beta1. -func (mr *MockInterfaceMockRecorder) DiscoveryV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscoveryV1beta1", reflect.TypeOf((*MockInterface)(nil).DiscoveryV1beta1)) -} - -// EventsV1 mocks base method. -func (m *MockInterface) EventsV1() v19.EventsV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EventsV1") - ret0, _ := ret[0].(v19.EventsV1Interface) - return ret0 -} - -// EventsV1 indicates an expected call of EventsV1. -func (mr *MockInterfaceMockRecorder) EventsV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventsV1", reflect.TypeOf((*MockInterface)(nil).EventsV1)) -} - -// EventsV1beta1 mocks base method. -func (m *MockInterface) EventsV1beta1() v1beta17.EventsV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "EventsV1beta1") - ret0, _ := ret[0].(v1beta17.EventsV1beta1Interface) - return ret0 -} - -// EventsV1beta1 indicates an expected call of EventsV1beta1. -func (mr *MockInterfaceMockRecorder) EventsV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventsV1beta1", reflect.TypeOf((*MockInterface)(nil).EventsV1beta1)) -} - -// ExtensionsV1beta1 mocks base method. -func (m *MockInterface) ExtensionsV1beta1() v1beta18.ExtensionsV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ExtensionsV1beta1") - ret0, _ := ret[0].(v1beta18.ExtensionsV1beta1Interface) - return ret0 -} - -// ExtensionsV1beta1 indicates an expected call of ExtensionsV1beta1. -func (mr *MockInterfaceMockRecorder) ExtensionsV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExtensionsV1beta1", reflect.TypeOf((*MockInterface)(nil).ExtensionsV1beta1)) -} - -// FlowcontrolV1 mocks base method. -func (m *MockInterface) FlowcontrolV1() v110.FlowcontrolV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FlowcontrolV1") - ret0, _ := ret[0].(v110.FlowcontrolV1Interface) - return ret0 -} - -// FlowcontrolV1 indicates an expected call of FlowcontrolV1. -func (mr *MockInterfaceMockRecorder) FlowcontrolV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlowcontrolV1", reflect.TypeOf((*MockInterface)(nil).FlowcontrolV1)) -} - -// FlowcontrolV1beta1 mocks base method. -func (m *MockInterface) FlowcontrolV1beta1() v1beta19.FlowcontrolV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FlowcontrolV1beta1") - ret0, _ := ret[0].(v1beta19.FlowcontrolV1beta1Interface) - return ret0 -} - -// FlowcontrolV1beta1 indicates an expected call of FlowcontrolV1beta1. -func (mr *MockInterfaceMockRecorder) FlowcontrolV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlowcontrolV1beta1", reflect.TypeOf((*MockInterface)(nil).FlowcontrolV1beta1)) -} - -// FlowcontrolV1beta2 mocks base method. -func (m *MockInterface) FlowcontrolV1beta2() v1beta20.FlowcontrolV1beta2Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FlowcontrolV1beta2") - ret0, _ := ret[0].(v1beta20.FlowcontrolV1beta2Interface) - return ret0 -} - -// FlowcontrolV1beta2 indicates an expected call of FlowcontrolV1beta2. -func (mr *MockInterfaceMockRecorder) FlowcontrolV1beta2() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlowcontrolV1beta2", reflect.TypeOf((*MockInterface)(nil).FlowcontrolV1beta2)) -} - -// FlowcontrolV1beta3 mocks base method. -func (m *MockInterface) FlowcontrolV1beta3() v1beta3.FlowcontrolV1beta3Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "FlowcontrolV1beta3") - ret0, _ := ret[0].(v1beta3.FlowcontrolV1beta3Interface) - return ret0 -} - -// FlowcontrolV1beta3 indicates an expected call of FlowcontrolV1beta3. -func (mr *MockInterfaceMockRecorder) FlowcontrolV1beta3() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlowcontrolV1beta3", reflect.TypeOf((*MockInterface)(nil).FlowcontrolV1beta3)) -} - -// InternalV1alpha1 mocks base method. -func (m *MockInterface) InternalV1alpha1() v1alpha10.InternalV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "InternalV1alpha1") - ret0, _ := ret[0].(v1alpha10.InternalV1alpha1Interface) - return ret0 -} - -// InternalV1alpha1 indicates an expected call of InternalV1alpha1. -func (mr *MockInterfaceMockRecorder) InternalV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InternalV1alpha1", reflect.TypeOf((*MockInterface)(nil).InternalV1alpha1)) -} - -// NetworkingV1 mocks base method. -func (m *MockInterface) NetworkingV1() v111.NetworkingV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NetworkingV1") - ret0, _ := ret[0].(v111.NetworkingV1Interface) - return ret0 -} - -// NetworkingV1 indicates an expected call of NetworkingV1. -func (mr *MockInterfaceMockRecorder) NetworkingV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkingV1", reflect.TypeOf((*MockInterface)(nil).NetworkingV1)) -} - -// NetworkingV1alpha1 mocks base method. -func (m *MockInterface) NetworkingV1alpha1() v1alpha13.NetworkingV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NetworkingV1alpha1") - ret0, _ := ret[0].(v1alpha13.NetworkingV1alpha1Interface) - return ret0 -} - -// NetworkingV1alpha1 indicates an expected call of NetworkingV1alpha1. -func (mr *MockInterfaceMockRecorder) NetworkingV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkingV1alpha1", reflect.TypeOf((*MockInterface)(nil).NetworkingV1alpha1)) -} - -// NetworkingV1beta1 mocks base method. -func (m *MockInterface) NetworkingV1beta1() v1beta110.NetworkingV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NetworkingV1beta1") - ret0, _ := ret[0].(v1beta110.NetworkingV1beta1Interface) - return ret0 -} - -// NetworkingV1beta1 indicates an expected call of NetworkingV1beta1. -func (mr *MockInterfaceMockRecorder) NetworkingV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkingV1beta1", reflect.TypeOf((*MockInterface)(nil).NetworkingV1beta1)) -} - -// NodeV1 mocks base method. -func (m *MockInterface) NodeV1() v112.NodeV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NodeV1") - ret0, _ := ret[0].(v112.NodeV1Interface) - return ret0 -} - -// NodeV1 indicates an expected call of NodeV1. -func (mr *MockInterfaceMockRecorder) NodeV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeV1", reflect.TypeOf((*MockInterface)(nil).NodeV1)) -} - -// NodeV1alpha1 mocks base method. -func (m *MockInterface) NodeV1alpha1() v1alpha14.NodeV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NodeV1alpha1") - ret0, _ := ret[0].(v1alpha14.NodeV1alpha1Interface) - return ret0 -} - -// NodeV1alpha1 indicates an expected call of NodeV1alpha1. -func (mr *MockInterfaceMockRecorder) NodeV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeV1alpha1", reflect.TypeOf((*MockInterface)(nil).NodeV1alpha1)) -} - -// NodeV1beta1 mocks base method. -func (m *MockInterface) NodeV1beta1() v1beta111.NodeV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NodeV1beta1") - ret0, _ := ret[0].(v1beta111.NodeV1beta1Interface) - return ret0 -} - -// NodeV1beta1 indicates an expected call of NodeV1beta1. -func (mr *MockInterfaceMockRecorder) NodeV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeV1beta1", reflect.TypeOf((*MockInterface)(nil).NodeV1beta1)) -} - -// PolicyV1 mocks base method. -func (m *MockInterface) PolicyV1() v113.PolicyV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PolicyV1") - ret0, _ := ret[0].(v113.PolicyV1Interface) - return ret0 -} - -// PolicyV1 indicates an expected call of PolicyV1. -func (mr *MockInterfaceMockRecorder) PolicyV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PolicyV1", reflect.TypeOf((*MockInterface)(nil).PolicyV1)) -} - -// PolicyV1beta1 mocks base method. -func (m *MockInterface) PolicyV1beta1() v1beta112.PolicyV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PolicyV1beta1") - ret0, _ := ret[0].(v1beta112.PolicyV1beta1Interface) - return ret0 -} - -// PolicyV1beta1 indicates an expected call of PolicyV1beta1. -func (mr *MockInterfaceMockRecorder) PolicyV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PolicyV1beta1", reflect.TypeOf((*MockInterface)(nil).PolicyV1beta1)) -} - -// RbacV1 mocks base method. -func (m *MockInterface) RbacV1() v114.RbacV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RbacV1") - ret0, _ := ret[0].(v114.RbacV1Interface) - return ret0 -} - -// RbacV1 indicates an expected call of RbacV1. -func (mr *MockInterfaceMockRecorder) RbacV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RbacV1", reflect.TypeOf((*MockInterface)(nil).RbacV1)) -} - -// RbacV1alpha1 mocks base method. -func (m *MockInterface) RbacV1alpha1() v1alpha15.RbacV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RbacV1alpha1") - ret0, _ := ret[0].(v1alpha15.RbacV1alpha1Interface) - return ret0 -} - -// RbacV1alpha1 indicates an expected call of RbacV1alpha1. -func (mr *MockInterfaceMockRecorder) RbacV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RbacV1alpha1", reflect.TypeOf((*MockInterface)(nil).RbacV1alpha1)) -} - -// RbacV1beta1 mocks base method. -func (m *MockInterface) RbacV1beta1() v1beta113.RbacV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RbacV1beta1") - ret0, _ := ret[0].(v1beta113.RbacV1beta1Interface) - return ret0 -} - -// RbacV1beta1 indicates an expected call of RbacV1beta1. -func (mr *MockInterfaceMockRecorder) RbacV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RbacV1beta1", reflect.TypeOf((*MockInterface)(nil).RbacV1beta1)) -} - -// ResourceV1alpha2 mocks base method. -func (m *MockInterface) ResourceV1alpha2() v1alpha2.ResourceV1alpha2Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ResourceV1alpha2") - ret0, _ := ret[0].(v1alpha2.ResourceV1alpha2Interface) - return ret0 -} - -// ResourceV1alpha2 indicates an expected call of ResourceV1alpha2. -func (mr *MockInterfaceMockRecorder) ResourceV1alpha2() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResourceV1alpha2", reflect.TypeOf((*MockInterface)(nil).ResourceV1alpha2)) -} - -// SchedulingV1 mocks base method. -func (m *MockInterface) SchedulingV1() v115.SchedulingV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SchedulingV1") - ret0, _ := ret[0].(v115.SchedulingV1Interface) - return ret0 -} - -// SchedulingV1 indicates an expected call of SchedulingV1. -func (mr *MockInterfaceMockRecorder) SchedulingV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchedulingV1", reflect.TypeOf((*MockInterface)(nil).SchedulingV1)) -} - -// SchedulingV1alpha1 mocks base method. -func (m *MockInterface) SchedulingV1alpha1() v1alpha16.SchedulingV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SchedulingV1alpha1") - ret0, _ := ret[0].(v1alpha16.SchedulingV1alpha1Interface) - return ret0 -} - -// SchedulingV1alpha1 indicates an expected call of SchedulingV1alpha1. -func (mr *MockInterfaceMockRecorder) SchedulingV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchedulingV1alpha1", reflect.TypeOf((*MockInterface)(nil).SchedulingV1alpha1)) -} - -// SchedulingV1beta1 mocks base method. -func (m *MockInterface) SchedulingV1beta1() v1beta114.SchedulingV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "SchedulingV1beta1") - ret0, _ := ret[0].(v1beta114.SchedulingV1beta1Interface) - return ret0 -} - -// SchedulingV1beta1 indicates an expected call of SchedulingV1beta1. -func (mr *MockInterfaceMockRecorder) SchedulingV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchedulingV1beta1", reflect.TypeOf((*MockInterface)(nil).SchedulingV1beta1)) -} - -// StorageV1 mocks base method. -func (m *MockInterface) StorageV1() v116.StorageV1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StorageV1") - ret0, _ := ret[0].(v116.StorageV1Interface) - return ret0 -} - -// StorageV1 indicates an expected call of StorageV1. -func (mr *MockInterfaceMockRecorder) StorageV1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageV1", reflect.TypeOf((*MockInterface)(nil).StorageV1)) -} - -// StorageV1alpha1 mocks base method. -func (m *MockInterface) StorageV1alpha1() v1alpha17.StorageV1alpha1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StorageV1alpha1") - ret0, _ := ret[0].(v1alpha17.StorageV1alpha1Interface) - return ret0 -} - -// StorageV1alpha1 indicates an expected call of StorageV1alpha1. -func (mr *MockInterfaceMockRecorder) StorageV1alpha1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageV1alpha1", reflect.TypeOf((*MockInterface)(nil).StorageV1alpha1)) -} - -// StorageV1beta1 mocks base method. -func (m *MockInterface) StorageV1beta1() v1beta115.StorageV1beta1Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StorageV1beta1") - ret0, _ := ret[0].(v1beta115.StorageV1beta1Interface) - return ret0 -} - -// StorageV1beta1 indicates an expected call of StorageV1beta1. -func (mr *MockInterfaceMockRecorder) StorageV1beta1() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageV1beta1", reflect.TypeOf((*MockInterface)(nil).StorageV1beta1)) -} diff --git a/plugins/source/k8s/mocks/networking/v1/client.go b/plugins/source/k8s/mocks/networking/v1/client.go deleted file mode 100644 index b15dac8e8cec74..00000000000000 --- a/plugins/source/k8s/mocks/networking/v1/client.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/networking/v1 (interfaces: NetworkingV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/networking/v1" - rest "k8s.io/client-go/rest" -) - -// MockNetworkingV1Interface is a mock of NetworkingV1Interface interface. -type MockNetworkingV1Interface struct { - ctrl *gomock.Controller - recorder *MockNetworkingV1InterfaceMockRecorder -} - -// MockNetworkingV1InterfaceMockRecorder is the mock recorder for MockNetworkingV1Interface. -type MockNetworkingV1InterfaceMockRecorder struct { - mock *MockNetworkingV1Interface -} - -// NewMockNetworkingV1Interface creates a new mock instance. -func NewMockNetworkingV1Interface(ctrl *gomock.Controller) *MockNetworkingV1Interface { - mock := &MockNetworkingV1Interface{ctrl: ctrl} - mock.recorder = &MockNetworkingV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNetworkingV1Interface) EXPECT() *MockNetworkingV1InterfaceMockRecorder { - return m.recorder -} - -// IngressClasses mocks base method. -func (m *MockNetworkingV1Interface) IngressClasses() v1.IngressClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IngressClasses") - ret0, _ := ret[0].(v1.IngressClassInterface) - return ret0 -} - -// IngressClasses indicates an expected call of IngressClasses. -func (mr *MockNetworkingV1InterfaceMockRecorder) IngressClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IngressClasses", reflect.TypeOf((*MockNetworkingV1Interface)(nil).IngressClasses)) -} - -// Ingresses mocks base method. -func (m *MockNetworkingV1Interface) Ingresses(arg0 string) v1.IngressInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Ingresses", arg0) - ret0, _ := ret[0].(v1.IngressInterface) - return ret0 -} - -// Ingresses indicates an expected call of Ingresses. -func (mr *MockNetworkingV1InterfaceMockRecorder) Ingresses(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ingresses", reflect.TypeOf((*MockNetworkingV1Interface)(nil).Ingresses), arg0) -} - -// NetworkPolicies mocks base method. -func (m *MockNetworkingV1Interface) NetworkPolicies(arg0 string) v1.NetworkPolicyInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NetworkPolicies", arg0) - ret0, _ := ret[0].(v1.NetworkPolicyInterface) - return ret0 -} - -// NetworkPolicies indicates an expected call of NetworkPolicies. -func (mr *MockNetworkingV1InterfaceMockRecorder) NetworkPolicies(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkPolicies", reflect.TypeOf((*MockNetworkingV1Interface)(nil).NetworkPolicies), arg0) -} - -// RESTClient mocks base method. -func (m *MockNetworkingV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockNetworkingV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockNetworkingV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/networking/v1/ingress.go b/plugins/source/k8s/mocks/networking/v1/ingress.go deleted file mode 100644 index 53e559a1ec8419..00000000000000 --- a/plugins/source/k8s/mocks/networking/v1/ingress.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/networking/v1 (interfaces: IngressesGetter,IngressInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/networking/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/networking/v1" - v12 "k8s.io/client-go/kubernetes/typed/networking/v1" -) - -// MockIngressesGetter is a mock of IngressesGetter interface. -type MockIngressesGetter struct { - ctrl *gomock.Controller - recorder *MockIngressesGetterMockRecorder -} - -// MockIngressesGetterMockRecorder is the mock recorder for MockIngressesGetter. -type MockIngressesGetterMockRecorder struct { - mock *MockIngressesGetter -} - -// NewMockIngressesGetter creates a new mock instance. -func NewMockIngressesGetter(ctrl *gomock.Controller) *MockIngressesGetter { - mock := &MockIngressesGetter{ctrl: ctrl} - mock.recorder = &MockIngressesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockIngressesGetter) EXPECT() *MockIngressesGetterMockRecorder { - return m.recorder -} - -// Ingresses mocks base method. -func (m *MockIngressesGetter) Ingresses(arg0 string) v12.IngressInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Ingresses", arg0) - ret0, _ := ret[0].(v12.IngressInterface) - return ret0 -} - -// Ingresses indicates an expected call of Ingresses. -func (mr *MockIngressesGetterMockRecorder) Ingresses(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ingresses", reflect.TypeOf((*MockIngressesGetter)(nil).Ingresses), arg0) -} - -// MockIngressInterface is a mock of IngressInterface interface. -type MockIngressInterface struct { - ctrl *gomock.Controller - recorder *MockIngressInterfaceMockRecorder -} - -// MockIngressInterfaceMockRecorder is the mock recorder for MockIngressInterface. -type MockIngressInterfaceMockRecorder struct { - mock *MockIngressInterface -} - -// NewMockIngressInterface creates a new mock instance. -func NewMockIngressInterface(ctrl *gomock.Controller) *MockIngressInterface { - mock := &MockIngressInterface{ctrl: ctrl} - mock.recorder = &MockIngressInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockIngressInterface) EXPECT() *MockIngressInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockIngressInterface) Apply(arg0 context.Context, arg1 *v11.IngressApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Ingress, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockIngressInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockIngressInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockIngressInterface) ApplyStatus(arg0 context.Context, arg1 *v11.IngressApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Ingress, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockIngressInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockIngressInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockIngressInterface) Create(arg0 context.Context, arg1 *v1.Ingress, arg2 v10.CreateOptions) (*v1.Ingress, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockIngressInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockIngressInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockIngressInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockIngressInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockIngressInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockIngressInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockIngressInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockIngressInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockIngressInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Ingress, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockIngressInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockIngressInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockIngressInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.IngressList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.IngressList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockIngressInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockIngressInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockIngressInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Ingress, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockIngressInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockIngressInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockIngressInterface) Update(arg0 context.Context, arg1 *v1.Ingress, arg2 v10.UpdateOptions) (*v1.Ingress, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockIngressInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockIngressInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockIngressInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Ingress, arg2 v10.UpdateOptions) (*v1.Ingress, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Ingress) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockIngressInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockIngressInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockIngressInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockIngressInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockIngressInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/networking/v1/ingressclass.go b/plugins/source/k8s/mocks/networking/v1/ingressclass.go deleted file mode 100644 index 857e83614da741..00000000000000 --- a/plugins/source/k8s/mocks/networking/v1/ingressclass.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/networking/v1 (interfaces: IngressClassesGetter,IngressClassInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/networking/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/networking/v1" - v12 "k8s.io/client-go/kubernetes/typed/networking/v1" -) - -// MockIngressClassesGetter is a mock of IngressClassesGetter interface. -type MockIngressClassesGetter struct { - ctrl *gomock.Controller - recorder *MockIngressClassesGetterMockRecorder -} - -// MockIngressClassesGetterMockRecorder is the mock recorder for MockIngressClassesGetter. -type MockIngressClassesGetterMockRecorder struct { - mock *MockIngressClassesGetter -} - -// NewMockIngressClassesGetter creates a new mock instance. -func NewMockIngressClassesGetter(ctrl *gomock.Controller) *MockIngressClassesGetter { - mock := &MockIngressClassesGetter{ctrl: ctrl} - mock.recorder = &MockIngressClassesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockIngressClassesGetter) EXPECT() *MockIngressClassesGetterMockRecorder { - return m.recorder -} - -// IngressClasses mocks base method. -func (m *MockIngressClassesGetter) IngressClasses() v12.IngressClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IngressClasses") - ret0, _ := ret[0].(v12.IngressClassInterface) - return ret0 -} - -// IngressClasses indicates an expected call of IngressClasses. -func (mr *MockIngressClassesGetterMockRecorder) IngressClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IngressClasses", reflect.TypeOf((*MockIngressClassesGetter)(nil).IngressClasses)) -} - -// MockIngressClassInterface is a mock of IngressClassInterface interface. -type MockIngressClassInterface struct { - ctrl *gomock.Controller - recorder *MockIngressClassInterfaceMockRecorder -} - -// MockIngressClassInterfaceMockRecorder is the mock recorder for MockIngressClassInterface. -type MockIngressClassInterfaceMockRecorder struct { - mock *MockIngressClassInterface -} - -// NewMockIngressClassInterface creates a new mock instance. -func NewMockIngressClassInterface(ctrl *gomock.Controller) *MockIngressClassInterface { - mock := &MockIngressClassInterface{ctrl: ctrl} - mock.recorder = &MockIngressClassInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockIngressClassInterface) EXPECT() *MockIngressClassInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockIngressClassInterface) Apply(arg0 context.Context, arg1 *v11.IngressClassApplyConfiguration, arg2 v10.ApplyOptions) (*v1.IngressClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.IngressClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockIngressClassInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockIngressClassInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockIngressClassInterface) Create(arg0 context.Context, arg1 *v1.IngressClass, arg2 v10.CreateOptions) (*v1.IngressClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.IngressClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockIngressClassInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockIngressClassInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockIngressClassInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockIngressClassInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockIngressClassInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockIngressClassInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockIngressClassInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockIngressClassInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockIngressClassInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.IngressClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.IngressClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockIngressClassInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockIngressClassInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockIngressClassInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.IngressClassList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.IngressClassList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockIngressClassInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockIngressClassInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockIngressClassInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.IngressClass, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.IngressClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockIngressClassInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockIngressClassInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockIngressClassInterface) Update(arg0 context.Context, arg1 *v1.IngressClass, arg2 v10.UpdateOptions) (*v1.IngressClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.IngressClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockIngressClassInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockIngressClassInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockIngressClassInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockIngressClassInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockIngressClassInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/networking/v1/networkpolicy.go b/plugins/source/k8s/mocks/networking/v1/networkpolicy.go deleted file mode 100644 index 2df5de229c1c83..00000000000000 --- a/plugins/source/k8s/mocks/networking/v1/networkpolicy.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/networking/v1 (interfaces: NetworkPoliciesGetter,NetworkPolicyInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/networking/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/networking/v1" - v12 "k8s.io/client-go/kubernetes/typed/networking/v1" -) - -// MockNetworkPoliciesGetter is a mock of NetworkPoliciesGetter interface. -type MockNetworkPoliciesGetter struct { - ctrl *gomock.Controller - recorder *MockNetworkPoliciesGetterMockRecorder -} - -// MockNetworkPoliciesGetterMockRecorder is the mock recorder for MockNetworkPoliciesGetter. -type MockNetworkPoliciesGetterMockRecorder struct { - mock *MockNetworkPoliciesGetter -} - -// NewMockNetworkPoliciesGetter creates a new mock instance. -func NewMockNetworkPoliciesGetter(ctrl *gomock.Controller) *MockNetworkPoliciesGetter { - mock := &MockNetworkPoliciesGetter{ctrl: ctrl} - mock.recorder = &MockNetworkPoliciesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNetworkPoliciesGetter) EXPECT() *MockNetworkPoliciesGetterMockRecorder { - return m.recorder -} - -// NetworkPolicies mocks base method. -func (m *MockNetworkPoliciesGetter) NetworkPolicies(arg0 string) v12.NetworkPolicyInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "NetworkPolicies", arg0) - ret0, _ := ret[0].(v12.NetworkPolicyInterface) - return ret0 -} - -// NetworkPolicies indicates an expected call of NetworkPolicies. -func (mr *MockNetworkPoliciesGetterMockRecorder) NetworkPolicies(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkPolicies", reflect.TypeOf((*MockNetworkPoliciesGetter)(nil).NetworkPolicies), arg0) -} - -// MockNetworkPolicyInterface is a mock of NetworkPolicyInterface interface. -type MockNetworkPolicyInterface struct { - ctrl *gomock.Controller - recorder *MockNetworkPolicyInterfaceMockRecorder -} - -// MockNetworkPolicyInterfaceMockRecorder is the mock recorder for MockNetworkPolicyInterface. -type MockNetworkPolicyInterfaceMockRecorder struct { - mock *MockNetworkPolicyInterface -} - -// NewMockNetworkPolicyInterface creates a new mock instance. -func NewMockNetworkPolicyInterface(ctrl *gomock.Controller) *MockNetworkPolicyInterface { - mock := &MockNetworkPolicyInterface{ctrl: ctrl} - mock.recorder = &MockNetworkPolicyInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNetworkPolicyInterface) EXPECT() *MockNetworkPolicyInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockNetworkPolicyInterface) Apply(arg0 context.Context, arg1 *v11.NetworkPolicyApplyConfiguration, arg2 v10.ApplyOptions) (*v1.NetworkPolicy, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.NetworkPolicy) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockNetworkPolicyInterface) Create(arg0 context.Context, arg1 *v1.NetworkPolicy, arg2 v10.CreateOptions) (*v1.NetworkPolicy, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.NetworkPolicy) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockNetworkPolicyInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockNetworkPolicyInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockNetworkPolicyInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockNetworkPolicyInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.NetworkPolicy, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.NetworkPolicy) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockNetworkPolicyInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.NetworkPolicyList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.NetworkPolicyList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockNetworkPolicyInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockNetworkPolicyInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.NetworkPolicy, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.NetworkPolicy) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockNetworkPolicyInterface) Update(arg0 context.Context, arg1 *v1.NetworkPolicy, arg2 v10.UpdateOptions) (*v1.NetworkPolicy, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.NetworkPolicy) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockNetworkPolicyInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockNetworkPolicyInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockNetworkPolicyInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/networking/v1alpha1/client.go b/plugins/source/k8s/mocks/networking/v1alpha1/client.go deleted file mode 100644 index a173ece0f56410..00000000000000 --- a/plugins/source/k8s/mocks/networking/v1alpha1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/networking/v1alpha1 (interfaces: NetworkingV1alpha1Interface) - -// Package v1alpha1 is a generated GoMock package. -package v1alpha1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1alpha1 "k8s.io/client-go/kubernetes/typed/networking/v1alpha1" - rest "k8s.io/client-go/rest" -) - -// MockNetworkingV1alpha1Interface is a mock of NetworkingV1alpha1Interface interface. -type MockNetworkingV1alpha1Interface struct { - ctrl *gomock.Controller - recorder *MockNetworkingV1alpha1InterfaceMockRecorder -} - -// MockNetworkingV1alpha1InterfaceMockRecorder is the mock recorder for MockNetworkingV1alpha1Interface. -type MockNetworkingV1alpha1InterfaceMockRecorder struct { - mock *MockNetworkingV1alpha1Interface -} - -// NewMockNetworkingV1alpha1Interface creates a new mock instance. -func NewMockNetworkingV1alpha1Interface(ctrl *gomock.Controller) *MockNetworkingV1alpha1Interface { - mock := &MockNetworkingV1alpha1Interface{ctrl: ctrl} - mock.recorder = &MockNetworkingV1alpha1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNetworkingV1alpha1Interface) EXPECT() *MockNetworkingV1alpha1InterfaceMockRecorder { - return m.recorder -} - -// IPAddresses mocks base method. -func (m *MockNetworkingV1alpha1Interface) IPAddresses() v1alpha1.IPAddressInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IPAddresses") - ret0, _ := ret[0].(v1alpha1.IPAddressInterface) - return ret0 -} - -// IPAddresses indicates an expected call of IPAddresses. -func (mr *MockNetworkingV1alpha1InterfaceMockRecorder) IPAddresses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IPAddresses", reflect.TypeOf((*MockNetworkingV1alpha1Interface)(nil).IPAddresses)) -} - -// RESTClient mocks base method. -func (m *MockNetworkingV1alpha1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockNetworkingV1alpha1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockNetworkingV1alpha1Interface)(nil).RESTClient)) -} - -// ServiceCIDRs mocks base method. -func (m *MockNetworkingV1alpha1Interface) ServiceCIDRs() v1alpha1.ServiceCIDRInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ServiceCIDRs") - ret0, _ := ret[0].(v1alpha1.ServiceCIDRInterface) - return ret0 -} - -// ServiceCIDRs indicates an expected call of ServiceCIDRs. -func (mr *MockNetworkingV1alpha1InterfaceMockRecorder) ServiceCIDRs() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceCIDRs", reflect.TypeOf((*MockNetworkingV1alpha1Interface)(nil).ServiceCIDRs)) -} diff --git a/plugins/source/k8s/mocks/networking/v1beta1/client.go b/plugins/source/k8s/mocks/networking/v1beta1/client.go deleted file mode 100644 index e3686685a7bdaa..00000000000000 --- a/plugins/source/k8s/mocks/networking/v1beta1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/networking/v1beta1 (interfaces: NetworkingV1beta1Interface) - -// Package v1beta1 is a generated GoMock package. -package v1beta1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1beta1 "k8s.io/client-go/kubernetes/typed/networking/v1beta1" - rest "k8s.io/client-go/rest" -) - -// MockNetworkingV1beta1Interface is a mock of NetworkingV1beta1Interface interface. -type MockNetworkingV1beta1Interface struct { - ctrl *gomock.Controller - recorder *MockNetworkingV1beta1InterfaceMockRecorder -} - -// MockNetworkingV1beta1InterfaceMockRecorder is the mock recorder for MockNetworkingV1beta1Interface. -type MockNetworkingV1beta1InterfaceMockRecorder struct { - mock *MockNetworkingV1beta1Interface -} - -// NewMockNetworkingV1beta1Interface creates a new mock instance. -func NewMockNetworkingV1beta1Interface(ctrl *gomock.Controller) *MockNetworkingV1beta1Interface { - mock := &MockNetworkingV1beta1Interface{ctrl: ctrl} - mock.recorder = &MockNetworkingV1beta1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNetworkingV1beta1Interface) EXPECT() *MockNetworkingV1beta1InterfaceMockRecorder { - return m.recorder -} - -// IngressClasses mocks base method. -func (m *MockNetworkingV1beta1Interface) IngressClasses() v1beta1.IngressClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "IngressClasses") - ret0, _ := ret[0].(v1beta1.IngressClassInterface) - return ret0 -} - -// IngressClasses indicates an expected call of IngressClasses. -func (mr *MockNetworkingV1beta1InterfaceMockRecorder) IngressClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IngressClasses", reflect.TypeOf((*MockNetworkingV1beta1Interface)(nil).IngressClasses)) -} - -// Ingresses mocks base method. -func (m *MockNetworkingV1beta1Interface) Ingresses(arg0 string) v1beta1.IngressInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Ingresses", arg0) - ret0, _ := ret[0].(v1beta1.IngressInterface) - return ret0 -} - -// Ingresses indicates an expected call of Ingresses. -func (mr *MockNetworkingV1beta1InterfaceMockRecorder) Ingresses(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ingresses", reflect.TypeOf((*MockNetworkingV1beta1Interface)(nil).Ingresses), arg0) -} - -// RESTClient mocks base method. -func (m *MockNetworkingV1beta1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockNetworkingV1beta1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockNetworkingV1beta1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/node/v1/client.go b/plugins/source/k8s/mocks/node/v1/client.go deleted file mode 100644 index 8a53d0e3fadd91..00000000000000 --- a/plugins/source/k8s/mocks/node/v1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/node/v1 (interfaces: NodeV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/node/v1" - rest "k8s.io/client-go/rest" -) - -// MockNodeV1Interface is a mock of NodeV1Interface interface. -type MockNodeV1Interface struct { - ctrl *gomock.Controller - recorder *MockNodeV1InterfaceMockRecorder -} - -// MockNodeV1InterfaceMockRecorder is the mock recorder for MockNodeV1Interface. -type MockNodeV1InterfaceMockRecorder struct { - mock *MockNodeV1Interface -} - -// NewMockNodeV1Interface creates a new mock instance. -func NewMockNodeV1Interface(ctrl *gomock.Controller) *MockNodeV1Interface { - mock := &MockNodeV1Interface{ctrl: ctrl} - mock.recorder = &MockNodeV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNodeV1Interface) EXPECT() *MockNodeV1InterfaceMockRecorder { - return m.recorder -} - -// RESTClient mocks base method. -func (m *MockNodeV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockNodeV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockNodeV1Interface)(nil).RESTClient)) -} - -// RuntimeClasses mocks base method. -func (m *MockNodeV1Interface) RuntimeClasses() v1.RuntimeClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RuntimeClasses") - ret0, _ := ret[0].(v1.RuntimeClassInterface) - return ret0 -} - -// RuntimeClasses indicates an expected call of RuntimeClasses. -func (mr *MockNodeV1InterfaceMockRecorder) RuntimeClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RuntimeClasses", reflect.TypeOf((*MockNodeV1Interface)(nil).RuntimeClasses)) -} diff --git a/plugins/source/k8s/mocks/node/v1/runtime.go b/plugins/source/k8s/mocks/node/v1/runtime.go deleted file mode 100644 index c776d39f7cb05b..00000000000000 --- a/plugins/source/k8s/mocks/node/v1/runtime.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/node/v1 (interfaces: RuntimeClassesGetter,RuntimeClassInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/node/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/node/v1" - v12 "k8s.io/client-go/kubernetes/typed/node/v1" -) - -// MockRuntimeClassesGetter is a mock of RuntimeClassesGetter interface. -type MockRuntimeClassesGetter struct { - ctrl *gomock.Controller - recorder *MockRuntimeClassesGetterMockRecorder -} - -// MockRuntimeClassesGetterMockRecorder is the mock recorder for MockRuntimeClassesGetter. -type MockRuntimeClassesGetterMockRecorder struct { - mock *MockRuntimeClassesGetter -} - -// NewMockRuntimeClassesGetter creates a new mock instance. -func NewMockRuntimeClassesGetter(ctrl *gomock.Controller) *MockRuntimeClassesGetter { - mock := &MockRuntimeClassesGetter{ctrl: ctrl} - mock.recorder = &MockRuntimeClassesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRuntimeClassesGetter) EXPECT() *MockRuntimeClassesGetterMockRecorder { - return m.recorder -} - -// RuntimeClasses mocks base method. -func (m *MockRuntimeClassesGetter) RuntimeClasses() v12.RuntimeClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RuntimeClasses") - ret0, _ := ret[0].(v12.RuntimeClassInterface) - return ret0 -} - -// RuntimeClasses indicates an expected call of RuntimeClasses. -func (mr *MockRuntimeClassesGetterMockRecorder) RuntimeClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RuntimeClasses", reflect.TypeOf((*MockRuntimeClassesGetter)(nil).RuntimeClasses)) -} - -// MockRuntimeClassInterface is a mock of RuntimeClassInterface interface. -type MockRuntimeClassInterface struct { - ctrl *gomock.Controller - recorder *MockRuntimeClassInterfaceMockRecorder -} - -// MockRuntimeClassInterfaceMockRecorder is the mock recorder for MockRuntimeClassInterface. -type MockRuntimeClassInterfaceMockRecorder struct { - mock *MockRuntimeClassInterface -} - -// NewMockRuntimeClassInterface creates a new mock instance. -func NewMockRuntimeClassInterface(ctrl *gomock.Controller) *MockRuntimeClassInterface { - mock := &MockRuntimeClassInterface{ctrl: ctrl} - mock.recorder = &MockRuntimeClassInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRuntimeClassInterface) EXPECT() *MockRuntimeClassInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockRuntimeClassInterface) Apply(arg0 context.Context, arg1 *v11.RuntimeClassApplyConfiguration, arg2 v10.ApplyOptions) (*v1.RuntimeClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RuntimeClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockRuntimeClassInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockRuntimeClassInterface) Create(arg0 context.Context, arg1 *v1.RuntimeClass, arg2 v10.CreateOptions) (*v1.RuntimeClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RuntimeClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockRuntimeClassInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockRuntimeClassInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockRuntimeClassInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockRuntimeClassInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockRuntimeClassInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockRuntimeClassInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockRuntimeClassInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.RuntimeClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RuntimeClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockRuntimeClassInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockRuntimeClassInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.RuntimeClassList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.RuntimeClassList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockRuntimeClassInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRuntimeClassInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockRuntimeClassInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.RuntimeClass, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.RuntimeClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockRuntimeClassInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockRuntimeClassInterface) Update(arg0 context.Context, arg1 *v1.RuntimeClass, arg2 v10.UpdateOptions) (*v1.RuntimeClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RuntimeClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockRuntimeClassInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockRuntimeClassInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockRuntimeClassInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockRuntimeClassInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/node/v1alpha1/client.go b/plugins/source/k8s/mocks/node/v1alpha1/client.go deleted file mode 100644 index 124f3e99c913bc..00000000000000 --- a/plugins/source/k8s/mocks/node/v1alpha1/client.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/node/v1alpha1 (interfaces: NodeV1alpha1Interface) - -// Package v1alpha1 is a generated GoMock package. -package v1alpha1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1alpha1 "k8s.io/client-go/kubernetes/typed/node/v1alpha1" - rest "k8s.io/client-go/rest" -) - -// MockNodeV1alpha1Interface is a mock of NodeV1alpha1Interface interface. -type MockNodeV1alpha1Interface struct { - ctrl *gomock.Controller - recorder *MockNodeV1alpha1InterfaceMockRecorder -} - -// MockNodeV1alpha1InterfaceMockRecorder is the mock recorder for MockNodeV1alpha1Interface. -type MockNodeV1alpha1InterfaceMockRecorder struct { - mock *MockNodeV1alpha1Interface -} - -// NewMockNodeV1alpha1Interface creates a new mock instance. -func NewMockNodeV1alpha1Interface(ctrl *gomock.Controller) *MockNodeV1alpha1Interface { - mock := &MockNodeV1alpha1Interface{ctrl: ctrl} - mock.recorder = &MockNodeV1alpha1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockNodeV1alpha1Interface) EXPECT() *MockNodeV1alpha1InterfaceMockRecorder { - return m.recorder -} - -// RESTClient mocks base method. -func (m *MockNodeV1alpha1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockNodeV1alpha1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockNodeV1alpha1Interface)(nil).RESTClient)) -} - -// RuntimeClasses mocks base method. -func (m *MockNodeV1alpha1Interface) RuntimeClasses() v1alpha1.RuntimeClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RuntimeClasses") - ret0, _ := ret[0].(v1alpha1.RuntimeClassInterface) - return ret0 -} - -// RuntimeClasses indicates an expected call of RuntimeClasses. -func (mr *MockNodeV1alpha1InterfaceMockRecorder) RuntimeClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RuntimeClasses", reflect.TypeOf((*MockNodeV1alpha1Interface)(nil).RuntimeClasses)) -} diff --git a/plugins/source/k8s/mocks/policy/v1/client.go b/plugins/source/k8s/mocks/policy/v1/client.go deleted file mode 100644 index e47a2bb019b19d..00000000000000 --- a/plugins/source/k8s/mocks/policy/v1/client.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/policy/v1 (interfaces: PolicyV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/policy/v1" - rest "k8s.io/client-go/rest" -) - -// MockPolicyV1Interface is a mock of PolicyV1Interface interface. -type MockPolicyV1Interface struct { - ctrl *gomock.Controller - recorder *MockPolicyV1InterfaceMockRecorder -} - -// MockPolicyV1InterfaceMockRecorder is the mock recorder for MockPolicyV1Interface. -type MockPolicyV1InterfaceMockRecorder struct { - mock *MockPolicyV1Interface -} - -// NewMockPolicyV1Interface creates a new mock instance. -func NewMockPolicyV1Interface(ctrl *gomock.Controller) *MockPolicyV1Interface { - mock := &MockPolicyV1Interface{ctrl: ctrl} - mock.recorder = &MockPolicyV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPolicyV1Interface) EXPECT() *MockPolicyV1InterfaceMockRecorder { - return m.recorder -} - -// Evictions mocks base method. -func (m *MockPolicyV1Interface) Evictions(arg0 string) v1.EvictionInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Evictions", arg0) - ret0, _ := ret[0].(v1.EvictionInterface) - return ret0 -} - -// Evictions indicates an expected call of Evictions. -func (mr *MockPolicyV1InterfaceMockRecorder) Evictions(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Evictions", reflect.TypeOf((*MockPolicyV1Interface)(nil).Evictions), arg0) -} - -// PodDisruptionBudgets mocks base method. -func (m *MockPolicyV1Interface) PodDisruptionBudgets(arg0 string) v1.PodDisruptionBudgetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PodDisruptionBudgets", arg0) - ret0, _ := ret[0].(v1.PodDisruptionBudgetInterface) - return ret0 -} - -// PodDisruptionBudgets indicates an expected call of PodDisruptionBudgets. -func (mr *MockPolicyV1InterfaceMockRecorder) PodDisruptionBudgets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodDisruptionBudgets", reflect.TypeOf((*MockPolicyV1Interface)(nil).PodDisruptionBudgets), arg0) -} - -// RESTClient mocks base method. -func (m *MockPolicyV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockPolicyV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockPolicyV1Interface)(nil).RESTClient)) -} diff --git a/plugins/source/k8s/mocks/policy/v1/poddisruptionbudgets.go b/plugins/source/k8s/mocks/policy/v1/poddisruptionbudgets.go deleted file mode 100644 index fb06513a289bed..00000000000000 --- a/plugins/source/k8s/mocks/policy/v1/poddisruptionbudgets.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/policy/v1 (interfaces: PodDisruptionBudgetsGetter,PodDisruptionBudgetInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/policy/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/policy/v1" - v12 "k8s.io/client-go/kubernetes/typed/policy/v1" -) - -// MockPodDisruptionBudgetsGetter is a mock of PodDisruptionBudgetsGetter interface. -type MockPodDisruptionBudgetsGetter struct { - ctrl *gomock.Controller - recorder *MockPodDisruptionBudgetsGetterMockRecorder -} - -// MockPodDisruptionBudgetsGetterMockRecorder is the mock recorder for MockPodDisruptionBudgetsGetter. -type MockPodDisruptionBudgetsGetterMockRecorder struct { - mock *MockPodDisruptionBudgetsGetter -} - -// NewMockPodDisruptionBudgetsGetter creates a new mock instance. -func NewMockPodDisruptionBudgetsGetter(ctrl *gomock.Controller) *MockPodDisruptionBudgetsGetter { - mock := &MockPodDisruptionBudgetsGetter{ctrl: ctrl} - mock.recorder = &MockPodDisruptionBudgetsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPodDisruptionBudgetsGetter) EXPECT() *MockPodDisruptionBudgetsGetterMockRecorder { - return m.recorder -} - -// PodDisruptionBudgets mocks base method. -func (m *MockPodDisruptionBudgetsGetter) PodDisruptionBudgets(arg0 string) v12.PodDisruptionBudgetInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "PodDisruptionBudgets", arg0) - ret0, _ := ret[0].(v12.PodDisruptionBudgetInterface) - return ret0 -} - -// PodDisruptionBudgets indicates an expected call of PodDisruptionBudgets. -func (mr *MockPodDisruptionBudgetsGetterMockRecorder) PodDisruptionBudgets(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodDisruptionBudgets", reflect.TypeOf((*MockPodDisruptionBudgetsGetter)(nil).PodDisruptionBudgets), arg0) -} - -// MockPodDisruptionBudgetInterface is a mock of PodDisruptionBudgetInterface interface. -type MockPodDisruptionBudgetInterface struct { - ctrl *gomock.Controller - recorder *MockPodDisruptionBudgetInterfaceMockRecorder -} - -// MockPodDisruptionBudgetInterfaceMockRecorder is the mock recorder for MockPodDisruptionBudgetInterface. -type MockPodDisruptionBudgetInterfaceMockRecorder struct { - mock *MockPodDisruptionBudgetInterface -} - -// NewMockPodDisruptionBudgetInterface creates a new mock instance. -func NewMockPodDisruptionBudgetInterface(ctrl *gomock.Controller) *MockPodDisruptionBudgetInterface { - mock := &MockPodDisruptionBudgetInterface{ctrl: ctrl} - mock.recorder = &MockPodDisruptionBudgetInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockPodDisruptionBudgetInterface) EXPECT() *MockPodDisruptionBudgetInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockPodDisruptionBudgetInterface) Apply(arg0 context.Context, arg1 *v11.PodDisruptionBudgetApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockPodDisruptionBudgetInterface) ApplyStatus(arg0 context.Context, arg1 *v11.PodDisruptionBudgetApplyConfiguration, arg2 v10.ApplyOptions) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockPodDisruptionBudgetInterface) Create(arg0 context.Context, arg1 *v1.PodDisruptionBudget, arg2 v10.CreateOptions) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockPodDisruptionBudgetInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockPodDisruptionBudgetInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockPodDisruptionBudgetInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockPodDisruptionBudgetInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.PodDisruptionBudgetList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.PodDisruptionBudgetList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockPodDisruptionBudgetInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockPodDisruptionBudgetInterface) Update(arg0 context.Context, arg1 *v1.PodDisruptionBudget, arg2 v10.UpdateOptions) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockPodDisruptionBudgetInterface) UpdateStatus(arg0 context.Context, arg1 *v1.PodDisruptionBudget, arg2 v10.UpdateOptions) (*v1.PodDisruptionBudget, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.PodDisruptionBudget) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockPodDisruptionBudgetInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockPodDisruptionBudgetInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockPodDisruptionBudgetInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/rbac/v1/client.go b/plugins/source/k8s/mocks/rbac/v1/client.go deleted file mode 100644 index 5f9c94a7d03cd4..00000000000000 --- a/plugins/source/k8s/mocks/rbac/v1/client.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/rbac/v1 (interfaces: RbacV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/rbac/v1" - rest "k8s.io/client-go/rest" -) - -// MockRbacV1Interface is a mock of RbacV1Interface interface. -type MockRbacV1Interface struct { - ctrl *gomock.Controller - recorder *MockRbacV1InterfaceMockRecorder -} - -// MockRbacV1InterfaceMockRecorder is the mock recorder for MockRbacV1Interface. -type MockRbacV1InterfaceMockRecorder struct { - mock *MockRbacV1Interface -} - -// NewMockRbacV1Interface creates a new mock instance. -func NewMockRbacV1Interface(ctrl *gomock.Controller) *MockRbacV1Interface { - mock := &MockRbacV1Interface{ctrl: ctrl} - mock.recorder = &MockRbacV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRbacV1Interface) EXPECT() *MockRbacV1InterfaceMockRecorder { - return m.recorder -} - -// ClusterRoleBindings mocks base method. -func (m *MockRbacV1Interface) ClusterRoleBindings() v1.ClusterRoleBindingInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClusterRoleBindings") - ret0, _ := ret[0].(v1.ClusterRoleBindingInterface) - return ret0 -} - -// ClusterRoleBindings indicates an expected call of ClusterRoleBindings. -func (mr *MockRbacV1InterfaceMockRecorder) ClusterRoleBindings() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterRoleBindings", reflect.TypeOf((*MockRbacV1Interface)(nil).ClusterRoleBindings)) -} - -// ClusterRoles mocks base method. -func (m *MockRbacV1Interface) ClusterRoles() v1.ClusterRoleInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClusterRoles") - ret0, _ := ret[0].(v1.ClusterRoleInterface) - return ret0 -} - -// ClusterRoles indicates an expected call of ClusterRoles. -func (mr *MockRbacV1InterfaceMockRecorder) ClusterRoles() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterRoles", reflect.TypeOf((*MockRbacV1Interface)(nil).ClusterRoles)) -} - -// RESTClient mocks base method. -func (m *MockRbacV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockRbacV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockRbacV1Interface)(nil).RESTClient)) -} - -// RoleBindings mocks base method. -func (m *MockRbacV1Interface) RoleBindings(arg0 string) v1.RoleBindingInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RoleBindings", arg0) - ret0, _ := ret[0].(v1.RoleBindingInterface) - return ret0 -} - -// RoleBindings indicates an expected call of RoleBindings. -func (mr *MockRbacV1InterfaceMockRecorder) RoleBindings(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoleBindings", reflect.TypeOf((*MockRbacV1Interface)(nil).RoleBindings), arg0) -} - -// Roles mocks base method. -func (m *MockRbacV1Interface) Roles(arg0 string) v1.RoleInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Roles", arg0) - ret0, _ := ret[0].(v1.RoleInterface) - return ret0 -} - -// Roles indicates an expected call of Roles. -func (mr *MockRbacV1InterfaceMockRecorder) Roles(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Roles", reflect.TypeOf((*MockRbacV1Interface)(nil).Roles), arg0) -} diff --git a/plugins/source/k8s/mocks/rbac/v1/clusterrole.go b/plugins/source/k8s/mocks/rbac/v1/clusterrole.go deleted file mode 100644 index 2eb2f19b0ce3e1..00000000000000 --- a/plugins/source/k8s/mocks/rbac/v1/clusterrole.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/rbac/v1 (interfaces: ClusterRolesGetter,ClusterRoleInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/rbac/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/rbac/v1" - v12 "k8s.io/client-go/kubernetes/typed/rbac/v1" -) - -// MockClusterRolesGetter is a mock of ClusterRolesGetter interface. -type MockClusterRolesGetter struct { - ctrl *gomock.Controller - recorder *MockClusterRolesGetterMockRecorder -} - -// MockClusterRolesGetterMockRecorder is the mock recorder for MockClusterRolesGetter. -type MockClusterRolesGetterMockRecorder struct { - mock *MockClusterRolesGetter -} - -// NewMockClusterRolesGetter creates a new mock instance. -func NewMockClusterRolesGetter(ctrl *gomock.Controller) *MockClusterRolesGetter { - mock := &MockClusterRolesGetter{ctrl: ctrl} - mock.recorder = &MockClusterRolesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockClusterRolesGetter) EXPECT() *MockClusterRolesGetterMockRecorder { - return m.recorder -} - -// ClusterRoles mocks base method. -func (m *MockClusterRolesGetter) ClusterRoles() v12.ClusterRoleInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClusterRoles") - ret0, _ := ret[0].(v12.ClusterRoleInterface) - return ret0 -} - -// ClusterRoles indicates an expected call of ClusterRoles. -func (mr *MockClusterRolesGetterMockRecorder) ClusterRoles() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterRoles", reflect.TypeOf((*MockClusterRolesGetter)(nil).ClusterRoles)) -} - -// MockClusterRoleInterface is a mock of ClusterRoleInterface interface. -type MockClusterRoleInterface struct { - ctrl *gomock.Controller - recorder *MockClusterRoleInterfaceMockRecorder -} - -// MockClusterRoleInterfaceMockRecorder is the mock recorder for MockClusterRoleInterface. -type MockClusterRoleInterfaceMockRecorder struct { - mock *MockClusterRoleInterface -} - -// NewMockClusterRoleInterface creates a new mock instance. -func NewMockClusterRoleInterface(ctrl *gomock.Controller) *MockClusterRoleInterface { - mock := &MockClusterRoleInterface{ctrl: ctrl} - mock.recorder = &MockClusterRoleInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockClusterRoleInterface) EXPECT() *MockClusterRoleInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockClusterRoleInterface) Apply(arg0 context.Context, arg1 *v11.ClusterRoleApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ClusterRole, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRole) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockClusterRoleInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockClusterRoleInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockClusterRoleInterface) Create(arg0 context.Context, arg1 *v1.ClusterRole, arg2 v10.CreateOptions) (*v1.ClusterRole, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRole) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockClusterRoleInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClusterRoleInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockClusterRoleInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockClusterRoleInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClusterRoleInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockClusterRoleInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockClusterRoleInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockClusterRoleInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockClusterRoleInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.ClusterRole, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRole) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockClusterRoleInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClusterRoleInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockClusterRoleInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ClusterRoleList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ClusterRoleList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockClusterRoleInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClusterRoleInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockClusterRoleInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.ClusterRole, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ClusterRole) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockClusterRoleInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockClusterRoleInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockClusterRoleInterface) Update(arg0 context.Context, arg1 *v1.ClusterRole, arg2 v10.UpdateOptions) (*v1.ClusterRole, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRole) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockClusterRoleInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClusterRoleInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockClusterRoleInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockClusterRoleInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockClusterRoleInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/rbac/v1/clusterrolebinding.go b/plugins/source/k8s/mocks/rbac/v1/clusterrolebinding.go deleted file mode 100644 index cfae8638ca2194..00000000000000 --- a/plugins/source/k8s/mocks/rbac/v1/clusterrolebinding.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/rbac/v1 (interfaces: ClusterRoleBindingsGetter,ClusterRoleBindingInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/rbac/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/rbac/v1" - v12 "k8s.io/client-go/kubernetes/typed/rbac/v1" -) - -// MockClusterRoleBindingsGetter is a mock of ClusterRoleBindingsGetter interface. -type MockClusterRoleBindingsGetter struct { - ctrl *gomock.Controller - recorder *MockClusterRoleBindingsGetterMockRecorder -} - -// MockClusterRoleBindingsGetterMockRecorder is the mock recorder for MockClusterRoleBindingsGetter. -type MockClusterRoleBindingsGetterMockRecorder struct { - mock *MockClusterRoleBindingsGetter -} - -// NewMockClusterRoleBindingsGetter creates a new mock instance. -func NewMockClusterRoleBindingsGetter(ctrl *gomock.Controller) *MockClusterRoleBindingsGetter { - mock := &MockClusterRoleBindingsGetter{ctrl: ctrl} - mock.recorder = &MockClusterRoleBindingsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockClusterRoleBindingsGetter) EXPECT() *MockClusterRoleBindingsGetterMockRecorder { - return m.recorder -} - -// ClusterRoleBindings mocks base method. -func (m *MockClusterRoleBindingsGetter) ClusterRoleBindings() v12.ClusterRoleBindingInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ClusterRoleBindings") - ret0, _ := ret[0].(v12.ClusterRoleBindingInterface) - return ret0 -} - -// ClusterRoleBindings indicates an expected call of ClusterRoleBindings. -func (mr *MockClusterRoleBindingsGetterMockRecorder) ClusterRoleBindings() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterRoleBindings", reflect.TypeOf((*MockClusterRoleBindingsGetter)(nil).ClusterRoleBindings)) -} - -// MockClusterRoleBindingInterface is a mock of ClusterRoleBindingInterface interface. -type MockClusterRoleBindingInterface struct { - ctrl *gomock.Controller - recorder *MockClusterRoleBindingInterfaceMockRecorder -} - -// MockClusterRoleBindingInterfaceMockRecorder is the mock recorder for MockClusterRoleBindingInterface. -type MockClusterRoleBindingInterfaceMockRecorder struct { - mock *MockClusterRoleBindingInterface -} - -// NewMockClusterRoleBindingInterface creates a new mock instance. -func NewMockClusterRoleBindingInterface(ctrl *gomock.Controller) *MockClusterRoleBindingInterface { - mock := &MockClusterRoleBindingInterface{ctrl: ctrl} - mock.recorder = &MockClusterRoleBindingInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockClusterRoleBindingInterface) EXPECT() *MockClusterRoleBindingInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockClusterRoleBindingInterface) Apply(arg0 context.Context, arg1 *v11.ClusterRoleBindingApplyConfiguration, arg2 v10.ApplyOptions) (*v1.ClusterRoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockClusterRoleBindingInterface) Create(arg0 context.Context, arg1 *v1.ClusterRoleBinding, arg2 v10.CreateOptions) (*v1.ClusterRoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockClusterRoleBindingInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockClusterRoleBindingInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockClusterRoleBindingInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.ClusterRoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockClusterRoleBindingInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.ClusterRoleBindingList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.ClusterRoleBindingList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockClusterRoleBindingInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.ClusterRoleBinding, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.ClusterRoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockClusterRoleBindingInterface) Update(arg0 context.Context, arg1 *v1.ClusterRoleBinding, arg2 v10.UpdateOptions) (*v1.ClusterRoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.ClusterRoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockClusterRoleBindingInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockClusterRoleBindingInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockClusterRoleBindingInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/rbac/v1/role.go b/plugins/source/k8s/mocks/rbac/v1/role.go deleted file mode 100644 index 684e1d334ab4c1..00000000000000 --- a/plugins/source/k8s/mocks/rbac/v1/role.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/rbac/v1 (interfaces: RolesGetter,RoleInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/rbac/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/rbac/v1" - v12 "k8s.io/client-go/kubernetes/typed/rbac/v1" -) - -// MockRolesGetter is a mock of RolesGetter interface. -type MockRolesGetter struct { - ctrl *gomock.Controller - recorder *MockRolesGetterMockRecorder -} - -// MockRolesGetterMockRecorder is the mock recorder for MockRolesGetter. -type MockRolesGetterMockRecorder struct { - mock *MockRolesGetter -} - -// NewMockRolesGetter creates a new mock instance. -func NewMockRolesGetter(ctrl *gomock.Controller) *MockRolesGetter { - mock := &MockRolesGetter{ctrl: ctrl} - mock.recorder = &MockRolesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRolesGetter) EXPECT() *MockRolesGetterMockRecorder { - return m.recorder -} - -// Roles mocks base method. -func (m *MockRolesGetter) Roles(arg0 string) v12.RoleInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Roles", arg0) - ret0, _ := ret[0].(v12.RoleInterface) - return ret0 -} - -// Roles indicates an expected call of Roles. -func (mr *MockRolesGetterMockRecorder) Roles(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Roles", reflect.TypeOf((*MockRolesGetter)(nil).Roles), arg0) -} - -// MockRoleInterface is a mock of RoleInterface interface. -type MockRoleInterface struct { - ctrl *gomock.Controller - recorder *MockRoleInterfaceMockRecorder -} - -// MockRoleInterfaceMockRecorder is the mock recorder for MockRoleInterface. -type MockRoleInterfaceMockRecorder struct { - mock *MockRoleInterface -} - -// NewMockRoleInterface creates a new mock instance. -func NewMockRoleInterface(ctrl *gomock.Controller) *MockRoleInterface { - mock := &MockRoleInterface{ctrl: ctrl} - mock.recorder = &MockRoleInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRoleInterface) EXPECT() *MockRoleInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockRoleInterface) Apply(arg0 context.Context, arg1 *v11.RoleApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Role, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Role) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockRoleInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockRoleInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockRoleInterface) Create(arg0 context.Context, arg1 *v1.Role, arg2 v10.CreateOptions) (*v1.Role, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Role) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockRoleInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRoleInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockRoleInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockRoleInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRoleInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockRoleInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockRoleInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockRoleInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockRoleInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Role, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Role) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockRoleInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRoleInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockRoleInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.RoleList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.RoleList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockRoleInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRoleInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockRoleInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Role, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.Role) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockRoleInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockRoleInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockRoleInterface) Update(arg0 context.Context, arg1 *v1.Role, arg2 v10.UpdateOptions) (*v1.Role, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.Role) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockRoleInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRoleInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockRoleInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockRoleInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockRoleInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/rbac/v1/rolebinding.go b/plugins/source/k8s/mocks/rbac/v1/rolebinding.go deleted file mode 100644 index e40a54ea240993..00000000000000 --- a/plugins/source/k8s/mocks/rbac/v1/rolebinding.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/rbac/v1 (interfaces: RoleBindingsGetter,RoleBindingInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/rbac/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/rbac/v1" - v12 "k8s.io/client-go/kubernetes/typed/rbac/v1" -) - -// MockRoleBindingsGetter is a mock of RoleBindingsGetter interface. -type MockRoleBindingsGetter struct { - ctrl *gomock.Controller - recorder *MockRoleBindingsGetterMockRecorder -} - -// MockRoleBindingsGetterMockRecorder is the mock recorder for MockRoleBindingsGetter. -type MockRoleBindingsGetterMockRecorder struct { - mock *MockRoleBindingsGetter -} - -// NewMockRoleBindingsGetter creates a new mock instance. -func NewMockRoleBindingsGetter(ctrl *gomock.Controller) *MockRoleBindingsGetter { - mock := &MockRoleBindingsGetter{ctrl: ctrl} - mock.recorder = &MockRoleBindingsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRoleBindingsGetter) EXPECT() *MockRoleBindingsGetterMockRecorder { - return m.recorder -} - -// RoleBindings mocks base method. -func (m *MockRoleBindingsGetter) RoleBindings(arg0 string) v12.RoleBindingInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RoleBindings", arg0) - ret0, _ := ret[0].(v12.RoleBindingInterface) - return ret0 -} - -// RoleBindings indicates an expected call of RoleBindings. -func (mr *MockRoleBindingsGetterMockRecorder) RoleBindings(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoleBindings", reflect.TypeOf((*MockRoleBindingsGetter)(nil).RoleBindings), arg0) -} - -// MockRoleBindingInterface is a mock of RoleBindingInterface interface. -type MockRoleBindingInterface struct { - ctrl *gomock.Controller - recorder *MockRoleBindingInterfaceMockRecorder -} - -// MockRoleBindingInterfaceMockRecorder is the mock recorder for MockRoleBindingInterface. -type MockRoleBindingInterfaceMockRecorder struct { - mock *MockRoleBindingInterface -} - -// NewMockRoleBindingInterface creates a new mock instance. -func NewMockRoleBindingInterface(ctrl *gomock.Controller) *MockRoleBindingInterface { - mock := &MockRoleBindingInterface{ctrl: ctrl} - mock.recorder = &MockRoleBindingInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockRoleBindingInterface) EXPECT() *MockRoleBindingInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockRoleBindingInterface) Apply(arg0 context.Context, arg1 *v11.RoleBindingApplyConfiguration, arg2 v10.ApplyOptions) (*v1.RoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockRoleBindingInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockRoleBindingInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockRoleBindingInterface) Create(arg0 context.Context, arg1 *v1.RoleBinding, arg2 v10.CreateOptions) (*v1.RoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockRoleBindingInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockRoleBindingInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockRoleBindingInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockRoleBindingInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRoleBindingInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockRoleBindingInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockRoleBindingInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockRoleBindingInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockRoleBindingInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.RoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockRoleBindingInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRoleBindingInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockRoleBindingInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.RoleBindingList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.RoleBindingList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockRoleBindingInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockRoleBindingInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockRoleBindingInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.RoleBinding, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.RoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockRoleBindingInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockRoleBindingInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockRoleBindingInterface) Update(arg0 context.Context, arg1 *v1.RoleBinding, arg2 v10.UpdateOptions) (*v1.RoleBinding, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.RoleBinding) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockRoleBindingInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRoleBindingInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockRoleBindingInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockRoleBindingInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockRoleBindingInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/storage/v1/client.go b/plugins/source/k8s/mocks/storage/v1/client.go deleted file mode 100644 index f1fdf91b03bd6e..00000000000000 --- a/plugins/source/k8s/mocks/storage/v1/client.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/storage/v1 (interfaces: StorageV1Interface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/client-go/kubernetes/typed/storage/v1" - rest "k8s.io/client-go/rest" -) - -// MockStorageV1Interface is a mock of StorageV1Interface interface. -type MockStorageV1Interface struct { - ctrl *gomock.Controller - recorder *MockStorageV1InterfaceMockRecorder -} - -// MockStorageV1InterfaceMockRecorder is the mock recorder for MockStorageV1Interface. -type MockStorageV1InterfaceMockRecorder struct { - mock *MockStorageV1Interface -} - -// NewMockStorageV1Interface creates a new mock instance. -func NewMockStorageV1Interface(ctrl *gomock.Controller) *MockStorageV1Interface { - mock := &MockStorageV1Interface{ctrl: ctrl} - mock.recorder = &MockStorageV1InterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockStorageV1Interface) EXPECT() *MockStorageV1InterfaceMockRecorder { - return m.recorder -} - -// CSIDrivers mocks base method. -func (m *MockStorageV1Interface) CSIDrivers() v1.CSIDriverInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CSIDrivers") - ret0, _ := ret[0].(v1.CSIDriverInterface) - return ret0 -} - -// CSIDrivers indicates an expected call of CSIDrivers. -func (mr *MockStorageV1InterfaceMockRecorder) CSIDrivers() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CSIDrivers", reflect.TypeOf((*MockStorageV1Interface)(nil).CSIDrivers)) -} - -// CSINodes mocks base method. -func (m *MockStorageV1Interface) CSINodes() v1.CSINodeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CSINodes") - ret0, _ := ret[0].(v1.CSINodeInterface) - return ret0 -} - -// CSINodes indicates an expected call of CSINodes. -func (mr *MockStorageV1InterfaceMockRecorder) CSINodes() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CSINodes", reflect.TypeOf((*MockStorageV1Interface)(nil).CSINodes)) -} - -// CSIStorageCapacities mocks base method. -func (m *MockStorageV1Interface) CSIStorageCapacities(arg0 string) v1.CSIStorageCapacityInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CSIStorageCapacities", arg0) - ret0, _ := ret[0].(v1.CSIStorageCapacityInterface) - return ret0 -} - -// CSIStorageCapacities indicates an expected call of CSIStorageCapacities. -func (mr *MockStorageV1InterfaceMockRecorder) CSIStorageCapacities(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CSIStorageCapacities", reflect.TypeOf((*MockStorageV1Interface)(nil).CSIStorageCapacities), arg0) -} - -// RESTClient mocks base method. -func (m *MockStorageV1Interface) RESTClient() rest.Interface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RESTClient") - ret0, _ := ret[0].(rest.Interface) - return ret0 -} - -// RESTClient indicates an expected call of RESTClient. -func (mr *MockStorageV1InterfaceMockRecorder) RESTClient() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockStorageV1Interface)(nil).RESTClient)) -} - -// StorageClasses mocks base method. -func (m *MockStorageV1Interface) StorageClasses() v1.StorageClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StorageClasses") - ret0, _ := ret[0].(v1.StorageClassInterface) - return ret0 -} - -// StorageClasses indicates an expected call of StorageClasses. -func (mr *MockStorageV1InterfaceMockRecorder) StorageClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageClasses", reflect.TypeOf((*MockStorageV1Interface)(nil).StorageClasses)) -} - -// VolumeAttachments mocks base method. -func (m *MockStorageV1Interface) VolumeAttachments() v1.VolumeAttachmentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VolumeAttachments") - ret0, _ := ret[0].(v1.VolumeAttachmentInterface) - return ret0 -} - -// VolumeAttachments indicates an expected call of VolumeAttachments. -func (mr *MockStorageV1InterfaceMockRecorder) VolumeAttachments() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeAttachments", reflect.TypeOf((*MockStorageV1Interface)(nil).VolumeAttachments)) -} diff --git a/plugins/source/k8s/mocks/storage/v1/csidriver.go b/plugins/source/k8s/mocks/storage/v1/csidriver.go deleted file mode 100644 index b2adf6266afff5..00000000000000 --- a/plugins/source/k8s/mocks/storage/v1/csidriver.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/storage/v1 (interfaces: CSIDriversGetter,CSIDriverInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/storage/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/storage/v1" - v12 "k8s.io/client-go/kubernetes/typed/storage/v1" -) - -// MockCSIDriversGetter is a mock of CSIDriversGetter interface. -type MockCSIDriversGetter struct { - ctrl *gomock.Controller - recorder *MockCSIDriversGetterMockRecorder -} - -// MockCSIDriversGetterMockRecorder is the mock recorder for MockCSIDriversGetter. -type MockCSIDriversGetterMockRecorder struct { - mock *MockCSIDriversGetter -} - -// NewMockCSIDriversGetter creates a new mock instance. -func NewMockCSIDriversGetter(ctrl *gomock.Controller) *MockCSIDriversGetter { - mock := &MockCSIDriversGetter{ctrl: ctrl} - mock.recorder = &MockCSIDriversGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCSIDriversGetter) EXPECT() *MockCSIDriversGetterMockRecorder { - return m.recorder -} - -// CSIDrivers mocks base method. -func (m *MockCSIDriversGetter) CSIDrivers() v12.CSIDriverInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CSIDrivers") - ret0, _ := ret[0].(v12.CSIDriverInterface) - return ret0 -} - -// CSIDrivers indicates an expected call of CSIDrivers. -func (mr *MockCSIDriversGetterMockRecorder) CSIDrivers() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CSIDrivers", reflect.TypeOf((*MockCSIDriversGetter)(nil).CSIDrivers)) -} - -// MockCSIDriverInterface is a mock of CSIDriverInterface interface. -type MockCSIDriverInterface struct { - ctrl *gomock.Controller - recorder *MockCSIDriverInterfaceMockRecorder -} - -// MockCSIDriverInterfaceMockRecorder is the mock recorder for MockCSIDriverInterface. -type MockCSIDriverInterfaceMockRecorder struct { - mock *MockCSIDriverInterface -} - -// NewMockCSIDriverInterface creates a new mock instance. -func NewMockCSIDriverInterface(ctrl *gomock.Controller) *MockCSIDriverInterface { - mock := &MockCSIDriverInterface{ctrl: ctrl} - mock.recorder = &MockCSIDriverInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCSIDriverInterface) EXPECT() *MockCSIDriverInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockCSIDriverInterface) Apply(arg0 context.Context, arg1 *v11.CSIDriverApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CSIDriver, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIDriver) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockCSIDriverInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCSIDriverInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockCSIDriverInterface) Create(arg0 context.Context, arg1 *v1.CSIDriver, arg2 v10.CreateOptions) (*v1.CSIDriver, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIDriver) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockCSIDriverInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCSIDriverInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockCSIDriverInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockCSIDriverInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockCSIDriverInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockCSIDriverInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockCSIDriverInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockCSIDriverInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockCSIDriverInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.CSIDriver, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIDriver) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockCSIDriverInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCSIDriverInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockCSIDriverInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.CSIDriverList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.CSIDriverList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockCSIDriverInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCSIDriverInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockCSIDriverInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.CSIDriver, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.CSIDriver) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockCSIDriverInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockCSIDriverInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockCSIDriverInterface) Update(arg0 context.Context, arg1 *v1.CSIDriver, arg2 v10.UpdateOptions) (*v1.CSIDriver, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIDriver) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockCSIDriverInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCSIDriverInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockCSIDriverInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockCSIDriverInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockCSIDriverInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/storage/v1/csinode.go b/plugins/source/k8s/mocks/storage/v1/csinode.go deleted file mode 100644 index 0f5a84c9a70a3c..00000000000000 --- a/plugins/source/k8s/mocks/storage/v1/csinode.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/storage/v1 (interfaces: CSINodesGetter,CSINodeInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/storage/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/storage/v1" - v12 "k8s.io/client-go/kubernetes/typed/storage/v1" -) - -// MockCSINodesGetter is a mock of CSINodesGetter interface. -type MockCSINodesGetter struct { - ctrl *gomock.Controller - recorder *MockCSINodesGetterMockRecorder -} - -// MockCSINodesGetterMockRecorder is the mock recorder for MockCSINodesGetter. -type MockCSINodesGetterMockRecorder struct { - mock *MockCSINodesGetter -} - -// NewMockCSINodesGetter creates a new mock instance. -func NewMockCSINodesGetter(ctrl *gomock.Controller) *MockCSINodesGetter { - mock := &MockCSINodesGetter{ctrl: ctrl} - mock.recorder = &MockCSINodesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCSINodesGetter) EXPECT() *MockCSINodesGetterMockRecorder { - return m.recorder -} - -// CSINodes mocks base method. -func (m *MockCSINodesGetter) CSINodes() v12.CSINodeInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CSINodes") - ret0, _ := ret[0].(v12.CSINodeInterface) - return ret0 -} - -// CSINodes indicates an expected call of CSINodes. -func (mr *MockCSINodesGetterMockRecorder) CSINodes() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CSINodes", reflect.TypeOf((*MockCSINodesGetter)(nil).CSINodes)) -} - -// MockCSINodeInterface is a mock of CSINodeInterface interface. -type MockCSINodeInterface struct { - ctrl *gomock.Controller - recorder *MockCSINodeInterfaceMockRecorder -} - -// MockCSINodeInterfaceMockRecorder is the mock recorder for MockCSINodeInterface. -type MockCSINodeInterfaceMockRecorder struct { - mock *MockCSINodeInterface -} - -// NewMockCSINodeInterface creates a new mock instance. -func NewMockCSINodeInterface(ctrl *gomock.Controller) *MockCSINodeInterface { - mock := &MockCSINodeInterface{ctrl: ctrl} - mock.recorder = &MockCSINodeInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCSINodeInterface) EXPECT() *MockCSINodeInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockCSINodeInterface) Apply(arg0 context.Context, arg1 *v11.CSINodeApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CSINode, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSINode) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockCSINodeInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCSINodeInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockCSINodeInterface) Create(arg0 context.Context, arg1 *v1.CSINode, arg2 v10.CreateOptions) (*v1.CSINode, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSINode) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockCSINodeInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCSINodeInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockCSINodeInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockCSINodeInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockCSINodeInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockCSINodeInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockCSINodeInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockCSINodeInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockCSINodeInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.CSINode, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSINode) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockCSINodeInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCSINodeInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockCSINodeInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.CSINodeList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.CSINodeList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockCSINodeInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCSINodeInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockCSINodeInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.CSINode, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.CSINode) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockCSINodeInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockCSINodeInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockCSINodeInterface) Update(arg0 context.Context, arg1 *v1.CSINode, arg2 v10.UpdateOptions) (*v1.CSINode, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSINode) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockCSINodeInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCSINodeInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockCSINodeInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockCSINodeInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockCSINodeInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/storage/v1/csistoragecapacity.go b/plugins/source/k8s/mocks/storage/v1/csistoragecapacity.go deleted file mode 100644 index 939ce83c011cc3..00000000000000 --- a/plugins/source/k8s/mocks/storage/v1/csistoragecapacity.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/storage/v1 (interfaces: CSIStorageCapacitiesGetter,CSIStorageCapacityInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/storage/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/storage/v1" - v12 "k8s.io/client-go/kubernetes/typed/storage/v1" -) - -// MockCSIStorageCapacitiesGetter is a mock of CSIStorageCapacitiesGetter interface. -type MockCSIStorageCapacitiesGetter struct { - ctrl *gomock.Controller - recorder *MockCSIStorageCapacitiesGetterMockRecorder -} - -// MockCSIStorageCapacitiesGetterMockRecorder is the mock recorder for MockCSIStorageCapacitiesGetter. -type MockCSIStorageCapacitiesGetterMockRecorder struct { - mock *MockCSIStorageCapacitiesGetter -} - -// NewMockCSIStorageCapacitiesGetter creates a new mock instance. -func NewMockCSIStorageCapacitiesGetter(ctrl *gomock.Controller) *MockCSIStorageCapacitiesGetter { - mock := &MockCSIStorageCapacitiesGetter{ctrl: ctrl} - mock.recorder = &MockCSIStorageCapacitiesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCSIStorageCapacitiesGetter) EXPECT() *MockCSIStorageCapacitiesGetterMockRecorder { - return m.recorder -} - -// CSIStorageCapacities mocks base method. -func (m *MockCSIStorageCapacitiesGetter) CSIStorageCapacities(arg0 string) v12.CSIStorageCapacityInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "CSIStorageCapacities", arg0) - ret0, _ := ret[0].(v12.CSIStorageCapacityInterface) - return ret0 -} - -// CSIStorageCapacities indicates an expected call of CSIStorageCapacities. -func (mr *MockCSIStorageCapacitiesGetterMockRecorder) CSIStorageCapacities(arg0 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CSIStorageCapacities", reflect.TypeOf((*MockCSIStorageCapacitiesGetter)(nil).CSIStorageCapacities), arg0) -} - -// MockCSIStorageCapacityInterface is a mock of CSIStorageCapacityInterface interface. -type MockCSIStorageCapacityInterface struct { - ctrl *gomock.Controller - recorder *MockCSIStorageCapacityInterfaceMockRecorder -} - -// MockCSIStorageCapacityInterfaceMockRecorder is the mock recorder for MockCSIStorageCapacityInterface. -type MockCSIStorageCapacityInterfaceMockRecorder struct { - mock *MockCSIStorageCapacityInterface -} - -// NewMockCSIStorageCapacityInterface creates a new mock instance. -func NewMockCSIStorageCapacityInterface(ctrl *gomock.Controller) *MockCSIStorageCapacityInterface { - mock := &MockCSIStorageCapacityInterface{ctrl: ctrl} - mock.recorder = &MockCSIStorageCapacityInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockCSIStorageCapacityInterface) EXPECT() *MockCSIStorageCapacityInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockCSIStorageCapacityInterface) Apply(arg0 context.Context, arg1 *v11.CSIStorageCapacityApplyConfiguration, arg2 v10.ApplyOptions) (*v1.CSIStorageCapacity, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIStorageCapacity) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockCSIStorageCapacityInterface) Create(arg0 context.Context, arg1 *v1.CSIStorageCapacity, arg2 v10.CreateOptions) (*v1.CSIStorageCapacity, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIStorageCapacity) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockCSIStorageCapacityInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockCSIStorageCapacityInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockCSIStorageCapacityInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.CSIStorageCapacity, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIStorageCapacity) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockCSIStorageCapacityInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.CSIStorageCapacityList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.CSIStorageCapacityList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockCSIStorageCapacityInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.CSIStorageCapacity, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.CSIStorageCapacity) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockCSIStorageCapacityInterface) Update(arg0 context.Context, arg1 *v1.CSIStorageCapacity, arg2 v10.UpdateOptions) (*v1.CSIStorageCapacity, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.CSIStorageCapacity) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockCSIStorageCapacityInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockCSIStorageCapacityInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockCSIStorageCapacityInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/storage/v1/storageclass.go b/plugins/source/k8s/mocks/storage/v1/storageclass.go deleted file mode 100644 index 551936fa65c59c..00000000000000 --- a/plugins/source/k8s/mocks/storage/v1/storageclass.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/storage/v1 (interfaces: StorageClassesGetter,StorageClassInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/storage/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/storage/v1" - v12 "k8s.io/client-go/kubernetes/typed/storage/v1" -) - -// MockStorageClassesGetter is a mock of StorageClassesGetter interface. -type MockStorageClassesGetter struct { - ctrl *gomock.Controller - recorder *MockStorageClassesGetterMockRecorder -} - -// MockStorageClassesGetterMockRecorder is the mock recorder for MockStorageClassesGetter. -type MockStorageClassesGetterMockRecorder struct { - mock *MockStorageClassesGetter -} - -// NewMockStorageClassesGetter creates a new mock instance. -func NewMockStorageClassesGetter(ctrl *gomock.Controller) *MockStorageClassesGetter { - mock := &MockStorageClassesGetter{ctrl: ctrl} - mock.recorder = &MockStorageClassesGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockStorageClassesGetter) EXPECT() *MockStorageClassesGetterMockRecorder { - return m.recorder -} - -// StorageClasses mocks base method. -func (m *MockStorageClassesGetter) StorageClasses() v12.StorageClassInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "StorageClasses") - ret0, _ := ret[0].(v12.StorageClassInterface) - return ret0 -} - -// StorageClasses indicates an expected call of StorageClasses. -func (mr *MockStorageClassesGetterMockRecorder) StorageClasses() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageClasses", reflect.TypeOf((*MockStorageClassesGetter)(nil).StorageClasses)) -} - -// MockStorageClassInterface is a mock of StorageClassInterface interface. -type MockStorageClassInterface struct { - ctrl *gomock.Controller - recorder *MockStorageClassInterfaceMockRecorder -} - -// MockStorageClassInterfaceMockRecorder is the mock recorder for MockStorageClassInterface. -type MockStorageClassInterfaceMockRecorder struct { - mock *MockStorageClassInterface -} - -// NewMockStorageClassInterface creates a new mock instance. -func NewMockStorageClassInterface(ctrl *gomock.Controller) *MockStorageClassInterface { - mock := &MockStorageClassInterface{ctrl: ctrl} - mock.recorder = &MockStorageClassInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockStorageClassInterface) EXPECT() *MockStorageClassInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockStorageClassInterface) Apply(arg0 context.Context, arg1 *v11.StorageClassApplyConfiguration, arg2 v10.ApplyOptions) (*v1.StorageClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StorageClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockStorageClassInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockStorageClassInterface)(nil).Apply), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockStorageClassInterface) Create(arg0 context.Context, arg1 *v1.StorageClass, arg2 v10.CreateOptions) (*v1.StorageClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StorageClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockStorageClassInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockStorageClassInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockStorageClassInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockStorageClassInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStorageClassInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockStorageClassInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockStorageClassInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockStorageClassInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockStorageClassInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.StorageClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StorageClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockStorageClassInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStorageClassInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockStorageClassInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.StorageClassList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.StorageClassList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockStorageClassInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStorageClassInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockStorageClassInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.StorageClass, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.StorageClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockStorageClassInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockStorageClassInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockStorageClassInterface) Update(arg0 context.Context, arg1 *v1.StorageClass, arg2 v10.UpdateOptions) (*v1.StorageClass, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.StorageClass) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockStorageClassInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStorageClassInterface)(nil).Update), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockStorageClassInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockStorageClassInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockStorageClassInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/mocks/storage/v1/volumeattachment.go b/plugins/source/k8s/mocks/storage/v1/volumeattachment.go deleted file mode 100644 index 12bf17722461b6..00000000000000 --- a/plugins/source/k8s/mocks/storage/v1/volumeattachment.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by MockGen. DO NOT EDIT. -// Source: k8s.io/client-go/kubernetes/typed/storage/v1 (interfaces: VolumeAttachmentsGetter,VolumeAttachmentInterface) - -// Package v1 is a generated GoMock package. -package v1 - -import ( - context "context" - reflect "reflect" - - gomock "github.com/golang/mock/gomock" - v1 "k8s.io/api/storage/v1" - v10 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - v11 "k8s.io/client-go/applyconfigurations/storage/v1" - v12 "k8s.io/client-go/kubernetes/typed/storage/v1" -) - -// MockVolumeAttachmentsGetter is a mock of VolumeAttachmentsGetter interface. -type MockVolumeAttachmentsGetter struct { - ctrl *gomock.Controller - recorder *MockVolumeAttachmentsGetterMockRecorder -} - -// MockVolumeAttachmentsGetterMockRecorder is the mock recorder for MockVolumeAttachmentsGetter. -type MockVolumeAttachmentsGetterMockRecorder struct { - mock *MockVolumeAttachmentsGetter -} - -// NewMockVolumeAttachmentsGetter creates a new mock instance. -func NewMockVolumeAttachmentsGetter(ctrl *gomock.Controller) *MockVolumeAttachmentsGetter { - mock := &MockVolumeAttachmentsGetter{ctrl: ctrl} - mock.recorder = &MockVolumeAttachmentsGetterMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVolumeAttachmentsGetter) EXPECT() *MockVolumeAttachmentsGetterMockRecorder { - return m.recorder -} - -// VolumeAttachments mocks base method. -func (m *MockVolumeAttachmentsGetter) VolumeAttachments() v12.VolumeAttachmentInterface { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "VolumeAttachments") - ret0, _ := ret[0].(v12.VolumeAttachmentInterface) - return ret0 -} - -// VolumeAttachments indicates an expected call of VolumeAttachments. -func (mr *MockVolumeAttachmentsGetterMockRecorder) VolumeAttachments() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeAttachments", reflect.TypeOf((*MockVolumeAttachmentsGetter)(nil).VolumeAttachments)) -} - -// MockVolumeAttachmentInterface is a mock of VolumeAttachmentInterface interface. -type MockVolumeAttachmentInterface struct { - ctrl *gomock.Controller - recorder *MockVolumeAttachmentInterfaceMockRecorder -} - -// MockVolumeAttachmentInterfaceMockRecorder is the mock recorder for MockVolumeAttachmentInterface. -type MockVolumeAttachmentInterfaceMockRecorder struct { - mock *MockVolumeAttachmentInterface -} - -// NewMockVolumeAttachmentInterface creates a new mock instance. -func NewMockVolumeAttachmentInterface(ctrl *gomock.Controller) *MockVolumeAttachmentInterface { - mock := &MockVolumeAttachmentInterface{ctrl: ctrl} - mock.recorder = &MockVolumeAttachmentInterfaceMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockVolumeAttachmentInterface) EXPECT() *MockVolumeAttachmentInterfaceMockRecorder { - return m.recorder -} - -// Apply mocks base method. -func (m *MockVolumeAttachmentInterface) Apply(arg0 context.Context, arg1 *v11.VolumeAttachmentApplyConfiguration, arg2 v10.ApplyOptions) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Apply", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Apply indicates an expected call of Apply. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Apply(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Apply), arg0, arg1, arg2) -} - -// ApplyStatus mocks base method. -func (m *MockVolumeAttachmentInterface) ApplyStatus(arg0 context.Context, arg1 *v11.VolumeAttachmentApplyConfiguration, arg2 v10.ApplyOptions) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ApplyStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ApplyStatus indicates an expected call of ApplyStatus. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplyStatus", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).ApplyStatus), arg0, arg1, arg2) -} - -// Create mocks base method. -func (m *MockVolumeAttachmentInterface) Create(arg0 context.Context, arg1 *v1.VolumeAttachment, arg2 v10.CreateOptions) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Create indicates an expected call of Create. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Create), arg0, arg1, arg2) -} - -// Delete mocks base method. -func (m *MockVolumeAttachmentInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// Delete indicates an expected call of Delete. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Delete), arg0, arg1, arg2) -} - -// DeleteCollection mocks base method. -func (m *MockVolumeAttachmentInterface) DeleteCollection(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v10.ListOptions) error { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1, arg2) - ret0, _ := ret[0].(error) - return ret0 -} - -// DeleteCollection indicates an expected call of DeleteCollection. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).DeleteCollection), arg0, arg1, arg2) -} - -// Get mocks base method. -func (m *MockVolumeAttachmentInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Get indicates an expected call of Get. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Get), arg0, arg1, arg2) -} - -// List mocks base method. -func (m *MockVolumeAttachmentInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.VolumeAttachmentList, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "List", arg0, arg1) - ret0, _ := ret[0].(*v1.VolumeAttachmentList) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// List indicates an expected call of List. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) List(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).List), arg0, arg1) -} - -// Patch mocks base method. -func (m *MockVolumeAttachmentInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - varargs := []interface{}{arg0, arg1, arg2, arg3, arg4} - for _, a := range arg5 { - varargs = append(varargs, a) - } - ret := m.ctrl.Call(m, "Patch", varargs...) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Patch indicates an expected call of Patch. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 interface{}, arg5 ...interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - varargs := append([]interface{}{arg0, arg1, arg2, arg3, arg4}, arg5...) - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Patch), varargs...) -} - -// Update mocks base method. -func (m *MockVolumeAttachmentInterface) Update(arg0 context.Context, arg1 *v1.VolumeAttachment, arg2 v10.UpdateOptions) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Update indicates an expected call of Update. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Update), arg0, arg1, arg2) -} - -// UpdateStatus mocks base method. -func (m *MockVolumeAttachmentInterface) UpdateStatus(arg0 context.Context, arg1 *v1.VolumeAttachment, arg2 v10.UpdateOptions) (*v1.VolumeAttachment, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1, arg2) - ret0, _ := ret[0].(*v1.VolumeAttachment) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// UpdateStatus indicates an expected call of UpdateStatus. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).UpdateStatus), arg0, arg1, arg2) -} - -// Watch mocks base method. -func (m *MockVolumeAttachmentInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Watch", arg0, arg1) - ret0, _ := ret[0].(watch.Interface) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// Watch indicates an expected call of Watch. -func (mr *MockVolumeAttachmentInterfaceMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockVolumeAttachmentInterface)(nil).Watch), arg0, arg1) -} diff --git a/plugins/source/k8s/policies/README.md b/plugins/source/k8s/policies/README.md deleted file mode 100644 index 88d9becc4c4f08..00000000000000 --- a/plugins/source/k8s/policies/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# CloudQuery Policies - -CloudQuery SQL Policies for Kubernetes - -## Policies and Compliance Frameworks Available - -- [Kubernetes NSA CISA v1](./nsa_cisa_v1/policy.sql) - -## Running - -You can execute policies with `psql`. For example: - -```bash -# Set DSN to your PostgreSQL populated by CloudQuery -export DSN=postgres://postgres:pass@localhost:5432/postgres -# Execute the NSA CISA Policy -psql ${DSN} -f ./nsa_cisa_v1/policy.sql -``` - -This will create all the results in `k8s_policy_results` table which you can query directly, connect to any BI system (Grafana, Preset, AWS QuickSight, PowerBI, …). - -You can also output it into CSV or HTML with the following built-in `psql` commands: - -```bash -# Set DSN to your PostgreSQL populated by CloudQuery -export DSN=postgres://postgres:pass@localhost:5432/postgres -# default tabular output -psql ${DSN} -c "select * from k8s_policy_results" -# CSV output -psql ${DSN} -c "select * from k8s_policy_results" --csv -# HTML output -psql ${DSN} -c "select * from k8s_policy_results" --html -``` diff --git a/plugins/source/k8s/policies/create_k8s_policy_results.sql b/plugins/source/k8s/policies/create_k8s_policy_results.sql deleted file mode 100644 index e95b26a6c59779..00000000000000 --- a/plugins/source/k8s/policies/create_k8s_policy_results.sql +++ /dev/null @@ -1,12 +0,0 @@ -create table if not exists k8s_policy_results -( - execution_time timestamp with time zone, - framework varchar(255), - check_id varchar(255), - title text, - context text, - namespace text, - resource_id varchar(1024), - resource_name text, - status varchar(16) -) \ No newline at end of file diff --git a/plugins/source/k8s/policies/index.json b/plugins/source/k8s/policies/index.json deleted file mode 100644 index a20a562eaf31e0..00000000000000 --- a/plugins/source/k8s/policies/index.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "policies": [ - {"name": "Kubernetes NSA CISA v1", "path": "nsa_cisa_v1/policy.sql"} - ] -} \ No newline at end of file diff --git a/plugins/source/k8s/policies/nsa_cisa_v1/README.md b/plugins/source/k8s/policies/nsa_cisa_v1/README.md deleted file mode 100644 index e69de29bb2d1d6..00000000000000 diff --git a/plugins/source/k8s/policies/nsa_cisa_v1/network_hardening.sql b/plugins/source/k8s/policies/nsa_cisa_v1/network_hardening.sql deleted file mode 100644 index 9d096c71c05ae0..00000000000000 --- a/plugins/source/k8s/policies/nsa_cisa_v1/network_hardening.sql +++ /dev/null @@ -1,132 +0,0 @@ -\echo "Executing K8S Network Hardening NSA CISA v1" - -\echo "Enforce CPU resource limits" - -\echo "Deamonsets enforce cpu limit" -\set check_id "daemonset_cpu_limit" -\ir ../queries/network_hardening/daemonset_cpu_limit.sql - -\echo "Deployments enforce cpu limit" -\set check_id "deployment_cpu_limit" -\ir ../queries/network_hardening/deployment_cpu_limit.sql - -\echo "Jobs enforce cpu limit" -\set check_id "job_cpu_limit" -\ir ../queries/network_hardening/job_cpu_limit.sql - - -\echo "Namespaces CPU limit range default" -\set check_id "namespace_limit_range_default_cpu_limit" -\ir ../queries/network_hardening/namespace_limit_range_default_cpu_limit.sql - - -\echo "Namespaces CPU limit resource quota" -\set check_id "namespace_resource_quota_cpu_limit" -\ir ../queries/network_hardening/namespace_resource_quota_cpu_limit.sql - - -\echo "ReplciaSets enforce cpu limit" -\set check_id "replicaset_cpu_limit" -\ir ../queries/network_hardening/replicaset_cpu_limit.sql - - -\echo "Enforce CPU request" - -\echo "Deamonsets enforce cpu request" -\set check_id "daemonset_cpu_request" -\ir ../queries/network_hardening/daemonset_cpu_request.sql - -\echo "Deployments enforce cpu request" -\set check_id "deployment_cpu_request" -\ir ../queries/network_hardening/deployment_cpu_request.sql - -\echo "Jobs enforce cpu request" -\set check_id "job_cpu_limit" -\ir ../queries/network_hardening/job_cpu_limit.sql - - -\echo "Namespaces CPU request range default" -\set check_id "namespace_limit_range_default_cpu_request" -\ir ../queries/network_hardening/namespace_limit_range_default_cpu_request.sql - - -\echo "Namespaces CPU request resource quota" -\set check_id "namespace_resource_quota_cpu_request" -\ir ../queries/network_hardening/namespace_resource_quota_cpu_request.sql - - -\echo "ReplciaSets enforce cpu request" -\set check_id "replicaset_cpu_request" -\ir ../queries/network_hardening/replicaset_cpu_request.sql - -\echo "Ensure memory limits set" - -\echo "Deamonsets enforce memory limit" -\set check_id "daemonset_memory_limit" -\ir ../queries/network_hardening/daemonset_memory_limit.sql - -\echo "Deployments enforce memory limit" -\set check_id "deployment_memory_limit" -\ir ../queries/network_hardening/deployment_memory_limit.sql - -\echo "Jobs enforce memory limit" -\set check_id "job_memory_limit" -\ir ../queries/network_hardening/job_memory_limit.sql - - -\echo "Namespaces CPU memory range default" -\set check_id "namespace_limit_range_default_memory_limit" -\ir ../queries/network_hardening/namespace_limit_range_default_memory_limit.sql - - -\echo "Namespaces CPU memory resource quota" -\set check_id "namespace_resource_quota_memory_limit" -\ir ../queries/network_hardening/namespace_resource_quota_memory_limit.sql - - -\echo "ReplciaSets enforce memory limit" -\set check_id "replicaset_memory_limit" -\ir ../queries/network_hardening/replicaset_memory_limit.sql - - -\echo "Enforce Memory request" - -\echo "Deamonsets enforce memory request" -\set check_id "daemonset_memory_request" -\ir ../queries/network_hardening/daemonset_memory_request.sql - -\echo "Deployments enforce memory request" -\set check_id "deployment_memory_request" -\ir ../queries/network_hardening/deployment_memory_request.sql - -\echo "Jobs enforce memory request" -\set check_id "job_memory_request" -\ir ../queries/network_hardening/job_memory_request.sql - - -\echo "Namespaces Memory request range default" -\set check_id "namespace_limit_range_default_memory_request" -\ir ../queries/network_hardening/namespace_limit_range_default_memory_request.sql - - -\echo "Namespaces Memory request resource quota" -\set check_id "namespace_resource_quota_memory_request" -\ir ../queries/network_hardening/namespace_resource_quota_memory_request.sql - - -\echo "ReplciaSets enforce cpu request" -\set check_id "replicaset_memory_request" -\ir ../queries/network_hardening/replicaset_memory_request.sql - - -\echo "Enforce default deny network policy" - -\echo "Network policy default deny egress" -\set check_id "network_policy_default_deny_egress" -\ir ../queries/network_hardening/network_policy_default_deny_egress.sql - - -\echo "Network policy default deny ingress" -\set check_id "network_policy_default_deny_ingress" -\ir ../queries/network_hardening/network_policy_default_deny_ingress.sql - diff --git a/plugins/source/k8s/policies/nsa_cisa_v1/pod_security.sql b/plugins/source/k8s/policies/nsa_cisa_v1/pod_security.sql deleted file mode 100644 index 75c70a6b9bcf89..00000000000000 --- a/plugins/source/k8s/policies/nsa_cisa_v1/pod_security.sql +++ /dev/null @@ -1,152 +0,0 @@ -\echo "Executing K8S Pod Security NSA CISA v1" - -\set check_id "container_disallow_host_path" -\echo "Disallow host path access" -\ir ../queries/pod_security/pod_volume_host_path.sql - -\echo "Verify containers have privileged access disabled" - -\echo "Deamonset privileges disabled" -\set check_id "daemonset_container_privilege_disabled" -\ir ../queries/pod_security/daemonset_container_privilege_disabled.sql - -\echo "Deployment containers privileged access disabled" -\set check_id "deployment_container_privilege_disabled" -\ir ../queries/pod_security/deployment_container_privilege_disabled.sql - -\echo "Jobs container privileged access disabled" -\set check_id "job_container_privilege_disabled" -\ir ../queries/pod_security/job_container_privilege_disabled.sql - -\echo "Pod container privileged access disabled" -\set check_id "pod_container_privilege_disabled" -\ir ../queries/pod_security/pod_container_privilege_disabled.sql - -\echo "ReplicaSet container privileged access disabled" -\set check_id "replicaset_container_privilege_disabled" -\ir ../queries/pod_security/replicaset_container_privilege_disabled.sql - -\echo "Container privileged escalation disabled" - -\echo "DaemonSet container privileged escalation disabled" -\set check_id "daemonset_container_privilege_escalation_disabled" -\ir ../queries/pod_security/daemonset_container_privilege_escalation_disabled.sql - -\echo "Deployment container privileged escalation disabled" -\set check_id "deployment_container_privilege_escalation_disabled" -\ir ../queries/pod_security/deployment_container_privilege_escalation_disabled.sql - -\echo "Job container privileged escalation disabled" -\set check_id "job_container_privilege_escalation_disabled" -\ir ../queries/pod_security/job_container_privilege_escalation_disabled.sql - -\echo "Pod container privileged escalation disabled" -\set check_id "pod_container_privilege_escalation_disabled" -\ir ../queries/pod_security/pod_container_privilege_escalation_disabled.sql - -\echo "ReplicaSet container privileged escalation disabled" -\set check_id "replicaset_container_privilege_escalation_disabled" -\ir ../queries/pod_security/replicaset_container_privilege_escalation_disabled.sql - - -\echo "Host network access disabled" - -\echo "DaemonSet container hostNetwork disabled" -\set check_id "daemonset_host_network_access_disabled" -\ir ../queries/pod_security/daemonset_host_network_access_disabled.sql - -\echo "Deployment container hostNetwork disabled" -\set check_id "deployment_host_network_access_disabled" -\ir ../queries/pod_security/deployment_host_network_access_disabled.sql - -\echo "Job container hostNetwork disabled" -\set check_id "job_host_network_access_disabled" -\ir ../queries/pod_security/job_host_network_access_disabled.sql - -\echo "Pod container hostNetwork disabled" -\set check_id "pod_container_privilege_escalation_disabled" -\ir ../queries/pod_security/pod_host_network_access_disabled.sql - -\echo "ReplicaSet container hostNetwork disabled" -\set check_id "replicaset_container_privilege_escalation_disabled" -\ir ../queries/pod_security/replicaset_host_network_access_disabled.sql - - -\echo "HostPID and HostIPC sharing disabled" - -\echo "DeamonSet containers HostPID and HostIPC sharing disabled" -\set check_id "daemonset_hostpid_hostipc_sharing_disabled" -\ir ../queries/pod_security/daemonset_hostpid_hostipc_sharing_disabled.sql - -\echo "Deployment containers HostPID and HostIPC sharing disabled" -\set check_id "deployment_hostpid_hostipc_sharing_disabled" -\ir ../queries/pod_security/deployment_hostpid_hostipc_sharing_disabled.sql - -\echo "Job containers HostPID and HostIPC sharing disabled" -\set check_id "job_hostpid_hostipc_sharing_disabled" -\ir ../queries/pod_security/job_hostpid_hostipc_sharing_disabled.sql - -\echo "Pod containers HostPID and HostIPC sharing disabled" -\set check_id "pod_hostpid_hostipc_sharing_disabled" -\ir ../queries/pod_security/pod_hostpid_hostipc_sharing_disabled.sql - -\echo "ReplicaSet containers HostPID and HostIPC sharing disabled" -\set check_id "replicaset_hostpid_hostipc_sharing_disabled" -\ir ../queries/pod_security/replicaset_hostpid_hostipc_sharing_disabled.sql - -\echo "Containers root file system is read-only" - -\echo "DeamonSet containers root file system is read-only" -\set check_id "daemonset_immutable_container_filesystem" -\ir ../queries/pod_security/daemonset_immutable_container_filesystem.sql - -\echo "Deployment containers root file system is read-only" -\set check_id "deployment_immutable_container_filesystem" -\ir ../queries/pod_security/deployment_immutable_container_filesystem.sql - -\echo "Job containers root file system is read-only" -\set check_id "job_immutable_container_filesystem" -\ir ../queries/pod_security/job_immutable_container_filesystem.sql - -\echo "Pod containers root file system is read-only" -\set check_id "pod_immutable_container_filesystem" -\ir ../queries/pod_security/pod_immutable_container_filesystem.sql - -\echo "ReplicaSet containers root file system is read-only" -\set check_id "replicaset_immutable_container_filesystem" -\ir ../queries/pod_security/replicaset_immutable_container_filesystem.sql - - -\echo "Enforce containers to run as non-root" - -\echo "DeamonSet containers to run as non-root" -\set check_id "daemonset_non_root_container" -\ir ../queries/pod_security/daemonset_non_root_container.sql - -\echo "Deployment containers to run as non-root" -\set check_id "deployment_non_root_container" -\ir ../queries/pod_security/deployment_non_root_container.sql - -\echo "Job containers to run as non-root" -\set check_id "job_non_root_container" -\ir ../queries/pod_security/job_non_root_container.sql - -\echo "Pod containers to run as non-root" -\set check_id "pod_non_root_container" -\ir ../queries/pod_security/pod_non_root_container.sql - -\echo "ReplicaSet containers to run as non-root" -\set check_id "replicaset_non_root_container" -\ir ../queries/pod_security/replicaset_non_root_container.sql - - -\echo "Automatic mapping of the service account tokens disabled" - -\echo "Pod service account tokens disabled" -\set check_id "pod_service_account_token_disabled" -\ir ../queries/pod_security/pod_service_account_token_disabled.sql - -\echo "Service account tokens disabled" -\set check_id "service_account_token_disabled" -\ir ../queries/pod_security/service_account_token_disabled.sql - diff --git a/plugins/source/k8s/policies/nsa_cisa_v1/policy.sql b/plugins/source/k8s/policies/nsa_cisa_v1/policy.sql deleted file mode 100644 index b023acd021c31f..00000000000000 --- a/plugins/source/k8s/policies/nsa_cisa_v1/policy.sql +++ /dev/null @@ -1,15 +0,0 @@ -\set ON_ERROR_STOP on -SET TIME ZONE 'UTC'; --- neat trick to set execution_time if not already set --- https://stackoverflow.com/questions/32582600/only-set-variable-in-psql-script-if-not-specified-on-the-command-line -\set execution_time :execution_time -SELECT CASE - WHEN :'execution_time' = ':execution_time' THEN to_char(now(), 'YYYY-MM-dd HH24:MI:SS.US') - ELSE :'execution_time' -END AS "execution_time" \gset - -\set framework 'cis_v1.2.0' - -\ir ../create_k8s_policy_results.sql -\ir ./network_hardening.sql -\ir ./pod_security.sql diff --git a/plugins/source/k8s/policies/policy.sql b/plugins/source/k8s/policies/policy.sql deleted file mode 100644 index 86c1d88edf9ee4..00000000000000 --- a/plugins/source/k8s/policies/policy.sql +++ /dev/null @@ -1,11 +0,0 @@ -\set ON_ERROR_STOP on -SET TIME ZONE 'UTC'; --- neat trick to set execution_time if not already set --- https://stackoverflow.com/questions/32582600/only-set-variable-in-psql-script-if-not-specified-on-the-command-line -\set execution_time :execution_time -SELECT CASE - WHEN :'execution_time' = ':execution_time' THEN to_char(now(), 'YYYY-MM-dd HH24:MI:SS.US') - ELSE :'execution_time' -END AS "execution_time" \gset - -\ir nsa_cisa_v1/policy.sql \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/daemonset_cpu_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/daemonset_cpu_limit.sql deleted file mode 100644 index 64d4bc87e0b979..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/daemonset_cpu_limit.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Join every row in the daemonset table with its json array of containers. -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Daemonset enforces cpu limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a CPU limit for the check to pass - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'resources'->'limits'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets - diff --git a/plugins/source/k8s/policies/queries/network_hardening/daemonset_cpu_request.sql b/plugins/source/k8s/policies/queries/network_hardening/daemonset_cpu_request.sql deleted file mode 100644 index 9597f259652c5c..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/daemonset_cpu_request.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the daemonset table with its json array of containers. -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Daemonset enforces cpu requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a CPU request for the check to pass - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'resources'->'requests'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets diff --git a/plugins/source/k8s/policies/queries/network_hardening/daemonset_memory_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/daemonset_memory_limit.sql deleted file mode 100644 index 30472a8eead96e..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/daemonset_memory_limit.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the daemonset table with its json array of containers. -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Daemonset enforces memory limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a Memory limit for the check to pass - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'resources'->'limits'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets diff --git a/plugins/source/k8s/policies/queries/network_hardening/daemonset_memory_request.sql b/plugins/source/k8s/policies/queries/network_hardening/daemonset_memory_request.sql deleted file mode 100644 index c5ecd1b2239cd1..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/daemonset_memory_request.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the daemonset table with its json array of containers. -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Daemonset enforces memory requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a Memory request for the check to pass - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'resources'->'requests'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/deployment_cpu_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/deployment_cpu_limit.sql deleted file mode 100644 index 6f055b7a0a2cc6..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/deployment_cpu_limit.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the deployment table with its json array of containers. -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment enforces cpu limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a CPU limit for the check to pass - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'resources'->'limits'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/deployment_cpu_request.sql b/plugins/source/k8s/policies/queries/network_hardening/deployment_cpu_request.sql deleted file mode 100644 index e8b10bc20d9f99..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/deployment_cpu_request.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the deployment table with its json array of containers. -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment enforces cpu requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a CPU request for the check to pass - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'resources'->'requests'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/deployment_memory_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/deployment_memory_limit.sql deleted file mode 100644 index bc5f5a3165c99b..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/deployment_memory_limit.sql +++ /dev/null @@ -1,25 +0,0 @@ --- Join every row in the deployment table with its json array of containers. -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment enforces memory limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a Memory limit for the check to pass - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'resources'->'limits'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status - -FROM k8s_apps_deployments \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/deployment_memory_request.sql b/plugins/source/k8s/policies/queries/network_hardening/deployment_memory_request.sql deleted file mode 100644 index ee89aa5ad728a6..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/deployment_memory_request.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the deployment table with its json array of containers. -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment enforces memory requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a Memory request for the check to pass - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'resources'->'requests'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/job_cpu_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/job_cpu_limit.sql deleted file mode 100644 index 798e12594a774c..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/job_cpu_limit.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job enforces cpu limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'resources'->'limits'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/job_cpu_request.sql b/plugins/source/k8s/policies/queries/network_hardening/job_cpu_request.sql deleted file mode 100644 index d3c7e6c8b789c7..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/job_cpu_request.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job enforces cpu requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'resources'->'requests'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/job_memory_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/job_memory_limit.sql deleted file mode 100644 index fd185b024e30cd..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/job_memory_limit.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job enforces memory limit' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'resources'->'limits'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/job_memory_request.sql b/plugins/source/k8s/policies/queries/network_hardening/job_memory_request.sql deleted file mode 100644 index 05fa18faccf3a6..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/job_memory_request.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job enforces memory requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'resources'->'requests'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_cpu_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_cpu_limit.sql deleted file mode 100644 index 0d7a387a2743ed..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_cpu_limit.sql +++ /dev/null @@ -1,24 +0,0 @@ -WITH default_cpu_limits AS ( - SELECT context, namespace, value->'default'->>'cpu' AS default_cpu_limit - FROM k8s_core_limit_ranges CROSS JOIN jsonb_array_elements(k8s_core_limit_ranges.spec_limits)) - -INSERT -INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespaces CPU default resource limit' AS title, - context AS context, - name AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(default_cpu_limit) FROM default_cpu_limits - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_cpu_request.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_cpu_request.sql deleted file mode 100644 index a07676e4808391..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_cpu_request.sql +++ /dev/null @@ -1,24 +0,0 @@ -WITH default_request_cpu_limits AS ( - SELECT context, namespace, value->'default_request'->>'cpu' AS default_request_cpu_limit - FROM k8s_core_limit_ranges CROSS JOIN jsonb_array_elements(k8s_core_limit_ranges.spec_limits)) - -INSERT -INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespaces CPU request resource quota' AS title, - context AS context, - name AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(default_request_cpu_limit) FROM default_request_cpu_limits - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_memory_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_memory_limit.sql deleted file mode 100644 index 8e1491d58c3f97..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_memory_limit.sql +++ /dev/null @@ -1,24 +0,0 @@ -WITH default_memory_limits AS ( - SELECT context, namespace, value->'default'->>'memory' AS default_memory_limit - FROM k8s_core_limit_ranges CROSS JOIN jsonb_array_elements(k8s_core_limit_ranges.spec_limits)) - -INSERT -INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespaces Memory default resource limit' AS title, - context AS context, - name AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(default_memory_limit) FROM default_memory_limits - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_memory_request.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_memory_request.sql deleted file mode 100644 index 0c96de6787f059..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_limit_range_default_memory_request.sql +++ /dev/null @@ -1,26 +0,0 @@ - - -WITH default_request_memory_limits AS ( - SELECT namespace, value->'default_request'->>'memory' AS default_request_memory_limit - FROM k8s_core_limit_ranges CROSS JOIN jsonb_array_elements(k8s_core_limit_ranges.spec_limits)) - -INSERT -INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespaces Memory request resource quota' AS title, - context AS context, - name AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(default_request_memory_limit) FROM default_request_memory_limits - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_cpu_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_cpu_limit.sql deleted file mode 100644 index 1124f35afdcc8d..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_cpu_limit.sql +++ /dev/null @@ -1,20 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select DISTINCT (k8s_core_namespaces.uid) AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespace enforces resource quota cpu limits' AS title, - k8s_core_namespaces.context AS context, - k8s_core_namespaces.name AS namespace, - k8s_core_namespaces.name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM k8s_core_resource_quotas - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context - AND spec_hard->>'limits.cpu' IS NOT NULL) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_cpu_request.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_cpu_request.sql deleted file mode 100644 index 1ba018bda0aa89..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_cpu_request.sql +++ /dev/null @@ -1,20 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select DISTINCT (k8s_core_namespaces.uid) AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespace enforces resource quota cpu request' AS title, - k8s_core_namespaces.context AS context, - k8s_core_namespaces.name AS namespace, - k8s_core_namespaces.name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM k8s_core_resource_quotas - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context - AND spec_hard->>'requests.cpu' IS NOT NULL) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_memory_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_memory_limit.sql deleted file mode 100644 index ed23db9c6890d4..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_memory_limit.sql +++ /dev/null @@ -1,20 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select DISTINCT (k8s_core_namespaces.uid) AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespace enforces resource quota memory limits' AS title, - k8s_core_namespaces.context AS context, - k8s_core_namespaces.name AS namespace, - k8s_core_namespaces.name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM k8s_core_resource_quotas - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context - AND spec_hard->>'limits.memory' IS NOT NULL) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_memory_request.sql b/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_memory_request.sql deleted file mode 100644 index d9ae9d65fa830e..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/namespace_resource_quota_memory_request.sql +++ /dev/null @@ -1,20 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select DISTINCT (k8s_core_namespaces.uid) AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Namespace enforces resource quota memory request' AS title, - k8s_core_namespaces.context AS context, - k8s_core_namespaces.name AS namespace, - k8s_core_namespaces.name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM k8s_core_resource_quotas - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context - AND spec_hard->>'requests.memory' IS NOT NULL) = 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_namespaces; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/network_policy_default_deny_egress.sql b/plugins/source/k8s/policies/queries/network_hardening/network_policy_default_deny_egress.sql deleted file mode 100644 index 9ecf9d6d9a0f68..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/network_policy_default_deny_egress.sql +++ /dev/null @@ -1,23 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, -:'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Network policy default deny egress' AS title, - context AS context, - name AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM k8s_networking_network_policies - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context - AND spec_policy_types @> ARRAY['Egress'] - AND spec_pod_selector::TEXT = '{}' - AND ((spec_egress IS NULL) OR (JSONB_ARRAY_LENGTH(spec_egress) = 0))) = 0 - THEN 'fail' - ELSE 'pass' - END AS STATUS - -FROM k8s_core_namespaces \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/network_policy_default_deny_ingress.sql b/plugins/source/k8s/policies/queries/network_hardening/network_policy_default_deny_ingress.sql deleted file mode 100644 index 08c631d65a1abe..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/network_policy_default_deny_ingress.sql +++ /dev/null @@ -1,23 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, -:'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Network policy default deny ingress' AS title, - context AS context, - name AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM k8s_networking_network_policies - WHERE namespace = k8s_core_namespaces.name - AND context = k8s_core_namespaces.context - AND spec_policy_types @> ARRAY['Ingress'] - AND spec_pod_selector::TEXT = '{}' - AND ((spec_ingress IS NULL) OR (JSONB_ARRAY_LENGTH(spec_ingress) = 0))) = 0 - THEN 'fail' - ELSE 'pass' - END AS STATUS - -FROM k8s_core_namespaces \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/replicaset_cpu_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/replicaset_cpu_limit.sql deleted file mode 100644 index f85a5aa3de353d..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/replicaset_cpu_limit.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the replica_set table with its json array of containers. -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Replicaset enforces cpu limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a CPU limit for the check to pass - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'resources'->'limits'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/replicaset_cpu_request.sql b/plugins/source/k8s/policies/queries/network_hardening/replicaset_cpu_request.sql deleted file mode 100644 index 04be7198101c8a..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/replicaset_cpu_request.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the replica_set table with its json array of containers. -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Replicaset enforces cpu requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a CPU request for the check to pass - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'resources'->'requests'->>'cpu' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets diff --git a/plugins/source/k8s/policies/queries/network_hardening/replicaset_memory_limit.sql b/plugins/source/k8s/policies/queries/network_hardening/replicaset_memory_limit.sql deleted file mode 100644 index 50f0fa7bd1b92a..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/replicaset_memory_limit.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the replica_set table with its json array of containers. -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Replicaset enforces memory limits' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a memory limit for the check to pass - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'resources'->'limits'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/network_hardening/replicaset_memory_request.sql b/plugins/source/k8s/policies/queries/network_hardening/replicaset_memory_request.sql deleted file mode 100644 index 7d90669ff1ae7d..00000000000000 --- a/plugins/source/k8s/policies/queries/network_hardening/replicaset_memory_request.sql +++ /dev/null @@ -1,24 +0,0 @@ --- Join every row in the deployment table with its json array of containers. -With replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -Insert Into k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Replicaset enforces memory requests' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - -- Every container needs to have a memory request for the check to pass - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'resources'->'requests'->>'memory' IS NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/daemonset_container_privilege_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/daemonset_container_privilege_disabled.sql deleted file mode 100644 index 4ce9c75ac19c7f..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/daemonset_container_privilege_disabled.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'DaemonSet containers privileges disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'securityContext'->>'privileged' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets; diff --git a/plugins/source/k8s/policies/queries/pod_security/daemonset_container_privilege_escalation_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/daemonset_container_privilege_escalation_disabled.sql deleted file mode 100644 index 7da3b6484e3d33..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/daemonset_container_privilege_escalation_disabled.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'DaemonSet containers privilege escalation disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'securityContext'->>'allowPrivilegeEscalation' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets; diff --git a/plugins/source/k8s/policies/queries/pod_security/daemonset_host_network_access_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/daemonset_host_network_access_disabled.sql deleted file mode 100644 index 72226dac7a1d57..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/daemonset_host_network_access_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deamonset container hostNetwork disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostNetwork' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets; diff --git a/plugins/source/k8s/policies/queries/pod_security/daemonset_hostpid_hostipc_sharing_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/daemonset_hostpid_hostipc_sharing_disabled.sql deleted file mode 100644 index bbecd7801d630d..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/daemonset_hostpid_hostipc_sharing_disabled.sql +++ /dev/null @@ -1,18 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deamonset containers HostPID and HostIPC sharing disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostPID' = 'true' - OR spec_template -> 'spec' ->> 'hostIPC' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/daemonset_immutable_container_filesystem.sql b/plugins/source/k8s/policies/queries/pod_security/daemonset_immutable_container_filesystem.sql deleted file mode 100644 index 504646e22146fb..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/daemonset_immutable_container_filesystem.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'DeamonSet containers root file system is read-only' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'securityContext'->>'readOnlyRootFilesystem' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets; diff --git a/plugins/source/k8s/policies/queries/pod_security/daemonset_non_root_container.sql b/plugins/source/k8s/policies/queries/pod_security/daemonset_non_root_container.sql deleted file mode 100644 index e420948919eca6..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/daemonset_non_root_container.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH daemonset_containers AS (SELECT uid, value AS container - FROM k8s_apps_daemon_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'DaemonSet containers to run as non-root' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM daemonset_containers WHERE daemonset_containers.uid = k8s_apps_daemon_sets.uid AND - daemonset_containers.container->'securityContext'->>'runAsNonRoot' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_daemon_sets; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/deployment_container_privilege_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/deployment_container_privilege_disabled.sql deleted file mode 100644 index 1719cf50f70be8..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/deployment_container_privilege_disabled.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployments privileges disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'securityContext'->>'privileged' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/deployment_container_privilege_escalation_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/deployment_container_privilege_escalation_disabled.sql deleted file mode 100644 index 4edc5b12900ff3..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/deployment_container_privilege_escalation_disabled.sql +++ /dev/null @@ -1,25 +0,0 @@ -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployments privilege escalation disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'securityContext'->>'allowPrivilegeEscalation' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments; - - - - diff --git a/plugins/source/k8s/policies/queries/pod_security/deployment_host_network_access_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/deployment_host_network_access_disabled.sql deleted file mode 100644 index 52a28321535feb..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/deployment_host_network_access_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployments container hostNetwork disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostNetwork' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments; diff --git a/plugins/source/k8s/policies/queries/pod_security/deployment_hostpid_hostipc_sharing_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/deployment_hostpid_hostipc_sharing_disabled.sql deleted file mode 100644 index a4e7ecc372b732..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/deployment_hostpid_hostipc_sharing_disabled.sql +++ /dev/null @@ -1,18 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment containers HostPID and HostIPC sharing disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostPID' = 'true' - OR spec_template -> 'spec' ->> 'hostIPC' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/deployment_immutable_container_filesystem.sql b/plugins/source/k8s/policies/queries/pod_security/deployment_immutable_container_filesystem.sql deleted file mode 100644 index ae7c91a5e339fa..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/deployment_immutable_container_filesystem.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment containers root file system is read-only' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'securityContext'->>'readOnlyRootFilesystem' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments; - diff --git a/plugins/source/k8s/policies/queries/pod_security/deployment_non_root_container.sql b/plugins/source/k8s/policies/queries/pod_security/deployment_non_root_container.sql deleted file mode 100644 index 956c7399777cf2..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/deployment_non_root_container.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH deployment_containers AS (SELECT uid, value AS container - FROM k8s_apps_deployments - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Deployment containers to run as non-root' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM deployment_containers WHERE deployment_containers.uid = k8s_apps_deployments.uid AND - deployment_containers.container->'securityContext'->>'runAsNonRoot' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_deployments; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/job_container_privilege_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/job_container_privilege_disabled.sql deleted file mode 100644 index e82b316b1e23f7..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/job_container_privilege_disabled.sql +++ /dev/null @@ -1,23 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job containers privileges disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'securityContext'->>'privileged' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs - diff --git a/plugins/source/k8s/policies/queries/pod_security/job_container_privilege_escalation_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/job_container_privilege_escalation_disabled.sql deleted file mode 100644 index 41d1cb3ed33c95..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/job_container_privilege_escalation_disabled.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job containers privilege escalation disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'securityContext'->>'allowPrivilegeEscalation' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/job_host_network_access_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/job_host_network_access_disabled.sql deleted file mode 100644 index 082a765383c020..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/job_host_network_access_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Jobs container hostNetwork disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostNetwork' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs; diff --git a/plugins/source/k8s/policies/queries/pod_security/job_hostpid_hostipc_sharing_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/job_hostpid_hostipc_sharing_disabled.sql deleted file mode 100644 index b71d18013d6431..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/job_hostpid_hostipc_sharing_disabled.sql +++ /dev/null @@ -1,18 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job containers HostPID and HostIPC sharing disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostPID' = 'true' - OR spec_template -> 'spec' ->> 'hostIPC' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/job_immutable_container_filesystem.sql b/plugins/source/k8s/policies/queries/pod_security/job_immutable_container_filesystem.sql deleted file mode 100644 index b896d52640197a..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/job_immutable_container_filesystem.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job containers root file system is read-only' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'securityContext'->>'readOnlyRootFilesystem' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs diff --git a/plugins/source/k8s/policies/queries/pod_security/job_non_root_container.sql b/plugins/source/k8s/policies/queries/pod_security/job_non_root_container.sql deleted file mode 100644 index 6e0025608c6b02..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/job_non_root_container.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH job_containers AS (SELECT uid, value AS container - FROM k8s_batch_jobs - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Job containers run as non-root' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM job_containers WHERE job_containers.uid = k8s_batch_jobs.uid AND - job_containers.container->'securityContext'->>'runAsNonRoot' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_batch_jobs \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_container_privilege_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/pod_container_privilege_disabled.sql deleted file mode 100644 index 4272261e165bbc..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_container_privilege_disabled.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH pod_containers AS (SELECT uid, value AS container - FROM k8s_core_pods - CROSS JOIN jsonb_array_elements(spec_containers) AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod container privileged access disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM pod_containers WHERE pod_containers.uid = k8s_core_pods.uid AND - pod_containers.container->'securityContext'->>'privileged' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; - diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_container_privilege_escalation_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/pod_container_privilege_escalation_disabled.sql deleted file mode 100644 index bb164d3bcfe194..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_container_privilege_escalation_disabled.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH pod_containers AS (SELECT uid, value AS container - FROM k8s_core_pods - CROSS JOIN jsonb_array_elements(spec_containers) AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod container privilege escalation disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM pod_containers WHERE pod_containers.uid = k8s_core_pods.uid AND - pod_containers.container->'securityContext'->>'allowPrivilegeEscalation' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_host_network_access_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/pod_host_network_access_disabled.sql deleted file mode 100644 index 1260207c8ef5e6..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_host_network_access_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pods container hostNetwork disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_host_network - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_hostpid_hostipc_sharing_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/pod_hostpid_hostipc_sharing_disabled.sql deleted file mode 100644 index 5ce9480d386dd7..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_hostpid_hostipc_sharing_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod containers HostPID and HostIPC sharing disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_host_pid OR spec_host_ipc - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_immutable_container_filesystem.sql b/plugins/source/k8s/policies/queries/pod_security/pod_immutable_container_filesystem.sql deleted file mode 100644 index b8c6761b6b0f8f..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_immutable_container_filesystem.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH pod_containers AS (SELECT uid, value AS container - FROM k8s_core_pods - CROSS JOIN jsonb_array_elements(spec_containers) AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod container filesystem is read-ony' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM pod_containers WHERE pod_containers.uid = k8s_core_pods.uid AND - pod_containers.container->'securityContext'->>'readOnlyRootFilesystem' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_non_root_container.sql b/plugins/source/k8s/policies/queries/pod_security/pod_non_root_container.sql deleted file mode 100644 index 41d4c9e327c7fa..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_non_root_container.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH pod_containers AS (SELECT uid, value AS container - FROM k8s_core_pods - CROSS JOIN jsonb_array_elements(spec_containers) AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod container runs as non-root' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM pod_containers WHERE pod_containers.uid = k8s_core_pods.uid AND - pod_containers.container->'securityContext'->>'runAsNonRoot' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_service_account_token_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/pod_service_account_token_disabled.sql deleted file mode 100644 index 2d4ea27f7d4206..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_service_account_token_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select DISTINCT uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod service account tokens disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_automount_service_account_token - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods diff --git a/plugins/source/k8s/policies/queries/pod_security/pod_volume_host_path.sql b/plugins/source/k8s/policies/queries/pod_security/pod_volume_host_path.sql deleted file mode 100644 index 2095fe71b96b42..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/pod_volume_host_path.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH pod_volumes AS (SELECT uid, value AS volumes - FROM k8s_core_pods - CROSS JOIN jsonb_array_elements(spec_volumes) AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod volume don''t have a hostPath' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM pod_volumes WHERE pod_volumes.uid = k8s_core_pods.uid AND - pod_volumes.volumes->>'hostPath' IS NOT NULL) > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_pods; diff --git a/plugins/source/k8s/policies/queries/pod_security/replicaset_container_privilege_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/replicaset_container_privilege_disabled.sql deleted file mode 100644 index 3d21fad92ed9be..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/replicaset_container_privilege_disabled.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Replicaset privileges disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'securityContext'->>'privileged' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets; - diff --git a/plugins/source/k8s/policies/queries/pod_security/replicaset_container_privilege_escalation_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/replicaset_container_privilege_escalation_disabled.sql deleted file mode 100644 index 1cc00d6e8d44f1..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/replicaset_container_privilege_escalation_disabled.sql +++ /dev/null @@ -1,21 +0,0 @@ -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'ReplicaSet container privileged escalation disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE WHEN - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'securityContext'->>'privileged' = 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/replicaset_host_network_access_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/replicaset_host_network_access_disabled.sql deleted file mode 100644 index 118c0ab183cbc9..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/replicaset_host_network_access_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'ReplicaSet container hostNetwork disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostNetwork' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets; diff --git a/plugins/source/k8s/policies/queries/pod_security/replicaset_hostpid_hostipc_sharing_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/replicaset_hostpid_hostipc_sharing_disabled.sql deleted file mode 100644 index 2e8ccf8205901f..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/replicaset_hostpid_hostipc_sharing_disabled.sql +++ /dev/null @@ -1,18 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'ReplicaSet containers HostPID and HostIPC sharing disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - spec_template -> 'spec' ->> 'hostPID' = 'true' - OR spec_template -> 'spec' ->> 'hostIPC' = 'true' - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/replicaset_immutable_container_filesystem.sql b/plugins/source/k8s/policies/queries/pod_security/replicaset_immutable_container_filesystem.sql deleted file mode 100644 index 51a1e032f3197e..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/replicaset_immutable_container_filesystem.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'ReplicaSet containers root file system is read-only' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'securityContext' ->> 'readOnlyRootFilesystem' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/replicaset_non_root_container.sql b/plugins/source/k8s/policies/queries/pod_security/replicaset_non_root_container.sql deleted file mode 100644 index f9b3dee2a56c61..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/replicaset_non_root_container.sql +++ /dev/null @@ -1,22 +0,0 @@ -WITH replica_set_containers AS (SELECT uid, value AS container - FROM k8s_apps_replica_sets - CROSS JOIN jsonb_array_elements(spec_template->'spec'->'containers') AS value) - -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'ReplicaSet containers must run as non-root' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - (SELECT COUNT(*) FROM replica_set_containers WHERE replica_set_containers.uid = k8s_apps_replica_sets.uid AND - replica_set_containers.container->'securityContext' ->> 'runAsNonRoot' IS DISTINCT FROM 'true') > 0 - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_apps_replica_sets; \ No newline at end of file diff --git a/plugins/source/k8s/policies/queries/pod_security/service_account_token_disabled.sql b/plugins/source/k8s/policies/queries/pod_security/service_account_token_disabled.sql deleted file mode 100644 index a8e503afbd6369..00000000000000 --- a/plugins/source/k8s/policies/queries/pod_security/service_account_token_disabled.sql +++ /dev/null @@ -1,17 +0,0 @@ -INSERT INTO k8s_policy_results (resource_id, execution_time, framework, check_id, title, context, namespace, - resource_name, status) -select DISTINCT uid AS resource_id, - :'execution_time'::timestamp AS execution_time, - :'framework' AS framework, - :'check_id' AS check_id, - 'Pod service account tokens disabled' AS title, - context AS context, - namespace AS namespace, - name AS resource_name, - CASE - WHEN - automount_service_account_token - THEN 'fail' - ELSE 'pass' - END AS status -FROM k8s_core_service_accounts diff --git a/plugins/source/k8s/policies_v0/README.md b/plugins/source/k8s/policies_v0/README.md deleted file mode 100644 index bcb17d737c65b6..00000000000000 --- a/plugins/source/k8s/policies_v0/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Policies V0 (Policies for old CQ) - -If you are still using CloudQuery V0 and looking for the old policies take a look at this [commit](https://github.com/cloudquery/cloudquery/tree/e24f55e5fe41dfd930a0b2493a6a904e52060c46/plugins/source/aws/policies). \ No newline at end of file diff --git a/plugins/source/k8s/resources/plugin/plugin.go b/plugins/source/k8s/resources/plugin/plugin.go deleted file mode 100644 index 27fa94292d692d..00000000000000 --- a/plugins/source/k8s/resources/plugin/plugin.go +++ /dev/null @@ -1,188 +0,0 @@ -package plugin - -import ( - "context" - "encoding/json" - "fmt" - "strings" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/client/spec" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/admissionregistration" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/apps" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/autoscaling" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/batch" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/certificates" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/coordination" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/core" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/crd" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/discovery" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/networking" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/nodes" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/policy" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/rbac" - "github.com/cloudquery/cloudquery/plugins/source/k8s/resources/services/storage" - "github.com/cloudquery/plugin-sdk/v4/caser" - "github.com/cloudquery/plugin-sdk/v4/docs" - "github.com/cloudquery/plugin-sdk/v4/message" - "github.com/cloudquery/plugin-sdk/v4/plugin" - "github.com/cloudquery/plugin-sdk/v4/scheduler" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/rs/zerolog" - "golang.org/x/exp/maps" -) - -var ( - Name = "k8s" - Kind = "source" - Team = "cloudquery" - Version = "development" -) - -var googleAdsExceptions = map[string]string{ - "admissionregistration": "Admission Registration", - "crds": "Custom Resource Definitions (CRDs)", - "csi": "Container Storage Interface (CSI)", - "hpas": "Horizontal Pod Autoscalers (HPAs)", - "k8s": "Kubernetes (K8s)", - "pvcs": "Persistent Volume Claims (PVCs)", - "pvs": "Persistent Volumes (PVs)", - "rbac": "Role-Based Access Control (RBAC)", -} - -func titleTransformer(table *schema.Table) error { - if table.Title != "" { - return nil - } - exceptions := maps.Clone(docs.DefaultTitleExceptions) - for k, v := range googleAdsExceptions { - exceptions[k] = v - } - csr := caser.New(caser.WithCustomExceptions(exceptions)) - t := csr.ToTitle(table.Name) - table.Title = strings.Trim(strings.ReplaceAll(t, " ", " "), " ") - return nil -} - -type Client struct { - plugin.UnimplementedDestination - scheduler *scheduler.Scheduler - syncClient *client.Client - options plugin.NewClientOptions - allTables schema.Tables -} - -func newClient(ctx context.Context, logger zerolog.Logger, specBytes []byte, options plugin.NewClientOptions) (plugin.Client, error) { - c := &Client{ - options: options, - allTables: getTables(), - } - if options.NoConnection { - return c, nil - } - s := &spec.Spec{} - if err := json.Unmarshal(specBytes, s); err != nil { - return nil, err - } - s.SetDefaults() - syncClient, err := client.Configure(ctx, logger, *s) - if err != nil { - return nil, err - } - c.syncClient = syncClient.(*client.Client) - c.scheduler = scheduler.NewScheduler( - scheduler.WithLogger(logger), - scheduler.WithConcurrency(s.Concurrency), - scheduler.WithInvocationID(options.InvocationID), - ) - return c, nil -} - -func (*Client) Close(_ context.Context) error { - return nil -} - -func (c *Client) Tables(_ context.Context, options plugin.TableOptions) (schema.Tables, error) { - return c.allTables.FilterDfs(options.Tables, options.SkipTables, options.SkipDependentTables) -} - -func (c *Client) Sync(ctx context.Context, options plugin.SyncOptions, res chan<- message.SyncMessage) error { - if c.options.NoConnection { - return fmt.Errorf("no connection") - } - tables, err := c.allTables.FilterDfs(options.Tables, options.SkipTables, options.SkipDependentTables) - if err != nil { - return err - } - return c.scheduler.Sync(ctx, c.syncClient, tables, res, scheduler.WithSyncDeterministicCQID(options.DeterministicCQID)) -} - -func getTables() schema.Tables { - tables := []*schema.Table{ - discovery.EndpointSlices(), - admissionregistration.MutatingWebhookConfigurations(), - admissionregistration.ValidatingWebhookConfigurations(), - apps.DaemonSets(), - apps.Deployments(), - apps.ReplicaSets(), - apps.StatefulSets(), - autoscaling.Hpas(), - batch.Jobs(), - batch.CronJobs(), - certificates.SigningRequests(), - coordination.Leases(), - core.ComponentStatuses(), - core.ConfigMaps(), - core.Endpoints(), - core.Events(), - core.LimitRanges(), - core.Namespaces(), - core.Nodes(), - core.Pvs(), - core.Pvcs(), - core.Pods(), - core.PodTemplates(), - core.ReplicationControllers(), - core.ResourceQuotas(), - core.Secrets(), - core.Services(), - core.ServiceAccounts(), - crd.CRDs(), - networking.Ingresses(), - networking.NetworkPolicies(), - networking.IngressClasses(), - nodes.RuntimeClasses(), - rbac.ClusterRoles(), - rbac.ClusterRoleBindings(), - rbac.Roles(), - rbac.RoleBindings(), - policy.PodDisruptionBudgets(), - storage.CsiDrivers(), - storage.CsiNodes(), - storage.CsiStorageCapacities(), - storage.StorageClasses(), - storage.VolumeAttachments(), - } - if err := transformers.TransformTables(tables); err != nil { - panic(err) - } - if err := transformers.Apply(tables, titleTransformer); err != nil { - panic(err) - } - for _, table := range tables { - schema.AddCqIDs(table) - } - return tables -} - -func Plugin() *plugin.Plugin { - return plugin.NewPlugin( - Name, - Version, - newClient, - plugin.WithJSONSchema(spec.JSONSchema), - plugin.WithKind(Kind), - plugin.WithTeam(Team), - ) -} diff --git a/plugins/source/k8s/resources/services/admissionregistration/mutating_webhook_configurations.go b/plugins/source/k8s/resources/services/admissionregistration/mutating_webhook_configurations.go deleted file mode 100644 index 19683f5edb1f6c..00000000000000 --- a/plugins/source/k8s/resources/services/admissionregistration/mutating_webhook_configurations.go +++ /dev/null @@ -1,38 +0,0 @@ -package admissionregistration - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/admissionregistration/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func MutatingWebhookConfigurations() *schema.Table { - return &schema.Table{ - Name: "k8s_admissionregistration_mutating_webhook_configurations", - Resolver: fetchMutatingWebhookConfigurations, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.MutatingWebhookConfiguration{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchMutatingWebhookConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AdmissionregistrationV1().MutatingWebhookConfigurations() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/admissionregistration/mutating_webhook_configurations_test.go b/plugins/source/k8s/resources/services/admissionregistration/mutating_webhook_configurations_test.go deleted file mode 100644 index 25279d884c2f50..00000000000000 --- a/plugins/source/k8s/resources/services/admissionregistration/mutating_webhook_configurations_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package admissionregistration - -import ( - "testing" - - client "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - mocks "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/admissionregistration/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/admissionregistration/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createMutatingWebhookConfigurations(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.MutatingWebhookConfiguration{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockMutatingWebhookConfigurationInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.MutatingWebhookConfigurationList{Items: []resource.MutatingWebhookConfiguration{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAdmissionregistrationV1Interface(ctrl) - - serviceClient.EXPECT().MutatingWebhookConfigurations().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AdmissionregistrationV1().Return(serviceClient) - - return cl -} - -func TestMutatingWebhookConfigurations(t *testing.T) { - client.K8sMockTestHelper(t, MutatingWebhookConfigurations(), createMutatingWebhookConfigurations) -} diff --git a/plugins/source/k8s/resources/services/admissionregistration/validating_webhook_configurations.go b/plugins/source/k8s/resources/services/admissionregistration/validating_webhook_configurations.go deleted file mode 100644 index 983851a28cd3af..00000000000000 --- a/plugins/source/k8s/resources/services/admissionregistration/validating_webhook_configurations.go +++ /dev/null @@ -1,38 +0,0 @@ -package admissionregistration - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/admissionregistration/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ValidatingWebhookConfigurations() *schema.Table { - return &schema.Table{ - Name: "k8s_admissionregistration_validating_webhook_configurations", - Resolver: fetchValidatingWebhookConfigurations, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ValidatingWebhookConfiguration{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchValidatingWebhookConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AdmissionregistrationV1().ValidatingWebhookConfigurations() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/admissionregistration/validating_webhook_configurations_test.go b/plugins/source/k8s/resources/services/admissionregistration/validating_webhook_configurations_test.go deleted file mode 100644 index 4467627f014151..00000000000000 --- a/plugins/source/k8s/resources/services/admissionregistration/validating_webhook_configurations_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package admissionregistration - -import ( - "testing" - - client "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - mocks "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/admissionregistration/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/admissionregistration/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createValidatingWebhookConfigurations(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ValidatingWebhookConfiguration{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockValidatingWebhookConfigurationInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ValidatingWebhookConfigurationList{Items: []resource.ValidatingWebhookConfiguration{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAdmissionregistrationV1Interface(ctrl) - - serviceClient.EXPECT().ValidatingWebhookConfigurations().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AdmissionregistrationV1().Return(serviceClient) - - return cl -} - -func TestValidatingWebhookConfigurations(t *testing.T) { - client.K8sMockTestHelper(t, ValidatingWebhookConfigurations(), createValidatingWebhookConfigurations) -} diff --git a/plugins/source/k8s/resources/services/apps/daemon_sets.go b/plugins/source/k8s/resources/services/apps/daemon_sets.go deleted file mode 100644 index 2e602128002db7..00000000000000 --- a/plugins/source/k8s/resources/services/apps/daemon_sets.go +++ /dev/null @@ -1,38 +0,0 @@ -package apps - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func DaemonSets() *schema.Table { - return &schema.Table{ - Name: "k8s_apps_daemon_sets", - Resolver: fetchDaemonSets, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.DaemonSet{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchDaemonSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AppsV1().DaemonSets("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/apps/daemon_sets_test.go b/plugins/source/k8s/resources/services/apps/daemon_sets_test.go deleted file mode 100644 index 64fde78fb8f63b..00000000000000 --- a/plugins/source/k8s/resources/services/apps/daemon_sets_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package apps - -import ( - "testing" - - client "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - mocks "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - "k8s.io/apimachinery/pkg/util/intstr" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/apps/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - - corev1 "k8s.io/api/core/v1" -) - -func createDaemonSets(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.DaemonSet{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.Template = corev1.PodTemplateSpec{} - i := intstr.FromInt(5000) - r.Spec.UpdateStrategy.RollingUpdate.MaxSurge = &i - r.Spec.UpdateStrategy.RollingUpdate.MaxUnavailable = &i - - resourceClient := resourcemock.NewMockDaemonSetInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.DaemonSetList{Items: []resource.DaemonSet{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAppsV1Interface(ctrl) - - serviceClient.EXPECT().DaemonSets("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AppsV1().Return(serviceClient) - - return cl -} - -func TestDaemonSets(t *testing.T) { - client.K8sMockTestHelper(t, DaemonSets(), createDaemonSets) -} diff --git a/plugins/source/k8s/resources/services/apps/deployments.go b/plugins/source/k8s/resources/services/apps/deployments.go deleted file mode 100644 index 34a22757e0a840..00000000000000 --- a/plugins/source/k8s/resources/services/apps/deployments.go +++ /dev/null @@ -1,38 +0,0 @@ -package apps - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Deployments() *schema.Table { - return &schema.Table{ - Name: "k8s_apps_deployments", - Resolver: fetchDeployments, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Deployment{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AppsV1().Deployments("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/apps/deployments_test.go b/plugins/source/k8s/resources/services/apps/deployments_test.go deleted file mode 100644 index 7b8da83d76be6e..00000000000000 --- a/plugins/source/k8s/resources/services/apps/deployments_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package apps - -import ( - "testing" - - client "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - mocks "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - "k8s.io/apimachinery/pkg/util/intstr" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/apps/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - - corev1 "k8s.io/api/core/v1" -) - -func createDeployments(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Deployment{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.Template = corev1.PodTemplateSpec{} - i := intstr.FromInt(5000) - r.Spec.Strategy.RollingUpdate.MaxSurge = &i - r.Spec.Strategy.RollingUpdate.MaxUnavailable = &i - - resourceClient := resourcemock.NewMockDeploymentInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.DeploymentList{Items: []resource.Deployment{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAppsV1Interface(ctrl) - - serviceClient.EXPECT().Deployments("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AppsV1().Return(serviceClient) - - return cl -} - -func TestDeployments(t *testing.T) { - client.K8sMockTestHelper(t, Deployments(), createDeployments) -} diff --git a/plugins/source/k8s/resources/services/apps/replica_sets.go b/plugins/source/k8s/resources/services/apps/replica_sets.go deleted file mode 100644 index 0b454d132bc6c4..00000000000000 --- a/plugins/source/k8s/resources/services/apps/replica_sets.go +++ /dev/null @@ -1,37 +0,0 @@ -package apps - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ReplicaSets() *schema.Table { - return &schema.Table{ - Name: "k8s_apps_replica_sets", - Resolver: fetchReplicaSets, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ReplicaSet{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchReplicaSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AppsV1().ReplicaSets("") - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/apps/replica_sets_test.go b/plugins/source/k8s/resources/services/apps/replica_sets_test.go deleted file mode 100644 index cf6fd505b1bf05..00000000000000 --- a/plugins/source/k8s/resources/services/apps/replica_sets_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package apps - -import ( - "testing" - - client "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - mocks "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/apps/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - - corev1 "k8s.io/api/core/v1" -) - -func createReplicaSets(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ReplicaSet{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.Template = corev1.PodTemplateSpec{} - - resourceClient := resourcemock.NewMockReplicaSetInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ReplicaSetList{Items: []resource.ReplicaSet{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAppsV1Interface(ctrl) - - serviceClient.EXPECT().ReplicaSets("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AppsV1().Return(serviceClient) - - return cl -} - -func TestReplicaSets(t *testing.T) { - client.K8sMockTestHelper(t, ReplicaSets(), createReplicaSets) -} diff --git a/plugins/source/k8s/resources/services/apps/stateful_sets.go b/plugins/source/k8s/resources/services/apps/stateful_sets.go deleted file mode 100644 index 7562ba28f9e430..00000000000000 --- a/plugins/source/k8s/resources/services/apps/stateful_sets.go +++ /dev/null @@ -1,37 +0,0 @@ -package apps - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/apps/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func StatefulSets() *schema.Table { - return &schema.Table{ - Name: "k8s_apps_stateful_sets", - Resolver: fetchStatefulSets, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.StatefulSet{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchStatefulSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AppsV1().StatefulSets("") - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/apps/stateful_sets_test.go b/plugins/source/k8s/resources/services/apps/stateful_sets_test.go deleted file mode 100644 index 98864ac233df6c..00000000000000 --- a/plugins/source/k8s/resources/services/apps/stateful_sets_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package apps - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/apps/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/apps/v1" - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/client-go/kubernetes" -) - -func createStatefulSets(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.StatefulSet{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.Template = corev1.PodTemplateSpec{} - i := intstr.FromInt(5000) - r.Spec.UpdateStrategy.RollingUpdate.MaxUnavailable = &i - r.Spec.VolumeClaimTemplates[0].ObjectMeta.ManagedFields = nil - - resourceClient := resourcemock.NewMockStatefulSetInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.StatefulSetList{Items: []resource.StatefulSet{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAppsV1Interface(ctrl) - - serviceClient.EXPECT().StatefulSets("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AppsV1().Return(serviceClient) - - return cl -} - -func TestStatefulSets(t *testing.T) { - client.K8sMockTestHelper(t, StatefulSets(), createStatefulSets) -} diff --git a/plugins/source/k8s/resources/services/autoscaling/hpas.go b/plugins/source/k8s/resources/services/autoscaling/hpas.go deleted file mode 100644 index eab1a01d38a36d..00000000000000 --- a/plugins/source/k8s/resources/services/autoscaling/hpas.go +++ /dev/null @@ -1,38 +0,0 @@ -package autoscaling - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/autoscaling/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Hpas() *schema.Table { - return &schema.Table{ - Name: "k8s_autoscaling_hpas", - Resolver: fetchHpas, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.HorizontalPodAutoscaler{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchHpas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().AutoscalingV1().HorizontalPodAutoscalers("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/autoscaling/hpas_test.go b/plugins/source/k8s/resources/services/autoscaling/hpas_test.go deleted file mode 100644 index 0ccc60f52b4433..00000000000000 --- a/plugins/source/k8s/resources/services/autoscaling/hpas_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package autoscaling - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/autoscaling/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/autoscaling/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createHpas(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.HorizontalPodAutoscaler{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockHorizontalPodAutoscalerInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.HorizontalPodAutoscalerList{Items: []resource.HorizontalPodAutoscaler{r}}, nil, - ) - - serviceClient := resourcemock.NewMockAutoscalingV1Interface(ctrl) - - serviceClient.EXPECT().HorizontalPodAutoscalers("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().AutoscalingV1().Return(serviceClient) - - return cl -} - -func TestHpas(t *testing.T) { - client.K8sMockTestHelper(t, Hpas(), createHpas) -} diff --git a/plugins/source/k8s/resources/services/batch/cron_jobs.go b/plugins/source/k8s/resources/services/batch/cron_jobs.go deleted file mode 100644 index 617c677ba3cb2b..00000000000000 --- a/plugins/source/k8s/resources/services/batch/cron_jobs.go +++ /dev/null @@ -1,38 +0,0 @@ -package batch - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/batch/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func CronJobs() *schema.Table { - return &schema.Table{ - Name: "k8s_batch_cron_jobs", - Resolver: fetchCronJobs, - Multiplex: client.APIFilterContextMultiplex("/apis/batch/v1/cronjobs"), - Transform: client.TransformWithStruct(&v1.CronJob{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchCronJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().BatchV1().CronJobs("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/batch/cron_jobs_test.go b/plugins/source/k8s/resources/services/batch/cron_jobs_test.go deleted file mode 100644 index efabedaa064b9e..00000000000000 --- a/plugins/source/k8s/resources/services/batch/cron_jobs_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package batch - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/batch/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/batch/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createCronJobs(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.CronJob{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.JobTemplate = resource.JobTemplateSpec{} - - resourceClient := resourcemock.NewMockCronJobInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.CronJobList{Items: []resource.CronJob{r}}, nil, - ) - - serviceClient := resourcemock.NewMockBatchV1Interface(ctrl) - - serviceClient.EXPECT().CronJobs("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().BatchV1().Return(serviceClient) - - return cl -} - -func TestCronJobs(t *testing.T) { - client.K8sMockTestHelper(t, CronJobs(), createCronJobs) -} diff --git a/plugins/source/k8s/resources/services/batch/jobs.go b/plugins/source/k8s/resources/services/batch/jobs.go deleted file mode 100644 index fedf36669eff00..00000000000000 --- a/plugins/source/k8s/resources/services/batch/jobs.go +++ /dev/null @@ -1,38 +0,0 @@ -package batch - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/batch/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Jobs() *schema.Table { - return &schema.Table{ - Name: "k8s_batch_jobs", - Resolver: fetchJobs, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Job{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().BatchV1().Jobs("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/batch/jobs_test.go b/plugins/source/k8s/resources/services/batch/jobs_test.go deleted file mode 100644 index 6fc8411833186a..00000000000000 --- a/plugins/source/k8s/resources/services/batch/jobs_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package batch - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/batch/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/batch/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - - corev1 "k8s.io/api/core/v1" -) - -func createJobs(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Job{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.Template = corev1.PodTemplateSpec{} - - resourceClient := resourcemock.NewMockJobInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.JobList{Items: []resource.Job{r}}, nil, - ) - - serviceClient := resourcemock.NewMockBatchV1Interface(ctrl) - - serviceClient.EXPECT().Jobs("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().BatchV1().Return(serviceClient) - - return cl -} - -func TestJobs(t *testing.T) { - client.K8sMockTestHelper(t, Jobs(), createJobs) -} diff --git a/plugins/source/k8s/resources/services/certificates/signing_requests.go b/plugins/source/k8s/resources/services/certificates/signing_requests.go deleted file mode 100644 index 6f8bc07e447f73..00000000000000 --- a/plugins/source/k8s/resources/services/certificates/signing_requests.go +++ /dev/null @@ -1,38 +0,0 @@ -package certificates - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/certificates/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func SigningRequests() *schema.Table { - return &schema.Table{ - Name: "k8s_certificates_signing_requests", - Resolver: fetchSigningRequests, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.CertificateSigningRequest{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchSigningRequests(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CertificatesV1().CertificateSigningRequests() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/certificates/signing_requests_test.go b/plugins/source/k8s/resources/services/certificates/signing_requests_test.go deleted file mode 100644 index 3144401fc656a0..00000000000000 --- a/plugins/source/k8s/resources/services/certificates/signing_requests_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package certificates - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/certificates/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/certificates/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createSigningRequests(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.CertificateSigningRequest{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockCertificateSigningRequestInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.CertificateSigningRequestList{Items: []resource.CertificateSigningRequest{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCertificatesV1Interface(ctrl) - - serviceClient.EXPECT().CertificateSigningRequests().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CertificatesV1().Return(serviceClient) - - return cl -} - -func TestSigningRequests(t *testing.T) { - client.K8sMockTestHelper(t, SigningRequests(), createSigningRequests) -} diff --git a/plugins/source/k8s/resources/services/coordination/leases.go b/plugins/source/k8s/resources/services/coordination/leases.go deleted file mode 100644 index 801a6a2cfb0bbf..00000000000000 --- a/plugins/source/k8s/resources/services/coordination/leases.go +++ /dev/null @@ -1,38 +0,0 @@ -package coordination - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/coordination/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Leases() *schema.Table { - return &schema.Table{ - Name: "k8s_coordination_leases", - Resolver: fetchLeases, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Lease{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchLeases(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoordinationV1().Leases("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/coordination/leases_test.go b/plugins/source/k8s/resources/services/coordination/leases_test.go deleted file mode 100644 index 3dc589bbd7d697..00000000000000 --- a/plugins/source/k8s/resources/services/coordination/leases_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package coordination - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/coordination/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/coordination/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createLeases(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Lease{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockLeaseInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.LeaseList{Items: []resource.Lease{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoordinationV1Interface(ctrl) - - serviceClient.EXPECT().Leases("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoordinationV1().Return(serviceClient) - - return cl -} - -func TestLeases(t *testing.T) { - client.K8sMockTestHelper(t, Leases(), createLeases) -} diff --git a/plugins/source/k8s/resources/services/core/component_statuses.go b/plugins/source/k8s/resources/services/core/component_statuses.go deleted file mode 100644 index acac8e8d89c231..00000000000000 --- a/plugins/source/k8s/resources/services/core/component_statuses.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ComponentStatuses() *schema.Table { - return &schema.Table{ - Name: "k8s_core_component_statuses", - Resolver: fetchComponentStatuses, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ComponentStatus{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchComponentStatuses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().ComponentStatuses() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/component_statuses_test.go b/plugins/source/k8s/resources/services/core/component_statuses_test.go deleted file mode 100644 index 21c673b930417e..00000000000000 --- a/plugins/source/k8s/resources/services/core/component_statuses_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createComponentStatuses(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ComponentStatus{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockComponentStatusInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ComponentStatusList{Items: []resource.ComponentStatus{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().ComponentStatuses().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestComponentStatuses(t *testing.T) { - client.K8sMockTestHelper(t, ComponentStatuses(), createComponentStatuses) -} diff --git a/plugins/source/k8s/resources/services/core/config_maps.go b/plugins/source/k8s/resources/services/core/config_maps.go deleted file mode 100644 index be43a74037799e..00000000000000 --- a/plugins/source/k8s/resources/services/core/config_maps.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ConfigMaps() *schema.Table { - return &schema.Table{ - Name: "k8s_core_config_maps", - Resolver: fetchConfigMaps, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ConfigMap{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchConfigMaps(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().ConfigMaps("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/config_maps_test.go b/plugins/source/k8s/resources/services/core/config_maps_test.go deleted file mode 100644 index 1f1323289b8348..00000000000000 --- a/plugins/source/k8s/resources/services/core/config_maps_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createConfigMaps(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ConfigMap{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockConfigMapInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ConfigMapList{Items: []resource.ConfigMap{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().ConfigMaps("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestConfigMaps(t *testing.T) { - client.K8sMockTestHelper(t, ConfigMaps(), createConfigMaps) -} diff --git a/plugins/source/k8s/resources/services/core/endpoints.go b/plugins/source/k8s/resources/services/core/endpoints.go deleted file mode 100644 index b5cbee8666a6a2..00000000000000 --- a/plugins/source/k8s/resources/services/core/endpoints.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Endpoints() *schema.Table { - return &schema.Table{ - Name: "k8s_core_endpoints", - Resolver: fetchEndpoints, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Endpoints{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().Endpoints("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/endpoints_test.go b/plugins/source/k8s/resources/services/core/endpoints_test.go deleted file mode 100644 index 018703e7fa3591..00000000000000 --- a/plugins/source/k8s/resources/services/core/endpoints_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createEndpoints(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Endpoints{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockEndpointsInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.EndpointsList{Items: []resource.Endpoints{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Endpoints("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestEndpoints(t *testing.T) { - client.K8sMockTestHelper(t, Endpoints(), createEndpoints) -} diff --git a/plugins/source/k8s/resources/services/core/events.go b/plugins/source/k8s/resources/services/core/events.go deleted file mode 100644 index 5132425fc1ba2f..00000000000000 --- a/plugins/source/k8s/resources/services/core/events.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Events() *schema.Table { - return &schema.Table{ - Name: "k8s_core_events", - Resolver: fetchEvents, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Event{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchEvents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().Events("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/events_test.go b/plugins/source/k8s/resources/services/core/events_test.go deleted file mode 100644 index c0e27bec2ad545..00000000000000 --- a/plugins/source/k8s/resources/services/core/events_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createEvents(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Event{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockEventInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.EventList{Items: []resource.Event{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Events("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestEvents(t *testing.T) { - client.K8sMockTestHelper(t, Events(), createEvents) -} diff --git a/plugins/source/k8s/resources/services/core/limit_ranges.go b/plugins/source/k8s/resources/services/core/limit_ranges.go deleted file mode 100644 index b92807d3f76d37..00000000000000 --- a/plugins/source/k8s/resources/services/core/limit_ranges.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func LimitRanges() *schema.Table { - return &schema.Table{ - Name: "k8s_core_limit_ranges", - Resolver: fetchLimitRanges, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.LimitRange{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchLimitRanges(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().LimitRanges("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/limit_ranges_test.go b/plugins/source/k8s/resources/services/core/limit_ranges_test.go deleted file mode 100644 index ec28c8f63b264f..00000000000000 --- a/plugins/source/k8s/resources/services/core/limit_ranges_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createLimitRanges(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.LimitRange{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockLimitRangeInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.LimitRangeList{Items: []resource.LimitRange{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().LimitRanges("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestLimitRanges(t *testing.T) { - client.K8sMockTestHelper(t, LimitRanges(), createLimitRanges) -} diff --git a/plugins/source/k8s/resources/services/core/namespaces.go b/plugins/source/k8s/resources/services/core/namespaces.go deleted file mode 100644 index f6d0067cccf107..00000000000000 --- a/plugins/source/k8s/resources/services/core/namespaces.go +++ /dev/null @@ -1,44 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Namespaces() *schema.Table { - return &schema.Table{ - Name: "k8s_core_namespaces", - Resolver: fetchNamespaces, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Namespace{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchNamespaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - c := meta.(*client.Client) - if c.Namespaces() != nil { - // If we already got the namespaces we can exit early - res <- c.Namespaces() - return nil - } - cl := c.Client().CoreV1().Namespaces() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/namespaces_test.go b/plugins/source/k8s/resources/services/core/namespaces_test.go deleted file mode 100644 index ddd9f4541ad50c..00000000000000 --- a/plugins/source/k8s/resources/services/core/namespaces_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createNamespaces(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Namespace{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockNamespaceInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.NamespaceList{Items: []resource.Namespace{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Namespaces().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestNamespaces(t *testing.T) { - client.K8sMockTestHelper(t, Namespaces(), createNamespaces) -} diff --git a/plugins/source/k8s/resources/services/core/nodes.go b/plugins/source/k8s/resources/services/core/nodes.go deleted file mode 100644 index 8687f725a4e74b..00000000000000 --- a/plugins/source/k8s/resources/services/core/nodes.go +++ /dev/null @@ -1,55 +0,0 @@ -package core - -import ( - "context" - - "github.com/apache/arrow/go/v17/arrow" - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/cloudquery/plugin-sdk/v4/types" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Nodes() *schema.Table { - return &schema.Table{ - Name: "k8s_core_nodes", - Resolver: fetchNodes, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Node{}, - client.WithMoreSkipFields("DoNotUseExternalID"), - transformers.WithPrimaryKeys("UID"), - ), - Columns: schema.ColumnList{ - client.ContextColumn, - { - Name: "spec_pod_cidr", - Type: types.ExtensionTypes.Inet, - Resolver: client.StringToCidrPathResolver("Spec.PodCIDR"), - }, - { - Name: "spec_pod_cidrs", - Type: arrow.ListOf(types.ExtensionTypes.Inet), - Resolver: client.StringToCidrArrayPathResolver("Spec.PodCIDRs"), - }, - }, - } -} - -func fetchNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().Nodes() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/nodes_test.go b/plugins/source/k8s/resources/services/core/nodes_test.go deleted file mode 100644 index 2117ef5e00cb25..00000000000000 --- a/plugins/source/k8s/resources/services/core/nodes_test.go +++ /dev/null @@ -1,43 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createNodes(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Node{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.PodCIDR = "8.8.8.8" - r.Spec.PodCIDRs = []string{"8.8.8.8"} - - resourceClient := resourcemock.NewMockNodeInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.NodeList{Items: []resource.Node{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Nodes().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestNodes(t *testing.T) { - client.K8sMockTestHelper(t, Nodes(), createNodes) -} diff --git a/plugins/source/k8s/resources/services/core/pod_templates.go b/plugins/source/k8s/resources/services/core/pod_templates.go deleted file mode 100644 index 43aae82f746271..00000000000000 --- a/plugins/source/k8s/resources/services/core/pod_templates.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func PodTemplates() *schema.Table { - return &schema.Table{ - Name: "k8s_core_pod_templates", - Resolver: fetchPodTemplates, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.PodTemplate{}, - transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchPodTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().PodTemplates("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/pod_templates_test.go b/plugins/source/k8s/resources/services/core/pod_templates_test.go deleted file mode 100644 index 09a12cfc6741ae..00000000000000 --- a/plugins/source/k8s/resources/services/core/pod_templates_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package core - -import ( - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" - "testing" -) - -func createPodTemplates(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.PodTemplate{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Template = resource.PodTemplateSpec{} - - resourceClient := resourcemock.NewMockPodTemplateInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.PodTemplateList{Items: []resource.PodTemplate{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - serviceClient.EXPECT().PodTemplates("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestPodTemplates(t *testing.T) { - client.K8sMockTestHelper(t, PodTemplates(), createPodTemplates) -} diff --git a/plugins/source/k8s/resources/services/core/pods.go b/plugins/source/k8s/resources/services/core/pods.go deleted file mode 100644 index 750195c97fada5..00000000000000 --- a/plugins/source/k8s/resources/services/core/pods.go +++ /dev/null @@ -1,71 +0,0 @@ -package core - -import ( - "context" - - "github.com/apache/arrow/go/v17/arrow" - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/cloudquery/plugin-sdk/v4/types" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Pods() *schema.Table { - return &schema.Table{ - Name: "k8s_core_pods", - Resolver: fetchPods, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Pod{}, - client.WithMoreSkipFields("DeprecatedServiceAccount"), - transformers.WithPrimaryKeys("UID"), - ), - Columns: schema.ColumnList{ - client.ContextColumn, - { - Name: "status_host_ip", - Type: types.ExtensionTypes.Inet, - Resolver: client.StringToInetPathResolver("Status.HostIP"), - }, - { - Name: "status_pod_ip", - Type: types.ExtensionTypes.Inet, - Resolver: client.StringToInetPathResolver("Status.PodIP"), - }, - { - Name: "status_pod_ips", - Type: arrow.ListOf(types.ExtensionTypes.Inet), - Resolver: resolveCorePodPodIPs, - }, - }, - } -} - -func fetchPods(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().Pods("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} - -func resolveCorePodPodIPs(_ context.Context, _ schema.ClientMeta, resource *schema.Resource, c schema.Column) error { - pod := resource.Item.(v1.Pod) - ips := make([]string, 0) - - for _, ip_struct := range pod.Status.PodIPs { - ips = append(ips, ip_struct.IP) - } - - return resource.Set(c.Name, ips) -} diff --git a/plugins/source/k8s/resources/services/core/pods_test.go b/plugins/source/k8s/resources/services/core/pods_test.go deleted file mode 100644 index 8373be09fe2d31..00000000000000 --- a/plugins/source/k8s/resources/services/core/pods_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createPods(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Pod{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Status.HostIP = "8.8.8.8" - r.Status.PodIP = "1.1.1.1" - r.Status.PodIPs = []resource.PodIP{{IP: "1.1.1.1"}} - r.Spec.Containers = []resource.Container{{Name: "test"}} - r.Spec.InitContainers = []resource.Container{{Name: "test"}} - - resourceClient := resourcemock.NewMockPodInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.PodList{Items: []resource.Pod{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Pods("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestPods(t *testing.T) { - client.K8sMockTestHelper(t, Pods(), createPods) -} diff --git a/plugins/source/k8s/resources/services/core/pvcs.go b/plugins/source/k8s/resources/services/core/pvcs.go deleted file mode 100644 index b3d120f42227af..00000000000000 --- a/plugins/source/k8s/resources/services/core/pvcs.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Pvcs() *schema.Table { - return &schema.Table{ - Name: "k8s_core_pvcs", - Resolver: fetchPvcs, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.PersistentVolumeClaim{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchPvcs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().PersistentVolumeClaims("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/pvcs_test.go b/plugins/source/k8s/resources/services/core/pvcs_test.go deleted file mode 100644 index 5216c3355d66b5..00000000000000 --- a/plugins/source/k8s/resources/services/core/pvcs_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createPvcs(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.PersistentVolumeClaim{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockPersistentVolumeClaimInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.PersistentVolumeClaimList{Items: []resource.PersistentVolumeClaim{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().PersistentVolumeClaims("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestPvcs(t *testing.T) { - client.K8sMockTestHelper(t, Pvcs(), createPvcs) -} diff --git a/plugins/source/k8s/resources/services/core/pvs.go b/plugins/source/k8s/resources/services/core/pvs.go deleted file mode 100644 index 475a57f1c86080..00000000000000 --- a/plugins/source/k8s/resources/services/core/pvs.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Pvs() *schema.Table { - return &schema.Table{ - Name: "k8s_core_pvs", - Resolver: fetchPvs, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.PersistentVolume{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchPvs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().PersistentVolumes() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/pvs_test.go b/plugins/source/k8s/resources/services/core/pvs_test.go deleted file mode 100644 index 9d1d82257fa251..00000000000000 --- a/plugins/source/k8s/resources/services/core/pvs_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createPvs(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.PersistentVolume{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockPersistentVolumeInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.PersistentVolumeList{Items: []resource.PersistentVolume{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().PersistentVolumes().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestPvs(t *testing.T) { - client.K8sMockTestHelper(t, Pvs(), createPvs) -} diff --git a/plugins/source/k8s/resources/services/core/replication_controllers.go b/plugins/source/k8s/resources/services/core/replication_controllers.go deleted file mode 100644 index 02b47d9d58a7ed..00000000000000 --- a/plugins/source/k8s/resources/services/core/replication_controllers.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ReplicationControllers() *schema.Table { - return &schema.Table{ - Name: "k8s_core_replication_controllers", - Resolver: fetchReplicationControllers, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ReplicationController{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchReplicationControllers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().ReplicationControllers("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/replication_controllers_test.go b/plugins/source/k8s/resources/services/core/replication_controllers_test.go deleted file mode 100644 index bda9058832582c..00000000000000 --- a/plugins/source/k8s/resources/services/core/replication_controllers_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createReplicationControllers(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ReplicationController{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.Template = &resource.PodTemplateSpec{} - - resourceClient := resourcemock.NewMockReplicationControllerInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ReplicationControllerList{Items: []resource.ReplicationController{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().ReplicationControllers("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestReplicationControllers(t *testing.T) { - client.K8sMockTestHelper(t, ReplicationControllers(), createReplicationControllers) -} diff --git a/plugins/source/k8s/resources/services/core/resource_quotas.go b/plugins/source/k8s/resources/services/core/resource_quotas.go deleted file mode 100644 index 6536c950dcc5a7..00000000000000 --- a/plugins/source/k8s/resources/services/core/resource_quotas.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ResourceQuotas() *schema.Table { - return &schema.Table{ - Name: "k8s_core_resource_quotas", - Resolver: fetchResourceQuotas, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ResourceQuota{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchResourceQuotas(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().ResourceQuotas("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/resource_quotas_test.go b/plugins/source/k8s/resources/services/core/resource_quotas_test.go deleted file mode 100644 index 3fdb8bcf788606..00000000000000 --- a/plugins/source/k8s/resources/services/core/resource_quotas_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createResourceQuotas(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ResourceQuota{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockResourceQuotaInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ResourceQuotaList{Items: []resource.ResourceQuota{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().ResourceQuotas("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestResourceQuotas(t *testing.T) { - client.K8sMockTestHelper(t, ResourceQuotas(), createResourceQuotas) -} diff --git a/plugins/source/k8s/resources/services/core/secrets.go b/plugins/source/k8s/resources/services/core/secrets.go deleted file mode 100644 index 2f068d90e0c431..00000000000000 --- a/plugins/source/k8s/resources/services/core/secrets.go +++ /dev/null @@ -1,41 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Secrets() *schema.Table { - return &schema.Table{ - Name: "k8s_core_secrets", - Resolver: fetchSecrets, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Secret{}, - client.WithMoreSkipFields("Data", "StringData"), - transformers.WithPrimaryKeys("UID"), - ), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchSecrets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().Secrets("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/secrets_test.go b/plugins/source/k8s/resources/services/core/secrets_test.go deleted file mode 100644 index d6e2953eec1f8a..00000000000000 --- a/plugins/source/k8s/resources/services/core/secrets_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createSecrets(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Secret{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockSecretInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.SecretList{Items: []resource.Secret{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Secrets("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestSecrets(t *testing.T) { - client.K8sMockTestHelper(t, Secrets(), createSecrets) -} diff --git a/plugins/source/k8s/resources/services/core/service_accounts.go b/plugins/source/k8s/resources/services/core/service_accounts.go deleted file mode 100644 index fe76c26d4daa7c..00000000000000 --- a/plugins/source/k8s/resources/services/core/service_accounts.go +++ /dev/null @@ -1,38 +0,0 @@ -package core - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ServiceAccounts() *schema.Table { - return &schema.Table{ - Name: "k8s_core_service_accounts", - Resolver: fetchServiceAccounts, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ServiceAccount{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchServiceAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().ServiceAccounts("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/service_accounts_test.go b/plugins/source/k8s/resources/services/core/service_accounts_test.go deleted file mode 100644 index ccecf12b515e60..00000000000000 --- a/plugins/source/k8s/resources/services/core/service_accounts_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createServiceAccounts(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ServiceAccount{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockServiceAccountInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ServiceAccountList{Items: []resource.ServiceAccount{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().ServiceAccounts("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestServiceAccounts(t *testing.T) { - client.K8sMockTestHelper(t, ServiceAccounts(), createServiceAccounts) -} diff --git a/plugins/source/k8s/resources/services/core/services.go b/plugins/source/k8s/resources/services/core/services.go deleted file mode 100644 index 2edc239dc60754..00000000000000 --- a/plugins/source/k8s/resources/services/core/services.go +++ /dev/null @@ -1,62 +0,0 @@ -package core - -import ( - "context" - - "github.com/apache/arrow/go/v17/arrow" - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/cloudquery/plugin-sdk/v4/types" - v1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Services() *schema.Table { - return &schema.Table{ - Name: "k8s_core_services", - Resolver: fetchServices, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Service{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{ - client.ContextColumn, - { - Name: "spec_cluster_ip", - Type: types.ExtensionTypes.Inet, - Resolver: client.StringToInetPathResolver("Spec.ClusterIP"), - }, - { - Name: "spec_cluster_ips", - Type: arrow.ListOf(types.ExtensionTypes.Inet), - Resolver: client.StringToInetArrayPathResolver("Spec.ClusterIPs"), - }, - { - Name: "spec_external_ips", - Type: arrow.ListOf(types.ExtensionTypes.Inet), - Resolver: client.StringToInetArrayPathResolver("Spec.ExternalIPs"), - }, - { - Name: "spec_load_balancer_ip", - Type: types.ExtensionTypes.Inet, - Resolver: client.StringToInetPathResolver("Spec.LoadBalancerIP"), - }, - }, - } -} - -func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().CoreV1().Services("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/core/services_test.go b/plugins/source/k8s/resources/services/core/services_test.go deleted file mode 100644 index 1c22caeced54b2..00000000000000 --- a/plugins/source/k8s/resources/services/core/services_test.go +++ /dev/null @@ -1,47 +0,0 @@ -package core - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - "k8s.io/apimachinery/pkg/util/intstr" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/core/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createServices(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Service{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - r.Spec.ClusterIP = "8.8.8.8" - r.Spec.ClusterIPs = []string{"1.1.1.1"} - r.Spec.ExternalIPs = []string{"1.1.1.1"} - r.Spec.LoadBalancerIP = "1.1.1.1" - r.Spec.Ports[0].TargetPort = intstr.FromInt(80) - - resourceClient := resourcemock.NewMockServiceInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ServiceList{Items: []resource.Service{r}}, nil, - ) - - serviceClient := resourcemock.NewMockCoreV1Interface(ctrl) - - serviceClient.EXPECT().Services("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().CoreV1().Return(serviceClient) - - return cl -} - -func TestServices(t *testing.T) { - client.K8sMockTestHelper(t, Services(), createServices) -} diff --git a/plugins/source/k8s/resources/services/crd/crds.go b/plugins/source/k8s/resources/services/crd/crds.go deleted file mode 100644 index 3f969c0f43c37d..00000000000000 --- a/plugins/source/k8s/resources/services/crd/crds.go +++ /dev/null @@ -1,38 +0,0 @@ -package crd - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func CRDs() *schema.Table { - return &schema.Table{ - Name: "k8s_crds", - Resolver: fetchCRDs, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(new(v1.CustomResourceDefinition), transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchCRDs(ctx context.Context, meta schema.ClientMeta, _ *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).APIExtensions().ApiextensionsV1().CustomResourceDefinitions() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/crd/crds_test.go b/plugins/source/k8s/resources/services/crd/crds_test.go deleted file mode 100644 index ce116874355a18..00000000000000 --- a/plugins/source/k8s/resources/services/crd/crds_test.go +++ /dev/null @@ -1,37 +0,0 @@ -package crd - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/apiextensions" - mocks "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/apiextensions/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" - apiextensionsclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func createCRDs(t *testing.T, ctrl *gomock.Controller) apiextensionsclientset.Interface { - var crd resource.CustomResourceDefinition - if err := faker.FakeObject(&crd); err != nil { - t.Fatal(err) - } - - resourceClient := mocks.NewMockCustomResourceDefinitionInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.CustomResourceDefinitionList{Items: []resource.CustomResourceDefinition{crd}}, nil, - ) - - serviceClient := mocks.NewMockApiextensionsV1Interface(ctrl) - serviceClient.EXPECT().CustomResourceDefinitions().Return(resourceClient) - - cl := apiextensions.NewMockInterface(ctrl) - cl.EXPECT().ApiextensionsV1().Return(serviceClient) - return cl -} - -func TestCRDs(t *testing.T) { - client.APIExtensionsMockTestHelper(t, CRDs(), createCRDs) -} diff --git a/plugins/source/k8s/resources/services/discovery/endpoint_slices.go b/plugins/source/k8s/resources/services/discovery/endpoint_slices.go deleted file mode 100644 index ca4b82dfb7f1b9..00000000000000 --- a/plugins/source/k8s/resources/services/discovery/endpoint_slices.go +++ /dev/null @@ -1,38 +0,0 @@ -package discovery - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/discovery/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func EndpointSlices() *schema.Table { - return &schema.Table{ - Name: "k8s_discovery_endpoint_slices", - Resolver: fetchEndpointSlices, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.EndpointSlice{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchEndpointSlices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().DiscoveryV1().EndpointSlices("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/discovery/endpoint_slices_test.go b/plugins/source/k8s/resources/services/discovery/endpoint_slices_test.go deleted file mode 100644 index 5eab900d1c7901..00000000000000 --- a/plugins/source/k8s/resources/services/discovery/endpoint_slices_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package discovery - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/discovery/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/discovery/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createEndpointSlices(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.EndpointSlice{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockEndpointSliceInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.EndpointSliceList{Items: []resource.EndpointSlice{r}}, nil, - ) - - serviceClient := resourcemock.NewMockDiscoveryV1Interface(ctrl) - - serviceClient.EXPECT().EndpointSlices("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().DiscoveryV1().Return(serviceClient) - - return cl -} - -func TestEndpointSlices(t *testing.T) { - client.K8sMockTestHelper(t, EndpointSlices(), createEndpointSlices) -} diff --git a/plugins/source/k8s/resources/services/networking/ingress_classes.go b/plugins/source/k8s/resources/services/networking/ingress_classes.go deleted file mode 100644 index 1da9fb7b746811..00000000000000 --- a/plugins/source/k8s/resources/services/networking/ingress_classes.go +++ /dev/null @@ -1,38 +0,0 @@ -package networking - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/networking/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func IngressClasses() *schema.Table { - return &schema.Table{ - Name: "k8s_networking_ingress_classes", - Resolver: fetchIngressClasses, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.IngressClass{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchIngressClasses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().NetworkingV1().IngressClasses() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/networking/ingress_classes_test.go b/plugins/source/k8s/resources/services/networking/ingress_classes_test.go deleted file mode 100644 index 3b3b5a03624440..00000000000000 --- a/plugins/source/k8s/resources/services/networking/ingress_classes_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package networking - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/networking/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/networking/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createIngressClasses(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.IngressClass{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockIngressClassInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.IngressClassList{Items: []resource.IngressClass{r}}, nil, - ) - - serviceClient := resourcemock.NewMockNetworkingV1Interface(ctrl) - - serviceClient.EXPECT().IngressClasses().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().NetworkingV1().Return(serviceClient) - - return cl -} - -func TestIngressClasses(t *testing.T) { - client.K8sMockTestHelper(t, IngressClasses(), createIngressClasses) -} diff --git a/plugins/source/k8s/resources/services/networking/ingresses.go b/plugins/source/k8s/resources/services/networking/ingresses.go deleted file mode 100644 index 158f0bd7a5482f..00000000000000 --- a/plugins/source/k8s/resources/services/networking/ingresses.go +++ /dev/null @@ -1,38 +0,0 @@ -package networking - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/networking/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Ingresses() *schema.Table { - return &schema.Table{ - Name: "k8s_networking_ingresses", - Resolver: fetchIngresses, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Ingress{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchIngresses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().NetworkingV1().Ingresses("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/networking/ingresses_test.go b/plugins/source/k8s/resources/services/networking/ingresses_test.go deleted file mode 100644 index 6eaceecca31652..00000000000000 --- a/plugins/source/k8s/resources/services/networking/ingresses_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package networking - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/networking/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/networking/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createIngresses(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Ingress{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockIngressInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.IngressList{Items: []resource.Ingress{r}}, nil, - ) - - serviceClient := resourcemock.NewMockNetworkingV1Interface(ctrl) - - serviceClient.EXPECT().Ingresses("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().NetworkingV1().Return(serviceClient) - - return cl -} - -func TestIngresses(t *testing.T) { - client.K8sMockTestHelper(t, Ingresses(), createIngresses) -} diff --git a/plugins/source/k8s/resources/services/networking/network_policies.go b/plugins/source/k8s/resources/services/networking/network_policies.go deleted file mode 100644 index e4c37528a06a89..00000000000000 --- a/plugins/source/k8s/resources/services/networking/network_policies.go +++ /dev/null @@ -1,38 +0,0 @@ -package networking - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/networking/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func NetworkPolicies() *schema.Table { - return &schema.Table{ - Name: "k8s_networking_network_policies", - Resolver: fetchNetworkPolicies, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.NetworkPolicy{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchNetworkPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().NetworkingV1().NetworkPolicies("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/networking/network_policies_test.go b/plugins/source/k8s/resources/services/networking/network_policies_test.go deleted file mode 100644 index b8bd626758fb11..00000000000000 --- a/plugins/source/k8s/resources/services/networking/network_policies_test.go +++ /dev/null @@ -1,45 +0,0 @@ -package networking - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - "k8s.io/apimachinery/pkg/util/intstr" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/networking/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/networking/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createNetworkPolicies(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.NetworkPolicy{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - p := intstr.FromInt(80) - r.Spec.Ingress[0].Ports[0].Port = &p - r.Spec.Egress[0].Ports[0].Port = &p - - resourceClient := resourcemock.NewMockNetworkPolicyInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.NetworkPolicyList{Items: []resource.NetworkPolicy{r}}, nil, - ) - - serviceClient := resourcemock.NewMockNetworkingV1Interface(ctrl) - - serviceClient.EXPECT().NetworkPolicies("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().NetworkingV1().Return(serviceClient) - - return cl -} - -func TestNetworkPolicies(t *testing.T) { - client.K8sMockTestHelper(t, NetworkPolicies(), createNetworkPolicies) -} diff --git a/plugins/source/k8s/resources/services/nodes/runtime_classes.go b/plugins/source/k8s/resources/services/nodes/runtime_classes.go deleted file mode 100644 index a8de866c3349ae..00000000000000 --- a/plugins/source/k8s/resources/services/nodes/runtime_classes.go +++ /dev/null @@ -1,38 +0,0 @@ -package nodes - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/node/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func RuntimeClasses() *schema.Table { - return &schema.Table{ - Name: "k8s_nodes_runtime_classes", - Resolver: fetchRuntimeClasses, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.RuntimeClass{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchRuntimeClasses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().NodeV1().RuntimeClasses() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/nodes/runtime_classes_test.go b/plugins/source/k8s/resources/services/nodes/runtime_classes_test.go deleted file mode 100644 index 9ef5c6097805de..00000000000000 --- a/plugins/source/k8s/resources/services/nodes/runtime_classes_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package nodes - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/node/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/node/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createRuntimeClasses(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.RuntimeClass{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockRuntimeClassInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.RuntimeClassList{Items: []resource.RuntimeClass{r}}, nil, - ) - - serviceClient := resourcemock.NewMockNodeV1Interface(ctrl) - - serviceClient.EXPECT().RuntimeClasses().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().NodeV1().Return(serviceClient) - - return cl -} - -func TestRuntimeClasses(t *testing.T) { - client.K8sMockTestHelper(t, RuntimeClasses(), createRuntimeClasses) -} diff --git a/plugins/source/k8s/resources/services/policy/pod_disruption_budgets.go b/plugins/source/k8s/resources/services/policy/pod_disruption_budgets.go deleted file mode 100644 index 8bb1b88e9fac6b..00000000000000 --- a/plugins/source/k8s/resources/services/policy/pod_disruption_budgets.go +++ /dev/null @@ -1,39 +0,0 @@ -package policy - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - policy "k8s.io/api/policy/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func PodDisruptionBudgets() *schema.Table { - return &schema.Table{ - Name: "k8s_policy_pod_disruption_budgets", - Resolver: fetchPodDisruptionBudgets, - Multiplex: client.ContextNamespaceMultiplex, - Transform: client.TransformWithStruct(&policy.PodDisruptionBudget{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchPodDisruptionBudgets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - c := meta.(*client.Client) - cl := c.Client().PolicyV1().PodDisruptionBudgets(c.Namespace) - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/policy/pod_disruption_budgets_test.go b/plugins/source/k8s/resources/services/policy/pod_disruption_budgets_test.go deleted file mode 100644 index bb8bf415a99615..00000000000000 --- a/plugins/source/k8s/resources/services/policy/pod_disruption_budgets_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package policy - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/policy/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - v1 "k8s.io/api/core/v1" - policy "k8s.io/api/policy/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/util/intstr" - "k8s.io/client-go/kubernetes" -) - -func createPodDisruptionBudgets(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := policy.PodDisruptionBudget{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - r.Spec.MinAvailable = &intstr.IntOrString{IntVal: 1} - r.Spec.MaxUnavailable = &intstr.IntOrString{IntVal: 2} - - resourceClient := resourcemock.NewMockPodDisruptionBudgetInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &policy.PodDisruptionBudgetList{Items: []policy.PodDisruptionBudget{r}}, nil, - ) - - serviceClient := resourcemock.NewMockPolicyV1Interface(ctrl) - - serviceClient.EXPECT().PodDisruptionBudgets("default").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().PolicyV1().Return(serviceClient) - - return cl -} - -func TestPodDisruptionBudgets(t *testing.T) { - client.K8sMockTestHelper(t, PodDisruptionBudgets(), createPodDisruptionBudgets, client.WithTestNamespaces(v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "default"}})) -} diff --git a/plugins/source/k8s/resources/services/rbac/cluster_role_bindings.go b/plugins/source/k8s/resources/services/rbac/cluster_role_bindings.go deleted file mode 100644 index d28a04dc2dfd82..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/cluster_role_bindings.go +++ /dev/null @@ -1,38 +0,0 @@ -package rbac - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ClusterRoleBindings() *schema.Table { - return &schema.Table{ - Name: "k8s_rbac_cluster_role_bindings", - Resolver: fetchClusterRoleBindings, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ClusterRoleBinding{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchClusterRoleBindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().RbacV1().ClusterRoleBindings() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/rbac/cluster_role_bindings_test.go b/plugins/source/k8s/resources/services/rbac/cluster_role_bindings_test.go deleted file mode 100644 index 2c8d062b75b154..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/cluster_role_bindings_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package rbac - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/rbac/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createClusterRoleBindings(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ClusterRoleBinding{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockClusterRoleBindingInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ClusterRoleBindingList{Items: []resource.ClusterRoleBinding{r}}, nil, - ) - - serviceClient := resourcemock.NewMockRbacV1Interface(ctrl) - - serviceClient.EXPECT().ClusterRoleBindings().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().RbacV1().Return(serviceClient) - - return cl -} - -func TestClusterRoleBindings(t *testing.T) { - client.K8sMockTestHelper(t, ClusterRoleBindings(), createClusterRoleBindings) -} diff --git a/plugins/source/k8s/resources/services/rbac/cluster_roles.go b/plugins/source/k8s/resources/services/rbac/cluster_roles.go deleted file mode 100644 index dd29f9078fd7af..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/cluster_roles.go +++ /dev/null @@ -1,38 +0,0 @@ -package rbac - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func ClusterRoles() *schema.Table { - return &schema.Table{ - Name: "k8s_rbac_cluster_roles", - Resolver: fetchClusterRoles, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.ClusterRole{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchClusterRoles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().RbacV1().ClusterRoles() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/rbac/cluster_roles_test.go b/plugins/source/k8s/resources/services/rbac/cluster_roles_test.go deleted file mode 100644 index a79c6c7320fe93..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/cluster_roles_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package rbac - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/rbac/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createClusterRoles(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.ClusterRole{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockClusterRoleInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.ClusterRoleList{Items: []resource.ClusterRole{r}}, nil, - ) - - serviceClient := resourcemock.NewMockRbacV1Interface(ctrl) - - serviceClient.EXPECT().ClusterRoles().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().RbacV1().Return(serviceClient) - - return cl -} - -func TestClusterRoles(t *testing.T) { - client.K8sMockTestHelper(t, ClusterRoles(), createClusterRoles) -} diff --git a/plugins/source/k8s/resources/services/rbac/role_bindings.go b/plugins/source/k8s/resources/services/rbac/role_bindings.go deleted file mode 100644 index bcfa403df4eb18..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/role_bindings.go +++ /dev/null @@ -1,38 +0,0 @@ -package rbac - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func RoleBindings() *schema.Table { - return &schema.Table{ - Name: "k8s_rbac_role_bindings", - Resolver: fetchRoleBindings, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.RoleBinding{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchRoleBindings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().RbacV1().RoleBindings("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/rbac/role_bindings_test.go b/plugins/source/k8s/resources/services/rbac/role_bindings_test.go deleted file mode 100644 index cae8bea789f7f8..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/role_bindings_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package rbac - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/rbac/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createRoleBindings(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.RoleBinding{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockRoleBindingInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.RoleBindingList{Items: []resource.RoleBinding{r}}, nil, - ) - - serviceClient := resourcemock.NewMockRbacV1Interface(ctrl) - - serviceClient.EXPECT().RoleBindings("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().RbacV1().Return(serviceClient) - - return cl -} - -func TestRoleBindings(t *testing.T) { - client.K8sMockTestHelper(t, RoleBindings(), createRoleBindings) -} diff --git a/plugins/source/k8s/resources/services/rbac/roles.go b/plugins/source/k8s/resources/services/rbac/roles.go deleted file mode 100644 index c91dd44acdef34..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/roles.go +++ /dev/null @@ -1,38 +0,0 @@ -package rbac - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func Roles() *schema.Table { - return &schema.Table{ - Name: "k8s_rbac_roles", - Resolver: fetchRoles, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.Role{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchRoles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().RbacV1().Roles("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/rbac/roles_test.go b/plugins/source/k8s/resources/services/rbac/roles_test.go deleted file mode 100644 index 7c10ea4d902777..00000000000000 --- a/plugins/source/k8s/resources/services/rbac/roles_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package rbac - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/rbac/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/rbac/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createRoles(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.Role{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockRoleInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.RoleList{Items: []resource.Role{r}}, nil, - ) - - serviceClient := resourcemock.NewMockRbacV1Interface(ctrl) - - serviceClient.EXPECT().Roles("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().RbacV1().Return(serviceClient) - - return cl -} - -func TestRoles(t *testing.T) { - client.K8sMockTestHelper(t, Roles(), createRoles) -} diff --git a/plugins/source/k8s/resources/services/storage/csi_drivers.go b/plugins/source/k8s/resources/services/storage/csi_drivers.go deleted file mode 100644 index d8920c17e690ce..00000000000000 --- a/plugins/source/k8s/resources/services/storage/csi_drivers.go +++ /dev/null @@ -1,38 +0,0 @@ -package storage - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func CsiDrivers() *schema.Table { - return &schema.Table{ - Name: "k8s_storage_csi_drivers", - Resolver: fetchCsiDrivers, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.CSIDriver{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchCsiDrivers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().StorageV1().CSIDrivers() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/storage/csi_drivers_test.go b/plugins/source/k8s/resources/services/storage/csi_drivers_test.go deleted file mode 100644 index ca59da9b18fdca..00000000000000 --- a/plugins/source/k8s/resources/services/storage/csi_drivers_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package storage - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/storage/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createCsiDrivers(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.CSIDriver{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockCSIDriverInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.CSIDriverList{Items: []resource.CSIDriver{r}}, nil, - ) - - serviceClient := resourcemock.NewMockStorageV1Interface(ctrl) - - serviceClient.EXPECT().CSIDrivers().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().StorageV1().Return(serviceClient) - - return cl -} - -func TestCsiDrivers(t *testing.T) { - client.K8sMockTestHelper(t, CsiDrivers(), createCsiDrivers) -} diff --git a/plugins/source/k8s/resources/services/storage/csi_nodes.go b/plugins/source/k8s/resources/services/storage/csi_nodes.go deleted file mode 100644 index 7a3eff15f43403..00000000000000 --- a/plugins/source/k8s/resources/services/storage/csi_nodes.go +++ /dev/null @@ -1,38 +0,0 @@ -package storage - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func CsiNodes() *schema.Table { - return &schema.Table{ - Name: "k8s_storage_csi_nodes", - Resolver: fetchCsiNodes, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.CSINode{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchCsiNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().StorageV1().CSINodes() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/storage/csi_nodes_test.go b/plugins/source/k8s/resources/services/storage/csi_nodes_test.go deleted file mode 100644 index c99a3d53a979d3..00000000000000 --- a/plugins/source/k8s/resources/services/storage/csi_nodes_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package storage - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/storage/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createCsiNodes(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.CSINode{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockCSINodeInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.CSINodeList{Items: []resource.CSINode{r}}, nil, - ) - - serviceClient := resourcemock.NewMockStorageV1Interface(ctrl) - - serviceClient.EXPECT().CSINodes().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().StorageV1().Return(serviceClient) - - return cl -} - -func TestCsiNodes(t *testing.T) { - client.K8sMockTestHelper(t, CsiNodes(), createCsiNodes) -} diff --git a/plugins/source/k8s/resources/services/storage/csi_storage_capacities.go b/plugins/source/k8s/resources/services/storage/csi_storage_capacities.go deleted file mode 100644 index 22d4acac7d7ab8..00000000000000 --- a/plugins/source/k8s/resources/services/storage/csi_storage_capacities.go +++ /dev/null @@ -1,38 +0,0 @@ -package storage - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func CsiStorageCapacities() *schema.Table { - return &schema.Table{ - Name: "k8s_storage_csi_storage_capacities", - Resolver: fetchCsiStorageCapacities, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.CSIStorageCapacity{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchCsiStorageCapacities(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().StorageV1().CSIStorageCapacities("") - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/storage/csi_storage_capacities_test.go b/plugins/source/k8s/resources/services/storage/csi_storage_capacities_test.go deleted file mode 100644 index 8c04ea5536485d..00000000000000 --- a/plugins/source/k8s/resources/services/storage/csi_storage_capacities_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package storage - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/storage/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createCsiStorageCapacities(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.CSIStorageCapacity{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockCSIStorageCapacityInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.CSIStorageCapacityList{Items: []resource.CSIStorageCapacity{r}}, nil, - ) - - serviceClient := resourcemock.NewMockStorageV1Interface(ctrl) - - serviceClient.EXPECT().CSIStorageCapacities("").Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().StorageV1().Return(serviceClient) - - return cl -} - -func TestCsiStorageCapacities(t *testing.T) { - client.K8sMockTestHelper(t, CsiStorageCapacities(), createCsiStorageCapacities) -} diff --git a/plugins/source/k8s/resources/services/storage/storage_classes.go b/plugins/source/k8s/resources/services/storage/storage_classes.go deleted file mode 100644 index d099c25b6c44d9..00000000000000 --- a/plugins/source/k8s/resources/services/storage/storage_classes.go +++ /dev/null @@ -1,38 +0,0 @@ -package storage - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func StorageClasses() *schema.Table { - return &schema.Table{ - Name: "k8s_storage_storage_classes", - Resolver: fetchStorageClasses, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.StorageClass{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchStorageClasses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().StorageV1().StorageClasses() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/storage/storage_classes_test.go b/plugins/source/k8s/resources/services/storage/storage_classes_test.go deleted file mode 100644 index a534c7d57ca1ac..00000000000000 --- a/plugins/source/k8s/resources/services/storage/storage_classes_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package storage - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/storage/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createStorageClasses(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.StorageClass{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockStorageClassInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.StorageClassList{Items: []resource.StorageClass{r}}, nil, - ) - - serviceClient := resourcemock.NewMockStorageV1Interface(ctrl) - - serviceClient.EXPECT().StorageClasses().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().StorageV1().Return(serviceClient) - - return cl -} - -func TestStorageClasses(t *testing.T) { - client.K8sMockTestHelper(t, StorageClasses(), createStorageClasses) -} diff --git a/plugins/source/k8s/resources/services/storage/volume_attachments.go b/plugins/source/k8s/resources/services/storage/volume_attachments.go deleted file mode 100644 index 2356ef0c27a067..00000000000000 --- a/plugins/source/k8s/resources/services/storage/volume_attachments.go +++ /dev/null @@ -1,38 +0,0 @@ -package storage - -import ( - "context" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - v1 "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -func VolumeAttachments() *schema.Table { - return &schema.Table{ - Name: "k8s_storage_volume_attachments", - Resolver: fetchVolumeAttachments, - Multiplex: client.ContextMultiplex, - Transform: client.TransformWithStruct(&v1.VolumeAttachment{}, transformers.WithPrimaryKeys("UID")), - Columns: schema.ColumnList{client.ContextColumn}, - } -} - -func fetchVolumeAttachments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client).Client().StorageV1().VolumeAttachments() - - opts := metav1.ListOptions{} - for { - result, err := cl.List(ctx, opts) - if err != nil { - return err - } - res <- result.Items - if result.GetContinue() == "" { - return nil - } - opts.Continue = result.GetContinue() - } -} diff --git a/plugins/source/k8s/resources/services/storage/volume_attachments_test.go b/plugins/source/k8s/resources/services/storage/volume_attachments_test.go deleted file mode 100644 index d4a6a5f6e00a2c..00000000000000 --- a/plugins/source/k8s/resources/services/storage/volume_attachments_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package storage - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/k8s/client" - "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks" - - resourcemock "github.com/cloudquery/cloudquery/plugins/source/k8s/mocks/storage/v1" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/golang/mock/gomock" - resource "k8s.io/api/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/client-go/kubernetes" -) - -func createVolumeAttachments(t *testing.T, ctrl *gomock.Controller) kubernetes.Interface { - r := resource.VolumeAttachment{} - if err := faker.FakeObject(&r); err != nil { - t.Fatal(err) - } - - resourceClient := resourcemock.NewMockVolumeAttachmentInterface(ctrl) - resourceClient.EXPECT().List(gomock.Any(), metav1.ListOptions{}).Return( - &resource.VolumeAttachmentList{Items: []resource.VolumeAttachment{r}}, nil, - ) - - serviceClient := resourcemock.NewMockStorageV1Interface(ctrl) - - serviceClient.EXPECT().VolumeAttachments().Return(resourceClient) - - cl := mocks.NewMockInterface(ctrl) - cl.EXPECT().StorageV1().Return(serviceClient) - - return cl -} - -func TestVolumeAttachments(t *testing.T) { - client.K8sMockTestHelper(t, VolumeAttachments(), createVolumeAttachments) -} diff --git a/plugins/source/k8s/test/config.yml b/plugins/source/k8s/test/config.yml deleted file mode 100644 index 97b3ed238cf4a3..00000000000000 --- a/plugins/source/k8s/test/config.yml +++ /dev/null @@ -1,15 +0,0 @@ -kind: source -spec: - name: k8s - version: v1.0.0 - destinations: [test] - path: ./k8s - registry: local - tables: ["*"] - spec: ---- -kind: destination -spec: - name: test - path: cloudquery/test - version: "v2.2.3" # latest version of test plugin \ No newline at end of file diff --git a/plugins/source/k8s/test/policy_cq_config.yml b/plugins/source/k8s/test/policy_cq_config.yml deleted file mode 100644 index a4d029d0390cb9..00000000000000 --- a/plugins/source/k8s/test/policy_cq_config.yml +++ /dev/null @@ -1,17 +0,0 @@ -kind: source -spec: - name: k8s - version: v1.0.0 - destinations: [postgresql] - path: ./k8s - registry: local - tables: ["*"] ---- -kind: destination -spec: - name: postgresql - path: cloudquery/postgresql - registry: cloudquery - version: "v8.3.1" # latest version of postgresql plugin - spec: - connection_string: ${CQ_DSN} \ No newline at end of file diff --git a/plugins/source/k8s/tools/tool.go b/plugins/source/k8s/tools/tool.go deleted file mode 100644 index b23ec14fb796f2..00000000000000 --- a/plugins/source/k8s/tools/tool.go +++ /dev/null @@ -1,9 +0,0 @@ -//go:build tools -// +build tools - -package tools - -import ( - _ "github.com/golang/mock/mockgen" - _ "github.com/golang/mock/mockgen/model" -) diff --git a/plugins/source/k8s/views/README.md b/plugins/source/k8s/views/README.md deleted file mode 100644 index 2c0fbfbda85f15..00000000000000 --- a/plugins/source/k8s/views/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Kubernetes Views - -This directory contains useful aggregated views that you can create against the CloudQuery schema manually and then run queries and visualizations. - -Those views are also tests in CI to make sure it works with the latest schema. - -For dashboard examples that reuse those views take a look at [../dashboards](../dashboards). diff --git a/plugins/source/k8s/views/resource.sql b/plugins/source/k8s/views/resource.sql deleted file mode 100644 index 728814ba46a4dd..00000000000000 --- a/plugins/source/k8s/views/resource.sql +++ /dev/null @@ -1,29 +0,0 @@ -DROP VIEW IF EXISTS k8s_resources; -DO $$ -DECLARE - tbl TEXT; - strSQL TEXT = ''; -BEGIN - -- iterate over every table in our information_schema that has `uid` and `context` columns available - FOR tbl IN - SELECT table_name - FROM information_schema.columns - WHERE table_name LIKE 'k8s_%s' AND COLUMN_NAME = 'context' - INTERSECT - SELECT table_name - FROM information_schema.columns - WHERE table_name LIKE 'k8s_%s' AND COLUMN_NAME = 'uid' - LOOP - -- UNION each table query to create one view - IF NOT (strSQL = ''::TEXT) THEN - strSQL = strSQL || ' UNION ALL '; - END IF; - -- create an SQL query to select from table and transform it into our resources view schema - strSQL = strSQL || format('SELECT _cq_id, _cq_source_name, _cq_sync_time, %L AS _cq_table, context, uid FROM %s', tbl, tbl); - END LOOP; - IF strSQL = ''::TEXT THEN - RAISE EXCEPTION 'No tables found with UID and CONTEXT columns. Run a sync first and try again.'; - ELSE - EXECUTE FORMAT('CREATE VIEW k8s_resources AS (%s)', strSQL); - END IF; -END $$; diff --git a/plugins/source/k8s/views/views.go b/plugins/source/k8s/views/views.go deleted file mode 100644 index be1fac6170879b..00000000000000 --- a/plugins/source/k8s/views/views.go +++ /dev/null @@ -1,6 +0,0 @@ -package views - -import _ "embed" - -//go:embed resource.sql -var ResourceView string diff --git a/plugins/source/square/CHANGELOG.md b/plugins/source/square/CHANGELOG.md index b5ca908c744730..bb1dc3f016d9c7 100644 --- a/plugins/source/square/CHANGELOG.md +++ b/plugins/source/square/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.3.7](https://github.com/cloudquery/cloudquery/compare/plugins-source-square-v1.3.6...plugins-source-square-v1.3.7) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.31 ([#18754](https://github.com/cloudquery/cloudquery/issues/18754)) ([8ef141d](https://github.com/cloudquery/cloudquery/commit/8ef141d80ac55b362155da4b0ab5a853025adf8d)) +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.32 ([#18808](https://github.com/cloudquery/cloudquery/issues/18808)) ([b18a78f](https://github.com/cloudquery/cloudquery/commit/b18a78f7fcb790af90a6fa6d84892f0665eb521f)) + ## [1.3.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-square-v1.3.5...plugins-source-square-v1.3.6) (2024-07-18) diff --git a/plugins/source/test/CHANGELOG.md b/plugins/source/test/CHANGELOG.md index d6455676097df7..4700f5f1ee896b 100644 --- a/plugins/source/test/CHANGELOG.md +++ b/plugins/source/test/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [4.3.5](https://github.com/cloudquery/cloudquery/compare/plugins-source-test-v4.3.4...plugins-source-test-v4.3.5) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## [4.3.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-test-v4.3.3...plugins-source-test-v4.3.4) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update golang.org/x/exp digest to 8a7402a ([#18799](https://github.com/cloudquery/cloudquery/issues/18799)) ([feed49d](https://github.com/cloudquery/cloudquery/commit/feed49d232ebd93cfc84148ba0991adc97321600)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.56.0 ([#18763](https://github.com/cloudquery/cloudquery/issues/18763)) ([45da614](https://github.com/cloudquery/cloudquery/commit/45da614ef7aaaf83e7820beec5ee33b00e9f5c0f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18810](https://github.com/cloudquery/cloudquery/issues/18810)) ([42cc5de](https://github.com/cloudquery/cloudquery/commit/42cc5de457e5734c66d3c0f08ef61b35b2b60ca9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [4.3.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-test-v4.3.2...plugins-source-test-v4.3.3) (2024-07-30) diff --git a/plugins/source/test/go.mod b/plugins/source/test/go.mod index 149ccd9e71cd1f..1ed670b395533f 100644 --- a/plugins/source/test/go.mod +++ b/plugins/source/test/go.mod @@ -5,7 +5,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 github.com/cloudquery/codegen v0.3.19 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/rs/zerolog v1.33.0 golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 ) @@ -31,8 +31,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/source/test/go.sum b/plugins/source/test/go.sum index c9c5187c0049eb..f9979558976a43 100644 --- a/plugins/source/test/go.sum +++ b/plugins/source/test/go.sum @@ -44,18 +44,18 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= github.com/cloudquery/codegen v0.3.19 h1:DeHCWEdgiRF6PCAaVZcMujxU9/jKlSOuPutplUpCXRI= github.com/cloudquery/codegen v0.3.19/go.mod h1:NCAex4htqLN/VwPlg3HwxnB7aEq8sU6UEl8c5ax0KQc= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66 h1:OZLPSIBYEfvkAUeOeM8CwTgVQy5zhayI99ishCrsFV0= github.com/cloudquery/jsonschema v0.0.0-20240220124159-92878faa2a66/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/source/typeform/CHANGELOG.md b/plugins/source/typeform/CHANGELOG.md index 28d72c64277de8..771110d3edc504 100644 --- a/plugins/source/typeform/CHANGELOG.md +++ b/plugins/source/typeform/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.5.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-typeform-v1.5.2...plugins-source-typeform-v1.5.3) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.31 ([#18754](https://github.com/cloudquery/cloudquery/issues/18754)) ([8ef141d](https://github.com/cloudquery/cloudquery/commit/8ef141d80ac55b362155da4b0ab5a853025adf8d)) +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.32 ([#18808](https://github.com/cloudquery/cloudquery/issues/18808)) ([b18a78f](https://github.com/cloudquery/cloudquery/commit/b18a78f7fcb790af90a6fa6d84892f0665eb521f)) + ## [1.5.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-typeform-v1.5.1...plugins-source-typeform-v1.5.2) (2024-07-18) diff --git a/plugins/source/typeform/plugin/plugin.py b/plugins/source/typeform/plugin/plugin.py index 4771b8150caf40..e5b71e22aeda21 100644 --- a/plugins/source/typeform/plugin/plugin.py +++ b/plugins/source/typeform/plugin/plugin.py @@ -12,7 +12,7 @@ from plugin.client import Client, Spec PLUGIN_NAME = "typeform" -PLUGIN_VERSION = "1.5.2" # {x-release-please-version} +PLUGIN_VERSION = "1.5.3" # {x-release-please-version} class TypeformPlugin(plugin.Plugin): diff --git a/plugins/source/xkcd/CHANGELOG.md b/plugins/source/xkcd/CHANGELOG.md index 359daf1941e56f..4a5b632d61b4b1 100644 --- a/plugins/source/xkcd/CHANGELOG.md +++ b/plugins/source/xkcd/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## [1.3.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-xkcd-v1.3.1...plugins-source-xkcd-v1.3.2) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/cloud-ui to v0.1.13 ([#18874](https://github.com/cloudquery/cloudquery/issues/18874)) ([73f5ff0](https://github.com/cloudquery/cloudquery/commit/73f5ff0b4445119d5320454bc62376a655e7706a)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.12 ([#18869](https://github.com/cloudquery/cloudquery/issues/18869)) ([47734e3](https://github.com/cloudquery/cloudquery/commit/47734e36bce6ea2409a7796f4d8e607ac08c7215)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.13 ([#18911](https://github.com/cloudquery/cloudquery/issues/18911)) ([85425cb](https://github.com/cloudquery/cloudquery/commit/85425cb0ce84dc670098c1a6d46bae0ec547445f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.54 ([#18870](https://github.com/cloudquery/cloudquery/issues/18870)) ([8c5a436](https://github.com/cloudquery/cloudquery/commit/8c5a4365d5c7083dce02f1a8ee0136d083d7d45c)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.55 ([#18877](https://github.com/cloudquery/cloudquery/issues/18877)) ([07e176b](https://github.com/cloudquery/cloudquery/commit/07e176bf8ae9331686547b4f53ab175df04117dc)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.56 ([#18904](https://github.com/cloudquery/cloudquery/issues/18904)) ([62fbd9a](https://github.com/cloudquery/cloudquery/commit/62fbd9a0d36398250cc5e8ce653a2b6f257dafd0)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.57 ([#18912](https://github.com/cloudquery/cloudquery/issues/18912)) ([f4ebbfb](https://github.com/cloudquery/cloudquery/commit/f4ebbfba2f5717c42e23c9b029cd541510d1c37f)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) +* **main:** Plugin UI data generation dx and ci fixes ([#18915](https://github.com/cloudquery/cloudquery/issues/18915)) ([0cc7050](https://github.com/cloudquery/cloudquery/commit/0cc7050eca720c452124b3c1828225cc36ac2897)) +* Table selector for xkcd and hackernews plugin UI ([#18910](https://github.com/cloudquery/cloudquery/issues/18910)) ([3dd1e22](https://github.com/cloudquery/cloudquery/commit/3dd1e2202450b33fbf059b6ffc5b4f45906f0930)) +* Update XKCD and hackernews to fix tracking in cloud UI ([#18913](https://github.com/cloudquery/cloudquery/issues/18913)) ([c05da5a](https://github.com/cloudquery/cloudquery/commit/c05da5a5d984f9527f2c4962275da9ce67cfc7bf)) + +## [1.3.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-xkcd-v1.3.0...plugins-source-xkcd-v1.3.1) (2024-08-06) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/plugin-config-ui-connector to v0.2.11 ([#18860](https://github.com/cloudquery/cloudquery/issues/18860)) ([f7287b9](https://github.com/cloudquery/cloudquery/commit/f7287b93b1e8b93194956016e16eddadba8a36f6)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.49 ([#18851](https://github.com/cloudquery/cloudquery/issues/18851)) ([faed134](https://github.com/cloudquery/cloudquery/commit/faed134a2ab79ad9b23d1131c3f668f679b75d1d)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.50 ([#18861](https://github.com/cloudquery/cloudquery/issues/18861)) ([79b4291](https://github.com/cloudquery/cloudquery/commit/79b4291f41c055fe1383d3c5205d0b798106c15f)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.52 ([#18862](https://github.com/cloudquery/cloudquery/issues/18862)) ([c275aed](https://github.com/cloudquery/cloudquery/commit/c275aed8c28060f525bcd6a2f8fd35a73d8b5a51)) +* **deps:** Update dependency @cloudquery/plugin-config-ui-lib to ^0.0.53 ([#18863](https://github.com/cloudquery/cloudquery/issues/18863)) ([c64d143](https://github.com/cloudquery/cloudquery/commit/c64d14305055788862be479c9ce6e7c02189d9e0)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) + ## [1.3.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-xkcd-v1.2.0...plugins-source-xkcd-v1.3.0) (2024-08-04) diff --git a/plugins/source/xkcd/Makefile b/plugins/source/xkcd/Makefile index 552fa175bd58f7..1c015b39b2e7a6 100644 --- a/plugins/source/xkcd/Makefile +++ b/plugins/source/xkcd/Makefile @@ -18,7 +18,7 @@ gen-docs: build exit 1; \ } rm -rf docs/tables - cloudquery tables --format markdown --output-dir docs/ test/config.yaml + cloudquery tables --format markdown --output-dir docs/ test/config.yml mv -vf docs/xkcd docs/tables # All gen targets diff --git a/plugins/source/xkcd/README.md b/plugins/source/xkcd/README.md index 69e6ec9da77caa..0c3efacae56408 100644 --- a/plugins/source/xkcd/README.md +++ b/plugins/source/xkcd/README.md @@ -6,9 +6,9 @@ It was originally developed as part of a live-coding tutorial on how to write yo ## Links - - [Video Tutorial](https://www.youtube.com/watch?v=3Ka_Ob8E6P8) - - [CloudQuery Quickstart Guide](https://www.cloudquery.io/docs/quickstart) - - [Supported Tables](docs/tables/README.md) +- [Video Tutorial](https://www.youtube.com/watch?v=3Ka_Ob8E6P8) +- [CloudQuery Quickstart Guide](https://www.cloudquery.io/docs/quickstart) +- [Supported Tables](docs/tables/README.md) ## Configuration @@ -33,8 +33,8 @@ spec: connection_string: ./db.sqlite ``` -Save the file as `config.yaml`, then run: +Save the file as `config.yml`, then run: ```shell -cloudquery sync config.yaml +cloudquery sync config.yml ``` diff --git a/plugins/source/xkcd/cloud-config-ui/.eslintrc.json b/plugins/source/xkcd/cloud-config-ui/.eslintrc.json index 49845dde197ce7..13dcf7507abe8f 100644 --- a/plugins/source/xkcd/cloud-config-ui/.eslintrc.json +++ b/plugins/source/xkcd/cloud-config-ui/.eslintrc.json @@ -1,5 +1,6 @@ { "root": true, + "plugins": ["import", "custom-rules"], "extends": [ "eslint:recommended", "plugin:react/recommended", @@ -7,7 +8,8 @@ "plugin:@typescript-eslint/recommended", "plugin:jsx-a11y/recommended", "plugin:prettier/recommended", - "plugin:unicorn/recommended" + "plugin:unicorn/recommended", + "plugin:import/typescript" ], "globals": { "JSX": true @@ -18,6 +20,7 @@ "node": true }, "rules": { + "custom-rules/mui-material-imports": "error", "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-explicit-any": 0, @@ -31,13 +34,50 @@ } ], "jsx-a11y/alt-text": "off", + "jsx-a11y/anchor-is-valid": [ + "error", + { + "components": ["Link"], + "specialLink": ["to"] + } + ], "jsx-a11y/label-has-associated-control": [ "error", { "depth": 5 } ], - "jsx-a11y/anchor-is-valid": "off", + "import/newline-after-import": "error", + "import/no-duplicates": ["error", { "prefer-inline": false }], + "import/no-unresolved": "error", + "import/order": [ + "error", + { + "alphabetize": { + "caseInsensitive": true, + "order": "asc" + }, + "groups": [ + "builtin", + "external", + "internal", + ["sibling", "parent"], + "index", + "object", + "type", + "unknown" + ], + "newlines-between": "always-and-inside-groups", + "pathGroups": [ + { + "group": "external", + "pattern": "react", + "position": "before" + } + ], + "pathGroupsExcludedImportTypes": ["react"] + } + ], "jsx-a11y/media-has-caption": "off", "jsx-a11y/no-autofocus": "off", "jsx-a11y/no-onchange": "off", @@ -50,7 +90,7 @@ "no-prototype-builtins": 0, "no-undef": "error", "no-unexpected-multiline": "error", - "no-unused-vars": "off", + "no-unused-vars": "error", "object-curly-newline": [ "error", { @@ -83,7 +123,8 @@ "react/jsx-boolean-value": ["error", "always"], "react/jsx-first-prop-new-line": ["error", "multiline"], "react/jsx-fragments": ["error", "syntax"], - "react/jsx-uses-react": "off", + "react/jsx-uses-react": "error", + "react/jsx-uses-vars": "error", "react/react-in-jsx-scope": "off", "unicorn/filename-case": "off", "unicorn/no-nested-ternary": "off", @@ -91,5 +132,10 @@ "unicorn/no-useless-undefined": "off", "unicorn/prevent-abbreviations": "off" }, - "ignorePatterns": ["node_modules/", "dist/", "*.js", "*.cjs"] + "ignorePatterns": ["node_modules/", "dist/", "*.js", "*.cjs"], + "settings": { + "react": { + "version": "detect" + } + } } diff --git a/plugins/source/xkcd/cloud-config-ui/README.md b/plugins/source/xkcd/cloud-config-ui/README.md index 4712b4df323096..8264ee51d20688 100644 --- a/plugins/source/xkcd/cloud-config-ui/README.md +++ b/plugins/source/xkcd/cloud-config-ui/README.md @@ -9,6 +9,14 @@ Make sure to copy `.env.example.json` to `.env.json` inside `src` folder before - `authToken` and `teamName` is required if you need to use CloudQuery API. You can get the token by navigating to https://cloud.cloudquery.io and inspecting any fetch request: you can extract the token from the `Authorization` header. - `initialValues` is required if you want to see how your plugin behaves with initial values +## Plugin tables + +In case your plugin is a source plugin and you want to use the list of tables in your plugin UI, then make sure to build the plugin first to get a generated list of tables. Inside the plugin root directory run `go build`. This will generate a plugin file and then you should navigate back to the `cloud-config-ui` directory inside your plugin and run `npm start` or `npm run build`, they both will generate a `__tables.json` file in the `src/data` folder. After that you can import the list of tables inside the application like this: + +```ts +import pluginTables from 'data/__tables.json'; +``` + ## Available Scripts In the project directory, you can run: diff --git a/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/index.cjs b/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/index.cjs new file mode 100644 index 00000000000000..a90d5c37eed358 --- /dev/null +++ b/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/index.cjs @@ -0,0 +1,5 @@ +module.exports = { + rules: { + 'mui-material-imports': require('./mui-material-imports.cjs'), + }, +}; diff --git a/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs b/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs new file mode 100644 index 00000000000000..eea2529866be79 --- /dev/null +++ b/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs @@ -0,0 +1,146 @@ +module.exports = { + meta: { + type: 'suggestion', + docs: { + description: 'disallow named imports from @mui/material', + category: 'Best Practices', + recommended: false, + }, + fixable: 'code', + schema: [], // no options + }, + create(context) { + return { + ImportDeclaration(node) { + if (node.source.value === '@mui/material' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/material', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + let newImportStatement = `import ${importName} from '@mui/material/${importName}';`; + switch (importName) { + case 'useTheme': { + newImportStatement = `import useTheme from '@mui/material/styles/useTheme';`; + break; + } + case 'useMediaQuery': { + newImportStatement = `import useMediaQuery from '@mui/material/useMediaQuery';`; + break; + } + case 'ThemeProvider': { + newImportStatement = `import ThemeProvider from '@mui/material/styles/ThemeProvider';`; + break; + } + case 'createTheme': { + newImportStatement = `import createTheme from '@mui/material/styles/createTheme';`; + break; + } + case 'createTypography': { + newImportStatement = `import createTypography from '@mui/material/styles/createTypography';`; + break; + } + case 'styled': { + newImportStatement = `import styled from '@mui/material/styles/styled';`; + break; + } + case 'alpha': { + newImportStatement = `import { alpha } from '@mui/material/styles';`; + break; + } + case 'Theme': { + newImportStatement = `import { Theme } from '@mui/material/styles';`; + break; + } + case 'Palette': { + newImportStatement = `import { Palette } from '@mui/material/styles/createPalette';`; + break; + } + case 'PaletteColor': { + newImportStatement = `import { PaletteColor } from '@mui/material/styles/createPalette';`; + break; + } + case 'PaletteOptions': { + newImportStatement = `import { PaletteOptions } from '@mui/material/styles/createPalette';`; + break; + } + case 'Components': { + newImportStatement = `import { Components } from '@mui/material/styles';`; + break; + } + case 'Shadows': { + newImportStatement = `import { Shadows } from '@mui/material/styles';`; + break; + } + case 'Breakpoint': { + newImportStatement = `import { Breakpoint } from '@mui/material/styles';`; + break; + } + case 'TypographyOptions': { + newImportStatement = `import { TypographyOptions } from '@mui/material/styles/createTypography';`; + break; + } + } + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } else if (node.source.value === '@mui/icons-material' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/icons-material', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + const newImportStatement = `import ${importName}Icon from '@mui/icons-material/${importName}';`; + + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } else if (node.source.value === '@mui/lab' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/lab', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + const newImportStatement = `import ${importName} from '@mui/lab/${importName}';`; + + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } + }, + }; + }, +}; diff --git a/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/package.json b/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/package.json new file mode 100644 index 00000000000000..67bb6b5725419c --- /dev/null +++ b/plugins/source/xkcd/cloud-config-ui/eslint-plugin-custom-rules/package.json @@ -0,0 +1,4 @@ +{ + "name": "eslint-plugin-custom-rules", + "main": "index.cjs" +} diff --git a/plugins/source/xkcd/cloud-config-ui/package-lock.json b/plugins/source/xkcd/cloud-config-ui/package-lock.json index f41dd8d6e2f591..00406672ddb961 100644 --- a/plugins/source/xkcd/cloud-config-ui/package-lock.json +++ b/plugins/source/xkcd/cloud-config-ui/package-lock.json @@ -8,9 +8,9 @@ "name": "xkcd-source-cloud-config-ui", "version": "0.1.0", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.9", - "@cloudquery/plugin-config-ui-connector": "^0.2.8", - "@cloudquery/plugin-config-ui-lib": "^0.0.47", + "@cloudquery/cloud-ui": "^0.1.13", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", @@ -26,27 +26,27 @@ "react-hook-form": "^7.52.0", "react-scripts": "^5.0.1", "typescript": "^4.9.5", - "web-vitals": "^2.1.4", "yup": "^1.4.0" }, "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@playwright/test": "^1.45.3", - "@types/node": "^16.18.104", + "@playwright/test": "^1.46.0", + "@types/node": "^22.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-custom-rules": "file:./eslint-plugin-custom-rules", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.2", + "eslint-plugin-jsx-a11y": "^6.9.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-sort-destructure-keys": "^2.0.0", - "eslint-plugin-unicorn": "^54.0.0", + "eslint-plugin-unicorn": "^55.0.0", "http-server": "^14.1.1", - "prettier": "^3.3.1", + "prettier": "^3.3.3", "yaml": "^2.5.0" } }, @@ -114,6 +114,9 @@ "../../../../plugin-config-ui-lib": { "extraneous": true }, + "eslint-plugin-custom-rules": { + "dev": true + }, "node_modules/@alloc/quick-lru": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", @@ -2085,9 +2088,9 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" }, "node_modules/@cloudquery/cloud-ui": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/@cloudquery/cloud-ui/-/cloud-ui-0.1.12.tgz", - "integrity": "sha512-JJdqFN4RGLexGrjDKYNKHQucGxz96bMyLwRivWIRUgLX69QT9+J46hjLgZjj2wEIVFXbRm6dujjUTZDiVNSGaw==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@cloudquery/cloud-ui/-/cloud-ui-0.1.13.tgz", + "integrity": "sha512-uPR/p5LDYlmW+5SKG6LQ4XktR+Mx7CUgb6JmJ49qXxMd2wwxS5lQb85ier5KMODbRPiqEeAha3Py++XgODbAGg==", "license": "MPL-2.0", "peerDependencies": { "@emotion/react": "^11.11.4", @@ -2103,21 +2106,21 @@ } }, "node_modules/@cloudquery/plugin-config-ui-connector": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-connector/-/plugin-config-ui-connector-0.2.10.tgz", - "integrity": "sha512-sA87jLj2YKDhAZ0qm4Sk/aKt3rEhDhwETRYmoMa+iTXq3k1ArLQ3j3beE/O3QTp9mys7CfFhEW57UCSrhl1/xA==", + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-connector/-/plugin-config-ui-connector-0.2.13.tgz", + "integrity": "sha512-CwCpHEyCXpO4lvVANgQV+rUmgawyYh0bPD+lN7YfvS15IPu4SHSKodjQDFKHIRqVCfbXi7Euc7Cw3RINEoU3Qg==", "license": "MPL-2.0" }, "node_modules/@cloudquery/plugin-config-ui-lib": { - "version": "0.0.47", - "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-lib/-/plugin-config-ui-lib-0.0.47.tgz", - "integrity": "sha512-C/lwVspY1hMuRmr85/5rL7kaBDTyPWEtJ2zQgoeT1Xl15svroP8jsZ+QhJ212EhZy2RDVaXDcXTPMicUY7uQmA==", - "license": "MPL-2.0", + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@cloudquery/plugin-config-ui-lib/-/plugin-config-ui-lib-0.0.57.tgz", + "integrity": "sha512-AVYy9lIyCbrdfHxSxkTAtoQTrPtp4z6XKD9TsCSxTJ5kOQkcIg5UtZtHXI7h5bqAgnrUI/KcDDTYSarEKhYSXQ==", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.8" + "@cloudquery/cloud-ui": "^0.1.8", + "@rudderstack/analytics-js": "3.7.6" }, "peerDependencies": { - "@cloudquery/plugin-config-ui-connector": "^0.2.9", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", "@mui/icons-material": "^5.15.20", "@mui/lab": "^5.0.0-alpha.170", "@mui/material": "^5.15.20", @@ -3998,12 +4001,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.45.3.tgz", - "integrity": "sha512-UKF4XsBfy+u3MFWEH44hva1Q8Da28G6RFtR2+5saw+jgAFQV5yYnB1fu68Mz7fO+5GJF3wgwAIs0UelU8TxFrA==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.46.0.tgz", + "integrity": "sha512-/QYft5VArOrGRP5pgkrfKksqsKA6CEFyGQ/gjNe6q0y4tZ1aaPfq4gIjudr1s3D+pXyrPRdsy4opKDrjBabE5w==", "dev": true, "dependencies": { - "playwright": "1.45.3" + "playwright": "1.46.0" }, "bin": { "playwright": "cli.js" @@ -4150,6 +4153,12 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==" }, + "node_modules/@rudderstack/analytics-js": { + "version": "3.7.6", + "resolved": "https://registry.npmjs.org/@rudderstack/analytics-js/-/analytics-js-3.7.6.tgz", + "integrity": "sha512-KMnWdRDKYID+VsQAy3KVXV6mjb1FhJ0SdmkZ5obaPVUUVmJKKAwMqGME8ZXeKaZRaLEgoDNXzoQhWCqTEqkM0A==", + "license": "Elastic-2.0" + }, "node_modules/@rushstack/eslint-patch": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.3.tgz", @@ -4589,9 +4598,12 @@ "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==" }, "node_modules/@types/node": { - "version": "16.18.104", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.104.tgz", - "integrity": "sha512-OF3keVCbfPlkzxnnDBUZJn1RiCJzKeadjiW0xTEb0G1SUJ5gDVb3qnzZr2T4uIFvsbKJbXy1v2DN7e2zaEY7jQ==" + "version": "22.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.2.0.tgz", + "integrity": "sha512-bm6EG6/pCpkxDf/0gDNDdtDILMOHgaQBVOJGdwsqClnxA3xL6jtMv76rLBc006RVMWbmaf0xbmom4Z/5o2nRkQ==", + "dependencies": { + "undici-types": "~6.13.0" + } }, "node_modules/@types/node-forge": { "version": "1.3.11", @@ -5528,17 +5540,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array.prototype.toreversed": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/array.prototype.toreversed/-/array.prototype.toreversed-1.1.2.tgz", - "integrity": "sha512-wwDCoT4Ck4Cz7sLtgUmzR5UV3YF5mFHUlbChCzZBQZ+0m2cl/DH3tKgvphv1nKgFsJ48oCSg6p91q2Vm0I/ZMA==", - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - } - }, "node_modules/array.prototype.tosorted": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", @@ -8001,6 +8002,10 @@ "ms": "^2.1.1" } }, + "node_modules/eslint-plugin-custom-rules": { + "resolved": "eslint-plugin-custom-rules", + "link": true + }, "node_modules/eslint-plugin-flowtype": { "version": "8.0.3", "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz", @@ -8158,14 +8163,13 @@ } }, "node_modules/eslint-plugin-react": { - "version": "7.34.4", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.34.4.tgz", - "integrity": "sha512-Np+jo9bUwJNxCsT12pXtrGhJgT3T44T1sHhn1Ssr42XFn8TES0267wPGo5nNrMHi8qkyimDAX2BUmkf9pSaVzA==", + "version": "7.35.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.35.0.tgz", + "integrity": "sha512-v501SSMOWv8gerHkk+IIQBkcGRGrO2nfybfj5pLxuJNFTPxxA3PSryhXTK+9pNbtkggheDdsC0E9Q8CuPk6JKA==", "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.2", - "array.prototype.toreversed": "^1.1.2", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.0.19", @@ -8186,7 +8190,7 @@ "node": ">=4" }, "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "node_modules/eslint-plugin-react-hooks": { @@ -8258,18 +8262,18 @@ } }, "node_modules/eslint-plugin-unicorn": { - "version": "54.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-54.0.0.tgz", - "integrity": "sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==", + "version": "55.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-55.0.0.tgz", + "integrity": "sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==", "dev": true, "dependencies": { "@babel/helper-validator-identifier": "^7.24.5", "@eslint-community/eslint-utils": "^4.4.0", - "@eslint/eslintrc": "^3.0.2", "ci-info": "^4.0.0", "clean-regexp": "^1.0.0", "core-js-compat": "^3.37.0", "esquery": "^1.5.0", + "globals": "^15.7.0", "indent-string": "^4.0.0", "is-builtin-module": "^3.2.1", "jsesc": "^3.0.2", @@ -8290,62 +8294,10 @@ "eslint": ">=8.56.0" } }, - "node_modules/eslint-plugin-unicorn/node_modules/@eslint/eslintrc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", - "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/eslint-visitor-keys": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", - "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", - "dev": true, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-unicorn/node_modules/espree": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.1.0.tgz", - "integrity": "sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==", - "dev": true, - "dependencies": { - "acorn": "^8.12.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, "node_modules/eslint-plugin-unicorn/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", + "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", "dev": true, "engines": { "node": ">=18" @@ -14182,12 +14134,12 @@ } }, "node_modules/playwright": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.45.3.tgz", - "integrity": "sha512-QhVaS+lpluxCaioejDZ95l4Y4jSFCsBvl2UZkpeXlzxmqS+aABr5c82YmfMHrL6x27nvrvykJAFpkzT2eWdJww==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.46.0.tgz", + "integrity": "sha512-XYJ5WvfefWONh1uPAUAi0H2xXV5S3vrtcnXe6uAOgdGi3aSpqOSXX08IAjXW34xitfuOJsvXU5anXZxPSEQiJw==", "dev": true, "dependencies": { - "playwright-core": "1.45.3" + "playwright-core": "1.46.0" }, "bin": { "playwright": "cli.js" @@ -14200,9 +14152,9 @@ } }, "node_modules/playwright-core": { - "version": "1.45.3", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.45.3.tgz", - "integrity": "sha512-+ym0jNbcjikaOwwSZycFbwkWgfruWvYlJfThKYAlImbxUgdWFO2oW70ojPm4OpE4t6TAo2FY/smM+hpVTtkhDA==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.46.0.tgz", + "integrity": "sha512-9Y/d5UIwuJk8t3+lhmMSAJyNP1BUC/DqP3cQJDQQL/oWqAiuPTLgy7Q5dzglmTLwcBRdetzgNM/gni7ckfTr6A==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -18336,6 +18288,11 @@ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.12.1.tgz", "integrity": "sha512-hEQt0+ZLDVUMhebKxL4x1BTtDY7bavVofhZ9KZ4aI26X9SRaE+Y3m83XUL1UP2jn8ynjndwCCpEHdUG+9pP1Tw==" }, + "node_modules/undici-types": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.13.0.tgz", + "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==" + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -18609,11 +18566,6 @@ "minimalistic-assert": "^1.0.0" } }, - "node_modules/web-vitals": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz", - "integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==" - }, "node_modules/webidl-conversions": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", diff --git a/plugins/source/xkcd/cloud-config-ui/package.json b/plugins/source/xkcd/cloud-config-ui/package.json index e16d1cd6f0cd34..d7eb6a7d3dd484 100644 --- a/plugins/source/xkcd/cloud-config-ui/package.json +++ b/plugins/source/xkcd/cloud-config-ui/package.json @@ -4,9 +4,9 @@ "private": true, "homepage": "./", "dependencies": { - "@cloudquery/cloud-ui": "^0.1.9", - "@cloudquery/plugin-config-ui-connector": "^0.2.8", - "@cloudquery/plugin-config-ui-lib": "^0.0.47", + "@cloudquery/cloud-ui": "^0.1.13", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", @@ -22,32 +22,32 @@ "react-hook-form": "^7.52.0", "react-scripts": "^5.0.1", "typescript": "^4.9.5", - "web-vitals": "^2.1.4", "yup": "^1.4.0" }, "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@playwright/test": "^1.45.3", - "@types/node": "^16.18.104", + "@playwright/test": "^1.46.0", + "@types/node": "^22.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-custom-rules": "file:./eslint-plugin-custom-rules", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.2", + "eslint-plugin-jsx-a11y": "^6.9.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-sort-destructure-keys": "^2.0.0", - "eslint-plugin-unicorn": "^54.0.0", + "eslint-plugin-unicorn": "^55.0.0", "http-server": "^14.1.1", - "prettier": "^3.3.1", + "prettier": "^3.3.3", "yaml": "^2.5.0" }, "scripts": { "start": "node scripts/initialize.js && PORT=3001 react-scripts start", - "build": "node scripts/initialize.js && react-scripts build", + "build": "node scripts/initialize.js -f && react-scripts build", "lint": "eslint src --ext .ts,.tsx --max-warnings 0", "lint:fix": "eslint src --ext .ts,.tsx --max-warnings 0 --fix", "test:e2e": "playwright test" diff --git a/plugins/source/xkcd/cloud-config-ui/scripts/gen_tables.js b/plugins/source/xkcd/cloud-config-ui/scripts/gen_tables.js new file mode 100644 index 00000000000000..8b96a1c2d2e6db --- /dev/null +++ b/plugins/source/xkcd/cloud-config-ui/scripts/gen_tables.js @@ -0,0 +1,26 @@ +const fs = require('fs'); +var argv = require('minimist')(process.argv.slice(2)); + +const generateTables = () => + require('child_process').execSync( + `cd .. +dirname="$(basename $(pwd))" +cloudquery tables --output-dir data test/config.yml +mkdir -p cloud-config-ui/src/data +mv data/$dirname/__tables.json cloud-config-ui/src/data/__tables.json`, + (error) => { + if (error !== null) { + console.log(`exec error: ${error}`); + } + }, + ); + +// In production, or when forced, re-generate tables every time +if (process.env.NODE_ENV === 'production' || argv.f) { + return generateTables(); + // In development, only generate tables if they don't exist +} else if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { + if (!fs.existsSync('src/data/__tables.json')) { + return generateTables(); + } +} diff --git a/plugins/source/xkcd/cloud-config-ui/scripts/initialize.js b/plugins/source/xkcd/cloud-config-ui/scripts/initialize.js index 24b83e4997529d..64de47be7296d8 100644 --- a/plugins/source/xkcd/cloud-config-ui/scripts/initialize.js +++ b/plugins/source/xkcd/cloud-config-ui/scripts/initialize.js @@ -1 +1,8 @@ +var argv = require('minimist')(process.argv.slice(2)); + require('child_process').fork('scripts/set_environment.js'); + +const path = require('path'); +if (require('path').basename(path.join(__dirname, '../../..')) === 'source') { + require('child_process').fork(`scripts/gen_tables.js`, ['--f', argv.f]); +} diff --git a/plugins/source/xkcd/cloud-config-ui/src/App.tsx b/plugins/source/xkcd/cloud-config-ui/src/App.tsx index 038b13afde4062..b11b515524bb8e 100644 --- a/plugins/source/xkcd/cloud-config-ui/src/App.tsx +++ b/plugins/source/xkcd/cloud-config-ui/src/App.tsx @@ -1,13 +1,16 @@ -import Stack from '@mui/material/Stack'; +import { Fragment, useMemo } from 'react'; + +import { createThemeOptions } from '@cloudquery/cloud-ui'; +import { CloudAppMock, useFormHeightChange, useFormInit } from '@cloudquery/plugin-config-ui-lib'; import CssBaseline from '@mui/material/CssBaseline'; -import ThemeProvider from '@mui/material/styles/ThemeProvider'; +import Stack from '@mui/material/Stack'; import createTheme from '@mui/material/styles/createTheme'; +import ThemeProvider from '@mui/material/styles/ThemeProvider'; + import { Form } from './form'; -import { Fragment, useMemo } from 'react'; -import { createThemeOptions } from '@cloudquery/cloud-ui'; + import { pluginUiMessageHandler } from './utils/messageHandler'; import { prepareInitialValues } from './utils/prepareInitialValues'; -import { CloudAppMock, useFormHeightChange, useFormInit } from '@cloudquery/plugin-config-ui-lib'; const useCloudAppMock = (process.env.REACT_APP_USE_CLOUD_APP_MOCK === 'true' || process.env.NODE_ENV !== 'production') && diff --git a/plugins/source/xkcd/cloud-config-ui/src/data/tables.json b/plugins/source/xkcd/cloud-config-ui/src/data/tables.json new file mode 100644 index 00000000000000..126fee673b43b2 --- /dev/null +++ b/plugins/source/xkcd/cloud-config-ui/src/data/tables.json @@ -0,0 +1,63 @@ +[ + { + "name": "xkcd_comics", + "title": "XKCD Comics", + "description": "", + "columns": [ + { + "name": "_cq_id", + "type": "uuid" + }, + { + "name": "_cq_parent_id", + "type": "uuid" + }, + { + "name": "month", + "type": "utf8" + }, + { + "name": "num", + "type": "int64", + "is_primary_key": true + }, + { + "name": "link", + "type": "utf8" + }, + { + "name": "year", + "type": "utf8" + }, + { + "name": "news", + "type": "utf8" + }, + { + "name": "safe_title", + "type": "utf8" + }, + { + "name": "transcript", + "type": "utf8" + }, + { + "name": "alt", + "type": "utf8" + }, + { + "name": "img", + "type": "utf8" + }, + { + "name": "title", + "type": "utf8" + }, + { + "name": "day", + "type": "utf8" + } + ], + "relations": [] + } +] \ No newline at end of file diff --git a/plugins/source/xkcd/cloud-config-ui/src/form/index.tsx b/plugins/source/xkcd/cloud-config-ui/src/form/index.tsx index 4d311e61d13f2f..0835fff4359720 100644 --- a/plugins/source/xkcd/cloud-config-ui/src/form/index.tsx +++ b/plugins/source/xkcd/cloud-config-ui/src/form/index.tsx @@ -1,24 +1,26 @@ -import TextField from '@mui/material/TextField'; -import Stack from '@mui/material/Stack'; -import Card from '@mui/material/Card'; -import CardContent from '@mui/material/CardContent'; -import Typography from '@mui/material/Typography'; -import { Logo } from '@cloudquery/plugin-config-ui-lib'; -import Box from '@mui/material/Box'; -import { Controller, FormProvider, useForm } from 'react-hook-form'; -import { getYupValidationResolver } from '@cloudquery/cloud-ui'; -import { FormValues, formValidationSchema } from '../utils/formSchema'; -import { prepareSubmitValues } from '../utils/prepareSubmitValues'; -import { pluginUiMessageHandler } from '../utils/messageHandler'; - -import { assetPrefix } from '../utils/constants'; import { useCallback } from 'react'; -import { getFieldHelperText } from '@cloudquery/cloud-ui'; + +import { getYupValidationResolver, getFieldHelperText } from '@cloudquery/cloud-ui'; import { + FormFieldGroup, + Logo, useFormSubmit, useFormCurrentValues, scrollToFirstFormFieldError, } from '@cloudquery/plugin-config-ui-lib'; +import Box from '@mui/material/Box'; +import Card from '@mui/material/Card'; +import CardContent from '@mui/material/CardContent'; +import Stack from '@mui/material/Stack'; +import TextField from '@mui/material/TextField'; +import Typography from '@mui/material/Typography'; +import { Controller, FormProvider, useForm } from 'react-hook-form'; + +import { PluginTableSelector } from './tableSelector'; +import { assetPrefix } from '../utils/constants'; +import { FormValues, formValidationSchema } from '../utils/formSchema'; +import { pluginUiMessageHandler } from '../utils/messageHandler'; +import { prepareSubmitValues } from '../utils/prepareSubmitValues'; interface Props { initialValues: FormValues | undefined; @@ -56,39 +58,44 @@ export function Form({ initialValues }: Props) { return ( - - - - - Configure source - - - XKCD + + + + + + Configure source + + + XKCD + - - - ( - - )} - /> + + ( + + )} + /> + - - - + + + + + + ); } diff --git a/plugins/source/xkcd/cloud-config-ui/src/form/tableSelector.tsx b/plugins/source/xkcd/cloud-config-ui/src/form/tableSelector.tsx new file mode 100644 index 00000000000000..e07338a2a3a838 --- /dev/null +++ b/plugins/source/xkcd/cloud-config-ui/src/form/tableSelector.tsx @@ -0,0 +1,73 @@ +import React, { useCallback, useMemo } from 'react'; + +import { + generatePluginTableList, + generateTablesFromJson, + TableSelector, +} from '@cloudquery/plugin-config-ui-lib'; +import FormHelperText from '@mui/material/FormHelperText'; +import { useFormContext, useWatch } from 'react-hook-form'; + +import tables from '../data/__tables.json'; + +import { FormValues } from '../utils/formSchema'; + +function _PluginTableSelector() { + const { + control, + formState: { errors, submitCount }, + setValue, + trigger, + } = useFormContext(); + const selectedTables: Record = useWatch({ + exact: true, + name: 'tables', + }); + + const handleChange = useCallback( + (value: Record) => { + setValue('tables', value); + trigger('tables'); + }, + [setValue, trigger], + ); + const errorMessage = submitCount > 0 ? (errors?.tables?.message as any) : null; + + const subscribeToTablesValueChange = useCallback( + (callback: (value: Record) => void) => { + const { unsubscribe } = control._subjects.values.subscribe({ + next(payload) { + callback(payload.values.tables); + }, + }); + + return unsubscribe; + }, + [control], + ); + + const tableList = useMemo( + () => generatePluginTableList(generateTablesFromJson(tables as any)), + [], + ); + + if (tableList.length === 0) { + return null; + } + + return ( + <> + + {errors.tables?.message} + + ); +} + +export const PluginTableSelector = React.memo(_PluginTableSelector); diff --git a/plugins/source/xkcd/cloud-config-ui/src/index.tsx b/plugins/source/xkcd/cloud-config-ui/src/index.tsx index 8455bbbaa83642..5a1b6768dcf31b 100644 --- a/plugins/source/xkcd/cloud-config-ui/src/index.tsx +++ b/plugins/source/xkcd/cloud-config-ui/src/index.tsx @@ -1,5 +1,7 @@ import React from 'react'; + import ReactDOM from 'react-dom/client'; + import App from './App'; const root = ReactDOM.createRoot(document.querySelector('#root') as HTMLElement); diff --git a/plugins/source/xkcd/cloud-config-ui/src/utils/formSchema.ts b/plugins/source/xkcd/cloud-config-ui/src/utils/formSchema.ts index e05370b73c22c4..63a5b14ca2c171 100644 --- a/plugins/source/xkcd/cloud-config-ui/src/utils/formSchema.ts +++ b/plugins/source/xkcd/cloud-config-ui/src/utils/formSchema.ts @@ -1,6 +1,7 @@ import { resetYupDefaultErrorMessages } from '@cloudquery/cloud-ui'; import { generateName } from '@cloudquery/plugin-config-ui-lib'; import * as yup from 'yup'; + resetYupDefaultErrorMessages(yup); export const formValidationSchema = yup.object({ @@ -23,6 +24,19 @@ export const formValidationSchema = yup.object({ ) .default([]), spec: yup.object({}), + tables: yup + .object() + .test('valid tables', function (value: Record) { + if (Object.keys(value || {}).filter((key) => value[key]).length === 0) { + return this.createError({ + message: 'At least one table must be selected', + path: 'tables', + }); + } + + return true; + }) + .default({ xkcd_comics: true }), }); export type FormValues = yup.InferType; diff --git a/plugins/source/xkcd/cloud-config-ui/src/utils/prepareInitialValues.ts b/plugins/source/xkcd/cloud-config-ui/src/utils/prepareInitialValues.ts index 490b42ce92b171..be3348cb246178 100644 --- a/plugins/source/xkcd/cloud-config-ui/src/utils/prepareInitialValues.ts +++ b/plugins/source/xkcd/cloud-config-ui/src/utils/prepareInitialValues.ts @@ -1,4 +1,5 @@ import { FormMessagePayload } from '@cloudquery/plugin-config-ui-connector'; + import { FormValues } from './formSchema'; export function prepareInitialValues( @@ -8,5 +9,6 @@ export function prepareInitialValues( name: initialValues?.name || '', envs: initialValues?.envs || [], spec: {}, + tables: Object.fromEntries((initialValues?.tables || []).map((table) => [table, true])), }; } diff --git a/plugins/source/xkcd/cloud-config-ui/src/utils/prepareSubmitValues.ts b/plugins/source/xkcd/cloud-config-ui/src/utils/prepareSubmitValues.ts index a5ba9aea3c7fca..43a4afc3ca056e 100644 --- a/plugins/source/xkcd/cloud-config-ui/src/utils/prepareSubmitValues.ts +++ b/plugins/source/xkcd/cloud-config-ui/src/utils/prepareSubmitValues.ts @@ -1,4 +1,5 @@ import { PluginUiMessagePayload } from '@cloudquery/plugin-config-ui-connector'; + import { FormValues } from './formSchema'; export function prepareSubmitValues( @@ -9,7 +10,9 @@ export function prepareSubmitValues( return { name: values.name, envs, - tables: ['xkcd_comics'], + tables: Object.keys(values.tables).filter( + (key) => values.tables[key as keyof typeof values.tables], + ), spec: {}, }; } diff --git a/plugins/source/xkcd/go.mod b/plugins/source/xkcd/go.mod index 5bfeda2a589b38..3409f01d763bba 100644 --- a/plugins/source/xkcd/go.mod +++ b/plugins/source/xkcd/go.mod @@ -3,7 +3,7 @@ module github.com/hermanschaaf/cq-source-xkcd go 1.22.4 require ( - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/rs/zerolog v1.33.0 golang.org/x/sync v0.7.0 google.golang.org/grpc v1.65.0 @@ -31,8 +31,8 @@ require ( github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/source/xkcd/go.sum b/plugins/source/xkcd/go.sum index e4ca503fc4e35b..43cbe2456d7572 100644 --- a/plugins/source/xkcd/go.sum +++ b/plugins/source/xkcd/go.sum @@ -44,14 +44,14 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/plugins/source/xkcd/test/config.yaml b/plugins/source/xkcd/test/config.yml similarity index 93% rename from plugins/source/xkcd/test/config.yaml rename to plugins/source/xkcd/test/config.yml index 349dfe2f88728b..5fc6826f9bbfd6 100644 --- a/plugins/source/xkcd/test/config.yaml +++ b/plugins/source/xkcd/test/config.yml @@ -5,7 +5,7 @@ spec: destinations: [test] path: ./cq-source-xkcd registry: local - tables: [ "*" ] + tables: ["*"] spec: --- kind: destination diff --git a/plugins/transformer/basic/CHANGELOG.md b/plugins/transformer/basic/CHANGELOG.md new file mode 100644 index 00000000000000..1867cabba11ab8 --- /dev/null +++ b/plugins/transformer/basic/CHANGELOG.md @@ -0,0 +1,28 @@ +# Changelog + +## [1.0.1](https://github.com/cloudquery/cloudquery/compare/plugins-transformer-basic-v1.0.0...plugins-transformer-basic-v1.0.1) (2024-08-13) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.59.0 ([#18881](https://github.com/cloudquery/cloudquery/issues/18881)) ([8f7667f](https://github.com/cloudquery/cloudquery/commit/8f7667f78c89514203806a458dafcbf3f389e45b)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.60.0 ([#18922](https://github.com/cloudquery/cloudquery/issues/18922)) ([7626636](https://github.com/cloudquery/cloudquery/commit/7626636913f7a0b26fb4abd25202697ace7b7132)) + +## 1.0.0 (2024-08-05) + + +### Features + +* Implement basic transformer (add/remove/obfuscate columns) ([#18704](https://github.com/cloudquery/cloudquery/issues/18704)) ([704102f](https://github.com/cloudquery/cloudquery/commit/704102fb564f97f44ce653404d214ecd38fb8c89)) +* Support table name changes on basic transformer. ([#18833](https://github.com/cloudquery/cloudquery/issues/18833)) ([67d3701](https://github.com/cloudquery/cloudquery/commit/67d3701e6e49d6dcbb7844cc654ae8fe2223d6ad)) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.12.0 ([#18448](https://github.com/cloudquery/cloudquery/issues/18448)) ([a5850e1](https://github.com/cloudquery/cloudquery/commit/a5850e1190e7d40437b3fbcea5c3b8f6b4b059ac)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v4 ([#18822](https://github.com/cloudquery/cloudquery/issues/18822)) ([bfd8765](https://github.com/cloudquery/cloudquery/commit/bfd87651d0fbd5c8346e2b320526bd834ef2aa07)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v2 to v4 ([#18842](https://github.com/cloudquery/cloudquery/issues/18842)) ([39beee4](https://github.com/cloudquery/cloudquery/commit/39beee4fa328018fa2a1ee703ebc8f1118137d54)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.0 ([#18821](https://github.com/cloudquery/cloudquery/issues/18821)) ([ef364a2](https://github.com/cloudquery/cloudquery/commit/ef364a26ae0f8064bcf10d683c9ebc2dac8d60f6)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.57.1 ([#18830](https://github.com/cloudquery/cloudquery/issues/18830)) ([605c202](https://github.com/cloudquery/cloudquery/commit/605c2027954f06f8314bad4ebb4f8fb378e7ce93)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.0 ([#18839](https://github.com/cloudquery/cloudquery/issues/18839)) ([6b57bca](https://github.com/cloudquery/cloudquery/commit/6b57bca07781db60497006b870d241609ebc8aab)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.58.1 ([#18852](https://github.com/cloudquery/cloudquery/issues/18852)) ([4320340](https://github.com/cloudquery/cloudquery/commit/4320340ac9a0db098696f567956e8b0c721f714c)) diff --git a/plugins/transformer/basic/go.mod b/plugins/transformer/basic/go.mod index e5587930d7aa17..bb714ae5ec88fd 100644 --- a/plugins/transformer/basic/go.mod +++ b/plugins/transformer/basic/go.mod @@ -4,7 +4,7 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/rs/zerolog v1.33.0 github.com/stretchr/testify v1.9.0 ) @@ -28,8 +28,8 @@ require ( github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect github.com/aws/smithy-go v1.20.3 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect - github.com/cloudquery/cloudquery-api-go v1.12.6 // indirect - github.com/cloudquery/plugin-pb-go v1.21.5 // indirect + github.com/cloudquery/cloudquery-api-go v1.12.7 // indirect + github.com/cloudquery/plugin-pb-go v1.22.0 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/ghodss/yaml v1.0.0 // indirect diff --git a/plugins/transformer/basic/go.sum b/plugins/transformer/basic/go.sum index afd47b6a728b9a..1371cdb234c4cf 100644 --- a/plugins/transformer/basic/go.sum +++ b/plugins/transformer/basic/go.sum @@ -40,14 +40,14 @@ github.com/bradleyjkemp/cupaloy/v2 v2.8.0 h1:any4BmKE+jGIaMpnU8YgH/I2LPiLBufr6oM github.com/bradleyjkemp/cupaloy/v2 v2.8.0/go.mod h1:bm7JXdkRd4BHJk9HpwqAI8BoAY1lps46Enkdqw6aRX0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= -github.com/cloudquery/cloudquery-api-go v1.12.6 h1:qs7sXOzwRZCvtwVdI/7HueLmPE59uInJKYwdfUwfOUM= -github.com/cloudquery/cloudquery-api-go v1.12.6/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= -github.com/cloudquery/plugin-pb-go v1.21.5 h1:89PQoG1aoUrvkd5xLnEUirOVn5s+zMeLBEUVvO6A56A= -github.com/cloudquery/plugin-pb-go v1.21.5/go.mod h1:r2VXmBTwPGtb51ypDr55KX3gvz67rmJkVTDffeQ9TO8= +github.com/cloudquery/cloudquery-api-go v1.12.7 h1:d55cHYl2+MRqcoi/vKxnKAxm17AvxUAXm14x1GFicEc= +github.com/cloudquery/cloudquery-api-go v1.12.7/go.mod h1:5oo8HHnv2Y7NgcVvZn59xFlYKJUyeP0tcN8JH3IP2Aw= +github.com/cloudquery/plugin-pb-go v1.22.0 h1:r17ovfn6iMKZIaqw3PtV27Brkw0Xjr1m/H2AcyZlZpI= +github.com/cloudquery/plugin-pb-go v1.22.0/go.mod h1:c8gT6POGgn8MYjxw+VkycjtAy9V+zj33i5MPM78au3s= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.58.1 h1:4NS6A2blo3MPncOkbKBw43GzQF99YqbUNIvuPcV6QtE= -github.com/cloudquery/plugin-sdk/v4 v4.58.1/go.mod h1:lwEGIieSh3kLHZ2+6nuAaDwBfeMra8Zo5huwiOIoPrg= +github.com/cloudquery/plugin-sdk/v4 v4.60.0 h1:lmXD+LDBPeSpyaMh1w0jBmlsQk7U1dPVdNtNSVu+aHQ= +github.com/cloudquery/plugin-sdk/v4 v4.60.0/go.mod h1:aysdUPAwwInoKtCLf8NblVk/xJaGGvQwI3Rc8dwaxZ4= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/release-please-config.json b/release-please-config.json index 73059815badea0..ab0b47d1e7de77 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -71,9 +71,6 @@ "plugins/source/hackernews": { "component": "plugins-source-hackernews" }, - "plugins/source/k8s": { - "component": "plugins-source-k8s" - }, "plugins/source/square": { "component": "plugins-source-square", "release-type": "python" diff --git a/scaffold/cmd/templates/cloud-config-ui/.eslintrc.json.tpl b/scaffold/cmd/templates/cloud-config-ui/.eslintrc.json.tpl index 00eebb25bbe387..13dcf7507abe8f 100644 --- a/scaffold/cmd/templates/cloud-config-ui/.eslintrc.json.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/.eslintrc.json.tpl @@ -1,5 +1,6 @@ { "root": true, + "plugins": ["import", "custom-rules"], "extends": [ "eslint:recommended", "plugin:react/recommended", @@ -7,7 +8,8 @@ "plugin:@typescript-eslint/recommended", "plugin:jsx-a11y/recommended", "plugin:prettier/recommended", - "plugin:unicorn/recommended" + "plugin:unicorn/recommended", + "plugin:import/typescript" ], "globals": { "JSX": true @@ -18,6 +20,7 @@ "node": true }, "rules": { + "custom-rules/mui-material-imports": "error", "@typescript-eslint/explicit-module-boundary-types": 0, "@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-explicit-any": 0, @@ -44,6 +47,37 @@ "depth": 5 } ], + "import/newline-after-import": "error", + "import/no-duplicates": ["error", { "prefer-inline": false }], + "import/no-unresolved": "error", + "import/order": [ + "error", + { + "alphabetize": { + "caseInsensitive": true, + "order": "asc" + }, + "groups": [ + "builtin", + "external", + "internal", + ["sibling", "parent"], + "index", + "object", + "type", + "unknown" + ], + "newlines-between": "always-and-inside-groups", + "pathGroups": [ + { + "group": "external", + "pattern": "react", + "position": "before" + } + ], + "pathGroupsExcludedImportTypes": ["react"] + } + ], "jsx-a11y/media-has-caption": "off", "jsx-a11y/no-autofocus": "off", "jsx-a11y/no-onchange": "off", @@ -56,7 +90,7 @@ "no-prototype-builtins": 0, "no-undef": "error", "no-unexpected-multiline": "error", - "no-unused-vars": "off", + "no-unused-vars": "error", "object-curly-newline": [ "error", { @@ -89,7 +123,8 @@ "react/jsx-boolean-value": ["error", "always"], "react/jsx-first-prop-new-line": ["error", "multiline"], "react/jsx-fragments": ["error", "syntax"], - "react/jsx-uses-react": "off", + "react/jsx-uses-react": "error", + "react/jsx-uses-vars": "error", "react/react-in-jsx-scope": "off", "unicorn/filename-case": "off", "unicorn/no-nested-ternary": "off", @@ -97,5 +132,10 @@ "unicorn/no-useless-undefined": "off", "unicorn/prevent-abbreviations": "off" }, - "ignorePatterns": ["node_modules/", "dist/", "*.js", "*.cjs"] + "ignorePatterns": ["node_modules/", "dist/", "*.js", "*.cjs"], + "settings": { + "react": { + "version": "detect" + } + } } diff --git a/scaffold/cmd/templates/cloud-config-ui/README.md.tpl b/scaffold/cmd/templates/cloud-config-ui/README.md.tpl index 434c0d8446e30b..edfad8e1d3caf8 100644 --- a/scaffold/cmd/templates/cloud-config-ui/README.md.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/README.md.tpl @@ -10,16 +10,12 @@ Make sure to copy `.env.example.json` to `.env.json` inside `src` folder before ## Plugin tables -In case your plugin is a source plugin and you want to use the list of tables in your plugin UI, then make sure to build the plugin first to get a generated list of tables. Inside the plugin root directory run `go build`. This will generate a plugin file and then you should run `./{generated-plugin-file-name} doc --format=json docs`. The generated file with table should be located inside `docs/__tables.json`. Then navigate back to the `cloud-config-ui` directory inside your plugin and run `npm install`. After that you can import the list of tables inside the application like this: +In case your plugin is a source plugin and you want to use the list of tables in your plugin UI, then make sure to build the plugin first to get a generated list of tables. Inside the plugin root directory run `go build`. This will generate a plugin file and then you should navigate back to the `cloud-config-ui` directory inside your plugin and run `npm start` or `npm run build`, they both will generate a `__tables.json` file in the `src/data` folder. After that you can import the list of tables inside the application like this: ```ts -import pluginTables from '@cloudquery-plugin/tables'; +import pluginTables from 'data/__tables.json'; ``` -If you change your plugin configuration that should update the list of plugins, you only need to regenerate `__tables.json`, the frontend app will automatically detect changes there. - -There is no need to commit `__tables.json` file as its content will be automatically included during the build of the plugin UI. - ## Available Scripts In the project directory, you can run: diff --git a/scaffold/cmd/templates/cloud-config-ui/e2e-tests/validate-config.spec.ts.tpl b/scaffold/cmd/templates/cloud-config-ui/e2e-tests/validate-config.spec.ts.tpl index 40c218dd7e7faf..ac3315a28c11df 100644 --- a/scaffold/cmd/templates/cloud-config-ui/e2e-tests/validate-config.spec.ts.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/e2e-tests/validate-config.spec.ts.tpl @@ -1,29 +1,30 @@ -import test, { expect } from "@playwright/test"; -import fs from "node:fs"; -import YAML from "yaml"; +import fs from 'node:fs'; -test("Submit the form", async ({ page }) => { - await page.goto("/"); +import test, { expect } from '@playwright/test'; +import YAML from 'yaml'; + +test('Submit the form', async ({ page }) => { + await page.goto('/'); // fill the form - await page.getByRole("button", { name: "Submit" }).click(); + await page.getByRole('button', { name: 'Submit' }).click(); const valuesText = await page - .locator("text=Values:") - .locator("xpath=following-sibling::*[1]") + .locator('text=Values:') + .locator('xpath=following-sibling::*[1]') .textContent(); expect(valuesText).toBeTruthy(); - if (process.env.E2E_TESTS_GENERATE_CONFIG === "true") { + if (process.env.E2E_TESTS_GENERATE_CONFIG === 'true') { const spec = JSON.parse(valuesText as string); const localConfig = YAML.stringify({ - kind: "{plugin_kind}", + kind: '{plugin_kind}', spec: { - name: "{plugin_name}", - registry: "local", - path: "../{plugin_name}", - destinations: ["{plugin_name}"], + name: '{plugin_name}', + registry: 'local', + path: '../{plugin_name}', + destinations: ['{plugin_name}'], spec: spec.spec, // use for destination @@ -38,14 +39,14 @@ test("Submit the form", async ({ page }) => { }); const anotherConfig = YAML.stringify({ - kind: "{source | destination}", // should be opposite to localConfig + kind: '{source | destination}', // should be opposite to localConfig spec: { - name: "postgresql", - path: "cloudquery/postgresql", - registry: "cloudquery", - version: "{v6.2.5 | v8.2.7}", // use v6.2.5 for source or v8.2.7 for destination + name: 'postgresql', + path: 'cloudquery/postgresql', + registry: 'cloudquery', + version: '{v6.2.5 | v8.2.7}', // use v6.2.5 for source or v8.2.7 for destination spec: { - connection_string: "test", + connection_string: 'test', }, // use for source @@ -54,22 +55,17 @@ test("Submit the form", async ({ page }) => { }, }); - if (!fs.existsSync("temp")) { - fs.mkdirSync("temp"); + if (!fs.existsSync('temp')) { + fs.mkdirSync('temp'); } - fs.writeFileSync( - "./temp/config.yml", - `${localConfig}---\n${anotherConfig}` - ); + fs.writeFileSync('./temp/config.yml', `${localConfig}---\n${anotherConfig}`); fs.writeFileSync( - "./temp/.env", + './temp/.env', `${spec.envs - .map( - (env: { name: string; value: string }) => `${env.name}=${env.value}` - ) - .join("\n")}` + .map((env: { name: string; value: string }) => `${env.name}=${env.value}`) + .join('\n')}`, ); } }); diff --git a/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/index.cjs.tpl b/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/index.cjs.tpl new file mode 100644 index 00000000000000..a90d5c37eed358 --- /dev/null +++ b/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/index.cjs.tpl @@ -0,0 +1,5 @@ +module.exports = { + rules: { + 'mui-material-imports': require('./mui-material-imports.cjs'), + }, +}; diff --git a/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs.tpl b/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs.tpl new file mode 100644 index 00000000000000..66142eb382614e --- /dev/null +++ b/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/mui-material-imports.cjs.tpl @@ -0,0 +1,149 @@ +module.exports = { + meta: { + type: 'suggestion', + docs: { + description: 'disallow named imports from @mui/material', + category: 'Best Practices', + recommended: false, + }, + fixable: 'code', + schema: [], // no options + }, + create(context) { + return { + ImportDeclaration(node) { + if (node.source.value === '@mui/material' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/material', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + let newImportStatement = `import ${importName} from '@mui/material/${importName}';`; + switch (importName) { + case 'useTheme': { + newImportStatement = `import useTheme from '@mui/material/styles/useTheme';`; + break; + } + case 'useMediaQuery': { + newImportStatement = `import useMediaQuery from '@mui/material/useMediaQuery';`; + break; + } + case 'ThemeProvider': { + newImportStatement = `import ThemeProvider from '@mui/material/styles/ThemeProvider';`; + break; + } + case 'createTheme': { + newImportStatement = `import createTheme from '@mui/material/styles/createTheme';`; + break; + } + case 'createTypography': { + newImportStatement = `import createTypography from '@mui/material/styles/createTypography';`; + break; + } + case 'styled': { + newImportStatement = `import styled from '@mui/material/styles/styled';`; + break; + } + case 'alpha': { + newImportStatement = `import { alpha } from '@mui/material/styles';`; + break; + } + case 'Theme': { + newImportStatement = `import { Theme } from '@mui/material/styles';`; + break; + } + case 'Palette': { + newImportStatement = `import { Palette } from '@mui/material/styles/createPalette';`; + break; + } + case 'PaletteColor': { + newImportStatement = `import { PaletteColor } from '@mui/material/styles/createPalette';`; + break; + } + case 'PaletteOptions': { + newImportStatement = `import { PaletteOptions } from '@mui/material/styles/createPalette';`; + break; + } + case 'Components': { + newImportStatement = `import { Components } from '@mui/material/styles';`; + break; + } + case 'Shadows': { + newImportStatement = `import { Shadows } from '@mui/material/styles';`; + break; + } + case 'Breakpoint': { + newImportStatement = `import { Breakpoint } from '@mui/material/styles';`; + break; + } + case 'TypographyOptions': { + newImportStatement = `import { TypographyOptions } from '@mui/material/styles/createTypography';`; + break; + } + } + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } else if (node.source.value === '@mui/icons-material' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/icons-material', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + const newImportStatement = `import ${importName}Icon from '@mui/icons-material/${importName}';`; + + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } else if (node.source.value === '@mui/lab' && node.specifiers.length > 0) { + const namedImports = node.specifiers.filter( + (specifier) => specifier.type === 'ImportSpecifier', + ); + + if (namedImports.length > 0) { + context.report({ + node, + message: 'Use default import for each module from @mui/lab', + fix(fixer) { + const fixes = namedImports.map((specifier) => { + const importName = specifier.local.name; + const newImportStatement = `import ${importName} from '@mui/lab/${importName}';`; + + return fixer.insertTextBefore(node, newImportStatement + '\n'); + }); + + const removeNamedImports = fixer.remove(node); + + return fixes.concat(removeNamedImports); + }, + }); + } + } + }, + }; + }, +}; diff --git a/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/package.json.tpl b/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/package.json.tpl new file mode 100644 index 00000000000000..67bb6b5725419c --- /dev/null +++ b/scaffold/cmd/templates/cloud-config-ui/eslint-plugin-custom-rules/package.json.tpl @@ -0,0 +1,4 @@ +{ + "name": "eslint-plugin-custom-rules", + "main": "index.cjs" +} diff --git a/scaffold/cmd/templates/cloud-config-ui/package.json.tpl b/scaffold/cmd/templates/cloud-config-ui/package.json.tpl index 03559a315220cb..7c472d2b62f10a 100644 --- a/scaffold/cmd/templates/cloud-config-ui/package.json.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/package.json.tpl @@ -4,10 +4,9 @@ "private": true, "homepage": "./", "dependencies": { - "@cloudquery-plugin/tables": "file:../docs/__tables.json", - "@cloudquery/cloud-ui": "^0.1.9", - "@cloudquery/plugin-config-ui-connector": "^0.2.8", - "@cloudquery/plugin-config-ui-lib": "^0.0.32", + "@cloudquery/cloud-ui": "^0.1.13", + "@cloudquery/plugin-config-ui-connector": "^0.2.13", + "@cloudquery/plugin-config-ui-lib": "^0.0.57", "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.15.20", @@ -19,37 +18,38 @@ "humanize-string": "^3.0.0", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hook-form": "^7.52.0", + "react-hook-form": "^7.52.2", "react-scripts": "^5.0.1", "typescript": "^4.9.5", - "web-vitals": "^2.1.4", "yup": "^1.4.0" }, "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.21.11", - "@playwright/test": "^1.45.3", - "@types/node": "^16.18.104", + "@playwright/test": "^1.46.0", + "@types/node": "^22.2.0", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-custom-rules": "file:./eslint-plugin-custom-rules", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsx-a11y": "^6.8.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-react": "^7.34.2", + "eslint-plugin-jsx-a11y": "^6.9.0", + "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react": "^7.35.0", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-sort-destructure-keys": "^2.0.0", - "eslint-plugin-unicorn": "^54.0.0", + "eslint-plugin-unicorn": "^55.0.0", "http-server": "^14.1.1", - "prettier": "^3.3.1", + "prettier": "^3.3.3", "yaml": "^2.5.0" }, "scripts": { - "start": "PORT=3001 react-scripts start", - "build": "react-scripts build", + "start": "node scripts/initialize.js && PORT=3001 react-scripts start", + "build": "node scripts/initialize.js -f && react-scripts build", "lint": "eslint src --ext .ts,.tsx --max-warnings 0", - "lint:fix": "eslint src --ext .ts,.tsx --max-warnings 0 --fix" + "lint:fix": "eslint src --ext .ts,.tsx --max-warnings 0 --fix", + "test:e2e": "playwright test" }, "eslintConfig": { "extends": [ diff --git a/scaffold/cmd/templates/cloud-config-ui/scripts/gen_tables.js.tpl b/scaffold/cmd/templates/cloud-config-ui/scripts/gen_tables.js.tpl new file mode 100644 index 00000000000000..8b96a1c2d2e6db --- /dev/null +++ b/scaffold/cmd/templates/cloud-config-ui/scripts/gen_tables.js.tpl @@ -0,0 +1,26 @@ +const fs = require('fs'); +var argv = require('minimist')(process.argv.slice(2)); + +const generateTables = () => + require('child_process').execSync( + `cd .. +dirname="$(basename $(pwd))" +cloudquery tables --output-dir data test/config.yml +mkdir -p cloud-config-ui/src/data +mv data/$dirname/__tables.json cloud-config-ui/src/data/__tables.json`, + (error) => { + if (error !== null) { + console.log(`exec error: ${error}`); + } + }, + ); + +// In production, or when forced, re-generate tables every time +if (process.env.NODE_ENV === 'production' || argv.f) { + return generateTables(); + // In development, only generate tables if they don't exist +} else if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { + if (!fs.existsSync('src/data/__tables.json')) { + return generateTables(); + } +} diff --git a/scaffold/cmd/templates/cloud-config-ui/scripts/initialize.js.tpl b/scaffold/cmd/templates/cloud-config-ui/scripts/initialize.js.tpl new file mode 100644 index 00000000000000..64de47be7296d8 --- /dev/null +++ b/scaffold/cmd/templates/cloud-config-ui/scripts/initialize.js.tpl @@ -0,0 +1,8 @@ +var argv = require('minimist')(process.argv.slice(2)); + +require('child_process').fork('scripts/set_environment.js'); + +const path = require('path'); +if (require('path').basename(path.join(__dirname, '../../..')) === 'source') { + require('child_process').fork(`scripts/gen_tables.js`, ['--f', argv.f]); +} diff --git a/scaffold/cmd/templates/cloud-config-ui/scripts/set_environment.js.tpl b/scaffold/cmd/templates/cloud-config-ui/scripts/set_environment.js.tpl new file mode 100644 index 00000000000000..4519cfd88e8d7c --- /dev/null +++ b/scaffold/cmd/templates/cloud-config-ui/scripts/set_environment.js.tpl @@ -0,0 +1,12 @@ +const fs = require('fs'); +const path = require('path'); + +const envFilePath = path.join(__dirname, '../src', '.env.json'); +const exampleEnvFilePath = path.join(__dirname, '../src', '.env.example.json'); + +if (!fs.existsSync(envFilePath)) { + fs.copyFileSync(exampleEnvFilePath, envFilePath); + console.log('.env.json file created successfully.'); +} else { + console.log('.env.json file already exists.'); +} \ No newline at end of file diff --git a/scaffold/cmd/templates/cloud-config-ui/src/App.tsx.tpl b/scaffold/cmd/templates/cloud-config-ui/src/App.tsx.tpl index 038b13afde4062..b11b515524bb8e 100644 --- a/scaffold/cmd/templates/cloud-config-ui/src/App.tsx.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/src/App.tsx.tpl @@ -1,13 +1,16 @@ -import Stack from '@mui/material/Stack'; +import { Fragment, useMemo } from 'react'; + +import { createThemeOptions } from '@cloudquery/cloud-ui'; +import { CloudAppMock, useFormHeightChange, useFormInit } from '@cloudquery/plugin-config-ui-lib'; import CssBaseline from '@mui/material/CssBaseline'; -import ThemeProvider from '@mui/material/styles/ThemeProvider'; +import Stack from '@mui/material/Stack'; import createTheme from '@mui/material/styles/createTheme'; +import ThemeProvider from '@mui/material/styles/ThemeProvider'; + import { Form } from './form'; -import { Fragment, useMemo } from 'react'; -import { createThemeOptions } from '@cloudquery/cloud-ui'; + import { pluginUiMessageHandler } from './utils/messageHandler'; import { prepareInitialValues } from './utils/prepareInitialValues'; -import { CloudAppMock, useFormHeightChange, useFormInit } from '@cloudquery/plugin-config-ui-lib'; const useCloudAppMock = (process.env.REACT_APP_USE_CLOUD_APP_MOCK === 'true' || process.env.NODE_ENV !== 'production') && diff --git a/scaffold/cmd/templates/cloud-config-ui/src/declarations.d.ts.tpl b/scaffold/cmd/templates/cloud-config-ui/src/declarations.d.ts.tpl deleted file mode 100644 index a0d3c63eb9ff10..00000000000000 --- a/scaffold/cmd/templates/cloud-config-ui/src/declarations.d.ts.tpl +++ /dev/null @@ -1,21 +0,0 @@ -declare module '@cloudquery-plugin/tables' { - interface PluginTableColumn { - name: string; - type: string; - is_primary_key?: boolean; - is_primary_key_component?: boolean; - is_incremental_key?: boolean; - } - - interface PluginTable { - name: string; - title: string; - description: string; - columns: PluginTableColumn[]; - relations: PluginTable[]; - } - - const pluginTables: Array; - - export default pluginTables; -} diff --git a/scaffold/cmd/templates/cloud-config-ui/src/form/index.tsx.tpl b/scaffold/cmd/templates/cloud-config-ui/src/form/index.tsx.tpl index c51637c2423c4c..b3ca431f0c416f 100644 --- a/scaffold/cmd/templates/cloud-config-ui/src/form/index.tsx.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/src/form/index.tsx.tpl @@ -1,10 +1,17 @@ +import { getFieldHelperText, getYupValidationResolver } from '@cloudquery/cloud-ui'; +import { FormFieldGroup, Logo, useFormSubmit } from '@cloudquery/plugin-config-ui-lib'; +import Box from '@mui/material/Box'; +import Card from '@mui/material/Card'; +import CardContent from '@mui/material/CardContent'; +import Stack from '@mui/material/Stack'; import TextField from '@mui/material/TextField'; +import Typography from '@mui/material/Typography'; + import { Controller, useForm } from 'react-hook-form'; -import { getYupValidationResolver } from '@cloudquery/cloud-ui'; + import { FormValues, formValidationSchema } from '../utils/formSchema'; -import { prepareSubmitValues } from '../utils/prepareSubmitValues'; import { pluginUiMessageHandler } from '../utils/messageHandler'; -import { FormFieldGroup, useFormSubmit } from '@cloudquery/plugin-config-ui-lib'; +import { prepareSubmitValues } from '../utils/prepareSubmitValues'; interface Props { initialValues: FormValues | undefined; @@ -36,35 +43,55 @@ export function Form({ initialValues }: Props) { useFormSubmit(handleValidate, pluginUiMessageHandler); return ( - - ( - - )} - /> - ( - - )} - /> - + + + + + + Configure {`{pluginKind}`} + + + {`{pluginTitle}`} + + + + ( + + )} + /> + + + + + + ( + + )} + /> + + ); } diff --git a/scaffold/cmd/templates/cloud-config-ui/src/index.tsx.tpl b/scaffold/cmd/templates/cloud-config-ui/src/index.tsx.tpl index 8455bbbaa83642..5a1b6768dcf31b 100644 --- a/scaffold/cmd/templates/cloud-config-ui/src/index.tsx.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/src/index.tsx.tpl @@ -1,5 +1,7 @@ import React from 'react'; + import ReactDOM from 'react-dom/client'; + import App from './App'; const root = ReactDOM.createRoot(document.querySelector('#root') as HTMLElement); diff --git a/scaffold/cmd/templates/cloud-config-ui/src/utils/formSchema.ts.tpl b/scaffold/cmd/templates/cloud-config-ui/src/utils/formSchema.ts.tpl index 5583da14fa2bff..ee9f9a95287096 100644 --- a/scaffold/cmd/templates/cloud-config-ui/src/utils/formSchema.ts.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/src/utils/formSchema.ts.tpl @@ -8,7 +8,7 @@ export const formValidationSchema = yup.object({ /** This is the name of plugin source/destination */ name: yup .string() - .default(generateName('{{.Name}}')) + .default(generateName('{pluginName}')) .matches( /^[a-z](-?[\da-z]+)+$/, 'Name must consist of a lower case letter, followed by alphanumeric segments separated by single dashes', diff --git a/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareInitialValues.ts.tpl b/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareInitialValues.ts.tpl index 79a8acde204630..89f9273cef3ac7 100644 --- a/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareInitialValues.ts.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareInitialValues.ts.tpl @@ -1,4 +1,5 @@ import { FormMessagePayload } from '@cloudquery/plugin-config-ui-connector'; + import { FormValues } from './formSchema'; export function prepareInitialValues( diff --git a/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareSubmitValues.ts.tpl b/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareSubmitValues.ts.tpl index bf52f1daac9347..811adaddbf6819 100644 --- a/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareSubmitValues.ts.tpl +++ b/scaffold/cmd/templates/cloud-config-ui/src/utils/prepareSubmitValues.ts.tpl @@ -1,4 +1,5 @@ import { PluginUiMessagePayload } from '@cloudquery/plugin-config-ui-connector'; + import { FormValues } from './formSchema'; export function prepareSubmitValues( diff --git a/scaffold/cmd/templates/source/go.mod.tpl b/scaffold/cmd/templates/source/go.mod.tpl index dcb739255e1824..49efc737a9ed93 100644 --- a/scaffold/cmd/templates/source/go.mod.tpl +++ b/scaffold/cmd/templates/source/go.mod.tpl @@ -4,8 +4,8 @@ go 1.22.4 require ( github.com/apache/arrow/go/v17 v17.0.0 - github.com/cloudquery/plugin-pb-go v1.21.5 - github.com/cloudquery/plugin-sdk/v4 v4.58.1 + github.com/cloudquery/plugin-pb-go v1.22.0 + github.com/cloudquery/plugin-sdk/v4 v4.60.0 github.com/rs/zerolog v1.29.0 ) diff --git a/website/pages/docs/advanced-topics/monitoring.md b/website/pages/docs/advanced-topics/monitoring.md index 3b359f7a19ded8..3600e7604497fa 100644 --- a/website/pages/docs/advanced-topics/monitoring.md +++ b/website/pages/docs/advanced-topics/monitoring.md @@ -176,7 +176,14 @@ spec: spec: ``` -Once ingestion starts you should be able to start seeing the traces in Datadog under APM->Traces->Explorer. +Run `cloudquery sync spec.yml --log-level debug`. + +:::callout{type="info"} +Running with `--log-level debug` is recommended to get more detailed logs about requests retries and errors. +::: + +After ingestion starts, you should start seeing traces in the Datadog [**APM Traces Explorer**](https://app.datadoghq.com/apm/traces). +You can also validate metrics and logs in the [**Metrics Summary**](https://app.datadoghq.com/metric/summary) and [**Log Explorer**](https://app.datadoghq.com/logs). ![Datadog](/images/docs/monitoring/cq_otel_datadog.png) @@ -186,4 +193,4 @@ We also provide a Datadog dashboard you can download from [here](/assets/datadog 3. Click "Configure" -> "Import dashboard JSON…" 4. Drag the JSON file into the window, or copy-paste the contents. -![Datadog](/images/docs/monitoring/cq_otel_datadog_dashboard.png) +![Datadog](/images/docs/monitoring/cq_otel_datadog_dashboard.png) \ No newline at end of file diff --git a/website/pages/docs/deployment/ecs.md b/website/pages/docs/deployment/ecs.md index d076213b149309..add52d24a7db3b 100644 --- a/website/pages/docs/deployment/ecs.md +++ b/website/pages/docs/deployment/ecs.md @@ -220,7 +220,7 @@ Create a new file named `task-definition.json` with the following content: "secrets": [{ "name": "CLOUDQUERY_API_KEY", "valueFrom": "" - }] + }], "logConfiguration": { "logDriver": "awslogs", "options": { diff --git a/website/pages/docs/developers/creating-new-plugin/go-source.mdx b/website/pages/docs/developers/creating-new-plugin/go-source.mdx index 88048c94c7eb12..4441b6706b8b63 100644 --- a/website/pages/docs/developers/creating-new-plugin/go-source.mdx +++ b/website/pages/docs/developers/creating-new-plugin/go-source.mdx @@ -392,7 +392,7 @@ A good way to learn how to create a new plugins is to look at the following exam - The [XKCD Source Plugin](https://github.com/cloudquery/cloudquery/tree/main/plugins/source/xkcd) contains the full code from this tutorial. - The [Hacker News Source Plugin](https://github.com/cloudquery/cloudquery/tree/main/plugins/source/hackernews) is a good example of a plugin with incremental tables. -- The [K8s Source Plugin](https://github.com/cloudquery/cloudquery/tree/main/plugins/source/k8s) is a good example of a more complex plugin with many tables and mock tests. +- The [K8s Source Plugin](https://github.com/cloudquery/cloudquery/tree/plugins-source-k8s-v6.2.4/plugins/source/k8s) is a good example of a more complex plugin with many tables and mock tests. This guide doesn't cover destination plugins yet, but you can also look at the following examples: - The [PostgreSQL Destination Plugin](https://github.com/cloudquery/cloudquery/tree/main/plugins/destination/postgresql) is a good example of an "unmanaged" destination that handles batching itself diff --git a/website/pages/docs/reference/_meta.json b/website/pages/docs/reference/_meta.json index 733d0819034530..88ea602651e658 100644 --- a/website/pages/docs/reference/_meta.json +++ b/website/pages/docs/reference/_meta.json @@ -1,5 +1,6 @@ { "source-spec": "Source Spec Reference", "destination-spec": "Destination Spec Reference", + "transformer-spec": "Transformer Spec Reference", "cli": "CLI" } \ No newline at end of file diff --git a/website/pages/docs/reference/cli/cloudquery.md b/website/pages/docs/reference/cli/cloudquery.md index e8ffbc24470630..a02d00662472e6 100644 --- a/website/pages/docs/reference/cli/cloudquery.md +++ b/website/pages/docs/reference/cli/cloudquery.md @@ -19,6 +19,7 @@ Find more information at: ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") -h, --help help for cloudquery + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_addon.md b/website/pages/docs/reference/cli/cloudquery_addon.md index bca6ce9bc03627..67322b3c803b01 100644 --- a/website/pages/docs/reference/cli/cloudquery_addon.md +++ b/website/pages/docs/reference/cli/cloudquery_addon.md @@ -15,6 +15,7 @@ Addon commands ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_addon_download.md b/website/pages/docs/reference/cli/cloudquery_addon_download.md index 717b4270a9efa4..1f27802bb8e9c9 100644 --- a/website/pages/docs/reference/cli/cloudquery_addon_download.md +++ b/website/pages/docs/reference/cli/cloudquery_addon_download.md @@ -38,6 +38,7 @@ cloudquery addon download cloudquery/transformation/aws-compliance-premium@v1.9. ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_addon_publish.md b/website/pages/docs/reference/cli/cloudquery_addon_publish.md index 63020d12611e2c..a380e19176141d 100644 --- a/website/pages/docs/reference/cli/cloudquery_addon_publish.md +++ b/website/pages/docs/reference/cli/cloudquery_addon_publish.md @@ -35,6 +35,7 @@ cloudquery addon publish /path/to/manifest.json v1.0.0 ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_login.md b/website/pages/docs/reference/cli/cloudquery_login.md index 62465794db4ae1..ced30fe7fa3f3e 100644 --- a/website/pages/docs/reference/cli/cloudquery_login.md +++ b/website/pages/docs/reference/cli/cloudquery_login.md @@ -41,6 +41,7 @@ cloudquery login --team my-team ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_logout.md b/website/pages/docs/reference/cli/cloudquery_logout.md index 5ac3829e7420e2..b8416640771d96 100644 --- a/website/pages/docs/reference/cli/cloudquery_logout.md +++ b/website/pages/docs/reference/cli/cloudquery_logout.md @@ -19,6 +19,7 @@ cloudquery logout [flags] ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_migrate.md b/website/pages/docs/reference/cli/cloudquery_migrate.md index fbe18d9c3a3b1a..6188140b6a442c 100644 --- a/website/pages/docs/reference/cli/cloudquery_migrate.md +++ b/website/pages/docs/reference/cli/cloudquery_migrate.md @@ -34,6 +34,7 @@ cloudquery migrate ./directory ./aws.yml ./pg.yml ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_plugin.md b/website/pages/docs/reference/cli/cloudquery_plugin.md index 5365de0a28ed09..b4f56716b72162 100644 --- a/website/pages/docs/reference/cli/cloudquery_plugin.md +++ b/website/pages/docs/reference/cli/cloudquery_plugin.md @@ -15,6 +15,7 @@ Plugin commands ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_plugin_install.md b/website/pages/docs/reference/cli/cloudquery_plugin_install.md index c468b0c772cde6..c04baac54bec33 100644 --- a/website/pages/docs/reference/cli/cloudquery_plugin_install.md +++ b/website/pages/docs/reference/cli/cloudquery_plugin_install.md @@ -33,6 +33,7 @@ cloudquery plugin install ./directory ./aws.yml ./pg.yml ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_plugin_publish.md b/website/pages/docs/reference/cli/cloudquery_plugin_publish.md index abcd6a0fc28d3c..f1e96d65bc58ad 100644 --- a/website/pages/docs/reference/cli/cloudquery_plugin_publish.md +++ b/website/pages/docs/reference/cli/cloudquery_plugin_publish.md @@ -37,6 +37,7 @@ cloudquery plugin publish ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_switch.md b/website/pages/docs/reference/cli/cloudquery_switch.md index 1d171500bb2795..75e61e50e3d9d8 100644 --- a/website/pages/docs/reference/cli/cloudquery_switch.md +++ b/website/pages/docs/reference/cli/cloudquery_switch.md @@ -32,6 +32,7 @@ cloudquery switch my-team ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_sync.md b/website/pages/docs/reference/cli/cloudquery_sync.md index a49488c1ba0395..6bad95e1c33720 100644 --- a/website/pages/docs/reference/cli/cloudquery_sync.md +++ b/website/pages/docs/reference/cli/cloudquery_sync.md @@ -39,6 +39,7 @@ cloudquery sync ./directory ./aws.yml ./pg.yml --tables-metrics-location metrics ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_tables.md b/website/pages/docs/reference/cli/cloudquery_tables.md index 40ba7aee664c21..116d982c40828b 100644 --- a/website/pages/docs/reference/cli/cloudquery_tables.md +++ b/website/pages/docs/reference/cli/cloudquery_tables.md @@ -40,6 +40,7 @@ cloudquery tables ./directory --filter spec ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_test-connection.md b/website/pages/docs/reference/cli/cloudquery_test-connection.md index d7c7a78ad1c60c..72418e081a2f09 100644 --- a/website/pages/docs/reference/cli/cloudquery_test-connection.md +++ b/website/pages/docs/reference/cli/cloudquery_test-connection.md @@ -33,6 +33,7 @@ cloudquery test-connection ./directory ./aws.yml ./pg.yml ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/cli/cloudquery_validate-config.md b/website/pages/docs/reference/cli/cloudquery_validate-config.md index d1b9c2a48e0271..488dc16fcf2fbd 100644 --- a/website/pages/docs/reference/cli/cloudquery_validate-config.md +++ b/website/pages/docs/reference/cli/cloudquery_validate-config.md @@ -33,6 +33,7 @@ cloudquery validate-config ./directory ./aws.yml ./pg.yml ``` --cq-dir string directory to store cloudquery files, such as downloaded plugins (default ".cq") + --invocation-id uuid useful for when using Open Telemetry integration for tracing and logging to be able to correlate logs and traces through many services (default ) --log-console enable console logging --log-file-name string Log filename (default "cloudquery.log") --log-format string Logging format (json, text) (default "text") diff --git a/website/pages/docs/reference/transformer-spec.md b/website/pages/docs/reference/transformer-spec.md new file mode 100644 index 00000000000000..d81ad59aeec1b0 --- /dev/null +++ b/website/pages/docs/reference/transformer-spec.md @@ -0,0 +1,67 @@ +--- +title: Transformer Spec Reference +description: Reference for the transformer spec CloudQuery configuration object. +--- + +# Transformer Spec Reference + +This goes through all the available options for the transformer plugin `spec` object. + +## Example + +This example configures the `basic` plugin to rename all tables by adding a `cq_` prefix before reaching the destination. + +```yaml copy +kind: transformer +spec: + name: "basic" + path: "cloudquery/basic" + registry: "cloudquery" + version: "VERSION_TRANSFORMER_BASIC" + + spec: + transformations: + - kind: change_table_names + tables: ["*"] + new_table_name_template: "cq_{{.OldName}}" +``` + +## Spec + +### name + +(`string`, required) + +Name of the plugin. If you have multiple transformer plugins, this must be unique. + +The name field may be used to uniquely identify a particular transformer configuration. For example, if you have two configs for the basic plugin for transforming a source table differently in each of two different destination databases, one may be named `basic-1` and the other `basic-2`. In this case, the `path` option below must be used to specify the download path for the plugin. + +### registry + +(`string`, optional, default: `cloudquery`, available: `github`, `cloudquery`, `local`, `grpc`, `docker`) + +- `cloudquery`: CloudQuery will look for and download the plugin from the official CloudQuery registry, and then execute it. +- `local`: CloudQuery will execute the plugin from a local path. +- `grpc`: mostly useful in debug mode when plugin is already running in a different terminal, CloudQuery will connect to the gRPC plugin server directly without spawning the process. + +### path + +(`string`, required) + +Configures how to retrieve the plugin. The contents depend on the value of `registry` (`github` by default). + +- For plugins hosted on GitHub, `path` should be of the form `"/"`. For official plugins, should be `cloudquery/`. +- For plugins that are located in the local filesystem, `path` should a filesystem path to the plugin binary. +- To connect to a running plugin via `grpc` (mostly useful for debugging), `path` should be the host-port of the plugin (e.g. `localhost:7777`). + +### version + +(`string`, required) + +`version` must be a valid [SemVer](https://semver.org/), e.g. `vMajor.Minor.Patch`. You can find all official plugin versions under [our GitHub releases page](https://github.com/cloudquery/cloudquery/releases), and for community plugins you can find it in the relevant community repository. + +### spec + +(`object`, optional) + +Plugin specific configurations. Visit [transformer plugins](https://hub.cloudquery.io/plugins/transformer) documentation for more information. diff --git a/website/public/assets/datadog-dashboard.json b/website/public/assets/datadog-dashboard.json index e41a0e3006a9f7..98ca53cb9f7fdd 100644 --- a/website/public/assets/datadog-dashboard.json +++ b/website/public/assets/datadog-dashboard.json @@ -1,5 +1,5 @@ { - "title": "CloudQuery Sync Dashboard", + "title": "CloudQuery Syncs Insights", "description": "", "widgets": [ { @@ -145,7 +145,75 @@ "size": "sm", "has_uniform_y_axes": true }, - "layout": { "x": 0, "y": 5, "width": 12, "height": 7 } + "layout": { "x": 0, "y": 5, "width": 12, "height": 3 } + }, + { + "id": 4618294854537207, + "definition": { + "title": "Throttled APIs detected in logs over time", + "title_size": "16", + "title_align": "left", + "show_legend": false, + "legend_layout": "auto", + "legend_columns": ["avg", "min", "max", "value", "sum"], + "type": "timeseries", + "requests": [ + { + "formulas": [{ "formula": "a" }], + "queries": [ + { + "data_source": "logs", + "name": "a", + "indexes": ["*"], + "compute": { "aggregation": "count" }, + "group_by": [], + "search": { + "query": "(@retry.attempt:>=2 OR \"retrying request\") @service.name:$service.value" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { "palette": "dog_classic" }, + "display_type": "bars" + } + ] + }, + "layout": { "x": 0, "y": 0, "width": 12, "height": 6 } + }, + { + "id": 5021998435653025, + "definition": { + "title": "Permission errors over time", + "title_size": "16", + "title_align": "left", + "show_legend": false, + "legend_layout": "auto", + "legend_columns": ["avg", "min", "max", "value", "sum"], + "type": "timeseries", + "requests": [ + { + "formulas": [{ "formula": "a" }], + "queries": [ + { + "data_source": "logs", + "name": "a", + "indexes": ["*"], + "compute": { "aggregation": "count" }, + "group_by": [], + "search": { + "query": "*:(*permissions OR denied*) -status:(info OR debug) @service.name:$service.value" + }, + "storage": "hot" + } + ], + "response_format": "timeseries", + "style": { "palette": "dog_classic" }, + "display_type": "bars" + } + ] + }, + "layout": { "x": 0, "y": 6, "width": 12, "height": 3 } }, { "id": 2851755114443664, diff --git a/website/versions/cli.json b/website/versions/cli.json index 1c3cac641459f4..a3d90d14981a27 100644 --- a/website/versions/cli.json +++ b/website/versions/cli.json @@ -1 +1 @@ -{ "latest": "cli-v6.2.0" } +{ "latest": "cli-v6.3.0" }