-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bump-go-1.21.6
- Loading branch information
Showing
306 changed files
with
7,287 additions
and
2,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+706 Bytes
component/loki/source/docker/internal/dockertarget/testdata/flog_after_restart.log
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package otelcol | ||
|
||
import "fmt" | ||
|
||
const ( | ||
KubernetesAPIConfig_AuthType_None = "none" | ||
KubernetesAPIConfig_AuthType_ServiceAccount = "serviceAccount" | ||
KubernetesAPIConfig_AuthType_KubeConfig = "kubeConfig" | ||
KubernetesAPIConfig_AuthType_TLS = "tls" | ||
) | ||
|
||
// KubernetesAPIConfig contains options relevant to connecting to the K8s API | ||
type KubernetesAPIConfig struct { | ||
// How to authenticate to the K8s API server. This can be one of `none` | ||
// (for no auth), `serviceAccount` (to use the standard service account | ||
// token provided to the agent pod), or `kubeConfig` to use credentials | ||
// from `~/.kube/config`. | ||
AuthType string `river:"auth_type,attr,optional"` | ||
|
||
// When using auth_type `kubeConfig`, override the current context. | ||
Context string `river:"context,attr,optional"` | ||
} | ||
|
||
// Validate returns an error if the config is invalid. | ||
func (c *KubernetesAPIConfig) Validate() error { | ||
switch c.AuthType { | ||
case KubernetesAPIConfig_AuthType_None, | ||
KubernetesAPIConfig_AuthType_ServiceAccount, | ||
KubernetesAPIConfig_AuthType_KubeConfig, | ||
KubernetesAPIConfig_AuthType_TLS: | ||
return nil | ||
default: | ||
return fmt.Errorf("invalid auth_type %q", c.AuthType) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.