This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore refactor of Helm template file writing logic (see #385)
This reverts commit 4cc5ccb.
- Loading branch information
Showing
34 changed files
with
472 additions
and
109 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
3 changes: 0 additions & 3 deletions
3
integration/base/helm-fetch/expected/installer/charts/mkdir.sh
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
disable_online: true | ||
|
||
skip_cleanup: true | ||
skip_cleanup: false |
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
integration/base/helm-with-sub-charts/expected/.ship/release.yml
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,12 @@ | ||
--- | ||
assets: | ||
v1: | ||
- helm: | ||
dest: charts/rendered | ||
helm_fetch: | ||
chart_ref: stable/datadog | ||
version: "1.0.1" | ||
config: {} | ||
lifecycle: | ||
v1: | ||
- render: {} |
1 change: 1 addition & 0 deletions
1
integration/base/helm-with-sub-charts/expected/.ship/state.json
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 @@ | ||
{"v1":{"config":{}}} |
16 changes: 16 additions & 0 deletions
16
integration/base/helm-with-sub-charts/expected/installer/charts/rendered/apikey-secret.yaml
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,16 @@ | ||
##--- | ||
# Source: datadog/templates/apikey-secret.yaml | ||
|
||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ship-datadog | ||
labels: | ||
app: "ship-datadog" | ||
chart: "datadog-1.0.1" | ||
release: "ship" | ||
heritage: "Tiller" | ||
type: Opaque | ||
data: | ||
api-key: "TUlTU0lORw==" |
99 changes: 99 additions & 0 deletions
99
...s/expected/installer/charts/rendered/charts/kube-state-metrics/templates/clusterrole.yaml
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,99 @@ | ||
##--- | ||
# Source: datadog/charts/kube-state-metrics/templates/clusterrole.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app: kube-state-metrics | ||
chart: kube-state-metrics-0.8.0 | ||
heritage: Tiller | ||
release: ship | ||
name: ship-kube-state-metrics | ||
rules: | ||
|
||
- apiGroups: ["batch"] | ||
resources: | ||
- cronjobs | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: ["extensions"] | ||
resources: | ||
- daemonsets | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: ["extensions"] | ||
resources: | ||
- deployments | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- endpoints | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: ["autoscaling"] | ||
resources: | ||
- horizontalpodautoscalers | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: ["batch"] | ||
resources: | ||
- jobs | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- limitranges | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- namespaces | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- nodes | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- persistentvolumeclaims | ||
verbs: ["list", "watch"] | ||
|
||
|
||
- apiGroups: [""] | ||
resources: | ||
- persistentvolumes | ||
verbs: ["list", "watch"] | ||
|
||
|
||
- apiGroups: [""] | ||
resources: | ||
- pods | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: ["extensions"] | ||
resources: | ||
- replicasets | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- replicationcontrollers | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- resourcequotas | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: [""] | ||
resources: | ||
- services | ||
verbs: ["list", "watch"] | ||
|
||
- apiGroups: ["apps"] | ||
resources: | ||
- statefulsets | ||
verbs: ["list", "watch"] |
19 changes: 19 additions & 0 deletions
19
...ted/installer/charts/rendered/charts/kube-state-metrics/templates/clusterrolebinding.yaml
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,19 @@ | ||
##--- | ||
# Source: datadog/charts/kube-state-metrics/templates/clusterrolebinding.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
app: kube-state-metrics | ||
chart: kube-state-metrics-0.8.0 | ||
heritage: Tiller | ||
release: ship | ||
name: ship-kube-state-metrics | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: ship-kube-state-metrics | ||
subjects: | ||
- kind: ServiceAccount | ||
name: ship-kube-state-metrics | ||
namespace: default |
89 changes: 89 additions & 0 deletions
89
...ts/expected/installer/charts/rendered/charts/kube-state-metrics/templates/deployment.yaml
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,89 @@ | ||
##--- | ||
# Source: datadog/charts/kube-state-metrics/templates/deployment.yaml | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: ship-kube-state-metrics | ||
labels: | ||
app: kube-state-metrics | ||
chart: "kube-state-metrics-0.8.0" | ||
release: "ship" | ||
heritage: "Tiller" | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: kube-state-metrics | ||
release: "ship" | ||
spec: | ||
serviceAccountName: ship-kube-state-metrics | ||
containers: | ||
- name: kube-state-metrics | ||
args: | ||
|
||
- --collectors=cronjobs | ||
|
||
|
||
- --collectors=daemonsets | ||
|
||
|
||
- --collectors=deployments | ||
|
||
|
||
- --collectors=endpoints | ||
|
||
|
||
- --collectors=horizontalpodautoscalers | ||
|
||
|
||
- --collectors=jobs | ||
|
||
|
||
- --collectors=limitranges | ||
|
||
|
||
- --collectors=namespaces | ||
|
||
|
||
- --collectors=nodes | ||
|
||
|
||
- --collectors=persistentvolumeclaims | ||
|
||
|
||
- --collectors=persistentvolumes | ||
|
||
|
||
- --collectors=pods | ||
|
||
|
||
- --collectors=replicasets | ||
|
||
|
||
- --collectors=replicationcontrollers | ||
|
||
|
||
- --collectors=resourcequotas | ||
|
||
|
||
- --collectors=services | ||
|
||
|
||
- --collectors=statefulsets | ||
|
||
|
||
imagePullPolicy: IfNotPresent | ||
image: "k8s.gcr.io/kube-state-metrics:v1.3.1" | ||
ports: | ||
- containerPort: 8080 | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
timeoutSeconds: 5 | ||
resources: | ||
null | ||
|
||
|
23 changes: 23 additions & 0 deletions
23
...harts/expected/installer/charts/rendered/charts/kube-state-metrics/templates/service.yaml
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,23 @@ | ||
##--- | ||
# Source: datadog/charts/kube-state-metrics/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ship-kube-state-metrics | ||
labels: | ||
app: kube-state-metrics | ||
chart: "kube-state-metrics-0.8.0" | ||
release: "ship" | ||
heritage: "Tiller" | ||
annotations: | ||
prometheus.io/scrape: 'true' | ||
spec: | ||
type: "ClusterIP" | ||
ports: | ||
- name: "http" | ||
protocol: TCP | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
app: kube-state-metrics | ||
release: ship |
11 changes: 11 additions & 0 deletions
11
...xpected/installer/charts/rendered/charts/kube-state-metrics/templates/serviceaccount.yaml
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,11 @@ | ||
##--- | ||
# Source: datadog/charts/kube-state-metrics/templates/serviceaccount.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app: kube-state-metrics | ||
chart: kube-state-metrics-0.8.0 | ||
heritage: Tiller | ||
release: ship | ||
name: ship-kube-state-metrics |
38 changes: 38 additions & 0 deletions
38
integration/base/helm-with-sub-charts/expected/installer/charts/rendered/clusterrole.yaml
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,38 @@ | ||
##--- | ||
# Source: datadog/templates/clusterrole.yaml | ||
apiVersion: "rbac.authorization.k8s.io/v1" | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app: "ship-datadog" | ||
chart: "datadog-1.0.1" | ||
heritage: "Tiller" | ||
release: "ship" | ||
name: ship-datadog | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
- events | ||
- endpoints | ||
- pods | ||
- nodes | ||
- componentstatuses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- nonResourceURLs: | ||
- "/version" | ||
- "/healthz" | ||
verbs: | ||
- get | ||
- apiGroups: # Kubelet connectivity | ||
- "" | ||
resources: | ||
- nodes/metrics | ||
- nodes/spec | ||
- nodes/proxy | ||
verbs: | ||
- get |
19 changes: 19 additions & 0 deletions
19
...tion/base/helm-with-sub-charts/expected/installer/charts/rendered/clusterrolebinding.yaml
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,19 @@ | ||
##--- | ||
# Source: datadog/templates/clusterrolebinding.yaml | ||
apiVersion: "rbac.authorization.k8s.io/v1" | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
app: "ship-datadog" | ||
chart: "datadog-1.0.1" | ||
release: "ship" | ||
heritage: "Tiller" | ||
name: ship-datadog | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: ship-datadog | ||
subjects: | ||
- kind: ServiceAccount | ||
name: ship-datadog | ||
namespace: default |
Oops, something went wrong.