Utility functions for work with the Kubernetes Go-Client

go-k8s-utils

This repository contains utils for the work with Kubernetes, in specific with the go-client library.

Testing

This package contains utils which are useful for testing (e.g. with the fake-client).

Reactors

Having the ReactionFunc signature, the following helper exist:

  • GenerateNameReactor: setting the ObjectMeta.Name field, based on ObjectMeta.GenerateName (as ObjectMeta.Name is not set automatically by the fake-client, if only ObjectMeta.GenerateName is set).
  • SecretDataReactor: setting the Secret.Data field based on Secret.StringData (as Secret.Data is not set automatically by the fake-client, if only Secret.StringData is set).

Examples:

clientset := fake.NewSimpleClientset()
clientset.PrependReactor("create", "pods", GenerateNameReactor)
pod := &v1.Pod{
	ObjectMeta: metav1.ObjectMeta{
		Namespace:    "default",
		GenerateName: "testpod-",
	},
	Spec: v1.PodSpec{
		Containers: []v1.Container{
			{
				Name:  "nginx",
				Image: "nginx",
			},
		},
	},
}
createdPod, _ := clientset.CoreV1().Pods(pod.Namespace).Create(ctx, pod, metav1.CreateOptions{})
fmt.Printf("Name: %s", createdPod.Name) //remember: the pods Name field was not set, only GenerateName
clientset := fake.NewSimpleClientset()
clientset.PrependReactor("create", "secrets", SecretDataReactor)

secret := &v1.Secret{
	ObjectMeta: metav1.ObjectMeta{
		Namespace: "default",
		Name:      "my-secret",
	},
	StringData: map[string]string{
		"my-key": "my-value",
	},
	Type: v1.SecretTypeOpaque,
}

createdSecret, _ := clientset.CoreV1().Secrets(secret.Namespace).Create(ctx, secret, metav1.CreateOptions{})

