This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #249 Support remote urls for static components * Incorporate feedback * Add documentation for specifying a remote url for a component manifest file * Add error handling for writing component file * Add test files * Rename method to http instead of remote-url
- Loading branch information
Showing
9 changed files
with
240 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: keyvault-flexvolume | ||
type: static | ||
path: ./manifests | ||
subcomponents: | ||
- name: "keyvault-sub" | ||
source: https://raw.githubusercontent.com/Azure/kubernetes-keyvault-flexvol/master/deployment/kv-flexvol-installer.yaml | ||
method: http | ||
type: static | ||
path: "./tmp/keyvault-sub" |
49 changes: 49 additions & 0 deletions
49
testdata/generate-remote-static/components/keyvault-sub/keyvault-sub.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,49 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: kv | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
labels: | ||
app: keyvault-flexvolume | ||
name: keyvault-flexvolume | ||
namespace: kv | ||
spec: | ||
updateStrategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: keyvault-flexvolume | ||
spec: | ||
tolerations: | ||
containers: | ||
- name: flexvol-driver-installer | ||
image: "mcr.microsoft.com/k8s/flexvolume/keyvault-flexvolume:v0.0.13" | ||
imagePullPolicy: Always | ||
resources: | ||
requests: | ||
cpu: 50m | ||
memory: 100Mi | ||
limits: | ||
cpu: 50m | ||
memory: 100Mi | ||
env: | ||
# if you have used flex before on your cluster, use same directory | ||
# set TARGET_DIR env var and mount the same directory to to the container | ||
- name: TARGET_DIR | ||
value: "/etc/kubernetes/volumeplugins" | ||
volumeMounts: | ||
- mountPath: "/etc/kubernetes/volumeplugins" | ||
name: volplugins | ||
volumes: | ||
- hostPath: | ||
# Modify this directory if your nodes are using a different one | ||
# default is "/usr/libexec/kubernetes/kubelet-plugins/volume/exec" | ||
# below is Azure default | ||
path: "/etc/kubernetes/volumeplugins" | ||
name: volplugins | ||
nodeSelector: | ||
beta.kubernetes.io/os: linux |
Empty file.