-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4a6fb1
commit e60d19f
Showing
4 changed files
with
140 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Kubewarden (by Rancher) | ||
|
||
**Note:** View the [README](https://github.com/zackbradys/rancher-airgap/blob/main/README.md) for the latest versions! | ||
|
||
## Collection and Packaging | ||
|
||
[hauler/kubewarden/rancher-airgap-kubewarden.yaml](https://github.com/zackbradys/rancher-airgap/blob/main/hauler/kubewarden/rancher-airgap-kubewarden.yaml) - provides the content manifest for all the assets. | ||
|
||
```bash | ||
# pull the manifest | ||
curl -sfOL https://raw.githubusercontent.com/zackbradys/rancher-airgap/main/hauler/kubewarden/rancher-airgap-kubewarden.yaml | ||
|
||
# sync to the store | ||
hauler store sync --files rancher-airgap-kubewarden.yaml | ||
|
||
# save to tarball | ||
hauler store save --filename rancher-airgap-kubewarden.tar.zst | ||
``` | ||
|
||
## Across the Airgap | ||
|
||
```bash | ||
# coming soon | ||
``` | ||
|
||
## Loading and Distribution | ||
|
||
```bash | ||
# coming soon | ||
``` |
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,18 @@ | ||
apiVersion: content.hauler.cattle.io/v1alpha1 | ||
kind: Images | ||
metadata: | ||
name: rancher-airgap-images-kubevip | ||
spec: | ||
images: | ||
- name: ghcr.io/kube-vip/kube-vip:v0.5.11 | ||
--- | ||
apiVersion: content.hauler.cattle.io/v1alpha1 | ||
kind: Files | ||
metadata: | ||
name: rancher-airgap-files-kubevip | ||
spec: | ||
files: | ||
- path: https://kube-vip.io/k3s | ||
name: kubevip-daemonset-manifest.yaml | ||
- path: https://kube-vip.io/manifests/rbac.yaml | ||
name: kubevip-rbac-manifest.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,39 @@ | ||
### Set Variables | ||
export vKubewarden=4.1.0 | ||
export vKubewardenDefault=2.8.0 | ||
|
||
### Setup Working Directory | ||
rm -rf /opt/hauler/kubewarden | ||
mkdir -p /opt/hauler/kubewarden | ||
cd /opt/hauler/kubewarden | ||
|
||
### Download Kubewarden Images and Modify the List | ||
### https://github.com/kubewarden/kubewarden-controller | ||
helm repo add kubewarden https://charts.kubewarden.io && helm repo update | ||
kubewardenControllerImages=$(helm template kubewarden/kubewarden-controller --version=${vKubewarden} | grep 'image:' | sed 's/"//g; s/.*image: //' | sed 's/^/ - name: /') | ||
kubewardenDefaultImages=$(helm template kubewarden/kubewarden-defaults --version=${vKubewardenDefault} | grep 'image:' | sed 's/"//g; s/.*image: //' | sed 's/^/ - name: /') | ||
|
||
### Create Hauler Manifest | ||
cat << EOF >> /opt/hauler/kubewarden/rancher-airgap-kubewarden.yaml | ||
apiVersion: content.hauler.cattle.io/v1alpha1 | ||
kind: Charts | ||
metadata: | ||
name: rancher-airgap-charts-kubewarden | ||
spec: | ||
charts: | ||
- name: kubewarden-controller | ||
repoURL: https://charts.kubewarden.io | ||
version: ${vKubewarden} | ||
- name: kubewarden-defaults | ||
repoURL: https://charts.kubewarden.io | ||
version: ${vKubewardenDefault} | ||
--- | ||
apiVersion: content.hauler.cattle.io/v1alpha1 | ||
kind: Images | ||
metadata: | ||
name: rancher-airgap-images-kubewarden | ||
spec: | ||
images: | ||
${kubewardenControllerImages} | ||
${kubewardenDefaultImages} | ||
EOF |