fmt.Printf("Secrets data: %+v", createdSecret.Data) //remember: the secrets StringData field was set, not the Data field
Owner
Comments
  • Bump k8s.io/client-go from 0.25.4 to 0.25.5

    Bump k8s.io/client-go from 0.25.4 to 0.25.5

    Bumps k8s.io/client-go from 0.25.4 to 0.25.5.

    Commits
    • e10d1ea Update dependencies to v0.25.5 tag
    • b2883ba Merge pull request #114320 from liggitt/net-1.25
    • fcb591b Update golang.org/x/net 1e63c2f
    • b63afdf Merge pull request #113425aimuz/automated-cherry-pick-of-#112693
    • 5aa9be7 Fixed (CVE-2022-27664) Bump golang.org/x/net to v0.1.1-0.20221027164007-c6301...
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • Bump k8s.io/client-go from 0.20.4 to 0.20.5

    Bump k8s.io/client-go from 0.20.4 to 0.20.5

    Bumps k8s.io/client-go from 0.20.4 to 0.20.5.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
  • Upgrade to GitHub-native Dependabot

    Upgrade to GitHub-native Dependabot

    Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then.

    Dependabot has been fully integrated into GitHub, so you no longer have to install and manage a separate app. This pull request migrates your configuration from Dependabot.com to a config file, using the new syntax. When merged, we'll swap out dependabot-preview (me) for a new dependabot app, and you'll be all set!

    With this change, you'll now use the Dependabot page in GitHub, rather than the Dependabot dashboard, to monitor your version updates, and you'll configure Dependabot through the new config file rather than a UI.

    If you've got any questions or feedback for us, please let us know by creating an issue in the dependabot/dependabot-core repository.

    Learn more about migrating to GitHub-native Dependabot

    Please note that regular @dependabot commands do not work on this pull request.

  • Bump k8s.io/api from 0.20.4 to 0.20.5

    Bump k8s.io/api from 0.20.4 to 0.20.5

    Bumps k8s.io/api from 0.20.4 to 0.20.5.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
  • Bump k8s.io/apimachinery from 0.19.4 to 0.20.0

    Bump k8s.io/apimachinery from 0.19.4 to 0.20.0

    ⚠️ Dependabot is rebasing this PR ⚠️

    If you make any changes to it yourself then they will take precedence over the rebase.


    Bumps k8s.io/apimachinery from 0.19.4 to 0.20.0.

    Commits
    • 2456ebd Merge pull request #95981 from caesarxuchao/http2-healthcheck
    • 859536f Merge pull request #96317 from Jefftree/test-ssa
    • e8cd3b1 Update kube-openapi
    • 65a627a Merge pull request #96425 from bobbypage/vendor-cadvisor-v0.38
    • bd89392 vendor: cadvisor v0.38.4
    • 3231570 Merge pull request #96549 from caesarxuchao/net-sys-dep-update
    • 88452b9 update golang.org/x/net and golang.org/x/sys
    • 671277b Merge pull request #94866 from smarterclayton/scheduling_metrics
    • 5ff8662 allow configuring ReadIdelTimeout and PingTimeout via env var
    • f364803 configure the ReadIdleTimeout and PingTimeout of the h2 transport
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

    You can always request more updates by clicking Bump now in your Dependabot dashboard.

    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
  • Bump sigs.k8s.io/controller-runtime from 0.9.1 to 0.9.2

    Bump sigs.k8s.io/controller-runtime from 0.9.1 to 0.9.2

    Bumps sigs.k8s.io/controller-runtime from 0.9.1 to 0.9.2.

    Release notes

    Sourced from sigs.k8s.io/controller-runtime's releases.

    v0.9.2

    Changes since v0.9.1

    :bug: Bug Fixes

    • Remove advertise-address from testenv api-server (#1562)

    :seedling: Others

    • addr.Suggest should lock a file instead of memory (#1563)
    • Remove async ginkgo tests (#1564)
    • Limit parallel go test executions on MacOS (#1567)
    • Refactor golangci-lint, enable more linters and add github action (#1566)

    Thanks to all our contributors! 😊

    Commits
    • 985e819 Merge pull request #1563 from vincepri/addr-file-based
    • 58c17f6 :seedling: addr.Suggest should lock a file instead of memory
    • 7d83250 Merge pull request #1564 from vincepri/remove-async-ginkgo
    • 1f32e46 :seedling: Remove async ginkgo tests
    • b826f39 Merge pull request #1567 from vincepri/disable-gotest-parallel-mac
    • 1e4d87c Merge pull request #1566 from vincepri/golangci-lint-refactor
    • 47023c0 :seedling: Limit parallel go test executions on MacOS
    • c48baad Refactor golangci-lint, enable more linters and add github action
    • 44a4c03 Merge pull request #1562 from vincepri/apiserver-no-advertise
    • 0664cce :bug: Remove advertise-address from testenv api-server
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • Bump sigs.k8s.io/controller-runtime from 0.9.0 to 0.9.1

    Bump sigs.k8s.io/controller-runtime from 0.9.0 to 0.9.1

    Bumps sigs.k8s.io/controller-runtime from 0.9.0 to 0.9.1.

    Release notes

    Sourced from sigs.k8s.io/controller-runtime's releases.

    v0.9.1

    Changes since v0.9.0

    :sparkles: New Features

    • Finalizer helper library (#1481)

    :seedling: Others

    • Update dependencies to Kubernetes v1.21.2 (#1561)

    Thanks to all our contributors! 😊

    Commits
    • 484f82a Merge pull request #1561 from vincepri/update-deps-1212
    • 0ba05d8 :seedling: Update dependencies to Kubernetes v1.21.2
    • 719e576 Merge pull request #1555 from DirectXMan12/infra/maintainer-emeritus-main
    • bf19298 Move directxman12 to approvers-emeritus
    • fbf50b0 ✨ Allow TLS minimum version to be configured (#1548)
    • 750cf33 Merge pull request #1481 from rashmigottipati/finalizer-library
    • 5eb033d Address review feedback #3
    • 60ab6fd Split needsUpdate into two separate variables and update unit tests
    • ac093b0 Address review feedback #2
    • b269322 Add needsUpdate and err fields on mockFinalizer struct for customizations
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • Bump k8s.io/client-go from 0.21.1 to 0.21.2

    Bump k8s.io/client-go from 0.21.1 to 0.21.2

    Bumps k8s.io/client-go from 0.21.1 to 0.21.2.

    Commits
    • 6711973 Update dependencies to v0.21.2 tag
    • 3c428df Merge pull request #102800 from pohly/automated-cherry-pick-of-#102788-upstre...
    • fe825e6 client-go: reduce log level of reflector again
    • 6277e97 sync: remove Godeps/
    • b63b1ba Merge pull request #102587 from saschagrunert/release-1.21
    • c18505f Revert "Cleanup portforward streams after their usage"
    • ffd8cfc Merge pull request #102196 from kolyshkin/automated-cherry-pick-of-#102147-up...
    • a802afb vendor: bump runc to rc95
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • Bump sigs.k8s.io/controller-runtime from 0.8.3 to 0.9.0

    Bump sigs.k8s.io/controller-runtime from 0.8.3 to 0.9.0

    Bumps sigs.k8s.io/controller-runtime from 0.8.3 to 0.9.0.

    Release notes

    Sourced from sigs.k8s.io/controller-runtime's releases.

    v0.9.0

    Changes since v0.8.3

    :rotating_light: Significant Changes :rotating_light:

    Envtest Refactor & Support for 1.20+ Clusters (#1486)

    This adds support for newer Kubernetes clusters, particularly those that require the use of authentication & the secure port, as well as some refactors & deprecation.

    By and large, these changes should be transparent for most users.

    As a result of the removal of the insecure port in newer k8s versions, authentication & authorization are now on by default in envtest (and the secure port is used by default). The built-in REST config now returns an admin account, meaning perceived impact should be minimal in most cases -- if you're using the built-in Environment.Config, things should just work.

    However, if you manually construct new REST configs from raw URLs, things will break. You'll need to migrate to using Environment.AddUser instead.

    Additionally, a number of options on ControlPlane & APIServer around the secure & insecure ports are deprecated -- see the docs for more details.

    Envtest Setup Tool (#1488)

    A new tool has been introduced for setting up envtest binaries at sigs.k8s.io/controller-runtime/tools/setup-envtest. This replaces the existing hack/setup-envtest.sh script, so if you were depending on that, you should switch. See the docs for more information.

    Kubernetes Dependencies

    Now at v1.21.1.

    :warning: Breaking Changes

    • Update Kubernetes v1.21 dependencies and use Go 1.16 (#1389) moderate impact: if you're on an old Go version, it's time to upgrade :wink:
    • Envtest should modify CRDs appropriately when using webhooks (#1525) minimal impact: one of the methods on WebhookInstallOptions had a signature change. Mostly internal, expected that this method is unlikely to be called directly.
    • Allow setting NewClientFunc w/o implementing an interface (#1473) moderate impact: If you're constructing a custom client, this'll change how you do so, but should make it easier in the long run.
    • Support global controller options in component config (#1371) minimal impact: adds new method to Manager interface, generally only implemented by CR)
    • Fix race in the delegating logger (#1361) minimal impact: exposed piece of internals was changed)

    :sparkles: New Features

    • Structured args in Testing (#1541) -- the use of templated args (Environment.KubeAPIServerFlags) is now deprecated -- use GetAPIServer().Configure() instead.
    • Clean up pkg/internal/testing (#1540)
    • Cleanup Webhook server setup (#1504)
    • EnvTest Binaries Setup Tool (#1488)
    • Add SelectorsByObject option to cache (#1435)
    • Simple helper for unmanaged webhook server (#1429)
    • pkg/log/zap: clarify zap level vs. logr verbosity (#1485)
    • Add ClientWithWatch for use in CLIs (#1460)
    • Add client.StrategicMergeFrom (#1406)
    • Add tests in controller that use source.Channel (#1373)
    • Revert injection deprecation logging until internal injection code use stops (#1382)

    ... (truncated)

    Commits
    • a905949 Merge pull request #1552 from DirectXMan12/docs/flags-deprecation
    • 2c1b1dd Mark all templated flag pieces as deprecated
    • abb406d Merge pull request #1551 from DirectXMan12/docs/fix-clientbuilder-ref
    • da8716a Remove reference to ClientBuilder in Cluster docs
    • d4ecab6 Merge pull request #1550 from randomvariable/dependencies-06-07
    • 96d15b7 Update dependencies for 2021/06/07
    • fca94d5 Merge pull request #1542 from DirectXMan12/infra/add-missing-license-headers
    • 66a2e62 Make sure all files have a copyright notice
    • ab7825e Merge pull request #1486 from DirectXMan12/feature/envtest-secure-port
    • e77a2fc Disable lll
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • Bump k8s.io/client-go from 0.21.0 to 0.21.1

    Bump k8s.io/client-go from 0.21.0 to 0.21.1

    Bumps k8s.io/client-go from 0.21.0 to 0.21.1.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • Bump k8s.io/apimachinery from 0.20.5 to 0.21.0

    Bump k8s.io/apimachinery from 0.20.5 to 0.21.0

    Bumps k8s.io/apimachinery from 0.20.5 to 0.21.0.

    Commits
    • e337f44 Bump klog to 2.8.0, fixing nil panics in KObj
    • ae8b5f5 Merge pull request #99759 from jpbetz/apply-extract
    • 0dd2dd9 Add extract apply function generation
    • 0335ad3 Bump SMD to v4.1.0
    • 1f1bc58 Merge pull request #99951 from deads2k/fix-decodableversions
    • 98d3ae9 Merge pull request #98841 from caesarxuchao/fix-98479
    • 79c4f87 Merge pull request #98946 from monopole/upgradeKustomize
    • 1f7ce2b until stable: pin-dependency, update-vendor, update-bazel, lint-dep
    • 8e4c0a5 Merge pull request #98653 from mandelsoft/stream
    • a13af10 provide directly decodable versions for storageversion API
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
    • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

    Additionally, you can set the following in your Dependabot dashboard:

    • Update frequency (including time of day and day of week)
    • Pull request limits (per update run and/or open at any time)
    • Out-of-range updates (receive only lockfile updates, if desired)
    • Security updates (receive only security updates, if desired)
A super simple Lodash like utility library with essential functions that empowers the development in Go
A super simple Lodash like utility library with essential functions that empowers the development in Go

A simple Utility library for Go Go does not provide many essential built in functions when it comes to the data structure such as slice and map. This

Jan 4, 2023
Some utility functions for generic types in Go.

GOUF - Utility Functions for generic types Go team released Go 1.18 beta recently with support for Generics(a.k.a type parameters). This package provi

Apr 13, 2022
Protoc-gen-fieldmask - Generate FieldMask utility functions for protobuf

protoc-gen-fieldmask Generate FieldMask utility functions for protobuf Generated

Aug 20, 2022
This is a small utility that finds unused exported Go symbols (functions, methods ...) in Go

This is a small utility that finds unused exported Go symbols (functions, methods ...) in Go. For all other similar use cases

Nov 8, 2022
A Golang and Python solution for Queue-it's Proof-of-Work challenge.

Queue-it Proof-of-Work A Golang and Python solution for Queue-it's Proof-of-Work challenge (https://queue-it.com/blog/proof-of-work-block-bad-bots/).

Oct 16, 2022
This is an open source project for commonly used functions for the Go programming language.

Common Functions This is an open source project for commonly used functions for the Go programming language. This package need >= go 1.3 Code Conventi

Jan 8, 2023
Use Golang to implement PHP's common built-in functions.

PHP2Go Use Golang to implement PHP's common built-in functions. About 140+ functions have been implemented. Install go get github.com/syyongx/php2go R

Dec 28, 2022
randstr is a module that contains functions for generating random strings.

randstr is a module that contains functions for generating random strings. The functions in this module uses the crypto/rand package. Installa

Nov 13, 2021
Go linter that warns about number of arguments in functions.

argslen linter Argslen is a linter that checks for long list of argument in functions. The default limit is 5 (maxArguments) and skip the test files (

Sep 17, 2022
The one-stop shop for most common Go functions
The one-stop shop for most common Go functions

Pandati The one stop shop for most common Go functions Table of contents Pandati The one stop shop for most common Go functions Table of contents Purp

Mar 21, 2022
Extended library functions using generics in Go.

Just few extended standard library functions for Golang using generics.

Dec 16, 2021
Simple library to handle ANSI functions and parsing of color formatting strings

Emerald A basic color library for use in my Go projects, built on top of mgutz/ansi. Package ansi is a small, fast library to create ANSI colored stri

Oct 28, 2022
Tiny Go tool for running multiple functions concurrently and collecting their results into an error slice.

Overview Short for "ConCurrent". Tiny Go tool for running multiple functions concurrently and collecting their results into an error slice. Dependency

Nov 22, 2021
Calling functions by name and getting outputs by using reflect package.

Invoker A library to call (invoke) functions by taking names and sample inputs of those functions as parameters. And returns the types and values of o

Dec 20, 2021
Convert dates from or to 31 calendars in Go. Implements the functions discussed in Reingold/Dershowitz 2018.

libcalcal - Calendrical calculations in Go About libcalcal implements in Go the functions described and presented in: Reingold, Edward M., and Nachum

Dec 30, 2021
Goterators - A util library that Supports aggregate & transforms functions Go. Such as filter, map, reduce, find, exist
Goterators - A util library that Supports aggregate & transforms functions Go. Such as filter, map, reduce, find, exist

Goterators Goterators is util library that Supports aggregate & transforms functions Go, including: for-each find exist reduce filter map API and func

Dec 19, 2022
Slice - provides generic Map, Reduce and Filter functions for Go.

slice slice is a simple Go package to provide generic versions of Map, Reduce and Filter on slices. I mainly wrote it as an exercise to get more famil

Jan 1, 2023
Helper functions for common scenarios, using Go generics.

zeroflucs generics When writing Go code for Go 1.17 or below, we've all written more than our fair share of methods to check "does this slice contain

Feb 18, 2022
This Go package allows you to set handler functions that run when named events occur

This Go package allows you to set handler functions that run when named events occur

Feb 10, 2022