diff --git a/examples/manifests/role.yaml b/examples/manifests/role.yaml index 660fd1f4..2d8a5599 100644 --- a/examples/manifests/role.yaml +++ b/examples/manifests/role.yaml @@ -25,7 +25,6 @@ rules: resources: - pods verbs: - - list - get - update - apiGroups: diff --git a/jsonnet/lib/thanos-receive-controller.libsonnet b/jsonnet/lib/thanos-receive-controller.libsonnet index 1bdbbdc4..8f78b5b0 100644 --- a/jsonnet/lib/thanos-receive-controller.libsonnet +++ b/jsonnet/lib/thanos-receive-controller.libsonnet @@ -77,7 +77,7 @@ function(params) { { apiGroups: [''], resources: ['pods'], - verbs: ['list', 'get', 'update'], + verbs: ['get', 'update'], }, { apiGroups: ['apps'], diff --git a/main.go b/main.go index b960f29d..08b3a5df 100644 --- a/main.go +++ b/main.go @@ -101,6 +101,7 @@ func parseFlags() CmdConfig { flag.StringVar(&config.podAzAnnotationKey, "pod-az-annotation-key", "", "pod annotation key for AZ Info, If not specified or key not found, will use sts name as AZ key") flag.StringVar(&config.migrationState, "migration-state", "no-state", "[Databricks Internal] internal pantheon migration state info") flag.Parse() + return config }