jsonnet: format
This commit is contained in:
@@ -58,8 +58,6 @@ local defaults = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function(params) {
|
function(params) {
|
||||||
local am = self,
|
local am = self,
|
||||||
config:: defaults + params,
|
config:: defaults + params,
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
|
|||||||
upstream: 'http://127.0.0.1:8081/',
|
upstream: 'http://127.0.0.1:8081/',
|
||||||
secureListenAddress: ':8443',
|
secureListenAddress: ':8443',
|
||||||
ports: [
|
ports: [
|
||||||
{ name: 'https-main', containerPort: 8443, },
|
{ name: 'https-main', containerPort: 8443 },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ function(params) (import 'github.com/kubernetes/kube-state-metrics/jsonnet/kube-
|
|||||||
upstream: 'http://127.0.0.1:8082/',
|
upstream: 'http://127.0.0.1:8082/',
|
||||||
secureListenAddress: ':9443',
|
secureListenAddress: ':9443',
|
||||||
ports: [
|
ports: [
|
||||||
{ name: 'https-self', containerPort: 9443, },
|
{ name: 'https-self', containerPort: 9443 },
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ function(params) {
|
|||||||
apiGroups: ['authorization.k8s.io'],
|
apiGroups: ['authorization.k8s.io'],
|
||||||
resources: ['subjectaccessreviews'],
|
resources: ['subjectaccessreviews'],
|
||||||
verbs: ['create'],
|
verbs: ['create'],
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
serviceAccount: {
|
serviceAccount: {
|
||||||
@@ -169,7 +170,7 @@ function(params) {
|
|||||||
}) + {
|
}) + {
|
||||||
env: [
|
env: [
|
||||||
{ name: 'IP', valueFrom: { fieldRef: { fieldPath: 'status.podIP' } } },
|
{ name: 'IP', valueFrom: { fieldRef: { fieldPath: 'status.podIP' } } },
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user