-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority/criticalItems critical to be implemented, usually by the next releaseItems critical to be implemented, usually by the next release
Milestone
Description
Describe the bug
If ReplacementTransformer has a pattern with a dot , it generates a message
"pattern-based substitution can only be applied to string target fields"
Steps To Reproduce
config.yaml
apiVersion: airshipit.org/v1alpha1
kind: ReplacementTransformer
metadata:
name: notImportantHere
replacements:
- source:
value: 12345678
target:
objref:
kind: KubeadmControlPlane
fieldrefs:
- spec.kubeadmConfigSpec.files[path=konfigadm.yaml].content%{k8s-version}%
test.yaml
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane
metadata:
name: cluster-controlplane
spec:
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: Metal3MachineTemplate
name: $(cluster-name)
kubeadmConfigSpec:
files:
- content: |
kubernetes:
version: {k8s-version}
container_runtime:
type: docker
owner: root:root
path: konfigadm.yaml
permissions: "0640"
Expected behavior
Should work like a dotless pattern.
Environment
airshipctl build from commit f555af3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority/criticalItems critical to be implemented, usually by the next releaseItems critical to be implemented, usually by the next release