Repository navigation
fix(helm): add dry-run flag for init - #1426
Conversation
This adds a --dry-run flag to init, and causes the manifest file for Tiller to be emitted on --debug. Together, this means you can do a 'helm init --dry-run --debug' and dump the Tiller manifest much as you can with 'helm install --dry-run --debug'. This does not require a server round-trip. Closes helm#1417
|
Example: ⇒ helm init --dry-run --debug 1 ↵
metadata:
creationTimestamp: null
labels:
app: helm
name: tiller
name: tiller-deploy
spec:
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: helm
name: tiller
spec:
containers:
- image: gcr.io/kubernetes-helm/tiller:v2.0.0-beta.1
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /liveness
port: 44135
initialDelaySeconds: 1
timeoutSeconds: 1
name: tiller
ports:
- containerPort: 44134
name: tiller
readinessProbe:
httpGet:
path: /readiness
port: 44135
initialDelaySeconds: 1
timeoutSeconds: 1
resources: {}
serviceAccountName: ""
volumes: null
status: {}Will this work for you, @djsly? |
|
That's pretty helpful indeed. Prevents me from doing a real init to export the manifest. After I import this, how can I ensure that other users with Will the client be smart enough to detect the deployment object is already present ? will a newer client force the running tiller to be updated ? |
|
On Edit: And for the time being, we don't let |
|
ok I like the My only concern was that I had Helm user who told me that sometimes they download the latest heml and they are forced to align the tiller image. If you are saying that this enforcement right now is a manual step. I'm happy with this. Thanks for the quick work around! |
|
LTGM |
| cmd := &initCmd{out: &buf, home: helmpath.Home(home), kubeClient: fake.Extensions(), clientOnly: true} | ||
| if err := cmd.run(); err != nil { | ||
| t.Errorf("expected error: %v", err) | ||
| t.Errorf("unexpected error: %v", err) |
This adds a --dry-run flag to init, and causes the manifest file for
Tiller to be emitted on --debug. Together, this means you can do a
'helm init --dry-run --debug' and dump the Tiller manifest much as you
can with 'helm install --dry-run --debug'.
This does not require a server round-trip.
Closes #1417