You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`pattern.sh` - Utility script for pattern operations
67
+
-`Makefile` - Self-contained Makefile with inlined scripts for pattern management
74
68
75
69
When using `--with-secrets`:
76
70
-`values-secret.yaml.template` - Template for secrets configuration
77
71
- Modified `pattern.sh` with `USE_SECRETS=true` as default
72
+
- Modified `Makefile` with `USE_SECRETS=true` as default
78
73
79
-
The `patternizer update` command modifies existing patterns:
80
-
81
-
-**Removes**`common/` directory (now handled by utility container)
82
-
-**Removes** existing `Makefile` (utility container provides its own)
83
-
-**Replaces**`pattern.sh` symlink/file with patternizer version
84
-
-**Sets**`USE_SECRETS=true` by default (use `--no-secrets` for `USE_SECRETS=false`)
74
+
Both `pattern.sh` and `Makefile` provide equivalent functionality for pattern installation and management, with the Makefile offering a more traditional build tool approach.
If you have an existing Validated Pattern that uses the traditional structure (with `common/` directory and symlinked `pattern.sh`), you can modernize it to use the patternizer workflow:
135
-
136
-
### Update Workflow
137
-
138
-
1.**Navigate to your existing pattern repository:**
139
-
```bash
140
-
cd /path/to/your/existing-pattern
141
-
```
142
-
143
-
2.**Update the pattern (with secrets by default):**
144
-
```bash
145
-
podman run --rm -it -v .:/repo:z quay.io/dminnear/patternizer update
146
-
```
147
-
148
-
3.**Or update without secrets:**
149
-
```bash
150
-
podman run --rm -it -v .:/repo:z quay.io/dminnear/patternizer update --no-secrets
151
-
```
152
-
153
-
4.**Verify the changes:**
154
-
```bash
155
-
# Check that old files are removed
156
-
ls -la common/ # Should not exist
157
-
ls -la Makefile # Should not exist
158
-
159
-
# Check that pattern.sh is now a real file
160
-
ls -la pattern.sh # Should be a regular file, not a symlink
161
-
162
-
# Verify USE_SECRETS setting
163
-
grep "USE_SECRETS" pattern.sh
164
-
```
165
-
166
-
### What Gets Updated
167
-
168
-
The `update` command modernizes your pattern by:
169
-
- ✅ **Removing** the `common/` directory (functionality moved to utility container)
170
-
- ✅ **Removing** the top-level `Makefile` (utility container provides its own)
171
-
- ✅ **Replacing** the symlinked `pattern.sh` with the patternizer version
172
-
- ✅ **Configuring** secrets support (`USE_SECRETS=true` by default)
173
-
- ✅ **Preserving** all your existing values files and custom configurations
0 commit comments