Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
  • Loading branch information
geoberle committed Oct 9, 2024
1 parent af1669c commit 4808b03
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 131 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: external-dns
rules:
- apiGroups:
- route.openshift.io
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- endpoints
- services
- nodes
- pods
verbs:
- get
- list
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: external-dns
rules:
- apiGroups:
- route.openshift.io
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- endpoints
- services
- nodes
- pods
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
creationTimestamp: null
name: external-dns
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: external-dns
subjects:
- kind: ServiceAccount
name: external-dns
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
creationTimestamp: null
name: external-dns
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: external-dns
subjects:
- kind: ServiceAccount
name: external-dns
namespace: hypershift
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
name: external-dns
namespace: '{{ .Release.Namespace }}'
spec:
replicas: 1
selector:
matchLabels:
name: external-dns
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: external-dns
hypershift.openshift.io/operator-component: external-dns
name: external-dns
azure.workload.identity/use: true
spec:
containers:
- args:
- --source=service
- --source=openshift-route
- --domain-filter={{ .Values.domain }}
- --provider=azure
- --registry=txt
- --txt-suffix=-external-dns
- --txt-owner-id={{ .Values.txtOwnerId }}
- --label-filter=hypershift.openshift.io/route-visibility!=private
- --interval=1m
- --txt-cache-interval=1h
- --azure-config-file=/etc/provider/credentials
command:
- /ko-app/external-dns
image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: 7979
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 5
name: external-dns
ports:
- containerPort: 7979
name: metrics
resources:
requests:
cpu: 5m
memory: 20Mi
securityContext:
privileged: false
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /etc/provider
name: credentials
priorityClassName: hypershift-operator
serviceAccountName: external-dns
volumes:
- name: credentials
secret:
secretName: external-dns-azure
status: {}
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
name: external-dns
namespace: '{{ .Release.Namespace }}'
spec:
replicas: 1
selector:
matchLabels:
name: external-dns
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: external-dns
hypershift.openshift.io/operator-component: external-dns
name: external-dns
azure.workload.identity/use: true
spec:
containers:
- args:
- --source=service
- --source=openshift-route
- --domain-filter={{ .Values.domain }}
- --provider=azure
- --registry=txt
- --txt-suffix=-external-dns
- --txt-owner-id={{ .Values.txtOwnerId }}
- --label-filter=hypershift.openshift.io/route-visibility!=private
- --interval=1m
- --txt-cache-interval=1h
- --azure-config-file=/etc/provider/credentials
command:
- /ko-app/external-dns
image: {{ .Values.image }}

Check failure on line 37 in hypershiftoperator/deploy/helm/charts/external-dns/templates/deployment-external-dns.yaml

View workflow job for this annotation

GitHub Actions / mega-linter

37:18 [braces] too many spaces inside braces

Check failure on line 37 in hypershiftoperator/deploy/helm/charts/external-dns/templates/deployment-external-dns.yaml

View workflow job for this annotation

GitHub Actions / mega-linter

37:32 [braces] too many spaces inside braces
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 5
httpGet:
path: /healthz
port: 7979
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 5
name: external-dns
ports:
- containerPort: 7979
name: metrics
resources:
requests:
cpu: 5m
memory: 20Mi
securityContext:
privileged: false
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /etc/provider
name: credentials
priorityClassName: hypershift-operator
serviceAccountName: external-dns
volumes:
- name: credentials
secret:
secretName: external-dns-azure
status: {}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
apiVersion: azmonitoring.coreos.com/v1
kind: PodMonitor
metadata:
creationTimestamp: null
name: external-dns
namespace: '{{ .Release.Namespace }}'
spec:
jobLabel: component
namespaceSelector: {}
podMetricsEndpoints:
- bearerTokenSecret:
key: ""
interval: 30s
port: metrics
selector:
matchLabels:
name: external-dns
apiVersion: azmonitoring.coreos.com/v1
kind: PodMonitor
metadata:
creationTimestamp: null
name: external-dns
namespace: '{{ .Release.Namespace }}'
spec:
jobLabel: component
namespaceSelector: {}
podMetricsEndpoints:
- bearerTokenSecret:
key: ""
interval: 30s
port: metrics
selector:
matchLabels:
name: external-dns
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: external-dns
namespace: '{{ .Release.Namespace }}'
annotations:
azure.workload.identity~1client-id: '{{ .Values.credentials.userAssignedIdentityID }}'
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: external-dns
namespace: '{{ .Release.Namespace }}'
annotations:
azure.workload.identity~1client-id: '{{ .Values.credentials.userAssignedIdentityID }}'
2 changes: 1 addition & 1 deletion hypershiftoperator/deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hypershift-operator:
image: ""
registryOverrides: ""

exgernal-dns:
external-dns:
image: ""
txtOwnerId: ""
domain: ""
Expand Down

0 comments on commit 4808b03

Please sign in to comment.